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

:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --accent: #25D366;
    --text-dark: #111827;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --error: #ef4444;
    
    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

/* Ensure all select elements have white backgrounds */
select {
    background: var(--white) !important;
    background-color: var(--white) !important;
}

/* Container */
.onboarding-container {
    min-height: 100vh;
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #f3f4f6 100%);
    padding: 20px 20px 2rem 20px; /* Consistent horizontal padding */
    flex: 1;
}

@media (min-width: 768px) {
    .onboarding-container {
        padding-top: 90px; /* More space on desktop */
        padding-bottom: 3rem;
    }
}

@media (max-width: 767px) {
    .onboarding-container {
        padding: 70px 16px 2rem 16px; /* Proper padding on all sides */
    }
}

/* Enhanced Progress Bar with Step Indicator */
.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
}

.progress-bar-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.progress-step-text {
    font-size: 0.875rem;
    color: var(--text-medium);
    font-weight: 500;
}

.progress-step-number {
    color: var(--primary);
    font-weight: 600;
}

.step-name-separator {
    margin: 0 0.5rem;
    color: var(--text-light);
}

.step-name {
    color: var(--secondary);
    font-weight: 600;
    text-transform: capitalize;
}

.progress-percentage {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.progress-percentage.updating {
    transform: scale(1.1);
    color: var(--secondary);
}

.progress-bar {
    height: 8px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 0;
    overflow: hidden;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 100px;
    position: relative;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Step dots below progress bar */
.progress-dots {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    position: relative;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.progress-dot.completed {
    background: var(--primary);
    transform: scale(1.2);
}

.progress-dot.active {
    background: var(--secondary);
    transform: scale(1.4);
    box-shadow: 0 0 0 4px rgba(118, 75, 162, 0.2);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 0 4px rgba(118, 75, 162, 0.2);
    }
    50% { 
        box-shadow: 0 0 0 6px rgba(118, 75, 162, 0.3);
    }
}

/* Hide old elements */
.progress-info,
.progress-text,
.progress-count,
.progress-steps {
    display: none;
}

@media (max-width: 767px) {
    .progress-bar-container {
        padding: 0.75rem 1rem;
    }
    
    .progress-bar {
        height: 6px;
    }
    
    .progress-header {
        margin-bottom: 0.5rem;
    }
    
    .progress-step-text,
    .progress-percentage {
        font-size: 0.75rem;
    }
    
    .progress-dots {
        display: none; /* Hide dots on mobile to save space */
    }
}
/* Onboarding Steps */
.onboarding-step {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: none;
    opacity: 0;
    transition: all var(--transition-medium);
    padding: 0; /* Remove default padding */
    min-height: calc(100vh - 140px); /* Consistent height */
}

.onboarding-step.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
    animation: fadeInUp 0.5s ease;
}

/* Animation for step transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Welcome Screen */
.welcome-content {
    text-align: center;
    max-width: 100%;
    width: 100%;
    animation: fadeInUp 0.6s ease;
    padding: 40px 10px 20px 10px; /* Add padding */
    margin: 0 auto;
}

.logo-section {
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.luna-avatar-large {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    transform: scale(1.1);
    border: 4px solid var(--white);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    background: var(--white);
}

.gradient-text {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
    font-weight: 400;
}

.features-list, .feature-points {
    margin-bottom: 2.5rem;
    text-align: left;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-dark);
}

.feature-icon {
    font-size: 1.25rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
}

.feature-text {
    flex: 1;
    color: var(--text-dark);
}

/* Chat Introduction */
.chat-introduction {
    max-width: 100%;
    width: 100%;
    animation: fadeInUp 0.6s ease;
    padding-top: 80px; /* Consistent top position for all steps */
    margin: 0 auto;
}

.chat-bubble-container {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0 10px; /* Add horizontal padding */
}

.luna-avatar-chat {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 2px solid var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.chat-bubble {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 20px;
    border-top-left-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    flex: 1;
}

.chat-bubble::before {
    content: '';
    position: absolute;
    top: 10px;
    left: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 10px 0;
    border-color: transparent var(--white) transparent transparent;
}
.chat-bubble p {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
}

.chat-bubble p:last-child {
    margin-bottom: 0;
}

/* Form Content */
.form-content {
    max-width: 100%;
    width: 100%;
    animation: fadeInUp 0.6s ease;
    padding-top: 80px; /* Consistent top position for all steps */
    margin: 0 auto;
}

.form-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
}

/* Form Chat Bubbles */
.form-chat {
    margin-bottom: 1.5rem;
}

/* Pricing step specific tighter spacing */
.pricing-content .form-chat {
    margin-bottom: 1rem;
}

.form-chat .luna-avatar-chat {
    width: 60px;
    height: 60px;
}

.form-chat .chat-bubble {
    max-width: 100%;
}

/* Input Groups */
.input-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--white);
    color: var(--text-dark);
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input.error {
    border-color: var(--error);
}

