/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    overflow-x: hidden;
}

/* CSS Variables from Figma */
:root {
    --primary-pink: #fb4d94;
    --secondary-navy: #191862;
    --text-gray: #909090;
    --white: #ffffff;
    --purple-accent: #c193f6;
    --form-bg: rgba(25, 5, 37, 0.4);
    --space-050: 4px;
    --space-150: 12px;
    --space-300: 24px;
}

/* Container */
.container {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

/* Header */
.header {
    background: var(--white);
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    max-width: 1440px;
    margin: 0 auto;
}

.logo-link {
    display: inline-block;
    width: 100%;
    max-width: 200px;
    height: auto;
}

.logo {
    width: 100%;
}

.create-account-btn {
    background: var(--primary-pink);
    color: var(--white);
    border: none;
    border-radius: 999px;
    padding: 10px 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.create-account-btn:hover {
    background: #24d2e5;
}

/* Main Content */
.main-content {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 190px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Steps */
.step {
    display: none;
    width: 100%;
    position: relative;
    isolation: isolate;
}

.step.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Hero Background */
.hero-background {
    position: relative;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    min-height: calc(100vh - 190px);
    background-image: url('../images/background-desktop.jpg');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    z-index: 0;
}


/* Question Section */
.question-section {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Form Container */
.form-container {
    background: var(--form-bg);
    border-radius: 20px;
    padding: 20px 32px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    width: 100%;
    max-width: 608px;
    backdrop-filter: blur(5px);
}

.final-form {
    min-height: 380px;
}

/* Question Steps */
.question-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    align-items: center;
    justify-content: center;
}

.head {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    align-items: flex-start;
}

/* Progression Bar */
.bar-progression {
    display: flex;
    gap: 4px;
    justify-content: center;
    width: 100%;
}

.progression-dot {
    flex: 1;
    height: 3px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease;
}

.progression-dot.active {
    background: var(--white);
}

/* Question Header */
.question-header {
    display: flex;
    align-items: center;
    padding-right: 40px;
    width: 100%;
    gap: 0;
    margin-bottom: 30px;
}

.icon-placeholder {
    width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: 24px;
    padding: 0;
    flex-shrink: 0;
}

.back-icon {
    border: none;
    cursor: pointer;
    background-color: transparent;
}

.back-icon:hover {
   background-color: #ffffff;
   background: rgba(255, 255, 255, 0.20);
}

.question-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1;
    color: var(--white);
    text-transform: uppercase;
    text-align: center;
    flex: 1;
    margin: 0;
}

/* Label Choices */
.label-choices {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.choices-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 0 21px;
    width: 100%;
    max-width: 474px;
}

.final-choices {
    max-width: 608px;
}

.choice-btn {
    border: 1px solid var(--white);
    background: transparent;
    color: var(--white);
    border-radius: 24px;
    padding: 0.956px 23.889px;
    height: 43px;
    min-width: 143.333px;
    width: 160px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 20.07px;
    line-height: 25.685px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.choice-btn:hover {
    background: #ffffff;
    color: #474681;
}

.choice-btn.selected {
    background: rgba(255, 255, 255, 30%);
}

.choice-btn.final-choice-btn.selected {
    background: #ffffff;
    color: #474681;
}

.final-choice-btn {
    min-width: 100px;
    width: 226px;
    padding: 0.667px 16.667px;
}

/* Final CTA Container */
.final-cta-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.final-cta-btn {
    background: var(--primary-pink);
    color: var(--white);
    border: none;
    border-radius: 20px;
    padding: 5px 10px;
    height: 36px;
    width: 223px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.final-cta-btn:hover {
    background: #24d2e5;
}

/* Stats Container */
.stats-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    width: 100%;
}

.stats-line {
    display: flex;
    gap: 4px;
    align-items: flex-start;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1;
    color: var(--white);
    text-align: center;
    white-space: nowrap;
}

.stats-line.purple {
    color: var(--purple-accent);
}

.stats-text {
    display: inline-block;
}

/* Number Counter */
.number-counter {
    display: flex;
    align-items: center;
    height: 20px;
}

.counter-digit {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    color: var(--white);
    text-align: center;
    width: 11px;
    height: 20px;
    overflow: hidden;
    position: relative;
}

.wave-text .counter-digit {
    animation: wave 0.6s ease-in-out forwards;
}

.wave-text div:nth-child(1) {
    animation-delay: 0s;
}
.wave-text div:nth-child(2) {
    animation-delay: 0.2s;
}
.wave-text div:nth-child(3) {
    animation-delay: 0.4s;
}
.wave-text div:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}


/* Footer */
.footer {
    background: var(--white);
    width: 100%;
    padding: 24px 20px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-150);
}

.footer-top {
    display: flex;
    gap: var(--space-300);
    align-items: center;
}

.rta-logo {
    height: 17px;
    width: 50px;
    object-fit: contain;
}

.footer-copyright {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-gray);
    text-transform: uppercase;
}

.footer-divider {
    height: 0;
    width: 100%;
    border-top: 1px solid var(--text-gray);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    padding: 2px 0;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-pink);
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    display: none;
}

.mobile-sticky-btn {
    display: block;
    width: 100%;
    background: var(--primary-pink);
    color: var(--white);
    border: none;
    padding: 16px 24px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    white-space: nowrap;
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
       padding-bottom: 60px;
    }

    .header-container {
        padding: 20px;
        height: 66px;
    }

    .logo {
        height: 25px;
        width: 130px;
    }

    .create-account-btn {
        padding: 10px;
        font-size: 0.8rem;
    }

    .main-content {
        min-height: calc(100vh - 160px);
        margin-bottom: 30px;
    }

    .step.active {
        padding: 0 12px 0;
        align-items: flex-start;
    }

    /* Mobile Hero Background */
    .hero-background::before {
        top: 66px;
        min-height: calc(100vh - 160px);
        background-image: url('../images/background-mobile.jpg');
    }

    .question-section {
        padding-bottom: 52px;
        width: 100%;
    }

    .form-container {
        padding: 20px 32px;
        width: 100%;
        max-width: 100%;
        border-radius: 20px;
        gap: 20px;
    }

    .question-title {
        font-size: 18px;
    }

    .choices-container {
        padding: 0;
        max-width: 100%;
    }

    .choice-btn {
        height: 31.273px;
        min-width: 104.244px;
        width: 116.365px;
        padding: 0.695px 17.374px;
        font-size: 14.59px;
        line-height: 18.68px;
    }

    .final-choice-btn {
        min-width: 61.6776px;
        width: 139.391px;
        padding: 0.411px 10.28px;
        font-size: 12.38px;
        line-height: 15.842px;
    }

    .final-cta-btn {
        width: 223px;
        height: 36px;
        font-size: 14px;
    }

    .footer {
        padding: 10px 12px 20px;
    }

    .footer-container {
        gap: 10px;
    }

    .footer-top {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        padding: 10px;
        height: 40px;
        justify-content: center;
    }

    .rta-logo {
        height: 20px;
        width: 58.824px;
    }

    .footer-copyright {
        font-size: 14px;
        text-align: center;
    }

    .footer-divider {
        display: none;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .footer-links a {
        font-size: 12px;
        text-align: center;
        width: 100%;
    }

    .footer-links a:first-child {
        font-size: 12px;
    }

    .footer-links a:last-child {
        font-size: 14px;
    }

    /* Mobile Sticky Button */
    .mobile-sticky-cta {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: var(--primary-pink);
    }

}

/* Animations */
.step {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.step.active {
    opacity: 1;
}

/* High DPI Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-background::before {
        image-rendering: -webkit-optimize-contrast;
    }
}

