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

body {
    font-family: 'Crimson Text', 'Georgia', 'Times New Roman', serif;
    line-height: 1.7;
    color: #2d3748;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    min-height: 100vh;
    font-size: 16px;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: 0.02em;
}

.container {
    max-width: 1100px; /* widen content slightly for a modern feel */
    margin: 0 auto;
    padding: 24px;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    background: #ffffff;
    border-radius: 16px;
    padding: 48px 40px;
    margin-bottom: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    text-align: center;
    border: 1px solid #e2e8f0;
}

/* Home page: use clean, sectioned layout without card look */
body.home .header,
body.home .progress-container,
body.home .survey-form {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: 0;
    padding-left: 0;
    padding-right: 0;
}

body.home .header::before,
body.home .progress-container::before {
    display: none; /* disable full-bleed bands on home */
}

/* Remove all padding from header on home page to eliminate gap */
body.home .header { padding: 0; margin: 0; }
body.home .survey-form { padding-top: 12px; padding-bottom: 12px; }
body.home .survey-form .section-header { margin-bottom: 12px; }

/* Removed old home-hero styles - using questions-hero instead */

/* Reset any default margins that might cause gaps */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Home hero section */
.home .questions-hero {
    width: 100vw;
    height: 85vh;                   /* Increased height for better visual impact */
    background-image: url('/hero-image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    margin: 0;
    position: relative;
    top: 0;
}

/* Questions Container */
.questions-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 60px 24px; /* Increased bottom padding from 40px to 60px to keep button inside */
    text-align: center;
}

.questions-intro {
    margin-bottom: 48px;
}

.questions-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px; /* Reduced from 16px to move title up */
    text-shadow: 0 2px 4px rgba(255,255,255,0.5);
    line-height: 1.2;
}

.questions-subtitle {
    font-size: 1.25rem;
    color: #334155;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
    font-weight: 400;
    margin-bottom: 20px; /* Further reduced from 12px to move cards up */
}

/* Questions Grid */
.questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    margin-top: -20px; /* Move cards up without affecting CTA text position */
}

/* Question Cards */
.question-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: left;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease forwards;
}

.question-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.question-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.question-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

.question-content p {
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

/* CTA Section */
.questions-cta {
    text-align: center;
}

.cta-text {
    font-size: 1.125rem;
    color: #334155;
    margin-bottom: 24px;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

.cta-text-highlight {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.08));
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 12px;
    color: #1e40af;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
    transition: all 0.3s ease;
    margin-bottom: 16px; /* Reduced from inherited 24px */
}

.cta-text-spaced {
    margin-top: -20px; /* Increased from -64px to move text lower */
}

/* Hero CTA Container - just for spacing */
.hero-cta-container {
    margin-top: 16px; /* Reduced from 32px to bring button closer */
    text-align: center;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

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

.question-card[data-delay="0"] { animation-delay: 0.5s; }
.question-card[data-delay="200"] { animation-delay: 0.8s; }
.question-card[data-delay="400"] { animation-delay: 1.1s; }

/* Responsive Design */
@media (max-width: 768px) {
    .questions-title {
        font-size: 2.25rem;
    }
    
    .questions-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .question-card {
        padding: 24px 20px;
    }
}

/* Home sections */
.home-section { 
    margin: 0;
    padding: 60px 0; /* Consistent vertical padding for visual rhythm */
}
.home-section.centered { text-align: center; }

/* How It Works Section */
.home-how-it-works {
    padding: 60px 20px; /* Consistent with other sections */
    margin-top: 0;
    margin-bottom: 0;
    background: #eff6ff; /* Light blue tint matching hero's blue (#60a5fa) - creates visual consistency */
}

.how-it-works-container {
    max-width: 1000px;
    margin: 0 auto;
}

.how-it-works-intro {
    text-align: center;
    margin-bottom: 40px;
}

.how-it-works-intro h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 15px;
}

.how-it-works-subtitle {
    font-family: 'Crimson Text', serif;
    font-size: 1.2rem;
    color: #64748b;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.how-it-works-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.how-it-works-detail-item {
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    color: #475569;
    line-height: 1.7;
    padding: 20px;
    background: white;
    border-radius: 8px;
    text-align: center;
}

.how-it-works-detail-item strong {
    color: #1e293b;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.how-it-works-intro .process-highlight {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2563eb !important;
    margin-top: 15px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .home-how-it-works {
        padding: 40px 15px;
    }
    
    .how-it-works-intro h2 {
        font-size: 2rem;
    }
    
    .how-it-works-subtitle {
        font-size: 1.1rem;
    }
    
    .how-it-works-details {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .how-it-works-detail-item {
        padding: 18px;
    }
}
.columns-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }

/* About Section */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.about-intro {
    text-align: center;
    margin-bottom: 60px;
}

.about-intro h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    text-align: center;
}

.about-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.about-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.about-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.about-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.about-card p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
}