.input-error {
    display: block;
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
}
.input-error.show {
    opacity: 1;
    transform: translateY(0);
}

/* Phone Input */
.phone-input-wrapper {
    display: flex;
    align-items: stretch;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--white);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.phone-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.country-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
    background: var(--bg-light);
    border-right: 1px solid var(--border-color);
    cursor: pointer;
    transition: background var(--transition-fast);
    min-width: 100px;
}

.country-selector:hover {
    background: #e5e7eb;
}

.flag-icon {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
}
#selectedCode {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.dropdown-arrow {
    transition: transform var(--transition-fast);
}

.country-selector.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Country Dropdown */
.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    margin-top: 0.5rem;
    max-height: 300px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all var(--transition-fast);
    z-index: 100;
}

.country-dropdown.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.country-search {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    outline: none;
}

.country-list {
    max-height: 250px;
    overflow-y: auto;
}

.country-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background var(--transition-fast);
    font-size: 0.9rem;
}

.country-item:hover {
    background: var(--bg-light);
}

.country-load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    margin-top: 4px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 14px;
    color: var(--text-medium);
    transition: var(--transition-fast);
    font-weight: 500;
}

.country-load-more:hover {
    background: #f3f4f6;
    color: var(--primary);
}

.load-more-arrow {
    transition: var(--transition-fast);
}

.country-load-more:hover .load-more-arrow {
    color: var(--primary);
}
.country-item img {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
}

.country-name {
    flex: 1;
    color: var(--text-dark);
}

.country-code {
    color: var(--text-medium);
    font-weight: 500;
}

.phone-input {
    border: none;
    background: transparent;
    flex: 1;
    padding: 1rem 1.25rem;
}

.phone-input:focus {
    outline: none;
}

/* Global content padding for all interactive elements */
.level-options,
.motivation-pills,
.spanish-variants-grid,
.interest-topics,
.notification-times,
.language-methods,
.age-options,
.student-options,
.experience-checkboxes,
.challenge-checkboxes,
.pricing-plans,
.form-group {
    padding-left: 10px;
    padding-right: 10px;
}

