:root {
    --ink: #f5f8fb;
    --muted: #94a5b6;
    --deep: #06111c;
    --deep-2: #0a1a28;
    --card: rgba(11, 28, 42, .88);
    --line: rgba(178, 207, 224, .15);
    --line-strong: rgba(178, 207, 224, .28);
    --aqua: #5ee3c4;
    --aqua-strong: #2fc7a5;
    --aqua-soft: rgba(94, 227, 196, .11);
    --blue: #62a8ff;
    --danger: #ff938f;
    --success: #5ee3a1;
    --shadow: 0 30px 90px rgba(0, 0, 0, .32);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
        radial-gradient(circle at 78% 0%, rgba(35, 158, 139, .19), transparent 34%),
        radial-gradient(circle at 0% 68%, rgba(58, 107, 171, .16), transparent 34%),
        var(--deep);
    background-size: 54px 54px, 54px 54px, auto, auto, auto;
    font-family: "Cairo", system-ui, sans-serif;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
.option-card,
.check-card {
    -webkit-tap-highlight-color: transparent;
}

.ambient {
    position: fixed;
    z-index: -1;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .18;
    pointer-events: none;
}

.ambient-one {
    top: -160px;
    right: 18%;
    background: #47e2be;
}

.ambient-two {
    bottom: -200px;
    left: -80px;
    background: #3988ea;
}

.brief-header,
.brief-footer {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.brief-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 96px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.brand img {
    width: 64px;
    height: 52px;
    object-fit: contain;
}

.brand-copy {
    display: grid;
    line-height: 1.35;
}

.brand-copy strong {
    font-size: .95rem;
}

.brand-copy small {
    color: var(--muted);
    font-size: .68rem;
}

.home-link {
    color: var(--muted);
    font-size: .82rem;
    text-decoration: none;
    transition: color .2s ease;
}

.home-link:hover {
    color: var(--aqua);
}

.page-shell {
    display: grid;
    grid-template-columns: minmax(320px, .88fr) minmax(500px, 1.12fr);
    gap: clamp(48px, 7vw, 104px);
    align-items: center;
    width: min(1180px, calc(100% - 48px));
    min-height: calc(100vh - 180px);
    margin-inline: auto;
    padding: 64px 0 76px;
}

.intro {
    align-self: start;
    padding-top: 38px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--aqua);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.intro h1 {
    margin: 0;
    max-width: 560px;
    font-size: clamp(2.25rem, 4.4vw, 4.55rem);
    line-height: 1.18;
    letter-spacing: -.055em;
}

.intro h1 span {
    color: var(--aqua);
}

.intro > p {
    max-width: 550px;
    margin: 26px 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 2;
}

.trust-row {
    display: grid;
    gap: 14px;
    margin-top: 50px;
    color: #b9c6d1;
    font-size: .82rem;
}

.trust-row span {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-row b {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--aqua);
    font-size: .6rem;
}

.flow-card {
    width: 100%;
    min-height: 600px;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--line);
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(14, 34, 50, .94), rgba(7, 21, 33, .94));
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
}

.flow-topbar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
}

.flow-topbar > div {
    display: grid;
    gap: 3px;
}

#stepLabel,
#progressText {
    color: var(--muted);
    font-size: .72rem;
}

#stepTitle {
    font-size: .92rem;
}

.progress-track {
    width: 100%;
    height: 3px;
    margin: 17px 0 36px;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(255, 255, 255, .08);
}

.progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--aqua-strong), var(--aqua));
    transition: width .35s ease;
}

.step-content {
    min-height: 390px;
    animation: stepIn .28s ease;
}

@keyframes stepIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.question-head {
    margin-bottom: 26px;
}

.question-kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--aqua);
    font-size: .69rem;
    font-weight: 700;
}

.question-head h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2.3vw, 1.85rem);
    line-height: 1.45;
}

.question-head p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: .8rem;
}

.field {
    display: grid;
    gap: 9px;
}

.field + .field {
    margin-top: 18px;
}