.about-disclaimer {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-disclaimer p {
    margin: 0;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
}

.about-disclaimer i {
    color: #2563eb;
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-intro h2 {
        font-size: 2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .about-card {
        padding: 24px 20px;
    }
    
    .about-card h3 {
        font-size: 1.1rem;
        gap: 10px;
    }
    
    .about-icon {
        width: 28px;
        height: 28px;
    }
}
@media (max-width: 800px) { .columns-2 { grid-template-columns: 1fr; } }

/* Center text specifically in Who We Are section */
body.home .home-about.centered .columns-2 { justify-items: center; }
body.home .home-about.centered .columns-2 > div { text-align: center; max-width: 720px; }

/* Center section titles on home for centered sections */
body.home .home-section.centered .section-header { text-align: center; }
body.home .home-section.centered .section-header::after { left: 50%; transform: translateX(-50%); }
body.home .home-section.centered .section-header h2 { justify-content: center; }
body.home .home-section.centered .section-header p { margin: 0 auto; }

/* Process Subsection (within Services) */
.process-subsection {
    text-align: center;
    margin: 32px 0 48px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.process-highlight {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2563eb;
    margin: 0 0 24px 0;
    line-height: 1.4;
}

.process-steps-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.process-step-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.process-step-number-inline {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    flex-shrink: 0;
}

.process-step-text {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1e293b;
    white-space: nowrap;
}

.process-arrow {
    font-size: 1.5rem;
    color: #64748b;
    font-weight: 300;
}

/* Process Subsection Responsive */
@media (max-width: 768px) {
    .process-subsection {
        margin: 24px 0 40px;
        padding: 20px 16px;
    }
    
    .process-highlight {
        font-size: 1.125rem;
        margin-bottom: 20px;
    }
    
    .process-steps-inline {
        flex-direction: column;
        gap: 12px;
    }
    
    .process-arrow {
        transform: rotate(90deg);
        font-size: 1.25rem;
    }
    
    .process-step-inline {
        width: 100%;
        justify-content: center;
    }
    
    .process-step-text {
        white-space: normal;
    }
}

/* Services Section */
.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.services-intro {
    text-align: center;
    margin-bottom: 60px;
}

.services-intro h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    text-align: center;
}

.services-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 32px; 
    margin-bottom: 48px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    width: 100%;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.service-card.featured { 
    border-color: #2563eb; 
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.service-card.featured:hover {
    box-shadow: 0 24px 48px rgba(37, 99, 235, 0.2);
}

.service-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #64748b;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-badge.featured {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 16px 0 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.limited-offer-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #dc2626;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding: 4px 8px;
    background-color: #fef2f2;
    border-radius: 4px;
}

.service-price {
    margin-bottom: 32px;
}

.price-original {
    font-size: 1.5rem;
    font-weight: 400;
    color: #94a3b8;
    text-decoration: line-through;
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    display: block;
    line-height: 1;
}

.price-period {
    font-size: 0.875rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-features {
    text-align: left;
    margin-bottom: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    width: 20px;
    height: 20px;
    background: #10b981;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.feature-item span:last-child {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.4;
}

.btn-outline {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    width: 100%;
}

.btn-outline:hover {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Removed duplicate .btn-primary definition - using consolidated version below */

.services-guarantee {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.services-guarantee p {
    margin: 0;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
}

.services-guarantee i {
    color: #10b981;
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-intro h2 {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 24px 20px;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
}

/* Evaluation Page Styles */
.evaluation .form-section {
    display: block !important;
}

.evaluation .form-group label {
    font-size: 1.1rem !important;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.evaluation-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    padding: 48px 32px;
    text-align: center;
    margin-bottom: 40px;
}

.evaluation-intro h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.evaluation-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.evaluation-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.form-section {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid #f1f5f9;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 32px;
}

.form-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.section-description {
    color: #64748b;
    margin-bottom: 24px;
    font-size: 1rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.field-explanation {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 6px;
    line-height: 1.4;
}

.form-actions {
    text-align: center;
    margin-top: 40px;
}

.form-disclaimer {
    margin-top: 24px;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

.form-disclaimer i {
    color: #10b981;
    margin-right: 6px;
}

/* Navigation button styling */
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-self: end;
}

.nav-right .btn {
    font-size: 0.875rem;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.nav-right .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* Responsive Design for Evaluation */
@media (max-width: 768px) {
    .evaluation-hero {
        padding: 32px 20px;
    }
    
    .evaluation-intro h1 {
        font-size: 2rem;
    }
    
    .evaluation-form {
        padding: 24px 20px;
    }
    
    .form-section {
        margin-bottom: 32px;
        padding-bottom: 24px;
    }
}
.btn.full { display: inline-flex; width: 100%; justify-content: center; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
@media (max-width: 1000px) { .steps-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .steps-grid { grid-template-columns: 1fr; } }
.step-num { display:inline-flex; width:28px; height:28px; border-radius:50%; align-items:center; justify-content:center; background:#2563eb; color:#fff; font-weight:700; margin-right:8px; }
.home-footer { text-align:center; color:#64748b; padding: 24px; }

/* Full-bleed band effect for a professional, full-width look */
.header,
.progress-container {
    position: relative;
}

.header::before,
.progress-container::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 100vw; /* span full viewport width */
    z-index: -1; /* place behind the card */
}

/* Use subtle bands to span edge-to-edge while keeping content centered */
.header::before {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.progress-container::before {
    background: #ffffff;
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.logo i {
    font-size: 2.25rem;
    color: #2563eb;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo h1 {
    font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    font-size: 2.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    letter-spacing: 0.02em;
}

.subtitle {
    font-size: 1.125rem;
    color: #64748b;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Progress Bar */
.progress-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    border-radius: 3px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 12.5%;
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: #475569;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

/* Form Styles */
.survey-form {
    background: #ffffff;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 32px;
    border: 1px solid #e2e8f0;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    width: 100%;
}

/* Question notes styling */
.question-notes {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 12px 16px;
    margin: 8px 0 16px 0;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
}

.question-notes strong {
    color: #007bff;
    font-weight: 600;
}

.question-notes a {
    color: #007bff;
    text-decoration: none;
}

.question-notes a:hover {
    text-decoration: underline;
}

/* Validation error styling */
.validation-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    color: #721c24;
    animation: slideIn 0.3s ease-out;
}

.validation-error .error-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.validation-error .error-content i {
    font-size: 24px;
    color: #dc3545;
    margin-bottom: 8px;
}

.validation-error .error-content h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #721c24;
}

.validation-error .error-content p {
    margin: 0;
    font-size: 14px;
    color: #721c24;
}

.validation-error .error-content ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
    list-style-type: disc;
}

.validation-error .error-content li {
    margin: 4px 0;
    font-size: 14px;
    color: #721c24;
}

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

/* Form field error styling */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-group input.error:focus,
.form-group select.error:focus,
.form-group textarea.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Payment method selection styling */
.payment-method-selection {
    margin-bottom: 20px;
}

.payment-method-selection h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.payment-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-option-btn {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.payment-option-btn:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.payment-option-btn.selected {
    border-color: #007bff;
    background: #f8f9ff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.payment-option-btn i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #007bff;
}

.payment-option-btn.btn-primary i {
    color: #1976d2;
}

.payment-option-btn.btn-secondary i {
    color: #6c757d;
}

.payment-option-btn.btn-primary:hover i {
    color: #1976d2;
}

.payment-option-btn.btn-secondary:hover i {
    color: #495057;
}

.payment-option-btn.btn-primary.selected i {
    color: #1976d2;
}

.payment-option-btn.btn-secondary.selected i {
    color: #495057;
}

.payment-option-btn small {
    color: #6c757d;
    font-size: 12px;
    margin-top: 4px;
}

.payment-option-btn.btn-primary {
    border-color: #007bff;
    color: #007bff;
    background: #f8f9ff;
}

.payment-option-btn.btn-secondary {
    border-color: #6c757d;
    color: #6c757d;
    background: #f8f9fa;
}

.payment-option-btn.btn-primary:hover {
    background: #e3f2fd;
    border-color: #1976d2;
    color: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.15);
}

.payment-option-btn.btn-secondary:hover {
    background: #e9ecef;
    border-color: #495057;
    color: #495057;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(73, 80, 87, 0.15);
}

.payment-option-btn.btn-primary.selected {
    background: #e3f2fd;
    border-color: #1976d2;
    color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.payment-option-btn.btn-secondary.selected {
    background: #e9ecef;
    border-color: #495057;
    color: #495057;
    box-shadow: 0 0 0 3px rgba(73, 80, 87, 0.1);
}

/* Fee display styling */
.fee-display {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 10px 0;
    font-size: 14px;
}

.fee-display .fee-item {
    display: flex;
    justify-content: space-between;
    margin: 4px 0;
}

.fee-display .fee-total {
    border-top: 1px solid #dee2e6;
    padding-top: 8px;
    margin-top: 8px;
    font-weight: 600;
    color: #333;
}

.fee-display .fee-savings {
    color: #28a745;
    font-size: 12px;
    margin-top: 4px;
}

.form-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.form-section.active {
    display: block;
}

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

/* Standardized Page Header - Use for all page titles */
.page-header {
    text-align: center;
    margin-bottom: 48px;
    padding-top: 60px; /* Consistent spacing from navigation bar */
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem; /* Standardized size - consistent across all pages */
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.page-header p,
.page-header .page-subtitle {
    font-family: 'Crimson Text', serif;
    font-size: 1.125rem; /* Standardized subtitle size */
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-header {
    margin-bottom: 48px;
    text-align: left;
    padding-bottom: 24px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    border-radius: 1px;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.025em;
}

.section-header h2 i {
    color: #2563eb;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1rem;
    color: #64748b;
    max-width: 700px;
    line-height: 1.6;
    font-weight: 500;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
    max-width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
}

/* Password visibility toggle icon */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 42px;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
}
.password-toggle:hover {
    color: #374151;
}

/* Steps / Progress */
.steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}


.logout-row {
    text-align: right;
    margin-top: 16px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    font-family: inherit;
    color: #111827;
    line-height: 1.5;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.form-group input:invalid {
    border-color: #dc2626;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Publication and Citation Sections */
.publication-section,
.citation-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 32px;
    margin: 40px 0;
    border: 1px solid #e2e8f0;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
    width: 100%;
}

.publication-section::before,
.citation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    border-radius: 12px 12px 0 0;
}

.publication-section h3,
.citation-section h3 {
    color: #1e293b;
    font-size: 1.25rem;
    margin-bottom: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.publication-section h3::before,
.citation-section h3::before {
    content: '📄';
    font-size: 1.1rem;
}

.citation-item {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.citation-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.citation-item h4 {
    color: #374151;
    font-size: 1rem;
    margin-bottom: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 8px;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 48px;
    padding: 32px 0;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 8px;
}

/* Form Navigation - Specific styling for survey buttons */
.form-navigation .btn {
    min-width: 120px !important;
    padding: 14px 28px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Force submit button to be hidden by default */
#submitBtn {
    display: none !important;
}

/* Only show submit button when explicitly set to inline-block or inline-flex */
#submitBtn[style*="inline-block"], #submitBtn[style*="inline-flex"] {
    display: inline-flex !important;
}

/* Force next button to be hidden when set to none */
#nextBtn[style*="none"] {
    display: none !important;
}

/* Force next button to be hidden on last section */
#nextBtn.hidden {
    display: none !important;
}

/* Force previous button to be hidden when set to none */
#prevBtn[style*="none"] {
    display: none !important;
}

/* Force previous button to be hidden on first section */
#prevBtn.hidden {
    display: none !important;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: inherit;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    min-width: auto;
    justify-content: center;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: #ffffff;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

/* Logout button specific styling - higher specificity */
.nav-right #logoutBtn {
    padding: 8px 12px !important; /* Smaller horizontal padding */
    font-size: 0.75rem !important; /* Smaller font */
    min-width: auto !important; /* Remove minimum width */
}

.btn-success {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.2);
}

.btn-success:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Success Message */
.success-message {
    background: #ffffff;
    border-radius: 16px;
    padding: 64px 48px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.success-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #059669, #047857);
}

.success-content i {
    font-size: 3.5rem;
    color: #059669;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #059669, #047857);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-content h2 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 32px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.success-content p {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 64px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    font-weight: 500;
}

/* Professional Enhancements */
.form-section {
    position: relative;
}

.form-section::before {
    content: '';
    position: absolute;
    top: -24px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
}

/* Form Field Groups */
.form-group-group {
    background: #f8fafc;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.form-group-group h4 {
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .header {
        padding: 32px 24px;
    }
    
    .logo h1 {
        font-size: 1.875rem;
    }
    
    .survey-form {
        padding: 32px 24px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 16px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .publication-section,
    .citation-section {
        padding: 24px;
        margin: 32px 0;
    }
}

@media (max-width: 480px) {
    .logo {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .success-content h2 {
        font-size: 2rem;
    }
    
    .success-content p {
        font-size: 1rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #667eea;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* ========================================
   SIMPLE MOBILE RESPONSIVENESS
   ======================================== */

/* Mobile: Scale everything down proportionally */
@media (max-width: 768px) {
    /* Overall scaling */
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 12px;
        max-width: 100%;
    }
    
    /* Navigation - Menu icon left, stamp logo, links right */
    .site-nav-inner {
        padding: 8px 12px !important;
        display: flex !important;
        align-items: center;
        justify-content: flex-start !important; /* Changed from space-between */
        gap: 8px;
        max-width: none !important;
        margin: 0 !important;
        grid-template-columns: none !important;
        min-height: 48px;
    }
    
    .nav-left {
        display: flex !important;
        order: 1;
        flex-shrink: 0;
        padding-left: 0 !important;
        position: static !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        min-width: 40px; /* Ensure menu icon has space */
        margin-right: 0 !important;
    }
    
    .site-brand {
        order: 2;
        flex-shrink: 0;
        margin: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        position: static !important;
        left: auto !important;
        transform: none !important;
        min-width: 32px; /* Ensure logo has space */
    }
    
    /* Hide text logo, show stamp logo on mobile */
    .brand-logo-text {
        display: none !important;
    }
    
    .brand-logo {
        display: block !important;
        width: 32px;
        height: 32px;
        object-fit: contain;
        flex-shrink: 0;
    }
    
    .nav-right {
        order: 3;
        margin-left: auto !important; /* Push to right edge */
        position: static !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        z-index: auto !important;
        display: flex;
        flex-direction: row;
        gap: 6px;
        padding-right: 0 !important;
        flex-shrink: 1; /* Allow to shrink if needed */
        min-width: 0; /* Allow flexbox to shrink */
    }
    
    .nav-right .nav-link {
        font-size: 0.8rem;
        white-space: nowrap;
        padding: 4px 2px;
    }
    
    .nav-right .btn {
        font-size: 0.6rem;
        padding: 3px 6px;
        white-space: nowrap; /* Prevent text wrapping */
    }
    
    /* Hero Section - Increase height to cover all questions */
    .home .questions-hero {
        height: 120vh; /* Increased height for better mobile visual impact */
        padding: 100px 12px 40px 12px; /* Increased top padding from 80px to 100px */
    }
    
    .questions-container {
        padding: 5px 12px 40px 12px; /* Reduced top padding for better mobile spacing */
    }
    
    .questions-title {
        font-size: 1.75rem;
        margin-bottom: 16px;
    }
    
    .questions-subtitle {
        font-size: 1.1rem; /* Increased from 1rem */
        margin-bottom: 20px; /* Reduced from 32px */
    }
    
    .questions-grid {
        gap: 20px; /* Increased gap between cards */
    }
    
    .question-card {
        padding: 16px;
        margin-bottom: 16px; /* Extra margin to prevent overlap */
    }
    
    .question-number {
        font-size: 1.25rem;
        margin-bottom: 8px;
    }
    
    .question-content h3 {
        font-size: 1rem;
        margin-bottom: 8px; /* Increased margin */
    }
    
    .question-content p {
        font-size: 1rem; /* Increased from 0.9rem */
        line-height: 1.4; /* Better line height */
    }
    
    .cta-text {
        font-size: 1.1rem; /* Increased from 1rem */
        margin-top: 20px; /* Reduced from 32px */
    }
    
    .cta-text-spaced {
        margin-top: -40px; /* Move closer to cards on mobile */
    }
    
    .hero-cta-container {
        margin-top: 12px; /* Reduced from 24px */
    }
    
    /* About Section */
    .about-container {
        padding: 30px 12px;
    }
    
    .about-intro h2 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .about-subtitle {
        font-size: 1.1rem; /* Increased from 1rem */
        margin-bottom: 24px;
    }
    
    .about-grid {
        gap: 16px;
    }
    
    .about-card {
        padding: 16px;
    }
    
    .about-card h3 {
        font-size: 1rem;
        margin-bottom: 8px;
        gap: 8px;
    }
    
    .about-icon {
        width: 24px;
        height: 24px;
    }
    
    .about-card p {
        font-size: 1rem; /* Increased from 0.9rem */
    }
    
    .about-disclaimer {
        font-size: 0.8rem;
        margin-top: 20px;
    }
    
    /* Services Section */
    .services-container {
        padding: 30px 12px;
    }
    
    .services-intro h2 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .services-subtitle {
        font-size: 1.1rem; /* Increased from 1rem */
        margin-bottom: 24px;
    }
    
    .services-grid {
        gap: 16px;
    }
    
    .service-card {
        padding: 16px;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .service-price {
        margin-bottom: 12px;
    }
    
    .price-amount {
        font-size: 1.25rem;
    }
    
    .price-period {
        font-size: 0.8rem;
    }
    
    .service-features {
        gap: 8px;
    }
    
    .feature-item {
        font-size: 0.8rem;
    }
    
    .services-guarantee {
        font-size: 0.8rem;
        margin-top: 20px;
    }
    
    /* Forms */
    .evaluation-form {
        padding: 16px;
    }
    
    .form-section h2 {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    .container {
        padding: 8px;
    }
    
    .site-nav-inner {
        padding: 6px 8px !important;
        display: flex !important;
        align-items: center;
        justify-content: flex-start !important; /* Changed from space-between */
        gap: 6px;
        max-width: none !important;
        margin: 0 !important;
        grid-template-columns: none !important;
        min-height: 44px;
    }
    
    .nav-left {
        display: flex !important;
        order: 1;
        flex-shrink: 0;
        padding-left: 0 !important;
        position: static !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        min-width: 36px; /* Ensure menu icon has space */
        margin-right: 0 !important;
    }
    
    .site-brand {
        order: 2;
        flex-shrink: 0;
        margin: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        position: static !important;
        left: auto !important;
        transform: none !important;
        min-width: 28px; /* Ensure logo has space */
    }
    
    /* Hide text logo, show stamp logo on small mobile */
    .brand-logo-text {
        display: none !important;
    }
    
    .brand-logo {
        display: block !important;
        width: 28px;
        height: 28px;
        object-fit: contain;
        flex-shrink: 0;
    }
    
    .nav-right {
        order: 3;
        margin-left: auto !important; /* Push to right edge */
        position: static !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        z-index: auto !important;
        display: flex;
        flex-direction: row;
        gap: 4px;
        padding-right: 0 !important;
        flex-shrink: 1; /* Allow to shrink if needed */
        min-width: 0; /* Allow flexbox to shrink */
    }
    
    .nav-right .nav-link {
        font-size: 0.75rem;
        white-space: nowrap;
        padding: 4px 1px;
    }
    
    .nav-right .btn {
        font-size: 0.55rem;
        padding: 2px 4px;
        white-space: nowrap; /* Prevent text wrapping */
    }
    
    .home .questions-hero {
        height: 110vh; /* Increased height for better small mobile visual impact */
        padding: 90px 8px 30px 8px; /* Increased top padding from 70px to 90px */
    }
    
    .questions-container {
        padding: 5px 8px 30px 8px; /* Reduced top padding for better small mobile spacing */
    }
    
    .questions-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .questions-subtitle {
        font-size: 1rem; /* Increased from 0.9rem */
        margin-bottom: 16px; /* Reduced from 28px */
    }
    
    .questions-grid {
        gap: 16px;
    }
    
    .question-card {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .cta-text {
        font-size: 1rem; /* Increased from 0.9rem */
        margin-top: 16px; /* Reduced from 28px */
    }
    
    .cta-text-spaced {
        margin-top: -30px; /* Move closer to cards on small mobile */
    }
    
    .hero-cta-container {
        margin-top: 12px; /* Reduced from 20px */
    }
    
    .about-container,
    .services-container {
        padding: 20px 8px;
    }
    
    .about-intro h2,
    .services-intro h2 {
        font-size: 1.25rem;
    }
    
    .about-card,
    .service-card {
        padding: 12px;
    }
    
    .evaluation-form {
        padding: 12px;
    }
}

/* Form Validation */
.form-group input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #e53e3e;
    background-color: #fed7d7;
}

.form-group input:valid:not(:focus):not(:placeholder-shown) {
    border-color: #48bb78;
    background-color: #f0fff4;
}

/* Accessibility */
.btn:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Site Navigation */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #ffffffcc;
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #e2e8f0;
}

.site-nav-inner {
    width: 100%;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 56px; /* Ensure minimum height for better spacing */
}

.site-brand {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.brand-logo-text {
    height: 20px;
    width: auto;
    object-fit: contain;
}

.site-brand:hover {
    text-decoration: none;
}

.brand-logo { 
    width: 28px; 
    height: 28px; 
    object-fit: contain; 
    display: none; /* Hidden on desktop, shown on mobile */
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-left {
    justify-content: flex-start;
    position: absolute;
    left: 24px; /* Spacing from left screen edge */
    top: 50%;
    transform: translateY(-50%);
}

.nav-right {
    justify-content: flex-end;
    position: absolute;
    right: 24px; /* Spacing from right screen edge */
    top: 50%;
    transform: translateY(-50%);
}

.nav-right .btn {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-height: auto;
    line-height: 1.4;
}

.nav-right .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.nav-link {
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: #2563eb;
}

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    font-family: inherit;
    transition: color 0.2s ease;
    width: 40px;
    height: 40px;
    border-radius: 6px;
}

.nav-dropdown-toggle:hover {
    color: #2563eb;
    background-color: #f8fafc;
}

.nav-dropdown-toggle i {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.nav-dropdown-toggle.active {
    color: #2563eb;
    background-color: #f8fafc;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
}

.nav-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 12px 16px;
    color: #334155;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.nav-dropdown-item:last-child {
    border-bottom: none;
}

.nav-dropdown-item:hover {
    background-color: #f8fafc;
    color: #2563eb;
}

/* Pricing Page Styles */
.pricing-section {
    padding: 0 20px 60px; /* Remove top padding - handled by page-header */
    max-width: 1200px;
    margin: 0 auto;
}

/* Pricing page uses standard page-header class */
.pricing-header {
    text-align: center;
    margin-bottom: 48px;
    padding-top: 60px; /* Consistent spacing from navigation bar */
}

.pricing-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem; /* Standardized */
    color: #1e293b;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.pricing-subtitle {
    font-family: 'Crimson Text', serif;
    font-size: 1.125rem; /* Standardized */
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Pricing Explanation Section */
.pricing-explanation {
    max-width: 1000px;
    margin: 0 auto 50px;
    padding: 40px 20px;
}

.pricing-explanation h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem; /* Keep same as page header for consistency */
    color: #1e293b;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.pricing-explanation-intro {
    font-family: 'Crimson Text', serif;
    font-size: 1.125rem; /* Standardized - was 1.1rem */
    color: #64748b; /* Standardized - was #475569 */
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.7;
}

.pricing-components {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 0;
}

.pricing-component {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
}

.component-icon {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 16px;
}

.pricing-component h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 16px;
    font-weight: 600;
}

.pricing-component p {
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    color: #475569;
    line-height: 1.7;
    text-align: left;
}

@media (max-width: 768px) {
    .pricing-explanation {
        padding: 30px 15px;
        margin-bottom: 50px;
    }
    
    .pricing-explanation h2 {
        font-size: 1.75rem;
    }
    
    .pricing-explanation-intro {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .pricing-components {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 0;
    }
    
    .pricing-header {
        margin-bottom: 40px;
        padding-top: 40px; /* Reduced for mobile */
    }
    
    .pricing-header h1 {
        font-size: 1.75rem; /* Responsive scaling */
    }
    
    .pricing-subtitle {
        font-size: 1rem; /* Responsive scaling */
    }
    
    .pricing-component {
        padding: 24px;
    }
    
    .component-icon {
        font-size: 2rem;
    }
    
    .pricing-component h3 {
        font-size: 1.3rem;
    }
    
    .pricing-component p {
        font-size: 0.95rem;
    }
    
    .pricing-explanation-note {
        font-size: 0.95rem;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .pricing-explanation {
        padding: 24px 12px;
        margin-bottom: 40px;
    }
    
    .pricing-explanation h2 {
        font-size: 1.5rem;
    }
    
    .pricing-explanation-intro {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }
    
    .pricing-component {
        padding: 20px;
    }
    
    .component-icon {
        font-size: 1.75rem;
    }
    
    .pricing-component h3 {
        font-size: 1.2rem;
    }
    
    .pricing-component p {
        font-size: 0.9rem;
    }
    
    .pricing-header {
        margin-bottom: 35px;
        padding-top: 32px; /* Further reduced for small mobile */
    }
    
    .pricing-header h1 {
        font-size: 1.5rem; /* Responsive scaling */
    }
    
    .pricing-subtitle {
        font-size: 0.95rem; /* Responsive scaling */
    }
}

/* Testimonials Section */
.home-testimonials {
    background: #f8fafc; /* Light gray for trust-building section */
    padding: 60px 20px;
    margin-top: 0; /* Consistent with other sections */
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    position: relative;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 50px;
}

.testimonials-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 16px;
}

.testimonials-subtitle {
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    color: #475569;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.testimonials-carousel {
    position: relative;
    margin-top: 40px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    transition: opacity 0.3s ease;
}

.testimonial-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    color: #475569;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-nav-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.testimonial-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.testimonial-prev {
    left: -24px;
}

.testimonial-next {
    right: -24px;
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.testimonial-dot:hover {
    background: #94a3b8;
    transform: scale(1.2);
}

.testimonial-dot.active {
    background: #2563eb;
    width: 32px;
    border-radius: 6px;
}

.testimonial-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 1rem;
    letter-spacing: 2px;
}

.testimonial-stars .fa-star {
    margin-right: 2px;
}

.testimonial-date {
    font-family: 'Crimson Text', serif;
    font-size: 0.875rem;
    color: #94a3b8;
}

.testimonial-comment {
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-author strong {
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    color: #1e293b;
    font-weight: 600;
}

.testimonial-field {
    font-family: 'Crimson Text', serif;
    font-size: 0.875rem;
    color: #64748b;
    font-style: italic;
}

@media (max-width: 968px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .testimonial-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .testimonial-prev {
        left: -20px;
    }
    
    .testimonial-next {
        right: -20px;
    }
}

@media (max-width: 768px) {
    .home-testimonials {
        padding: 50px 15px;
        margin-top: 50px;
    }
    
    .testimonials-container {
        padding: 0 50px;
    }
    
    .testimonials-header {
        margin-bottom: 40px;
    }
    
    .testimonials-header h2 {
        font-size: 1.75rem;
    }
    
    .testimonials-subtitle {
        font-size: 1rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .testimonial-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .testimonial-prev {
        left: -18px;
    }
    
    .testimonial-next {
        right: -18px;
    }
    
    .testimonial-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .home-testimonials {
        padding: 40px 12px;
        margin-top: 40px;
    }
    
    .testimonials-container {
        padding: 0 40px;
    }
    
    .testimonials-header h2 {
        font-size: 1.5rem;
    }
    
    .testimonials-subtitle {
        font-size: 0.95rem;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonial-comment {
        font-size: 0.95rem;
    }
    
    .testimonial-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .testimonial-prev {
        left: -16px;
    }
    
    .testimonial-next {
        right: -16px;
    }
    
    .testimonials-dots {
        margin-top: 30px;
        gap: 10px;
    }
    
    .testimonial-dot {
        width: 10px;
        height: 10px;
    }
    
    .testimonial-dot.active {
        width: 24px;
    }
}

/* Services Section Improvements */
.services-intro {
    margin-bottom: 48px;
}

.services-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #475569;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Services CTA Button */
.services-cta {
    text-align: center;
    margin: 48px 0;
    padding: 0;
}

.btn-pricing {
    font-family: 'Crimson Text', serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 11px 28px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.25s ease;
    background: #2563eb;
    color: #ffffff;
    border: 2px solid #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
    letter-spacing: 0.3px;
    position: relative;
}

.btn-pricing:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

.btn-pricing:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

@media (max-width: 768px) {
    .services-intro {
        margin-bottom: 40px;
    }
    
    .services-subtitle {
        font-size: 1.05rem;
        margin-bottom: 32px;
    }
    
    .services-cta {
        margin: 40px 0;
    }
    
    .btn-pricing {
        font-size: 0.9rem;
        padding: 10px 28px;
    }
}

@media (max-width: 480px) {
    .services-intro {
        margin-bottom: 32px;
    }
    
    .services-subtitle {
        font-size: 1rem;
        margin-bottom: 28px;
    }
    
    .services-cta {
        margin: 32px 0;
    }
    
    .btn-pricing {
        font-size: 0.85rem;
        padding: 9px 24px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .header,
    .progress-container,
    .form-navigation {
        display: none;
    }
    
    .survey-form {
        box-shadow: none;
        background: white;
    }
    
    .form-section {
        display: block !important;
    }
}

/* Account Page Styles */
.account-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 32px;
    border-radius: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.user-avatar {
    font-size: 3rem;
    opacity: 0.9;
}

.user-details h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    color: white;
}

.user-details p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* Auth Card */
.auth-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h2 {
    font-size: 1.875rem;
    margin-bottom: 8px;
    color: #1e293b;
}

.auth-header p {
    color: #64748b;
    font-size: 1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
}

.auth-buttons {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.auth-buttons .btn {
    flex: 1;
}

/* Dashboard Container */
.dashboard-container {
    max-width: 1000px;
    margin: 0 auto;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}

.dashboard-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: #1e293b;
}

.dashboard-header p {
    color: #64748b;
    font-size: 1.1rem;
}

/* User Greeting */
.user-greeting {
    text-align: center;
    margin-bottom: 32px;
}

.user-greeting h2 {
    font-size: 1.5rem;
    color: #1e293b;
    margin: 0;
    font-weight: 500;
}

.user-greeting span {
    color: #3b82f6;
    font-weight: 600;
}

/* Plan Card */
.plan-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.plan-info h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: #374151;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 8px;
}

.plan-description {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

/* Progress Tracker */
.progress-tracker {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.progress-header {
    margin-bottom: 32px;
}

.progress-header h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #1e293b;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transition: width 0.3s ease;
}

.progress-text {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Steps Grid */
.steps-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.step-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.step-card#step-survey {
    flex-direction: row;
    align-items: flex-start;
    gap: 60px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-card.completed .step-number {
    background: #22c55e;
    color: white;
}

.step-card.disabled .step-number {
    background: #9ca3af;
    color: white;
}

.step-card.completed {
    background: #f0fdf4;
    border-color: #22c55e;
}

.step-card.disabled {
    opacity: 0.6;
    background: #f8fafc;
    border-color: #e2e8f0;
}

.step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #d1d5db;
}

.step-card.completed:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
    border-color: #16a34a;
}


.step-content {
    flex: 1;
    margin-left: 20px;
}

.step-card#step-survey .step-content {
    margin-left: 20px;
    display: block;
}

.step-content h4 {
    font-size: 1.125rem;
    margin-bottom: 8px;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.4;
}

.step-content p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.step-status {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.step-card#step-survey .step-status {
    justify-content: flex-start;
    margin-top: 12px;
    flex-direction: column;
    gap: 8px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.completed {
    background: #dcfce7;
    color: #166534;
}

.status-badge.coming-soon {
    background: #fef3c7;
    color: #92400e;
}

/* Responsive Design for Account Page */
@media (max-width: 768px) {
    .user-info {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .user-details h1 {
        font-size: 2rem;
    }
    
    .auth-card {
        padding: 24px;
        margin: 0 16px 32px 16px;
    }
    
    .auth-buttons {
        flex-direction: column;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .step-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .step-status {
        width: 100%;
    }
    
    .step-status .btn {
        width: 100%;
    }
}

/* Survey Buttons Styling */
.survey-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.survey-buttons .btn {
    width: 100%;
    max-width: 200px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.survey-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.survey-buttons .btn:first-child {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: 1px solid #3b82f6;
    color: white;
}

.survey-buttons .btn:first-child:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    border-color: #1d4ed8;
}

.survey-buttons .btn:last-child {
    background: linear-gradient(135deg, #10b981, #059669);
    border: 1px solid #10b981;
    color: white;
}

.survey-buttons .btn:last-child:hover {
    background: linear-gradient(135deg, #059669, #047857);
    border-color: #059669;
}

/* Mobile responsiveness for survey buttons */
@media (max-width: 768px) {
    .survey-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .survey-buttons .btn {
        width: 100%;
        max-width: none;
        min-width: auto;
    }
}

/* Checkbox styling for survey forms */
.checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.checkbox-label:hover {
    background-color: #f8fafc;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Group checkbox options together visually */
.form-group .checkbox-label:first-of-type {
    margin-top: 8px;
}

/* Add spacing between checkbox groups */
.form-group:has(.checkbox-label) {
    margin-bottom: 20px;
}

/* Contact Page Styles */
.contact-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px 80px; /* Remove top padding - handled by page-header */
}

.contact-header {
    text-align: center;
    margin-bottom: 48px;
    padding-top: 60px; /* Consistent spacing from navigation bar */
}

.contact-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem; /* Standardized - was 2.75rem */
    color: #1e293b;
    margin-bottom: 16px;
    font-weight: 700; /* Standardized - was 600 */
    letter-spacing: -0.02em;
}

.contact-header p {
    font-family: 'Crimson Text', serif;
    font-size: 1.125rem; /* Already standardized */
    color: #64748b;
    line-height: 1.7;
    max-width: 700px; /* Standardized - was 600px */
    margin: 0 auto;
}

.contact-card {
    background: white;
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Reduce gap before form actions - counteract the form gap */
.contact-form .form-actions {
    margin-top: -16px;
    padding-top: 0;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Ensure contact form submit button is always visible */
.contact-form #submitBtn {
    display: inline-flex !important;
}

/* Professional button styling for contact form - blue theme */
.contact-form .btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
    font-weight: 600;
}

.contact-form .btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.contact-form .btn-primary:active {
    transform: translateY(0);
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.contact-form .btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

.contact-form label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    font-family: 'Crimson Text', 'Georgia', 'Times New Roman', serif;
}

.contact-form .required {
    color: #dc2626;
    margin-left: 2px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Crimson Text', 'Georgia', 'Times New Roman', serif;
    transition: all 0.2s ease;
    background: white;
    color: #1f2937;
}

.contact-form input:hover,
.contact-form textarea:hover {
    border-color: #9ca3af;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: #fafafa;
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.char-count {
    font-size: 0.8125rem;
    color: #6b7280;
    text-align: right;
    margin-top: 6px;
    font-weight: 500;
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 0;
    padding-top: 0;
}

.form-actions .btn {
    min-width: 200px;
    padding: 16px 40px;
    font-size: 1.0625rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Crimson Text', 'Georgia', 'Times New Roman', serif;
}

.form-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.9375rem;
    line-height: 1.6;
    font-weight: 500;
}

.message.success {
    background: #f0fdf4;
    color: #166534;
    border: 1.5px solid #86efac;
}

.message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1.5px solid #fca5a5;
}


/* Responsive Design for Contact Page */
@media (max-width: 768px) {
    .contact-section {
        padding: 0 16px 60px; /* Remove top padding - handled by page-header */
    }
    
    .contact-header {
        padding-top: 40px; /* Reduced for mobile */
    }
    
    .contact-header h1 {
        font-size: 1.75rem; /* Responsive scaling */
    }
    
    .contact-header p {
        font-size: 1rem; /* Responsive scaling */
    }
    
    .contact-card {
        padding: 32px 24px;
    }
    
    .contact-form {
        gap: 24px;
    }
    
    .form-actions {
        justify-content: center;
    }
    
    .form-actions .btn {
        width: 100%;
        max-width: 300px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .contact-header {
        padding-top: 32px; /* Further reduced for small mobile */
    }
    
    .contact-header h1 {
        font-size: 1.5rem; /* Responsive scaling */
    }
    
    .contact-header p {
        font-size: 0.95rem; /* Responsive scaling */
    }
}

/* Simple Footer */
.site-footer {
    padding: 20px;
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.site-footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer p {
    margin: 4px 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #64748b;
}

.site-footer sup {
    font-size: 0.5em;
    vertical-align: super;
    line-height: 0;
}

.site-footer a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: #475569;
    text-decoration: underline;
}

/* Legal Pages Styling */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.legal-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.legal-header h1 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 8px;
    font-weight: 600;
}

.last-updated {
    font-size: 0.75rem;
    color: #64748b;
    font-style: normal;
}

.legal-content {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #334155;
    font-size: 0.875rem;
}

.legal-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #1e293b;
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 600;
}

.legal-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    color: #334155;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 500;
}

.legal-content p {
    margin-bottom: 12px;
    font-size: 0.875rem;
}

.legal-content ul,
.legal-content ol {
    margin: 12px 0;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 6px;
    font-size: 0.875rem;
}

.legal-content strong {
    font-weight: 600;
    color: #1e293b;
}

.legal-content a {
    color: #2563eb;
    text-decoration: underline;
}

.legal-content a:hover {
    color: #1d4ed8;
}

/* Legal pages responsive */
@media (max-width: 768px) {
    .legal-page {
        padding: 24px 16px 32px;
    }
    
    .legal-header h1 {
        font-size: 1.25rem;
    }
    
    .legal-content h2 {
        font-size: 0.9375rem;
    }
    
    .legal-content h3 {
        font-size: 0.875rem;
    }
    
    .legal-content p,
    .legal-content li {
        font-size: 0.8125rem;
    }
}

/* News Page Styles */
.news-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 80px; /* Remove top padding - handled by page-header */
}

.news-header {
    text-align: center;
    margin-bottom: 48px;
    padding-top: 60px; /* Consistent spacing from navigation bar */
}

.news-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem; /* Standardized - was 2.75rem */
    color: #1e293b;
    margin-bottom: 16px;
    font-weight: 700; /* Changed from 600 to 700 for consistency */
    letter-spacing: -0.02em;
}

.news-subtitle {
    font-family: 'Crimson Text', serif;
    font-size: 1.125rem; /* Already standardized */
    color: #64748b;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.news-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-item {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.news-item:hover {
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.1), 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.news-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.news-date {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-title {
    font-family: 'Playfair Display', serif; /* Changed from Inter to Playfair Display for consistency and trust */
    font-size: 1.5rem;
    color: #1e293b;
    margin: 0 0 16px 0;
    font-weight: 600;
    line-height: 1.4;
}

.news-summary {
    font-size: 1rem;
    color: #475569;
    line-height: 1.7;
    margin: 0 0 20px 0;
    font-family: 'Crimson Text', 'Georgia', 'Times New Roman', serif;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.news-source-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.news-source {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
}

.news-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.news-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.news-link i {
    font-size: 0.75rem;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.news-loading,
.news-empty,
.news-error {
    text-align: center;
    padding: 60px 24px;
    color: #64748b;
}

.news-loading i {
    font-size: 2rem;
    color: #94a3b8;
    margin-bottom: 16px;
}

.news-loading p,
.news-empty p,
.news-error p {
    font-size: 1.125rem;
    margin: 0;
}

/* News page responsive */
@media (max-width: 768px) {
    .news-section {
        padding: 0 16px 60px; /* Remove top padding - handled by page-header */
    }
    
    .news-header {
        padding-top: 40px; /* Reduced for mobile */
    }
    
    .news-header h1 {
        font-size: 1.75rem; /* Responsive scaling */
    }
    
    .news-subtitle {
        font-size: 1rem; /* Responsive scaling */
    }
    
    .news-item {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .news-header {
        padding-top: 32px; /* Further reduced for small mobile */
    }
    
    .news-header h1 {
        font-size: 1.5rem; /* Responsive scaling */
    }
    
    .news-subtitle {
        font-size: 0.95rem; /* Responsive scaling */
    }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

@media (prefers-color-scheme: dark) {
    /* Desktop dark mode: use white logo for brand-logo-text */
    @media (min-width: 769px) {
        .site-brand .brand-logo-text {
            opacity: 0 !important;
            width: 0 !important;
            height: 0 !important;
            overflow: hidden;
            margin: 0 !important;
            padding: 0 !important;
        }
        
        .site-brand::before {
            content: '';
            display: block;
            width: 350px;
            height: 50px;
            background-image: url('/TurboNIW_White_Logo.png');
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            flex-shrink: 0;
        }
    }
    
    /* Mobile dark mode: use white stamp logo */
    @media (max-width: 768px) {
        .site-brand {
            position: relative;
        }
        
        .site-brand .brand-logo:not([src*="WhiteBackground"]) {
            opacity: 0 !important;
            width: 0 !important;
            height: 0 !important;
            overflow: hidden;
            margin: 0 !important;
            padding: 0 !important;
        }
        
        .site-brand::before {
            content: '';
            display: block;
            width: 32px;
            height: 32px;
            background-image: url('/TurboNIW%20White%20Stamp%20Logo.png');
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            flex-shrink: 0;
        }
    }
    
    /* For white background logos, they should be fine as-is */
    .brand-logo-text[src*="WhiteBackground"],
    .brand-logo[src*="WhiteBackground"] {
        filter: none;
        opacity: 1;
    }
    /* Base body and text colors */
    body {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
        color: #e2e8f0 !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #f1f5f9 !important;
    }
    
    /* Navigation bar */
    .site-nav {
        background: #1e293bcc !important;
        border-bottom: 1px solid #334155 !important;
    }
    
    /* Override all white backgrounds explicitly */
    .header,
    .progress-container,
    .auth-card,
    .contact-card,
    .service-card,
    .about-card,
    .news-item,
    .story-phase,
    .value-item,
    .faq-item,
    .pricing-component,
    .survey-form,
    .form-group,
    .how-it-works-detail-item,
    .question-card,
    .testimonial-card,
    .wiki-toc,
    .publication-section,
    .citation-section,
    .cta-box,
    .story-quote,
    .value-item,
    .pricing-card,
    .service-box,
    .about-box {
        background: #1e293b !important;
        border-color: #334155 !important;
        color: #e2e8f0 !important;
    }
    
    /* Override white backgrounds in pseudo-elements */
    .header::before,
    .progress-container::before {
        background: #1e293b !important;
        border-color: #334155 !important;
    }
    
    /* Evaluation page */
    .evaluation-hero {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
        color: #e2e8f0 !important;
    }
    
    .evaluation-intro h1 {
        color: #f1f5f9 !important;
    }
    
    /* Account page sections */
    .account-section,
    .account-content,
    .petition-section,
    .forms-section {
        background: #1e293b !important;
        border-color: #334155 !important;
        color: #e2e8f0 !important;
    }
    
    /* Survey form sections */
    .survey-form {
        background: transparent !important;
    }
    
    .form-section,
    .section-content {
        background: #1e293b !important;
        border-color: #334155 !important;
        color: #e2e8f0 !important;
    }
    
    /* All divs with white backgrounds */
    div[style*="background: white"],
    div[style*="background: #fff"],
    div[style*="background: #ffffff"] {
        background: #1e293b !important;
    }
    
    /* Step numbers and badges */
    .step-num {
        background: #3b82f6 !important;
        color: white !important;
    }
    
    /* Process numbers */
    .process-number,
    .process-step-number-inline {
        background: #3b82f6 !important;
        color: white !important;
    }
    
    .nav-link {
        color: #cbd5e1 !important;
    }
    
    .nav-link:hover {
        color: #60a5fa !important;
    }
    
    .nav-dropdown-toggle {
        color: #cbd5e1 !important;
    }
    
    /* Ensure all text is visible */
    p, span, div, li, td, th, label, small {
        color: inherit;
    }
    
    /* Override any dark text on dark backgrounds */
    .text-gray-600,
    .text-gray-700,
    .text-gray-800,
    .text-dark {
        color: #cbd5e1 !important;
    }
    
    /* Specific overrides for gray text colors */
    [style*="color: #64748b"],
    [style*="color: #475569"],
    [style*="color: #334155"],
    [style*="color: #94a3b8"] {
        color: #cbd5e1 !important;
    }
    
    /* Override all elements with gray text colors */
    .pricing-explanation-intro,
    .pricing-component-description,
    .service-description,
    .about-disclaimer p,
    .how-it-works-subtitle,
    .section-header p,
    .page-header p,
    .news-subtitle,
    .contact-header p,
    .faq-header p,
    .wiki-header p,
    .field-explanation,
    .form-disclaimer,
    .subtitle,
    .home-footer,
    p,
    li,
    span:not(.btn):not(.nav-link) {
        color: #cbd5e1 !important;
    }
    
    /* Make sure all paragraph text is readable */
    p:not(.btn):not(.nav-link):not(.process-highlight) {
        color: #cbd5e1 !important;
    }
    
    /* Process highlight should remain blue but brighter in dark mode */
    .process-highlight {
        color: #60a5fa !important;
    }
    
    /* Pricing component descriptions and all description text */
    .pricing-component p,
    .pricing-component-description,
    .service-card p,
    .about-card p,
    .how-it-works-detail-item,
    .process-step-text {
        color: #cbd5e1 !important;
    }
    
    /* About disclaimer section - fix white background */
    .about-disclaimer {
        background: #1e293b !important;
        border-color: #334155 !important;
    }
    
    .about-disclaimer p {
        color: #cbd5e1 !important;
    }
    
    .about-disclaimer i {
        color: #60a5fa !important;
    }
    
    .about-disclaimer strong {
        color: #f1f5f9 !important;
    }
    
    /* Process subsection - fix white background */
    .process-subsection {
        background: #1e293b !important;
        border-color: #334155 !important;
    }
    
    .process-subsection p,
    .process-subsection .process-highlight {
        color: #cbd5e1 !important;
    }
    
    /* Questions subtitle - fix dark text */
    .questions-subtitle {
        color: #cbd5e1 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    }
    
    /* CTA text - fix dark text */
    .cta-text {
        color: #cbd5e1 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    }
    
    /* CTA text highlight - dark mode styling */
    .cta-text-highlight {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(96, 165, 250, 0.15)) !important;
        border-color: rgba(96, 165, 250, 0.3) !important;
        color: #93c5fd !important;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25) !important;
    }
    
    /* Process step text - already fixed but ensure it's applied */
    .process-step-text {
        color: #cbd5e1 !important;
    }
    
    /* About grid and cards - ensure text is readable */
    .about-grid,
    .about-card {
        background: #1e293b !important;
        border-color: #334155 !important;
    }
    
    .about-card h3 {
        color: #f1f5f9 !important;
    }
    
    .about-card p {
        color: #cbd5e1 !important;
    }
    
    /* About intro and subtitle */
    .about-intro h2 {
        color: #f1f5f9 !important;
    }
    
    .about-subtitle {
        color: #cbd5e1 !important;
    }
    
    /* Ensure all list items in about section are readable */
    .about-grid li,
    .about-card li,
    .columns-2 li,
    .columns-2 p,
    .columns-2 div {
        color: #cbd5e1 !important;
    }
    
    /* Ensure all divs and spans with text are readable */
    .columns-2 > div,
    .columns-2 > div > * {
        color: #cbd5e1 !important;
    }
    
    .columns-2 h3,
    .columns-2 h4 {
        color: #f1f5f9 !important;
    }
    
    /* Services guarantee section */
    .services-guarantee {
        background: #1e293b !important;
        border-color: #334155 !important;
    }
    
    .services-guarantee p {
        color: #cbd5e1 !important;
    }
    
    .services-guarantee i {
        color: #10b981 !important;
    }
    
    /* Process step inline - white background boxes */
    .process-step-inline {
        background: #1e293b !important;
        border-color: #334155 !important;
    }
    
    .process-step-inline .process-step-text {
        color: #cbd5e1 !important;
    }
    
    /* Form group group - light background sections */
    .form-group-group {
        background: #1e293b !important;
        border-color: #334155 !important;
    }
    
    .form-group-group h4 {
        color: #f1f5f9 !important;
        border-bottom-color: #334155 !important;
    }
    
    /* Evaluation form */
    .evaluation-form {
        background: #1e293b !important;
        border-color: #334155 !important;
    }
    
    .evaluation-subtitle {
        color: #cbd5e1 !important;
    }
    
    /* Testimonials section */
    .home-testimonials {
        background: #1e293b !important;
    }
    
    .testimonials-header h2 {
        color: #f1f5f9 !important;
    }
    
    .testimonials-subtitle {
        color: #cbd5e1 !important;
    }
    
    /* All sections with #f8fafc background */
    [style*="background: #f8fafc"],
    [style*="background-color: #f8fafc"] {
        background: #1e293b !important;
        background-color: #1e293b !important;
    }
    
    /* Override any element with light gray backgrounds */
    *[style*="#f8fafc"],
    *[style*="#ffffff"],
    *[style*="#fff"],
    *[style*="white"] {
        background-color: #1e293b !important;
    }
    
    /* Step cards */
    .step-card {
        background: #1e293b !important;
        border-color: #334155 !important;
    }
    
    .step-card.disabled {
        background: #0f172a !important;
        border-color: #334155 !important;
    }
    
    .step-content h4 {
        color: #f1f5f9 !important;
    }
    
    .step-content p {
        color: #cbd5e1 !important;
    }
    
    /* Checkbox label hover */
    .checkbox-label:hover {
        background-color: #334155 !important;
    }
    
    /* Additional common classes that might have white backgrounds */
    .box,
    .panel,
    .content-box,
    .info-box,
    .alert-box,
    .warning-box,
    .success-box,
    .note-box,
    .message-box {
        background: #1e293b !important;
        border-color: #334155 !important;
        color: #e2e8f0 !important;
    }
    
    /* Ensure all text in these boxes is readable */
    .box p,
    .panel p,
    .content-box p,
    .info-box p,
    .alert-box p,
    .warning-box p,
    .success-box p,
    .note-box p,
    .message-box p {
        color: #cbd5e1 !important;
    }
    
    .box h1, .box h2, .box h3, .box h4,
    .panel h1, .panel h2, .panel h3, .panel h4,
    .content-box h1, .content-box h2, .content-box h3, .content-box h4 {
        color: #f1f5f9 !important;
    }
    
    .nav-dropdown-toggle:hover {
        color: #60a5fa;
        background-color: #334155;
    }
    
    .nav-dropdown-menu {
        background: #1e293b;
        border: 1px solid #334155;
    }
    
    .nav-dropdown-item {
        color: #cbd5e1;
        border-bottom: 1px solid #334155;
    }
    
    .nav-dropdown-item:hover {
        background-color: #334155;
        color: #60a5fa;
    }
    
    /* Page headers */
    .page-header h1,
    .news-header h1,
    .contact-header h1,
    .pricing-header h1,
    .faq-header h1,
    .wiki-header h1 {
        color: #f1f5f9;
    }
    
    .page-header p,
    .news-subtitle,
    .contact-header p,
    .pricing-subtitle,
    .faq-header p,
    .wiki-header p {
        color: #94a3b8;
    }
    
    /* Section headers */
    .section-header {
        border-bottom: 2px solid #334155;
    }
    
    .section-header h2 {
        color: #f1f5f9;
    }
    
    .section-header p {
        color: #94a3b8;
    }
    
    /* Cards and containers */
    .container {
        background: transparent;
    }
    
    .header,
    .progress-container,
    .auth-card,
    .contact-card,
    .service-card,
    .about-card,
    .news-item,
    .story-phase,
    .value-item,
    .faq-item,
    .pricing-component {
        background: #1e293b !important;
        border-color: #334155 !important;
        color: #e2e8f0 !important;
    }
    
    .pricing-component h3 {
        color: #f1f5f9 !important;
    }
    
    .pricing-component p {
        color: #cbd5e1 !important;
    }
    
    /* Forms - override all form inputs */
    .form-group input,
    .form-group select,
    .form-group textarea,
    .contact-form input,
    .contact-form textarea,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    input[type="url"],
    input[type="tel"],
    textarea,
    select {
        background: #0f172a !important;
        border-color: #334155 !important;
        color: #f1f5f9 !important;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus,
    .contact-form input:focus,
    .contact-form textarea:focus {
        border-color: #60a5fa;
        background: #1e293b;
    }
    
    .form-group label,
    .contact-form label {
        color: #cbd5e1;
    }
    
    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: #64748b;
    }
    
    /* Buttons - keep blue theme but adjust for dark */
    .btn-primary {
        background: linear-gradient(135deg, #3b82f6, #2563eb);
        color: white;
    }
    
    .btn-primary:hover {
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
    }
    
    .btn-secondary {
        background: #1e293b;
        color: #cbd5e1;
        border-color: #334155;
    }
    
    .btn-secondary:hover {
        background: #334155;
        border-color: #475569;
        color: #f1f5f9;
    }
    
    .btn-outline {
        color: #60a5fa;
        border-color: #60a5fa;
    }
    
    .btn-outline:hover {
        background: #3b82f6;
        color: white;
    }
    
    /* Home page sections */
    .home-section {
        background: transparent;
    }
    
    .home-how-it-works {
        background: #1e293b;
    }
    
    .how-it-works-detail-item {
        background: #0f172a;
        color: #cbd5e1;
    }
    
    .question-card {
        background: #1e293b !important;
        border-color: #334155 !important;
    }
    
    .question-card:hover {
        background: #334155 !important;
        border-color: #475569 !important;
        transform: translateY(-8px);
    }
    
    .question-content h3 {
        color: #f1f5f9 !important;
    }
    
    .question-content p {
        color: #cbd5e1 !important;
    }
    
    /* Wiki page */
    .wiki-toc {
        background: #1e293b;
        border-color: #334155;
    }
    
    .wiki-toc h2 {
        color: #f1f5f9;
    }
    
    .wiki-toc a {
        color: #60a5fa;
    }
    
    .wiki-toc a:hover {
        color: #93c5fd;
    }
    
    .wiki-section h2,
    .wiki-section h3 {
        color: #f1f5f9;
    }
    
    .wiki-section p,
    .wiki-section li {
        color: #cbd5e1;
    }
    
    .story-intro {
        background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
        border-left-color: #60a5fa;
    }
    
    .story-lead {
        color: #e2e8f0 !important;
    }
    
    .story-phase {
        background: #0f172a !important;
        border-color: #334155 !important;
    }
    
    .story-phase.story-highlight {
        background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%) !important;
        border-color: #60a5fa !important;
    }
    
    .story-content p {
        color: #cbd5e1 !important;
    }
    
    /* Story expertise list items - ensure they're visible */
    .story-expertise,
    .story-expertise li,
    .story-content ul.story-expertise li,
    .story-phase ul.story-expertise li,
    .story-phase .story-content ul li {
        color: #cbd5e1 !important;
        background: transparent !important;
    }
    
    .story-expertise li::marker,
    .story-content ul li::marker,
    .story-phase ul li::marker {
        color: #60a5fa !important;
    }
    
    /* All list items in story phases */
    .story-phase ul li,
    .story-phase ol li,
    .story-content ul li,
    .story-content ol li {
        color: #cbd5e1 !important;
    }
    
    /* Story phase headers */
    .story-phase-header h3 {
        color: #f1f5f9 !important;
    }
    
    .story-year {
        background: #3b82f6 !important;
        color: white !important;
    }
    
    .story-expertise {
        color: #cbd5e1 !important;
    }
    
    /* All list items in wiki sections */
    .wiki-section ul li,
    .wiki-section ol li,
    .story-content ul li,
    .story-content ol li {
        color: #cbd5e1 !important;
    }
    
    .wiki-section ul li strong,
    .wiki-section ol li strong {
        color: #f1f5f9 !important;
    }
    
    /* Highlight box - "The Reality" section */
    .highlight-box {
        background: #1e293b !important;
        border-color: #334155 !important;
        color: #cbd5e1 !important;
    }
    
    .highlight-box p {
        color: #cbd5e1 !important;
    }
    
    .highlight-box strong {
        color: #f1f5f9 !important;
    }
    
    /* Service detail boxes - "How We're Different" section */
    .service-detail {
        background: #1e293b !important;
        border-color: #334155 !important;
        color: #cbd5e1 !important;
    }
    
    .service-detail h3 {
        color: #f1f5f9 !important;
    }
    
    .service-detail p {
        color: #cbd5e1 !important;
    }
    
    .service-detail ul li {
        color: #cbd5e1 !important;
    }
    
    .service-detail ul li strong {
        color: #f1f5f9 !important;
    }
    
    /* Mission vision boxes */
    .mission-vision-box {
        background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%) !important;
        border-left-color: #60a5fa !important;
        color: #cbd5e1 !important;
    }
    
    .mission-vision-box h3 {
        color: #f1f5f9 !important;
    }
    
    .mission-vision-box p {
        color: #cbd5e1 !important;
    }
    
    /* Story intro section - "We are PhD graduates..." */
    .story-intro {
        background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%) !important;
        border-left-color: #60a5fa !important;
    }
    
    .story-intro p {
        color: #e2e8f0 !important;
    }
    
    /* Ensure all paragraphs in wiki sections are readable */
    .wiki-section p {
        color: #cbd5e1 !important;
    }
    
    .wiki-section strong {
        color: #f1f5f9 !important;
    }
    
    /* All list items in wiki sections - comprehensive coverage */
    .wiki-section ul,
    .wiki-section ol,
    .service-detail ul,
    .service-detail ol {
        color: #cbd5e1 !important;
    }
    
    .wiki-section ul li,
    .wiki-section ol li,
    .service-detail ul li,
    .service-detail ol li {
        color: #cbd5e1 !important;
    }
    
    .story-quote {
        background: #1e293b;
        border-left-color: #60a5fa;
    }
    
    .story-quote p {
        color: #e2e8f0;
    }
    
    .mission-values {
        background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
    }
    
    .mission-values h3 {
        color: #f1f5f9;
    }
    
    .value-item {
        background: #0f172a;
        border-left-color: #60a5fa;
    }
    
    .cta-box {
        background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
        border-color: #60a5fa;
    }
    
    .cta-box h2 {
        color: #f1f5f9;
    }
    
    .cta-box p {
        color: #cbd5e1;
    }
    
    /* Pricing page */
    .pricing-explanation {
        background: transparent;
    }
    
    .pricing-explanation h2 {
        color: #f1f5f9;
    }
    
    .pricing-explanation-intro {
        color: #cbd5e1 !important;
    }
    
    /* News page */
    .news-item {
        background: #1e293b;
        border-color: #334155;
    }
    
    .news-title {
        color: #f1f5f9;
    }
    
    .news-summary {
        color: #cbd5e1;
    }
    
    .news-date {
        color: #94a3b8;
    }
    
    .news-category {
        background: #334155 !important;
        color: #cbd5e1 !important;
    }
    
    /* News tags */
    .news-tag {
        background: #334155 !important;
        color: #60a5fa !important;
        border: 1px solid #475569 !important;
    }
    
    .news-tag:hover {
        background: #475569 !important;
        color: #93c5fd !important;
    }
    
    /* FAQ page */
    .faq-item {
        background: #1e293b;
        border-color: #334155;
    }
    
    .faq-item h3 {
        color: #f1f5f9;
    }
    
    .faq-answer {
        color: #cbd5e1;
    }
    
    /* Contact page */
    .contact-form .btn-primary {
        background: #3b82f6;
        color: white;
    }
    
    .contact-form .btn-primary:hover {
        background: #2563eb;
    }
    
    /* Footer */
    .site-footer {
        border-top: 1px solid #334155;
        color: #94a3b8;
    }
    
    .site-footer a {
        color: #60a5fa;
    }
    
    .site-footer a:hover {
        color: #93c5fd;
    }
    
    /* Legal pages */
    .legal-page {
        background: #0f172a;
    }
    
    .legal-header {
        border-bottom: 2px solid #334155;
    }
    
    .legal-header h1 {
        color: #f1f5f9;
    }
    
    .legal-content {
        color: #cbd5e1;
    }
    
    .legal-content h2,
    .legal-content h3 {
        color: #f1f5f9;
    }
    
    .legal-content strong {
        color: #e2e8f0;
    }
    
    /* Testimonials */
    .testimonial-card {
        background: #1e293b;
        border-color: #334155;
    }
    
    .testimonial-text {
        color: #cbd5e1;
    }
    
    .testimonial-author {
        color: #94a3b8;
    }
    
    /* Progress bars */
    .progress-bar {
        background: #334155;
    }
    
    /* Links */
    a {
        color: #60a5fa;
    }
    
    a:hover {
        color: #93c5fd;
    }
    
    /* Borders and dividers */
    .border-bottom,
    .section-header::after {
        border-color: #334155;
    }
    
    /* Publication and citation sections */
    .publication-section,
    .citation-section {
        background: #1e293b;
        border-color: #334155;
    }
    
    /* Process steps */
    .process-step-number-inline {
        background: #3b82f6;
        color: white;
    }
    
    .process-step-text {
        color: #cbd5e1;
    }
    
    /* Service cards on homepage */
    .service-card {
        background: #1e293b;
        border-color: #334155;
    }
    
    .service-card h3 {
        color: #f1f5f9;
    }
    
    .service-card p {
        color: #cbd5e1;
    }
    
    /* About cards */
    .about-card {
        background: #1e293b;
        border-color: #334155;
    }
    
    .about-card h3 {
        color: #f1f5f9;
    }
    
    .about-card p {
        color: #cbd5e1;
    }
    
    /* Hero section - overlay for better text readability in dark mode */
    .home .questions-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.5); /* Dark overlay to improve text contrast */
        z-index: 1;
    }
    
    .home .questions-hero > * {
        position: relative;
        z-index: 2; /* Ensure content is above overlay */
    }
    
    .questions-title {
        color: #f1f5f9;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    }
    
    .question-card {
        background: rgba(30, 41, 59, 0.95);
        backdrop-filter: blur(10px);
    }
    
    /* Success stories section */
    .success-stories {
        background: #1e293b;
    }
    
    .success-stories h2 {
        color: #f1f5f9;
    }
    
    .testimonial-carousel {
        background: transparent;
    }
    
    /* Limited time offer badge */
    .limited-time-badge {
        background: linear-gradient(135deg, #f59e0b, #d97706);
        color: white;
    }
    
    /* Pricing badge */
    .pricing-badge {
        background: #334155;
        color: #cbd5e1;
    }
    
    /* Who We Are section */
    .who-we-are {
        background: transparent;
    }
    
    .who-we-are h2 {
        color: #f1f5f9;
    }
    
    .who-we-are p {
        color: #cbd5e1;
    }
    
    /* What We Offer section */
    .what-we-offer {
        background: transparent;
    }
    
    .what-we-offer h2 {
        color: #f1f5f9;
    }
    
    /* Field explanations and help text */
    .field-explanation {
        color: #94a3b8;
    }
    
    /* Error messages */
    .error-message {
        background: #7f1d1d;
        color: #fecaca;
        border-color: #dc2626;
    }
    
    /* Success messages */
    .success-message {
        background: #064e3b;
        color: #a7f3d0;
        border-color: #10b981;
    }
    
    /* Checkbox and radio buttons */
    input[type="checkbox"],
    input[type="radio"] {
        background: #0f172a;
        border-color: #334155;
    }
    
    input[type="checkbox"]:checked,
    input[type="radio"]:checked {
        background: #3b82f6;
        border-color: #3b82f6;
    }
    
    /* Select dropdowns */
    select {
        background: #0f172a;
        color: #f1f5f9;
    }
    
    select option {
        background: #1e293b;
        color: #f1f5f9;
    }
    
    /* Tables (if any) */
    table {
        border-color: #334155;
    }
    
    th {
        background: #1e293b;
        color: #f1f5f9;
        border-color: #334155;
    }
    
    td {
        background: #0f172a;
        color: #cbd5e1;
        border-color: #334155;
    }
    
    /* Code blocks (if any) */
    code, pre {
        background: #0f172a;
        color: #cbd5e1;
        border-color: #334155;
    }
    
    /* Blockquotes */
    blockquote {
        border-left-color: #60a5fa;
        background: #1e293b;
        color: #cbd5e1;
    }
    
    /* Additional common elements that might have white backgrounds */
    .card,
    .box,
    .panel,
    .content-box,
    .info-box,
    .alert,
    .notification {
        background: #1e293b !important;
        border-color: #334155 !important;
        color: #e2e8f0 !important;
    }
    
    /* Ensure buttons are visible */
    .btn {
        border-color: currentColor;
    }
    
    /* Override any inline styles with white backgrounds */
    [style*="background-color: white"],
    [style*="background-color: #fff"],
    [style*="background-color: #ffffff"],
    [style*="background: white"],
    [style*="background: #fff"],
    [style*="background: #ffffff"] {
        background-color: #1e293b !important;
        background: #1e293b !important;
    }
    
    /* Ensure images don't have white backgrounds showing */
    img:not(.brand-logo):not(.brand-logo-text) {
        opacity: 1;
    }
    
    /* Remove blurriness from text - ensure no filters cause blur */
    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Remove white text-shadows that cause blur on dark backgrounds */
    .questions-subtitle,
    .cta-text,
    .questions-title {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    }
    
    /* Override any remaining white text that should be light */
    .text-white {
        color: #f1f5f9 !important;
    }
    
    /* Ensure links are visible */
    a:not(.nav-link):not(.btn) {
        color: #60a5fa !important;
    }
    
    a:not(.nav-link):not(.btn):hover {
        color: #93c5fd !important;
    }
}