/* Buttons */
.cta-button {
    width: calc(100% - 20px); /* Account for padding */
    margin: 0 10px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.cta-button.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

.cta-button.primary:active {
    transform: translateY(0);
}

.cta-button.success {
    background: var(--accent);
}

.cta-button.success:hover {
    background: #20BD5A;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.arrow-icon {
    transition: transform var(--transition-fast);
}

.cta-button:hover .arrow-icon {
    transform: translateX(4px);
}

/* Skip to checkout button */
.skip-to-checkout:hover {
    color: #4b5563 !important;
    border-color: #9ca3af !important;
    background: #f9fafb !important;
}

.whatsapp-icon {
    width: 20px;
    height: 20px;
}

/* Success Screen */
.success-content {
    text-align: center;
    max-width: 400px;
    width: 100%;
    animation: fadeInUp 0.6s ease;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: bounce 1s ease infinite;
}

.success-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.success-message {
    background: rgba(102, 126, 234, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}
.success-message p {
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.6;
}

/* Success Bubble */
.success-bubble {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

/* TikTok button styling */
.tiktok-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
}

/* Update success content button styling */
.success-content .cta-button {
    background: #000000;
    color: var(--white);
}

.success-content .cta-button:hover {
    background: #222222;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Mobile Optimizations */
@media (max-width: 480px) {
    .gradient-text {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .luna-avatar-large {
        width: 140px;
        height: 140px;
    }
    
    .form-content h2 {
        font-size: 1.5rem;
    }
    
    .chat-bubble {
        padding: 1.25rem;
    }
    
    /* Ensure consistent spacing on mobile */
    .chat-introduction,
    .form-content {
        padding-top: 70px;
    }
    
    .welcome-content {
        padding-top: 30px;
    }
    
    .feature-item {
        font-size: 0.875rem;
    }
    
    .form-chat .luna-avatar-chat {
        width: 48px;
        height: 48px;
    }
    
    .country-selector {
        min-width: 90px;
        padding: 0 0.75rem;
    }
    
    .flag-icon {
        width: 20px;
        height: 15px;
    }
    
    #selectedCode {
        font-size: 0.85rem;
    }
    
    .country-item {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* Gradient Background Pattern */
.onboarding-container::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
    pointer-events: none;
}
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Loading state */
.cta-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.cta-button.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid var(--white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Loading spinner for checkout button */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

/* Scrollbar styling for country list */
.country-list::-webkit-scrollbar {
    width: 6px;
}

.country-list::-webkit-scrollbar-track {
    background: transparent;
}

.country-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.country-list::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Fix input group position for dropdown */
.input-group {
    position: relative;
}

/* Ensure proper error display for phone input */
.phone-input-wrapper.error {
    border-color: var(--error);
}
/* Back Button */
.back-button {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
}

@media (min-width: 768px) {
    .back-button {
        top: 2rem;
        left: 2rem;
        width: 48px;
        height: 48px;
    }
}

.back-button:hover {
    background: var(--white);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.back-button svg {
    width: 24px;
    height: 24px;
    color: var(--text-dark);
}

@media (max-width: 480px) {
    .back-button {
        top: 1rem;
        left: 1rem;
        width: 40px;
        height: 40px;
    }
    
    .back-button svg {
        width: 20px;
        height: 20px;
    }
}

/* Footer Styles */
.footer {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border-color);
    z-index: 10;
    transition: all var(--transition-medium);
    margin-top: auto;
    opacity: 1;
    width: 100%;
}

/* Footer visibility control */
.footer {
    display: none;
}

/* Only show footer on step 1 */
#step1.active ~ .footer,
.footer.show-on-first-step {
    display: block;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.footer-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #9ca3af;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    user-select: none;
    transition: color var(--transition-fast);
}

.footer-toggle:hover {
    color: var(--text-medium);
}

.footer-arrow {
    transition: transform var(--transition-fast);
}

.footer.expanded .footer-arrow {
    transform: rotate(180deg);
}

.footer-collapsed {
    text-align: center;
}

.footer-expanded {
    display: none;
    animation: fadeIn var(--transition-medium);
}

.footer.expanded .footer-expanded {
    display: block;
}

.footer.expanded .footer-collapsed {
    display: none;
}

.footer-copyright {
    color: #9ca3af;
    font-size: 0.6875rem;
    margin: 0;
}

.footer-company {
    color: #b8bdc4;
    font-size: 0.625rem;
    margin-top: 0.25rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.footer-column h4 {
    color: #374151;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.375rem;
}

.footer-column a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.6875rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    text-align: center;
}

.email-link-footer a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.6875rem;
    transition: color var(--transition-fast);
}

.email-link-footer a:hover {
    color: var(--primary);
}

/* Ensure content doesn't get cut off */
.onboarding-step {
    padding-bottom: 2rem;
}

/* Back Button Size Adjustment */
.back-button {
    width: 40px;
    height: 40px;
}

.back-button svg {
    width: 20px;
    height: 20px;
}

/* Luna Avatar Size Increase */
.luna-avatar-chat {
    width: 56px;
    height: 56px;
}

.form-chat .luna-avatar-chat {
    width: 64px;
    height: 64px;
}

/* Fix mobile phone input zoom issue */
@media (max-width: 768px) {
    input[type="tel"],
    input[type="text"],
    input[type="email"],
    select,
    textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    .form-input {
        font-size: 16px !important;
    }
    
    .phone-input {
        font-size: 16px !important;
    }
    
    /* Prevent viewport shifting */
    .phone-input-wrapper:focus-within {
        position: relative;
        z-index: 10;
    }
}

/* Make success bubble background consistent with form bubbles */
.success-bubble {
    background: var(--white);
    border: none;
}

/* Animation for footer */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mobile footer adjustments */
@media (max-width: 640px) {
    .footer-container {
        padding: 0.75rem 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-column h4 {
        font-size: 0.7rem;
    }
    
    .footer-column a {
        font-size: 0.625rem;
    }
    
    .footer-copyright {
        font-size: 0.625rem;
    }
    
    .footer-company {
        font-size: 0.5625rem;
    }
}

/* Legal pages footer grid adjustment */
footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 640px) {
    footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
}/* CSS for new onboarding steps 6-16 */

/* Spanish Variant Grid (Step 6) */
.spanish-variants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.variant-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    min-height: 80px;
}

.variant-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.variant-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.05);
}

.variant-flag {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

.variant-name {
    font-size: 14px;
    font-weight: 500;
}

/* Hidden variant cards that show with Load More */
.variant-card.variant-hidden {
    display: none;
}

/* Show More Button Styling */
.show-more-button {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #4b5563;
    transition: all 0.3s ease;
}

.show-more-button:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    color: #374151;
}

/* Time Commitment Options (Step 7) */
.time-commitment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.time-card {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.time-card:hover {
    border-color: #667eea;
    background: #f9fafb;
}

.time-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.time-card.recommended {
    border-color: #10b981;
}

.time-icon {
    font-size: 32px;
    margin-right: 16px;
}

.time-value {
    font-size: 18px;
    font-weight: 600;
    margin-right: 12px;
}

.time-desc {
    font-size: 14px;
    color: #6b7280;
}

.recommended-badge {
    position: absolute;
    top: -10px;
    right: 12px;
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Level Options (Step 8) */
.level-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    padding: 0 10px; /* Add horizontal padding */
}

.level-card {
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.level-card:hover {
    border-color: #667eea;
    background: #f9fafb;
}

.level-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.level-icon {
    font-size: 32px;
    margin-right: 16px;
}

.level-name {
    font-size: 18px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.level-desc {
    font-size: 14px;
    color: #6b7280;
}

/* Motivation Pills (Step 9) */
.motivation-pills, .challenge-pills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .motivation-pills, .challenge-pills {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pill-option {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.pill-option:hover {
    border-color: #667eea;
    background: #f9fafb;
}

.pill-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.05);
}

.pill-icon {
    font-size: 20px;
    margin-right: 8px;
}

.pill-text {
    font-size: 14px;
    font-weight: 500;
}

/* Topic Cards (Step 10) */
.interest-topics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 640px) {
    .interest-topics {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .interest-topics {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.topic-card {
    padding: 16px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    height: 100%;
    box-sizing: border-box;
}

.topic-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.topic-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

/* Ensure topic icons and text are properly styled */
.topic-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
    line-height: 1;
}

.topic-text {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    word-wrap: break-word;
    text-align: center;
}

/* Notification Times (Step 11) */
.notification-times {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 480px) {
    .notification-times {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.time-slot {
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-slot:hover {
    border-color: #667eea;
    background: #f9fafb;
}

.time-slot.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.slot-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

.slot-text {
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.slot-time {
    font-size: 12px;
    color: #6b7280;
}

.notification-extras {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.timezone-section {
    margin-bottom: 16px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.timezone-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 14px;
}

.timezone-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--white);
    font-size: 16px;
    color: var(--text-dark);
    transition: var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.timezone-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
}

.checkbox-input {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-text {
    font-weight: 500;
}

/* Previous Experience and Challenge Options Layout */
.previous-experience, .challenge-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.experience-checkbox, .challenge-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: white;
}

.experience-checkbox:hover, .challenge-checkbox:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

/* Communication Preferences (Step 12) */
.communication-preferences {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.comm-card {
    padding: 16px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 80px;
}

.comm-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.comm-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.comm-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 6px;
}

.comm-title {
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.comm-desc {
    font-size: 14px;
    color: #6b7280;
}

/* Previous Experience (Step 13) */
.previous-experience {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.experience-checkbox {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.experience-checkbox:hover {
    border-color: #667eea;
    background: #f9fafb;
}

.experience-checkbox:has(.checkbox-input:checked) {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.checkbox-custom {
    display: none;
}

/* Age Brackets (Step 15) */
.age-brackets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.age-option {
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    background: white;
    transition: all 0.3s ease;
}

.age-option:hover {
    border-color: #667eea;
    background: #f9fafb;
}

.age-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.age-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

.age-text {
    font-size: 14px;
    font-weight: 600;
}

.student-status {
    margin-top: 24px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
}

.student-question {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.student-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.student-option {
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.student-option:hover {
    border-color: #667eea;
    background: #f9fafb;
}

.student-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.student-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}

.student-text {
    font-size: 14px;
    font-weight: 500;
}
/* Pricing Step (Step 16) */
.pricing-content {
    max-width: 900px;
    margin: 0 auto;
}

.recommendation-banner {
    display: none !important; /* Hide the recommendation banner */
}

.rec-icon {
    font-size: 24px;
    margin-right: 12px;
}

.rec-text {
    font-size: 14px;
    font-weight: 500;
    color: #4c51bf;
}

/* Account Creation Loader */
.account-creation-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 40px 20px;
}

.loader-content {
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.loader-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    position: relative;
}

.circular-loader {
    animation: rotate 2s linear infinite;
    height: 80px;
    width: 80px;
}

.loader-path {
    stroke: #667eea;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.loader-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.loader-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.loader-steps {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.loader-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.loader-step.completed {
    opacity: 1;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.loader-step .step-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.loader-step.completed .step-icon {
    background: #667eea;
    color: white;
}

.loader-step .step-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-dark);
}

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

/* Tighter Pricing Plans Layout */
.pricing-content {
    padding: 16px !important;
}

.pricing-plans {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .pricing-plans {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        max-width: 680px;
        margin: 0 auto 16px auto;
    }
    
    /* Better desktop plan comparison */
    .plan-card {
        padding: 20px 16px;
    }
    
    .plan-header {
        margin-bottom: 16px;
    }
    
    .feature-list {
        min-height: 120px; /* Ensures alignment between cards */
        margin-bottom: 16px;
    }
    
    .feature-item {
        font-size: 14px;
        padding: 4px 0;
    }
}

.plan-card {
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px 14px;
    background: white;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}


.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.plan-card.recommended {
    border-color: #667eea;
    box-shadow: 0 0 0 1px #667eea;
}

.plan-card.selected {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.25);
}

.plan-card.highlighted-recommendation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.launch-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-header {
    text-align: center;
    margin-bottom: 24px;
}

.plan-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.plan-tagline {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 8px;
}

.price-currency {
    font-size: 24px;
    font-weight: 600;
    color: #667eea;
}

.price-value {
    font-size: 48px;
    font-weight: 700;
    color: #667eea;
    margin: 0 4px;
}

.price-period {
    font-size: 18px;
    color: #6b7280;
}

.price-after {
    font-size: 16px;
    color: #4b5563;
    text-align: center;
}

.student-discount {
    margin-top: 12px;
}

.discount-badge {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.plan-features {
    margin-bottom: 24px;
    text-align: left;
    padding: 0 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding-left: 0;
}

.feature-check {
    color: #10b981;
    font-size: 18px;
    font-weight: 700;
    padding-right: 8px;
    flex-shrink: 0;
}

.feature-text {
    font-size: 15px;
    color: #374151;
}

.plan-select-btn {
    width: 100%;
    padding: 16px;
    border: 2px solid #667eea;
    border-radius: 12px;
    background: transparent;
    color: #667eea;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-select-btn:hover {
    background: rgba(102, 126, 234, 0.05);
    border-color: #5a67d8;
    color: #5a67d8;
}

/* Pro plan button - filled style */
.plan-card.recommended .plan-select-btn,
.plan-select-btn.highlighted {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: 2px solid transparent !important;
}

.plan-card.recommended .plan-select-btn:hover,
.plan-select-btn.highlighted:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

.plan-select-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.pricing-footer {
    text-align: center;
}

.security-text, .trial-text {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 4px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .spanish-variants-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .time-commitment-options {
        gap: 10px;
    }
    
    .time-card {
        padding: 16px;
    }
    
    .time-icon {
        font-size: 24px;
    }
    
    .interest-topics {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .communication-preferences {
        grid-template-columns: 1fr;
    }
    
    .age-brackets {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .student-options {
        grid-template-columns: 1fr;
    }
    
    .pricing-plans {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 340px; /* Make narrower on mobile */
        margin: 0 auto 16px auto; /* Center the plans */
        padding: 0 10px; /* Add some padding */
    }
    
    /* For very small screens, allow full width */
    @media (max-width: 380px) {
        .pricing-plans {
            max-width: 100%;
            padding: 0;
        }
    }
    
    .plan-card {
        padding: 18px 16px;
        margin-bottom: 12px;
    }
    
    /* Compress mobile section heights */
    .onboarding-step {
        padding: 1.5rem 1rem;
        min-height: auto;
    }
    
    .form-content {
        padding: 20px 0;
    }
    
    .chat-bubble {
        padding: 14px 16px;
        margin-bottom: 20px;
        font-size: 15px;
        line-height: 1.4;
    }
    
    .plan-header {
        margin-bottom: 16px;
    }
    
    .plan-name {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .plan-tagline {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .price-value {
        font-size: 36px;
    }
    
    .price-currency {
        font-size: 20px;
    }
    
    .price-period {
        font-size: 16px;
    }
    
    .feature-list {
        padding: 16px 0;
        margin-bottom: 16px;
    }
    
    .feature-item {
        padding: 6px 0;
        font-size: 13px;
    }
    
    .plan-select-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .pricing-footer {
        margin-top: 16px;
        padding: 12px 16px;
    }
    
    .security-text, .trial-text {
        font-size: 11px;
        margin: 4px 0;
    }
}

/* Enhanced Mobile Plan Layout - Optimized for Quick Comparison */
@media (max-width: 640px) {
    /* Ultra-compact pricing container */
    .pricing-content {
        padding: 8px !important;
    }
    
    .pricing-plans {
        gap: 8px;
        margin-bottom: 12px;
    }
    
    /* Highly compressed plan cards for at-a-glance comparison */
    .plan-card {
        padding: 12px 10px !important;
        margin-bottom: 8px !important;
        border-radius: 12px;
    }
    
    /* Optimized launch badge positioning */
    .launch-badge {
        top: -8px;
        right: 12px;
        padding: 4px 12px;
        font-size: 8px;
        border-radius: 16px;
    }
    
    /* Compressed header section */
    .plan-header {
        margin-bottom: 12px !important;
    }
    
    .plan-name {
        font-size: 18px !important;
        margin-bottom: 4px !important;
        line-height: 1.2;
    }
    
    .plan-tagline {
        font-size: 11px !important;
        margin-bottom: 10px !important;
        line-height: 1.3;
    }
    
    /* Optimized pricing display */
    .plan-price {
        margin-bottom: 6px !important;
    }
    
    .price-value {
        font-size: 32px !important;
        line-height: 1;
    }
    
    .price-currency {
        font-size: 18px !important;
    }
    
    .price-period {
        font-size: 14px !important;
    }
    
    .price-after {
        font-size: 14px !important;
        margin-bottom: 8px;
    }
    
    /* Highly compressed features for quick scanning */
    .plan-features {
        margin-bottom: 12px !important;
    }
    
    .feature-item {
        padding: 2px 0 !important;
        font-size: 12px !important;
        line-height: 1.3;
        margin-bottom: 6px !important;
    }
    
    .feature-check {
        font-size: 14px !important;
        padding-right: 6px !important;
        margin-right: 0 !important;
    }
    
    /* Touch-optimized button sizing */
    .plan-select-btn {
        padding: 12px 16px !important;
        font-size: 14px !important;
        border-radius: 10px;
        min-height: 44px; /* Ensure touch-friendly size */
        font-weight: 600;
    }
    
    /* Compressed recommendation banner */
    .recommendation-banner {
        margin: 8px 0 12px 0;
        padding: 8px 12px;
        font-size: 11px;
        border-radius: 8px;
    }
    
    /* Student discount optimization */
    .student-discount {
        margin-top: 6px;
    }
    
    .discount-badge {
        padding: 3px 8px;
        font-size: 10px;
        border-radius: 16px;
    }
    
    /* Compressed footer */
    .pricing-footer {
        margin-top: 12px !important;
        padding: 8px 12px !important;
    }
    
    .security-text, .trial-text {
        font-size: 11px !important;
        margin: 2px 0 !important;
        line-height: 1.3;
    }
    
    /* Chat bubble optimization for pricing step */
    .pricing-content .chat-bubble {
        padding: 12px 14px !important;
        margin-bottom: 12px !important;
        font-size: 14px !important;
        line-height: 1.3;
    }
    
    /* Form content spacing for pricing */
    .pricing-content .form-content {
        padding: 12px 0 !important;
    }
}

/* Success Screen Updates */
.success-icons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
}

.success-icon {
    font-size: 48px;
    animation: bounce 2s infinite;
}

.success-icon:nth-child(1) { animation-delay: 0s; }
.success-icon:nth-child(2) { animation-delay: 0.2s; }
.success-icon:nth-child(3) { animation-delay: 0.4s; }

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

/* Footer grid adjustment for 3 columns */
.footer-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    max-width: 600px !important;
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Ensure ALL selectable elements ALWAYS have solid white backgrounds */
.variant-card,
.time-card,
.level-card,
.pill-option,
.topic-card,
.time-slot,
.comm-card,
.age-option,
.student-option,
.plan-card,
.plan-select-btn,
.experience-checkbox,
.challenge-checkbox {
    background: var(--white) !important;
    background-color: var(--white) !important;
    background-image: none !important;
    color: var(--text-dark) !important;
}

/* Keep selected state styling but ensure white backgrounds */
.variant-card.selected,
.time-card.selected,
.level-card.selected,
.pill-option.selected,
.topic-card.selected,
.time-slot.selected,
.comm-card.selected,
.age-option.selected,
.student-option.selected,
.plan-card.selected,
.experience-checkbox:has(.checkbox-input:checked),
.challenge-checkbox:has(.checkbox-input:checked) {
    background: var(--white) !important;
    background-color: var(--white) !important;
    background-image: none !important;
    color: var(--text-dark) !important;
    border-color: var(--primary) !important;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Currency Selector Styles */
.currency-selector-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
    padding: 12px 20px;
    /* Removed white background for cleaner look */
    border-radius: 12px;
    /* Removed border */
}

.currency-selector-label {
    font-size: 14px;
    color: var(--text-medium);
    font-weight: 500;
}

.currency-selector {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition-fast);
    min-width: 90px;
}

.currency-selector:hover {
    border-color: var(--primary);
}

.currency-selector:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

@media (max-width: 640px) {
    .currency-selector-container {
        margin: 16px 0;
        padding: 10px 16px;
    }
}

/* Footer Currency Selector */
.footer-currency-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-currency-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.footer-currency-select {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
    min-width: 70px;
}

.footer-currency-select:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.footer-currency-select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.footer-currency-select option {
    background: var(--text-dark);
    color: var(--white);
}

/* Currency Selector in Pricing Footer */
.currency-selector-container {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.currency-selector {
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    color: #6b7280;
    cursor: pointer;
    transition: var(--transition-fast);
    min-width: 60px;
    text-align: center;
}

.currency-selector:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: #9ca3af;
}

.currency-selector:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.05);
    border-color: #667eea;
}

.currency-selector option {
    background: var(--white);
    color: var(--text-dark);
}

/* Mobile Footer Fixes */
@media (max-width: 768px) {
    /* Ensure footer doesn't interfere with content */
    .footer {
        position: fixed !important;
        transform: translateY(100%) !important;
        pointer-events: none !important;
        z-index: 5 !important; /* Lower than content */
    }
    
    /* Only visible on first step */
    .footer.show-footer {
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
    
    /* Ensure avatars and content are above footer */
    .luna-avatar-chat,
    .chat-bubble-container {
        position: relative;
        z-index: 20 !important;
    }
    
    /* Add padding to prevent content being cut off */
    .form-content {
        padding-bottom: 3rem !important;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    /* Ensure onboarding steps fill screen properly */
    .onboarding-step {
        padding: 1rem;
        padding-bottom: 2rem;
        min-height: 100vh;
    }
    
    /* Fix pricing content specifically */
    .pricing-content {
        padding-bottom: 3rem !important;
    }
}

/* Audio-synchronized text styles */
.maya-intro-text {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    color: #9ca3af; /* All text starts gray */
}

.maya-intro-text span {
    color: #9ca3af; /* Gray by default */
    transition: color 0.1s ease;
    display: inline;
}

/* Speaking words turn black */
.maya-intro-text span.speaking {
    color: var(--text-dark) !important;
}

/* Completed words stay black */
.maya-intro-text span.completed {
    color: var(--text-dark) !important;
}

/* Name question text styles (same as intro text) */
.maya-question-text {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    color: #9ca3af; /* All text starts gray */
}

.maya-question-text span {
    color: #9ca3af; /* Gray by default */
    transition: color 0.1s ease;
    display: inline;
}

/* Speaking words turn black */
.maya-question-text span.speaking {
    color: var(--text-dark) !important;
}

/* Completed words stay black */
.maya-question-text span.completed {
    color: var(--text-dark) !important;
}

.audio-controls {
    margin-top: 20px;
    text-align: center;
}

.audio-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.audio-play-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.35);
}

.audio-play-btn:active {
    transform: translateY(0);
}

.audio-play-btn svg {
    flex-shrink: 0;
}

.audio-play-btn.playing {
    background: var(--accent);
}

.audio-play-btn.playing:hover {
    background: #22c55e;
}

#step2-continue-btn.audio-ready {
    opacity: 1 !important;
    transition: opacity 0.3s ease;
}

/* Step 1 Luna Introduction Styles */
.maya-intro-container {
    margin: 2rem 0;
    max-width: 100%;
}

.maya-intro-bubble {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    margin-bottom: 1.5rem;
}

/* Step 1 specific button styling */
#step1-continue-btn {
    margin-top: 1rem;
}

#step1-continue-btn .btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile adjustments for Step 1 */
@media (max-width: 768px) {
    .maya-intro-container {
        margin: 1rem 0;
    }
    
    .maya-intro-bubble {
        padding: 1rem;
    }
    
    .maya-intro-text {
        font-size: 16px;
        line-height: 1.5;
    }
}

/* Audio button states */
.cta-button.audio-playing {
    position: relative;
    opacity: 0.9;
}

.cta-button.audio-playing::after {
    content: '🔊';
    position: absolute;
    right: 1rem;
    animation: pulse 1.5s infinite;
}

.cta-button.audio-complete {
    background: linear-gradient(135deg, #20BD5A 0%, #25D366 100%);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

.cta-button.audio-error {
    opacity: 1;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Button transition for skip state */
#step2-continue-btn {
    transition: all 0.3s ease;
}

#step2-continue-btn:not(.audio-complete) {
    position: relative;
}

/* Fix missing dots and center text in pricing cards */
.plan-header {
    text-align: center;
    margin-bottom: 16px;
}

.plan-card {
    text-align: center;
}

.plan-name {
    text-align: center;
}

.plan-tagline {
    text-align: center;
}

.plan-price {
    text-align: center;
    justify-content: center;
}

.feature-list {
    text-align: left; /* Keep feature list left-aligned for readability */
}

.plan-select-btn {
    text-align: center;
}

/* Fix other missing dots */
.plan-header {
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .plan-header {
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .plan-header {
        margin-bottom: 12px !important;
    }
}

/* Ensure consistent topic card layout */
.topic-card {
    position: relative;
    box-sizing: border-box;
}

/* Ensure topic icons and text are properly centered */
.topic-icon {
    line-height: 1;
    margin: 0 auto 8px auto;
}

.topic-text {
    line-height: 1.3;
    word-wrap: break-word;
    text-align: center;
}

/* Ensure uniform grid layout for all topic cards */
.interest-topics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 480px) {
    .interest-topics {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Make sure all cards are same height */
.topic-card {
    min-height: 110px;
    height: 100%;
}

/* Ensure hidden topics display correctly when shown */
.topic-card.topic-hidden {
    display: none;
}

.topic-card.topic-hidden.show {
    display: flex !important;
}