.field label,
.field-label {
    color: #d8e1e8;
    font-size: .78rem;
    font-weight: 600;
}

.input,
.select,
.textarea {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    outline: none;
    color: var(--ink);
    background: rgba(2, 12, 21, .52);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.input,
.select {
    height: 54px;
    padding: 0 16px;
}

.select {
    cursor: pointer;
}

.select option {
    color: var(--ink);
    background: #0b1c2a;
}

.textarea {
    min-height: 145px;
    padding: 15px 16px;
    resize: vertical;
    line-height: 1.8;
}

.input:focus,
.select:focus,
.textarea:focus {
    border-color: var(--aqua);
    background: rgba(2, 12, 21, .72);
    box-shadow: 0 0 0 4px var(--aqua-soft);
}

.input::placeholder,
.textarea::placeholder {
    color: #64788b;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.options-grid.single-column {
    grid-template-columns: 1fr;
}

.option-card,
.check-card {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 58px;
    gap: 11px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: #c8d3dc;
    background: rgba(255, 255, 255, .025);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.option-card:hover,
.check-card:hover {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, .045);
    transform: translateY(-1px);
}

.option-card input,
.check-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-mark {
    position: relative;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 1px solid #577084;
    border-radius: 50%;
}

.check-card .choice-mark {
    border-radius: 5px;
}

.option-card input:checked + .choice-mark,
.check-card input:checked + .choice-mark {
    border-color: var(--aqua);
    background: var(--aqua);
    box-shadow: inset 0 0 0 4px #102a34;
}

.check-card input:checked + .choice-mark {
    box-shadow: none;
}

.check-card input:checked + .choice-mark::after {
    content: "✓";
    position: absolute;
    inset: -3px 0 0;
    color: #062018;
    font-size: .76rem;
    font-weight: 800;
    text-align: center;
}

.option-card:has(input:checked),
.check-card:has(input:checked) {
    border-color: rgba(94, 227, 196, .5);
    color: var(--ink);
    background: var(--aqua-soft);
}

.option-text {
    font-size: .78rem;
    line-height: 1.5;
}

.option-text strong {
    display: block;
    color: inherit;
    font-size: .8rem;
}

.option-text small {
    color: var(--muted);
    font-size: .68rem;
}

.service-select-wrap {
    position: relative;
}

.service-select-wrap::after {
    content: "⌄";
    position: absolute;
    left: 18px;
    top: 12px;
    color: var(--aqua);
    pointer-events: none;
}

.service-select-wrap .select {
    appearance: none;
}

.hint {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: .7rem;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.field-row.three {
    grid-template-columns: 1fr 1fr 1fr;
}

.budget-box {
    display: grid;
    gap: 12px;
    margin-top: 22px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(1, 11, 19, .34);
}

.budget-line,
.budget-total {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: .74rem;
}

.budget-line {
    color: var(--muted);
}

.budget-line strong {
    color: #cdd7df;
}

.budget-total {
    margin-top: 4px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-size: .9rem;
    font-weight: 700;
}

.discount-note {
    display: none;
    margin: 0;
    color: var(--success);
    font-size: .7rem;
}

.discount-note.show {
    display: block;
}

.schedule-note {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin: 18px 0 0;
    padding: 12px 14px;
    border-right: 2px solid var(--aqua);
    color: var(--muted);
    background: rgba(94, 227, 196, .05);
    font-size: .7rem;
    line-height: 1.7;
}

.schedule-note b {
    color: var(--aqua);
}

.form-error {
    min-height: 23px;
    margin: 8px 0 0;
    color: var(--danger);
    font-size: .72rem;
}

.flow-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.btn {
    display: inline-flex;
    min-width: 120px;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 700;
    transition: transform .18s ease, background .18s ease, opacity .18s ease;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.btn:disabled {
    cursor: wait;
    opacity: .65;
}

.btn-primary {
    color: #052019;
    background: var(--aqua);
}

.btn-primary:hover:not(:disabled) {
    background: #78ecd2;
}

.btn-secondary {
    color: #c9d4dc;
    background: rgba(255, 255, 255, .055);
}

.btn-secondary[hidden] {
    visibility: hidden;
}

.trap {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.success-state {
    min-height: 510px;
    padding: 32px 0 10px;
    text-align: center;
}

.success-icon {
    display: grid;
    width: 70px;
    height: 70px;
    margin: 0 auto 24px;
    place-items: center;
    border: 1px solid rgba(94, 227, 161, .45);
    border-radius: 50%;
    color: #062018;
    background: var(--success);
    box-shadow: 0 0 0 10px rgba(94, 227, 161, .08);
    font-size: 1.65rem;
    font-weight: 800;
}

.success-state h2 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.success-state > p {
    max-width: 470px;
    margin: 12px auto 0;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.9;
}

.success-summary {
    display: grid;
    gap: 13px;
    margin-top: 28px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 15px;
    text-align: right;
    background: rgba(1, 11, 19, .34);
}

.success-summary div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: .75rem;
}

.success-summary span {
    color: var(--muted);
}

.success-summary strong {
    text-align: left;
}

.whatsapp-note {
    margin-top: 20px !important;
    padding: 12px;
    border-radius: 10px;
    color: #cdd8df !important;
    background: rgba(94, 227, 196, .06);
}

.brief-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0 34px;
    border-top: 1px solid var(--line);
    color: #708293;
    font-size: .68rem;
}

@media (max-width: 940px) {
    .page-shell {
        grid-template-columns: 1fr;
        gap: 42px;
        padding-top: 40px;
    }

    .intro {
        padding-top: 0;
        text-align: center;
    }

    .intro h1,
    .intro > p {
        margin-inline: auto;
    }

    .trust-row {
        grid-template-columns: repeat(3, auto);
        justify-content: center;
    }

    .flow-card {
        width: min(680px, 100%);
        margin-inline: auto;
    }
}

@media (max-width: 620px) {
    .brief-header,
    .brief-footer,
    .page-shell {
        width: min(100% - 28px, 1180px);
    }

    .brief-header {
        min-height: 78px;
    }

    .brand img {
        width: 52px;
        height: 44px;
    }

    .brand-copy small {
        display: none;
    }

    .page-shell {
        gap: 28px;
        padding: 26px 0 42px;
    }

    .eyebrow {
        margin-bottom: 14px;
    }

    .intro h1 {
        font-size: clamp(1.8rem, 9vw, 2.45rem);
        line-height: 1.25;
    }

    .intro > p {
        margin-top: 18px;
        font-size: .86rem;
        line-height: 1.8;
    }

    .trust-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        gap: 8px;
        margin: 24px auto 0;
        font-size: .66rem;
        line-height: 1.45;
    }

    .trust-row span {
        flex-direction: column;
        gap: 7px;
        text-align: center;
    }

    .flow-card {
        min-height: 0;
        padding: 22px 17px;
        border-radius: 20px;
    }

    .step-content {
        min-height: 0;
    }

    .options-grid,
    .field-row,
    .field-row.three {
        grid-template-columns: 1fr;
    }

    .field-row .field + .field {
        margin-top: 0;
    }

    .option-card,
    .check-card {
        min-height: 54px;
    }

    .flow-actions {
        position: sticky;
        bottom: 0;
        z-index: 2;
        margin-inline: -17px;
        margin-bottom: -22px;
        padding: 16px 17px 22px;
        background: linear-gradient(180deg, rgba(7, 21, 33, .9), #071521 35%);
    }

    .flow-actions .btn {
        flex: 1;
        min-width: 0;
    }

    .flow-actions .btn-secondary[hidden] {
        display: none;
    }

    .brief-footer {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 360px) {
    .brief-header,
    .brief-footer,
    .page-shell {
        width: calc(100% - 20px);
    }

    .home-link {
        font-size: .72rem;
    }

    .brand img {
        width: 46px;
    }

    .flow-card {
        padding-inline: 14px;
    }

    .flow-actions {
        margin-inline: -14px;
        padding-inline: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
