/* Reset and Base Styles */
/* Add this to your existing CSS file */

/* Full screen quiz mode */
.quiz-fullscreen {
    overflow-x: hidden;
}

.quiz-fullscreen .main-content {
    padding-top: 0 !important;
}

/* Enhanced quiz container styling */
#quiz-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

#quiz-container .bg-white {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Progress bar enhancement */
.quiz-fullscreen .bg-blue-600 {
    background: linear-gradient(90deg, #3B82F6, #8B5CF6);
}

/* Option buttons enhancement */
.quiz-fullscreen .option-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Mobile responsive for full screen */
@media (max-width: 768px) {
    .quiz-fullscreen #quiz-container .max-w-4xl {
        padding: 1rem;
    }
    
    .quiz-fullscreen #quiz-container .p-8 {
        padding: 1.5rem;
    }
}


* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Inter', system-ui, sans-serif;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    letter-spacing: -0.01em;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-display {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: -0.025em;
}

/* App Layout */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header-nav {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 50;
    flex-shrink: 0;
}

.main-content {
    flex: 1;
    position: relative;
}

.content-section {
    min-height: calc(100vh - 80px);
    width: 100%;
}

.section-bg {
    min-height: inherit;
    background: linear-gradient(135deg, #f9fafb 0%, #dbeafe 50%, #e0e7ff 100%);
    position: relative;
}

.content-wrapper {
    position: relative;
    z-index: 10;
    min-height: inherit;
    display: flex;
    align-items: center;
}

/* Section Management */
.section-hidden {
    display: none !important;
}

/* Navigation */
.nav-tab {
    color: #6b7280;
    transition: all 0.2s ease;
}

.nav-tab:hover {
    color: #374151;
}

.nav-tab.active {
    background: white;
    color: #2563eb;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Mobile Navigation */
.mobile-nav-hidden {
    display: none;
}

.mobile-nav-item {
    color: #6b7280;
    transition: all 0.2s ease;
}

.mobile-nav-item:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    transition: all 0.2s ease;
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* Quiz Styles */
.quiz-option {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e5e7eb;
    background: white;
    cursor: pointer;
}

.quiz-option:hover { 
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #93c5fd;
}

.quiz-option.selected { 
    background: linear-gradient(135deg, #4361ee 0%, #4361ee 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25);
    border-color: rgb(16, 219, 16);
}

.quiz-option.selected span {
    color: white !important;
}


/* Progress Bar */
.progress-fill {
    background: linear-gradient(90deg, #3B82F6 0%, #1D4ED8 100%);
}

/* Glass Card Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* How it works styling */
.how-it-works {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

/* Fade transition */
.fade-transition {
    transition: opacity 0.3s ease-in-out;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .content-section {
        min-height: calc(100vh - 70px);
    }
    
    .content-wrapper {
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .glass-card {
        padding: 1rem;
    }
    
    .text-display {
        line-height: 1.1;
    }
    
    /* Ensure mobile forms are accessible */
    #lead-capture-form,
    #quiz-container,
    #loading-container {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
    
    /* Mobile button adjustments */
    .btn-primary {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
    
    /* Mobile grid adjustments */
    .grid.grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    /* Mobile spacing */
    .space-y-6 > * + * {
        margin-top: 1.5rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Ensure content doesn't get cut off */
    .content-wrapper {
        min-height: auto;
        padding: 1rem 0 2rem;
    }
    
    /* Mobile typography */
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    /* Mobile navigation improvements */
    .header-nav {
        padding: 0.5rem 0;
    }
    
    #header-progress {
        padding: 0 1rem;
    }
    
    #header-progress .w-24 {
        width: 4rem;
    }
}

/* Landscape mobile fixes */
@media (max-height: 600px) and (orientation: landscape) {
    .content-wrapper {
        align-items: flex-start;
        padding: 1rem 0;
    }
    
    .content-section {
        min-height: auto;
    }
}

/* Large screen optimizations */
@media (min-width: 1024px) {
    .content-wrapper {
        padding: 2rem 0;
    }
    
    body.landing-no-scroll {
    overflow: hidden !important;
  }
}

@media (max-width: 639px) {
  #ai-recommendations {
    padding: 0.75rem 0.5rem !important;      /* Slim, but with breathing room */
    border-radius: 1rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    width: auto;
    max-width: 100vw;
    box-sizing: border-box;
  }
  #recommendations-content {
    font-size: 13.5px !important;           /* Slightly larger for comfort */
    padding: 0.25rem 0 !important;          /* Minimal vertical padding */
    margin: 0 !important;
    line-height: 1.7;
    word-break: break-word;
  }
  #ai-recommendations h3 {
    font-size: 1.1em !important;
    margin-bottom: 0.5em;
  }
}

/* Focus states for accessibility */
button:focus,
input:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* Smooth animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideLeft {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

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

.animate-fade-in { animation: fadeIn 0.6s ease-out; }
.animate-slide-up { animation: slideUp 0.8s ease-out; }
.animate-scale-in { animation: scaleIn 0.5s ease-out; }
.animate-slide-left { animation: slideLeft 0.5s ease-out; }
.animate-slide-right { animation: slideRight 0.5s ease-out; }
.animate-float { animation: float 6s ease-in-out infinite; }