:root {
    --yellow: #FFD400;
    --yellow-soft: #FFF4A8;
    --blue: #303CDE;
    --green: #10B981;
    --black: #111111;
    --gray: #5F6368;
    --line: #E7E7E7;
    --white: #FFFFFF;
    --off-white: #F7F7F4;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--off-white);
    color: var(--black);
    min-height: 100vh;
}

.funnel-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.funnel-shell {
    width: min(100%, 980px);
    min-height: 560px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.funnel-side {
    background:
        linear-gradient(rgba(17, 17, 17, 0.72), rgba(17, 17, 17, 0.72)),
        url('https://www.genspark.ai/api/files/s/ZeQB0UvO') center / cover;
    color: var(--white);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
}

.brand img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.eyebrow {
    color: var(--yellow);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 10px;
}

.side-copy h1 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.05;
    max-width: 420px;
    margin-bottom: 14px;
}

.side-copy p:last-child {
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    line-height: 1.5;
    max-width: 360px;
}

.proof-list {
    display: grid;
    gap: 9px;
    font-size: 13px;
    font-weight: 600;
}

.proof-list i {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    background: var(--yellow);
    color: var(--black);
    border-radius: 50%;
    margin-right: 8px;
    font-size: 11px;
}

.photo-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 22px;
}

.photo-strip img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.28);
}

.intake-card {
    padding: 30px;
    position: relative;
}

.progress {
    margin-bottom: 26px;
}

.progress span {
    display: block;
    color: var(--gray);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.progress-track {
    height: 7px;
    background: #ECECEC;
    border-radius: 99px;
    overflow: hidden;
}

#progressBar {
    height: 100%;
    width: 20%;
    background: var(--yellow);
    border-radius: inherit;
    transition: width 0.2s ease;
}

fieldset {
    border: 0;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

legend {
    font-size: 26px;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 8px;
}

.step-help {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 18px;
}

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

.choice-stack {
    display: grid;
    gap: 10px;
}

label {
    cursor: pointer;
}

input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.choice-grid span,
.choice-stack span {
    display: block;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    transition: 0.16s ease;
}

input[type="radio"]:checked + span {
    background: var(--yellow);
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.22);
}

.field-row,
.field-grid {
    display: grid;
    gap: 10px;
}

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

input[type="number"],
input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px 14px;
    font: inherit;
    font-size: 14px;
}

input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(48, 60, 222, 0.12);
}

.advice-card {
    background: #FFF8CE;
    border: 1px solid var(--yellow);
    border-radius: 9px;
    padding: 13px 14px;
    margin-bottom: 14px;
}

.advice-card strong {
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
}

.advice-card p {
    color: var(--black);
    font-size: 13px;
    line-height: 1.45;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 28px;
}

button,
.success-panel a {
    border: 0;
    border-radius: 8px;
    padding: 11px 18px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}

.primary-btn,
.success-panel a {
    background: var(--black);
    color: var(--white);
}

.ghost-btn {
    background: #EFEFEF;
    color: var(--black);
}

.submit-btn,
#prevBtn {
    display: none;
}

.secure-note {
    margin-top: 14px;
    color: var(--gray);
    font-size: 11px;
}

.success-panel {
    display: none;
    position: absolute;
    inset: 0;
    background: var(--white);
    padding: 34px;
    place-items: center;
    text-align: center;
    align-content: center;
}

.success-panel.active {
    display: grid;
}

.success-panel i {
    font-size: 44px;
    color: var(--green);
    margin-bottom: 14px;
}

.success-panel h2 {
    font-size: 26px;
    margin-bottom: 8px;
}

.success-panel p {
    color: var(--gray);
    max-width: 360px;
    margin-bottom: 18px;
}

@media (max-width: 780px) {
    .funnel-page {
        padding: 12px;
        display: block;
    }

    .funnel-shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .funnel-side {
        min-height: 260px;
    }

    .photo-strip {
        max-width: 340px;
    }

    .intake-card {
        padding: 22px;
    }

    legend {
        font-size: 22px;
    }
}

@media (max-width: 460px) {
    .choice-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    button {
        width: 100%;
    }
}
