:root {
    color-scheme: dark;
    --ink: #f7fbff;
    --muted: #a8b7c8;
    --bg: #06111f;
    --panel: rgba(9, 24, 42, 0.88);
    --panel-solid: #0a1728;
    --line: rgba(42, 184, 237, 0.24);
    --cyan: #29bdf2;
    --blue: #109bd0;
    --orange: #ff8a22;
    --amber: #df6d00;
    --coral: #ff6f61;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 18% 10%, rgba(255, 138, 34, 0.18), transparent 28rem),
        radial-gradient(circle at 88% 18%, rgba(41, 189, 242, 0.2), transparent 24rem),
        linear-gradient(150deg, #03070d 0%, #06111f 48%, #0a2738 100%);
}

button,
input,
textarea {
    font: inherit;
}

.page-shell {
    width: min(100%, 540px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 18px;
    display: flex;
    align-items: center;
}

.lead-panel {
    position: relative;
    width: 100%;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(12, 32, 55, 0.92), var(--panel));
    box-shadow: var(--shadow);
}

.lead-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(72, 213, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(72, 213, 255, 0.07) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 48%);
}

.brand-row,
.intro,
.consultation-form,
.success-card,
.error-box {
    position: relative;
    z-index: 1;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.brand-logo {
    width: 64px;
    height: 54px;
    object-fit: contain;
    flex: 0 0 auto;
    border-radius: 8px;
    filter: drop-shadow(0 0 18px rgba(41, 189, 242, 0.2));
}

.brand-kicker,
.brand-subtitle,
.intro p,
.field span,
.consent,
.success-card p {
    margin: 0;
}

.brand-kicker {
    font-size: 0.92rem;
    font-weight: 800;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 0.86rem;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.intro p:last-child {
    margin-top: 14px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.55;
}

.consultation-form {
    display: grid;
    gap: 20px;
    margin-top: 24px;
}

.step-progress {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.progress-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.progress-track span {
    display: block;
    width: 12.5%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--orange), var(--cyan));
    transition: width 220ms ease;
}

.steps {
    min-height: 260px;
    display: grid;
    align-items: center;
}

.stepper-ready .step {
    display: none;
}

.stepper-ready .step.is-active {
    display: block;
    animation: stepIn 180ms ease both;
}

@keyframes stepIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.field-group {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

legend,
.field > span {
    display: block;
    margin-bottom: 10px;
    color: #dcecff;
    font-size: clamp(1.55rem, 8vw, 2.35rem);
    line-height: 1.04;
    font-weight: 800;
}

.field small,
.step-hint {
    display: block;
    margin: -2px 0 18px;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.45;
}

.step-hint {
    margin-top: 0;
}

.final-title {
    margin: 0 0 18px;
    color: #dcecff;
    font-size: clamp(1.55rem, 8vw, 2.35rem);
    line-height: 1.04;
    font-weight: 800;
}

.choice-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.choice-grid.two {
    grid-template-columns: 1fr;
}

.choice-card {
    min-height: 64px;
    display: grid;
    place-items: center start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    color: #eaf5ff;
    text-align: left;
    font-size: 1rem;
    font-weight: 750;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.choice-card input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
}

.choice-card:has(input:checked) {
    border-color: rgba(255, 138, 34, 0.88);
    background: rgba(255, 138, 34, 0.13);
    color: var(--ink);
}

.choice-card:has(input:focus-visible),
.field input:focus,
.field textarea:focus,
.consent:has(input:focus-visible),
.submit-button:focus-visible,
.ghost-link:focus-visible {
    outline: 3px solid rgba(72, 213, 255, 0.36);
    outline-offset: 2px;
}

.choice-card:active {
    transform: scale(0.98);
}

.field {
    display: block;
}

.field em {
    color: var(--muted);
    font-style: normal;
    font-weight: 650;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(2, 9, 18, 0.64);
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.field input {
    height: 58px;
    padding: 0 14px;
}

.field textarea {
    min-height: 142px;
    resize: vertical;
    padding: 13px 14px;
    line-height: 1.45;
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(168, 183, 200, 0.72);
}

.contact-grid {
    display: grid;
    gap: 14px;
}

.consent {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid rgba(150, 211, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.42;
}

.consent input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--orange);
}

.step-actions {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 10px;
}

.submit-button,
.back-button,
.ghost-link {
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 8px;
    font-weight: 900;
    text-decoration: none;
}

.submit-button {
    width: 100%;
    border: 0;
    color: #03101d;
    background: linear-gradient(135deg, var(--orange), var(--cyan));
    box-shadow: 0 16px 40px rgba(41, 189, 242, 0.24);
    cursor: pointer;
}

.back-button {
    border: 1px solid var(--line);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.055);
    cursor: pointer;
}

.back-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.ghost-link {
    width: 100%;
    margin-top: 22px;
    border: 1px solid var(--line);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.04);
}

.success-card {
    padding: 26px 0 4px;
}

.success-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 999px;
    color: #04101d;
    background: linear-gradient(135deg, var(--orange), var(--cyan));
    font-size: 2rem;
    font-weight: 900;
}

.success-icon.warning {
    background: var(--orange);
}

.response-card h1 {
    font-size: clamp(1.85rem, 9vw, 2.8rem);
}

.success-card p {
    margin-top: 14px;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.55;
}

.error-box {
    margin-top: 20px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 111, 97, 0.48);
    border-radius: 8px;
    background: rgba(255, 111, 97, 0.12);
    color: #ffe8e4;
}

.error-box ul {
    margin: 8px 0 0;
    padding-left: 19px;
}

.error-box li + li {
    margin-top: 4px;
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (min-width: 620px) {
    .page-shell {
        padding-block: 34px;
    }

    .lead-panel {
        padding: 30px;
    }

    .choice-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .choice-grid.two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .choice-card {
        place-items: center;
        text-align: center;
    }
}

@media (max-width: 390px) {
    .page-shell {
        padding: 12px;
    }

    .lead-panel {
        padding: 16px;
    }

    .step-actions {
        grid-template-columns: 92px 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stepper-ready .step.is-active {
        animation: none;
    }
}
