/* Step 1 — service picker (mobile mockup layout, no scroll) */

.modal-scroll--step1 {
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

@media (min-width: 641px) {
    .modal-scroll--step1 {
        overflow-y: auto !important;
        overflow-x: hidden;
    }

    .service-step1 {
        overflow: visible;
        min-height: min-content;
    }
}

.modal-content.modal-content--step1 {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.modal-content--step1 .modal-header--compact {
    display: none !important;
}

.modal-content--step1 .modal-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0.65rem 1rem 0.5rem;
}

.modal-content--step1 .modal-body .config-section {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

/* ── Header ── */
.service-step1 {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow: hidden;
}

.service-step1__header {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    flex-shrink: 0;
}

.service-step1__titles {
    flex: 1;
    min-width: 0;
}

.service-step1__title {
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.service-step1__desc {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.35;
    color: #64748b;
}

.service-step1__doodle {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    margin-top: 0.15rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none'%3E%3Cpath d='M8 32c6-8 14-12 22-10 4 1 8 4 10 8' stroke='%238b5cf6' stroke-width='2.5' stroke-linecap='round'/%3E%3Cpath d='M28 8c2 6 1 12-2 16' stroke='%23a78bfa' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='38' cy='12' r='3' fill='%23c4b5fd'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: 0.9;
}

/* ── Card list ── */
.service-options--picker {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    padding: 0 2px 0 0;
    scrollbar-width: thin;
}

.service-options--picker .service-option {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.5rem 0.45rem 0.55rem;
    margin: 0;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    border-left-width: 4px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.service-options--picker .service-option:hover {
    transform: none;
}

.service-options--picker .service-option::after {
    display: none !important;
}

.service-options--picker .service-option__check {
    display: none;
    position: absolute;
    top: 0.35rem;
    right: 0.4rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    color: #fff;
    z-index: 2;
}

.service-options--picker .service-option.active .service-option__check {
    display: flex;
}

.service-options--picker .service-icon-box {
    width: 2.35rem;
    height: 2.35rem;
    min-width: 2.35rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    margin: 0;
}

.service-options--picker .service-option__body {
    min-width: 0;
    text-align: left;
}

.service-options--picker .service-option__body h4 {
    margin: 0 0 0.05rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.service-options--picker .service-option__body > p {
    margin: 0 0 0.2rem;
    font-size: 0.62rem;
    line-height: 1.3;
    color: #64748b;
}

.service-tags {
    list-style: none;
    margin: 0 0 0.2rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.5rem;
}

.service-tags li {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.58rem;
    color: #475569;
    font-weight: 500;
}

.service-tags__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.65;
    flex-shrink: 0;
}

.service-duration {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.58rem;
    font-weight: 600;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    color: #475569;
}

.service-duration i {
    font-size: 0.55rem;
    opacity: 0.8;
}

.service-option__go {
    width: 1.65rem;
    height: 1.65rem;
    min-width: 1.65rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

/* Per-service accent colors */
.service-options--picker .service-option[data-service="web-dev"] {
    border-left-color: #8b5cf6;
}
.service-options--picker .service-option[data-service="web-dev"] .service-icon-web {
    background: #ede9fe;
    color: #7c3aed;
}
.service-options--picker .service-option[data-service="web-dev"] .service-tags__dot {
    color: #8b5cf6;
}
.service-options--picker .service-option[data-service="web-dev"].active {
    border-color: #c4b5fd;
    border-left-color: #8b5cf6;
    background: #f5f3ff;
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.15);
}
.service-options--picker .service-option[data-service="web-dev"].active .service-option__check {
    background: #8b5cf6;
}
.service-options--picker .service-option[data-service="web-dev"].active .service-duration {
    background: rgba(139, 92, 246, 0.12);
    color: #6d28d9;
}

.service-options--picker .service-option[data-service="ui-ux"] {
    border-left-color: #3b82f6;
}
.service-options--picker .service-option[data-service="ui-ux"] .service-icon-design {
    background: #dbeafe;
    color: #2563eb;
}
.service-options--picker .service-option[data-service="ui-ux"] .service-tags__dot {
    color: #3b82f6;
}
.service-options--picker .service-option[data-service="ui-ux"].active {
    border-color: #93c5fd;
    border-left-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15);
}
.service-options--picker .service-option[data-service="ui-ux"].active .service-option__check {
    background: #3b82f6;
}
.service-options--picker .service-option[data-service="ui-ux"].active .service-duration {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.service-options--picker .service-option[data-service="ecommerce"] {
    border-left-color: #f59e0b;
}
.service-options--picker .service-option[data-service="ecommerce"] .service-icon-ecommerce {
    background: #ffedd5;
    color: #ea580c;
}
.service-options--picker .service-option[data-service="ecommerce"] .service-tags__dot {
    color: #f59e0b;
}
.service-options--picker .service-option[data-service="ecommerce"].active {
    border-color: #fcd34d;
    border-left-color: #f59e0b;
    background: #fffbeb;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.15);
}
.service-options--picker .service-option[data-service="ecommerce"].active .service-option__check {
    background: #f59e0b;
}
.service-options--picker .service-option[data-service="ecommerce"].active .service-duration {
    background: rgba(245, 158, 11, 0.12);
    color: #c2410c;
}

.service-options--picker .service-option[data-service="saas"] {
    border-left-color: #22c55e;
}
.service-options--picker .service-option[data-service="saas"] .service-icon-saas {
    background: #dcfce7;
    color: #16a34a;
}
.service-options--picker .service-option[data-service="saas"] .service-tags__dot {
    color: #22c55e;
}
.service-options--picker .service-option[data-service="saas"].active {
    border-color: #86efac;
    border-left-color: #22c55e;
    background: #f0fdf4;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.15);
}
.service-options--picker .service-option[data-service="saas"].active .service-option__check {
    background: #22c55e;
}
.service-options--picker .service-option[data-service="saas"].active .service-duration {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

/* Footer — sempre visível abaixo da lista rolável */
.service-step1__footer {
    flex-shrink: 0;
    padding-top: 0.35rem;
    padding-bottom: max(0.15rem, env(safe-area-inset-bottom, 0px));
    margin-top: auto;
    border-top: 1px solid #e2e8f0;
    background: #fff;
    position: relative;
    z-index: 2;
}

.btn-service-continue {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed 0%, #6c3bff 100%);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-service-continue:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.45);
}

.btn-service-continue:active {
    transform: scale(0.98);
}

.service-step1__secure {
    margin: 0.35rem 0 0;
    text-align: center;
    font-size: 0.62rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.service-step1__secure i {
    font-size: 0.6rem;
    opacity: 0.85;
}

/* Language button — flag only */
.lang-btn--flag-only {
    min-width: 2.25rem;
    padding: 0.35rem 0.45rem;
}

.lang-btn--flag-only .lang-flag {
    font-size: 1.15rem;
    line-height: 1;
}

/* Dark mode */
[data-theme="dark"] .service-step1__title,
html.dark .service-step1__title {
    color: #f1f5f9;
}

[data-theme="dark"] .service-step1__desc,
html.dark .service-step1__desc {
    color: #94a3b8;
}

[data-theme="dark"] .service-options--picker .service-option,
html.dark .service-options--picker .service-option {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .service-options--picker .service-option__body h4,
html.dark .service-options--picker .service-option__body h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .service-options--picker .service-option__body > p,
html.dark .service-options--picker .service-option__body > p {
    color: #94a3b8;
}

[data-theme="dark"] .service-tags li,
html.dark .service-tags li {
    color: #cbd5e1;
}

[data-theme="dark"] .service-option__go,
html.dark .service-option__go {
    background: #334155;
    border-color: #475569;
    color: #cbd5e1;
}

[data-theme="dark"] .service-step1__footer,
html.dark .service-step1__footer {
    background: #0f172a;
    border-top-color: #334155;
}

[data-theme="dark"] .btn-service-continue,
html.dark .btn-service-continue {
    background: linear-gradient(135deg, #7c3aed 0%, #6c3bff 100%);
    color: #fff;
}

[data-theme="dark"] .service-options--picker .service-option[data-service="web-dev"].active,
html.dark .service-options--picker .service-option[data-service="web-dev"].active {
    background: rgba(139, 92, 246, 0.15);
}

[data-theme="dark"] .service-options--picker .service-option[data-service="ui-ux"].active,
html.dark .service-options--picker .service-option[data-service="ui-ux"].active {
    background: rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .service-options--picker .service-option[data-service="ecommerce"].active,
html.dark .service-options--picker .service-option[data-service="ecommerce"].active {
    background: rgba(245, 158, 11, 0.12);
}

[data-theme="dark"] .service-options--picker .service-option[data-service="saas"].active,
html.dark .service-options--picker .service-option[data-service="saas"].active {
    background: rgba(34, 197, 94, 0.12);
}

/* Short viewports — keep everything visible without scroll */
@media (max-height: 680px) {
    .service-step1__title {
        font-size: 0.95rem;
    }
    .service-step1__desc {
        font-size: 0.65rem;
    }
    .service-step1__doodle {
        width: 1.5rem;
        height: 1.5rem;
    }
    .service-options--picker {
        gap: 0.3rem;
    }
    .service-options--picker .service-option {
        padding: 0.35rem 0.45rem 0.35rem 0.5rem;
        gap: 0.45rem;
    }
    .service-options--picker .service-icon-box {
        width: 2rem;
        height: 2rem;
        min-width: 2rem;
        font-size: 0.85rem;
    }
    .service-options--picker .service-option__body h4 {
        font-size: 0.75rem;
    }
    .service-options--picker .service-option__body > p {
        font-size: 0.55rem;
        margin-bottom: 0.12rem;
    }
    .service-tags {
        margin-bottom: 0.12rem;
    }
    .service-tags li {
        font-size: 0.52rem;
    }
    .service-duration {
        font-size: 0.52rem;
        padding: 0.08rem 0.32rem;
    }
    .btn-service-continue {
        padding: 0.55rem 1rem;
        font-size: 0.8rem;
    }
    .service-step1__secure {
        font-size: 0.55rem;
        margin-top: 0.25rem;
    }
}

/* Slightly taller phones */
@media (min-height: 700px) {
    .service-step1__title {
        font-size: 1.12rem;
    }
    .service-options--picker {
        gap: 0.5rem;
    }
    .service-options--picker .service-option {
        padding: 0.55rem 0.55rem 0.55rem 0.6rem;
    }
    .service-options--picker .service-option__body h4 {
        font-size: 0.88rem;
    }
    .service-options--picker .service-option__body > p {
        font-size: 0.66rem;
    }
    .service-tags li {
        font-size: 0.62rem;
    }
}
