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

/* Force Safari to use screen styles, not print */
@media screen {
    html {
        display: block !important;
    }
}

/* Prevent Safari from auto-triggering print styles */
html {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* Global SVG fix for Safari rendering issues */
svg {
    max-width: 100%;
    max-height: 100vh;
    height: auto;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #374151;
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Color Variables - Accrue Brand Colors */
:root {
    --color-primary: #002C4D;      /* Accrue Navy */
    --color-secondary: #3F759F;    /* Accrue Blue */
    --color-accent: #3AB1E9;       /* Bright Blue - replaced green */
    --color-bright-blue: #3AB1E9;  /* Bright Blue */
    --color-bright-yellow: #FCBC03; /* Bright Yellow */
    --color-burnt-orange: #D55400;  /* Burnt Orange */
    --color-text: #374151;         /* Charcoal Gray */
    --color-text-light: #6B7280;
    --color-background: #ffffff;
    --color-surface: #FBF7F1;      /* Tan from brand */
    --color-border: #E5E7EB;
    --color-success: #3AB1E9;      /* Bright Blue - replaced green */
    --color-warning: #FCBC03;      /* Yellow */
    --color-error: #D55400;        /* Burnt Orange */
    --color-info: #3AB1E9;         /* Bright Blue */
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary);
}

/* Discrete Back Link - FIXED POSITION */
.back-link {
    position: fixed;
    top: 120px;
    left: 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    opacity: 0.8;
    transition: all var(--transition-fast);
    cursor: pointer;
    z-index: 1000;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.back-link:hover {
    opacity: 1;
    color: var(--color-primary);
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(-2px);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-secondary);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.site-header {
    background-color: var(--color-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

/* Trust Bar */
.trust-bar {
    background-color: #3F759F; /* Fallback for CSS variable */
    background-color: var(--color-secondary);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff; /* Explicit color instead of 'white' */
    font-size: 0.875rem;
    font-weight: 500;
}

.trust-checkmark {
    color: #3AB1E9; /* Fallback for CSS variable */
    color: var(--color-bright-blue);
    flex-shrink: 0;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    min-height: 16px;
    max-width: 16px;
    max-height: 16px;
}

.navbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1.25rem 0;
}

.logo {
    display: flex;
    align-items: center;
    margin-left: 0; /* Remove negative margin to prevent cut-off */
}

.logo-img {
    height: clamp(32px, 4vw, 45px); /* Responsive height */
    width: auto;
    max-width: 250px; /* Prevent logo from getting too large */
    object-fit: contain;
}

/* Single logo for all screens */
@media (max-width: 768px) {
    /* Reduce header size on mobile */
    .navbar {
        padding: 0.75rem 0;
    }

    /* Reset logo position on mobile to be visible */
    .logo {
        margin-left: 0 !important;
    }

    .logo-img {
        height: 32px;
        max-width: 90vw; /* Prevent overflow on small screens */
    }

    /* Hide "No Upfront Fees" on mobile */
    .trust-item-hide-mobile {
        display: none;
    }

    /* Reduce trust bar spacing on mobile */
    .trust-items {
        gap: 0.75rem;
        flex-wrap: nowrap;
        justify-content: space-evenly;
    }

    .trust-item {
        font-size: 0.7rem;
        white-space: nowrap;
    }

    /* Adjust trust bar size for mobile */
    .trust-bar {
        padding: 0.5rem 0;
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: flex-end;
}

.nav-link:first-child {
    margin-right: auto;
}

.btn-sales {
    background: #D65400;
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(214, 84, 0, 0.25);
}

.btn-sales:hover {
    background: #FCBC03;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(252, 188, 3, 0.35);
}

.nav-link:nth-child(2) {
    margin: 0 auto;
}

.nav-link:last-child {
    margin-left: auto;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-secondary);
}

/* Main Content */
/* Main content - works as both div and form element */
.main-content,
form.main-content {
    flex: 1;
    padding: 2rem 0;
    background-color: #f0f4f8;
    /* Remove default form styling */
    margin: 0;
    border: none;
    display: block;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
    background: transparent;
    margin-bottom: 3rem;
    position: relative;
    min-height: 600px;
    height: auto;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Safari-only: Reduce hero height since logo scroller is hidden */
@supports (-webkit-hyphens:none) {
    .hero {
        min-height: 400px;
        padding: 2rem 0;
    }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.urgency-banner {
    display: inline-block;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: subtle-pulse 2s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.hero-title {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 2.75rem;
    line-height: 1.2;
}

.highlight-amount {
    color: var(--color-accent);
    font-weight: 700;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-time {
    color: var(--color-secondary);
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    text-align: center;
}

/* Progress Bar */
.progress-container {
    margin-top: 1.5rem; /* Spacing above progress bar */
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    width: 10%;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: var(--radius-lg);
    transition: width var(--transition-slow);
}

.progress-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-weight: 500;
}

/* Quiz Container */
.quiz-container {
    margin-bottom: 3rem;
    height: 600px;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.quiz-card {
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    flex: 1;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.quiz-header {
    padding: 0 0 0.5rem 0;
    background: transparent;
    color: var(--color-text);
    text-align: center;
}

.quiz-title {
    color: var(--color-text);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.quiz-title strong {
    font-weight: bold;
}

.quiz-title em {
    font-style: italic;
}

@media (max-width: 768px) {
    .quiz-title {
        font-size: 1.75rem;
    }
    
    .quiz-description {
        font-size: 1.125rem;
    }
}

.quiz-description {
    color: #6b7280;
    margin-bottom: 0;
    font-size: 1.125rem;
}

.quiz-body {
    padding: 0.5rem 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.question-placeholder {
    text-align: center;
    color: var(--color-text-light);
    padding: 3rem 0;
}

.quiz-footer {
    padding: 0.5rem 0;
    background-color: transparent;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 0;
}

/* Results Section */
.results-section {
    margin-bottom: 3rem;
}

.results-section.hidden {
    display: none;
}

.results-card {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.results-header {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    text-align: center;
    border-bottom: 2px solid var(--color-border);
}

.results-title {
    color: var(--color-text);
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.results-subtitle {
    color: var(--color-text-light);
    margin-bottom: 0;
    font-size: 1.125rem;
}

.results-body {
    padding: 2rem;
    min-height: 200px;
}

.results-placeholder {
    text-align: center;
    color: var(--color-text-light);
    padding: 3rem 0;
}

.results-footer {
    padding: 1.5rem 2rem;
    background-color: var(--color-surface);
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 120px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #162e67;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #ea6607;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Employee Range Buttons */
.employee-button-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
    touch-action: manipulation;
}

.btn-employee-range {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid var(--color-primary);
    background-color: white;
    color: var(--color-primary);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

/* Only apply hover effects on devices that support hover (not touch devices) */
@media (hover: hover) and (pointer: fine) {
    .btn-employee-range:hover {
        background-color: var(--color-primary);
        color: white;
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }
}

/* Active state for immediate feedback on tap (used on all devices) */
.btn-employee-range:active {
    background-color: var(--color-primary);
    color: white;
    transform: scale(0.98);
}

.btn-employee-range.selected {
    background-color: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .employee-button-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .employee-button-grid {
        grid-template-columns: 1fr;
        max-width: 250px;
    }
}

/* Industry Cards */
.industry-card-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(150px, 180px));
    gap: 0.75rem;
    margin: 0 auto;
    justify-content: center;
}

.industry-card {
    padding: 0.5rem 0.5rem;
    background-color: white;
    border: 2px solid #002c4d;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
}

.industry-card:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.industry-card.selected {
    border-color: var(--color-primary);
    background-color: #e8f0ff;
}

.industry-card.selected .industry-icon {
    transform: scale(1.05);
}

.industry-card.selected .industry-name {
    color: var(--color-primary);
    font-weight: 700;
}

/* Other card - thinner and spans entire row */
.industry-card:nth-child(13) {
    grid-column: 1 / 7;
    padding: 0.5rem 0.75rem;
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
}

.industry-icon {
    font-size: 1.75rem;
    transition: transform 0.3s ease;
}

.industry-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: transform 0.3s ease;
    margin-bottom: 0.5rem;
}

.industry-card:hover .industry-icon-img {
    transform: scale(1.05);
}

.industry-card.selected .industry-icon-img {
    transform: scale(1.1);
}

.industry-card:nth-child(13) .industry-icon {
    font-size: 1.5rem;
}

.industry-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
}

@media (max-width: 1024px) {
    .industry-card-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .industry-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0 0.5rem;
        max-width: 100%;
    }

    .industry-card {
        padding: 0.75rem 0.5rem;
        min-height: 100px;
    }

    .industry-icon {
        font-size: 1.25rem;
    }

    .industry-icon-img {
        width: 36px;
        height: 36px;
        margin-bottom: 0.4rem;
    }

    .industry-name {
        font-size: 0.8rem;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .industry-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0;
        max-width: 100%;
        width: 100%;
    }

    .industry-card {
        padding: 0.65rem 0.4rem;
        min-height: 90px;
    }

    .industry-icon {
        font-size: 1rem;
    }

    .industry-icon-img {
        width: 32px;
        height: 32px;
        margin-bottom: 0.3rem;
    }

    .industry-name {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    /* Make the "Other" card span full width but smaller */
    .industry-card:nth-child(13) {
        grid-column: 1 / 3;
        padding: 0.65rem 0.5rem;
    }
}

/* Credit Definitions Section */
.credit-definitions-section {
    padding: 3rem 0;
    background-color: #ffffff;
    border-radius: 20px;
}

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

.definitions-title {
    text-align: center;
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    font-weight: 600;
}

.credit-definitions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.credit-definition-card {
    background: white;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.credit-definition-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 12px rgba(63, 117, 160, 0.15);
    transform: translateY(-2px);
}

.definition-header {
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f8fbfd 0%, #ffffff 100%);
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.definition-title {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1rem;
    text-align: center;
    width: 100%;
}

.definition-content {
    padding: 1rem 1.25rem;
    flex: 1;
    display: flex;
    align-items: center;
}

.definition-content p {
    color: var(--color-text);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 1024px) {
    .credit-definitions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .credit-definitions-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .definition-header {
        padding: 0.75rem 1rem;
    }
    
    .definition-content {
        padding: 0.75rem 1rem;
    }
    
    .definition-title {
        font-size: 0.95rem;
    }
    
    .definition-content p {
        font-size: 0.8rem;
    }
}

/* Info Section */
.info-section {
    padding: 3rem 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-card {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-base);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-secondary);
}

.info-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--color-secondary);
}

.info-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.info-description {
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* Sales CTA Section */
.sales-cta-section {
    background: white;
    padding: 4rem 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sales-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.sales-cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.sales-cta-subtitle {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.sales-cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cta-feature {
    color: var(--color-success);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-sales-cta {
    background: #3AB1E9;
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(58, 177, 233, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-sales-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(58, 177, 233, 0.4);
    background: #2a9dd4;
}

.sales-cta-disclaimer {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-style: italic;
}

.underline-text {
    position: relative;
    display: inline-block;
    font-weight: 600;
}

.underline-text::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: -5%;
    width: 110%;
    height: 3px;
    background: linear-gradient(90deg, #D65400 0%, #FCBC03 100%);
    border-radius: 50%;
    transform: scaleX(1.05);
    animation: underlineWave 3s ease-in-out infinite;
}

@keyframes underlineWave {
    0%, 100% {
        transform: scaleX(1.05) translateY(0);
    }
    50% {
        transform: scaleX(1.1) translateY(-2px);
    }
}

/* Footer */
.site-footer {
    background-color: var(--color-primary);
    color: white;
    padding: 3rem 0;
    margin-top: 0;
}

.footer-simple {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-logo-simple {
    height: clamp(32px, 4vw, 45px); /* Responsive height */
    width: auto;
    max-width: 250px; /* Prevent logo from getting too large */
    object-fit: contain;
    margin-left: 0; /* Remove negative margin to prevent cut-off */
}

/* Single footer logo for all screens */
@media (max-width: 768px) {
    /* Reduce footer logo size on mobile */
    .footer-logo-simple {
        height: 32px;
        margin-left: 0 !important; /* Reset negative margin on mobile to match header */
        max-width: 90vw; /* Prevent overflow on small screens */
    }
}

.btn-footer-cta {
    background: #D65400;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-footer-cta:hover {
    background: #FCBC03;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(214, 84, 0, 0.3);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    padding: 0 1rem;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}

.footer-section:nth-child(2) {
    text-align: center;
}

.footer-section:nth-child(2) .footer-links {
    display: inline-block;
    text-align: left;
}

.footer-title {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-sales-link {
    color: #D65400;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-sales-link:hover {
    color: #FCBC03;
    text-decoration: underline;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.disclaimer {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Form Elements */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Compact form styles for Step 2 */
.form-input.compact {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.compact-form-container {
    max-width: 500px;
    margin: 0 auto;
}

.compact-form-container .form-row-inline {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.compact-form-container .form-row-inline .form-input {
    flex: 1;
    margin-bottom: 0;
}

.compact-form-container .form-row {
    margin-bottom: 0.75rem;
}

/* Inline form styles matching the reference design */
.inline-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

.inline-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.inline-form-row {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.inline-field-group {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.inline-field-group.full-width {
    width: 100%;
}

.required-asterisk {
    color: var(--color-secondary);
    font-size: 1.2rem;
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 10;
    pointer-events: none;
}

.inline-form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-text);
    background-color: #f8f9fa;
    transition: var(--transition-base);
    box-shadow: none;
}

.inline-form-input:focus {
    outline: none;
    border-color: var(--color-secondary);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(63, 117, 160, 0.1);
}

.inline-form-input.error {
    border-color: var(--color-error);
    background-color: rgba(239, 68, 68, 0.05);
}

.inline-form-input.error:focus {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.inline-form-input::placeholder {
    color: #9ca3af;
}

.validation-message {
    color: var(--color-secondary);
    font-size: 0.95rem;
    text-align: center;
    margin: 0.5rem 0 0 0;
}

@media (max-width: 768px) {
    .inline-form-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .inline-field-group {
        width: 100%;
    }
}

/* High-Converting Results Page Styles */
.urgency-box {
    background: linear-gradient(135deg, #fee2e2 0%, #fef3c7 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2); }
    50% { box-shadow: 0 4px 30px rgba(245, 158, 11, 0.4); }
}

.urgency-box h3 {
    color: #dc2626;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.daily-loss {
    font-size: 1.4rem;
    color: #dc2626;
    font-weight: 700;
    margin: 0.5rem 0;
}

.deadline-warning {
    font-size: 1.1rem;
    color: #784100;
    margin-top: 0.5rem;
    font-weight: 600;
}

.social-proof-section {
    background: #f0f9ff;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid #e0f2fe;
}

.social-proof-section h3 {
    color: #1e40af;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.proof-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
    display: block;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
}

.live-viewers {
    background: linear-gradient(90deg, #fef3c7 0%, #fde68a 100%);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem auto;
    font-weight: 600;
    color: #92400e;
    animation: pulse 2s infinite;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #dc2626;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.primary-cta {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 1.5rem 3rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    display: block;
    margin: 2rem auto;
    animation: ctaPulse 3s ease-in-out infinite;
}

.primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

@keyframes ctaPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.risk-reversal {
    text-align: center;
    padding: 1.5rem;
    background: #f0fdf4;
    border: 2px dashed #009C53;
    border-radius: 12px;
    margin: 2rem 0;
}

.risk-reversal h4 {
    color: #16a34a;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.risk-reversal h4::before {
    content: "✓";
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #16a34a;
    color: white;
    border-radius: 50%;
    line-height: 24px;
    text-align: center;
    font-weight: bold;
}

.risk-reversal p {
    color: #15803d;
    font-size: 1rem;
    margin: 0.5rem 0;
}

.risk-reversal ul {
    text-align: left;
    max-width: 400px;
    margin: 1rem auto 0;
    color: #166534;
}

.risk-reversal li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.risk-reversal li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: bold;
}

/* Course Card Styling */
.course-card {
    background: var(--color-primary);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.offer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(173, 216, 230, 0.2);
    color: #b3d9f2;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.course-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    position: relative;
}

.course-title-large {
    color: white;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 2rem;
    margin-top: 0;
    position: relative;
    text-align: left;
}

.title-line-1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    display: inline-block;
}

.title-line-2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    text-transform: none;
}

.title-line-3 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-accent);
    text-transform: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.title-line-3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-bright-blue) 100%);
    border-radius: 2px;
    animation: underlineGlow 2s ease-in-out infinite;
}

@keyframes underlineGlow {
    0%, 100% { opacity: 1; transform: scaleX(1); }
    50% { opacity: 0.9; transform: scaleX(1.05); }
}

.highlight-yellow {
    color: var(--color-accent);
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.course-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    position: relative;
}

.course-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: white;
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.feature-subtitle {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Pricing Section Styles */
.pricing-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.price-showcase {
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.1) 0%, rgba(255, 255, 255, 0.2) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 1rem;
    position: relative;
    text-align: center;
    backdrop-filter: blur(10px);
}

.diagonal-price {
    position: absolute;
    top: -15px;
    right: 20px;
    transform: rotate(12deg);
    background: white;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.diagonal-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #9ca3af;
    position: relative;
    z-index: 1;
}

.diagonal-slash {
    position: absolute;
    top: 50%;
    left: -10%;
    right: -10%;
    height: 4px;
    background: #ef4444;
    transform: translateY(-50%) rotate(-15deg);
    z-index: 3;
    border-radius: 2px;
}

.free-price-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    height: auto;
    min-height: auto;
    max-height: 140px;
}

.free-price-huge {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    background: rgba(58, 177, 233, 0.25);
    padding: 1rem 6rem;
    border-radius: 15px;
    text-shadow: 0 2px 4px rgba(58, 177, 233, 0.3);
    animation: subtleGlow 3s ease-in-out infinite;
    letter-spacing: -2px;
    display: block;
    line-height: 0.9;
    width: auto;
    text-align: center;
    margin: 0 auto;
}

@keyframes subtleGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(74, 222, 128, 0.5),
                    0 0 20px rgba(74, 222, 128, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(74, 222, 128, 0.8),
                    0 0 30px rgba(74, 222, 128, 0.5),
                    0 0 40px rgba(74, 222, 128, 0.3);
    }
}

.price-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.btn-course-cta {
    width: 100%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-bright-blue));
    color: var(--color-primary);
    font-size: 1.4rem;
    font-weight: 800;
    padding: 1.75rem 2.5rem;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 250ms ease-in-out;
    box-shadow: 0 8px 24px rgba(91, 222, 108, 0.3),
                0 4px 12px rgba(91, 222, 108, 0.2);
    position: relative;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-course-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(91, 222, 108, 0.4),
                0 6px 16px rgba(91, 222, 108, 0.3);
    background: linear-gradient(135deg, var(--color-bright-blue), var(--color-accent));
}

.course-testimonial {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    position: relative;
}

.testimonial-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.testimonial-text strong {
    color: #009C53;
    font-weight: 700;
}

.testimonial-author {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Video Placeholder */
.video-placeholder {
    margin: 2rem 0;
    position: relative;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-container:hover {
    transform: scale(1.02);
}

/* Ebook Image Placeholder */
.ebook-placeholder {
    margin: 2rem 0;
    position: relative;
}

.ebook-container {
    position: relative;
    width: 100%;
    max-width: 286px;
    margin: 0 auto;
}

.ebook-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ebook-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Show desktop image by default, hide mobile */
.ebook-image-desktop {
    display: block;
}

.ebook-image-mobile {
    display: none;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: transform 0.3s ease;
}

.video-container:hover .play-button-overlay {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-icon {
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-top: 1.5rem;
}

.indicator-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 600;
}

.indicator-icon {
    font-size: 1.2rem;
    color: #3b82f6;
}

/* ===== SECONDARY RESULTS SECTION ===== */
.secondary-results-section {
    margin: 0;
    padding: 2rem;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Clean Results Header - Desktop (Original Design) */
.results-clean-header {
    padding: 3rem 2rem 3rem 2rem;
    text-align: left;
    background: #002C4D;
    border: none;
    border-radius: 20px;
    margin: 0 0 1.5rem 0;
}

.results-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin: 0;
    text-align: left;
}

.amount-highlight {
    color: var(--color-accent);
    font-weight: 800;
    font-size: 4.5rem;
    display: block;
    text-shadow: none;
    margin: 0.5rem 0;
}

.credits-subtitle {
    display: block;
    font-size: 2.5rem;
    font-weight: 600;
    margin-top: -0.5rem;
    color: white;
}

/* Results Breakdown Card */
.results-breakdown-card {
    background: white;
    margin: 0;
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: none;
    overflow: hidden;
}

.breakdown-title {
    background: #002C4D;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1.25rem;
    border-radius: 20px 20px 0 0;
    margin: 0 0 2rem 0;
    text-align: center;
    border-radius: 20px 20px 0 0;
}

.credits-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 1rem;
    padding: 0 2rem 0.5rem 2rem;
}

.credit-item {
    position: relative;
}

.credit-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.credit-item-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #002C4D;
}

.credit-item-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.credit-item-description {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.credit-progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.credit-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3AB1E9 0%, #009C53 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Additional Credits CTA Section */
.additional-credits-cta {
    background: white;
    border: 2px solid var(--color-accent);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.additional-credits-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.additional-badge {
    display: inline-block;
    background: #f9d863;
    color: #1a3a52;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.additional-headline {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a3a52;
    margin: 0 0 0.75rem 0;
    position: relative;
    z-index: 1;
}

.additional-subtext {
    font-size: 1.1rem;
    color: #4b5563;
    margin: 0 0 1.5rem 0;
    position: relative;
    z-index: 1;
}

.additional-subtext strong {
    color: #009C53;
    font-weight: 700;
    font-size: 1.2rem;
}

.additional-cta-button {
    background: #e67e22;
    color: white;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
    position: relative;
    z-index: 1;
}

.additional-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
    background: #d35400;
}

/* Total Section */
.total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-top: 2px solid #002C4D;
    margin: 0 1rem 0 1rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.total-label {
    font-size: 1.3rem;
    font-weight: 600;
    color: #002C4D;
    flex: 0;
    white-space: nowrap;
}

.total-amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-accent);
    text-align: right;
    white-space: nowrap;
}

.split-screen-container {
    display: flex;
    gap: 2rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    justify-content: center;
    align-items: stretch;
}

.results-column {
    flex: 1;
    max-width: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(26, 58, 82, 0.08),
                0 3px 8px rgba(26, 58, 82, 0.04),
                0 1px 2px rgba(26, 58, 82, 0.02);
    overflow: visible;
    height: fit-content;
    border: none;
    position: relative;
}

.course-column {
    flex: 1.5;
    max-width: 700px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: fit-content;
}

.secondary-results-header {
    background: #002c4d;
    color: white;
    padding: 2rem 2rem 2.5rem;
    text-align: center;
    position: relative;
    border-radius: 20px 20px 0 0;
}


.success-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.success-icon {
    background: var(--color-success);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.success-text {
    font-weight: 500;
    font-size: 0.875rem;
}

.secondary-results-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.secondary-results-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    color: white;
}

.secondary-total-amount {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.secondary-total-amount .currency-symbol {
    font-size: 2.2rem;
    font-weight: 600;
    vertical-align: top;
    margin-right: 0.25rem;
}

.secondary-total-amount .amount-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.secondary-total-amount .amount-label {
    font-size: 1.25rem;
    opacity: 0.95;
    font-weight: 500;
}

.secondary-results-body {
    padding: 2.5rem;
}

/* Credit Cards Grid */
.credit-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.secondary-credit-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.secondary-credit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.secondary-credit-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-secondary);
}

.secondary-credit-card.zero-amount {
    opacity: 0.6;
    background: #f9f9f9;
}

.secondary-credit-card.zero-amount::before {
    background: #d1d5db;
}

.credit-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.credit-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
    flex: 1;
}

.credit-card-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-align: right;
}

.credit-card-amount.zero {
    color: #9ca3af;
}

.credit-card-description {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.4;
}

/* Secondary Retroactive Section */
.secondary-retroactive-section {
    background: linear-gradient(135deg, #fef7ed 0%, #fed7aa 100%);
    border: 2px solid #f97316;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.retroactive-highlight .retroactive-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.retroactive-highlight .retroactive-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ea580c;
    margin-bottom: 0.5rem;
}

.retroactive-highlight .retroactive-description {
    font-size: 1rem;
    color: var(--color-text);
    margin: 0;
}

/* Secondary CTA Section */
.secondary-cta-section {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
    margin-top: 2rem;
}

.secondary-cta-section .btn {
    margin: 0 0.5rem 1rem 0.5rem;
    min-width: 200px;
}

.secondary-disclaimer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.secondary-disclaimer p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.5;
}

/* Mobile Responsiveness for Results Page */
@media (max-width: 768px) {
    .split-screen-container {
        flex-direction: column;
        padding: 0;
        min-height: auto;
    }
    
    .results-column,
    .course-column {
        flex: 1 1 100%;
        width: 100%;
        padding: 1.5rem 1rem;
        min-height: auto;
    }
    
    /* Results Column Mobile */
    .results-content {
        padding: 1.5rem 1rem;
    }
    
    .results-header {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .results-header h1 {
        font-size: 1.75rem;
        line-height: 1.2;
        word-wrap: break-word;
    }
    
    .results-amount {
        font-size: 2.5rem;
        margin: 1rem 0;
        word-wrap: break-word;
    }
    
    .results-subtitle {
        font-size: 1rem;
        line-height: 1.4;
        padding: 0 0.5rem;
    }
    
    /* Credit Cards Mobile */
    .credit-cards-container {
        padding: 0.5rem;
        gap: 1rem;
    }
    
    .credit-card {
        padding: 1.25rem 1rem;
        margin-bottom: 0.75rem;
    }
    
    .credit-header {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .credit-name {
        font-size: 1rem;
        line-height: 1.3;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .credit-amount {
        font-size: 1.25rem;
        white-space: nowrap;
    }
    
    .credit-description {
        font-size: 0.875rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }
    
    .credit-eligibility {
        padding: 0.75rem;
        font-size: 0.75rem;
    }
    
    .total-card {
        padding: 1.5rem 1rem;
        margin-top: 1rem;
    }
    
    .total-label {
        font-size: 1rem;
    }
    
    .total-amount {
        font-size: 2rem;
    }
    
    /* Course Column Mobile */
    .course-card {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }
    
    .course-title {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }
    
    .course-title-large {
        font-size: 2rem;
        line-height: 1.15;
        margin-bottom: 1.5rem;
    }
    
    .title-line-1 {
        font-size: 1.75rem;
    }
    
    .title-line-2,
    .title-line-3 {
        font-size: 2rem;
    }
    
    .course-description {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .course-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-item {
        padding: 0.5rem 0;
    }
    
    .feature-icon {
        font-size: 1.25rem;
    }
    
    /* Pricing Mobile */
    .price-showcase {
        padding: 2rem 1rem;
        margin-bottom: 1rem;
    }
    
    .diagonal-price {
        top: -10px;
        right: 10px;
        padding: 0.4rem 1rem;
    }
    
    .diagonal-amount {
        font-size: 1.75rem;
    }
    
    .free-price-huge {
        font-size: 3rem;
        padding: 0.75rem 3rem;
    }
    
    /* CTA Buttons Mobile */
    .btn-course-cta {
        font-size: 1.1rem;
        padding: 1.25rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .primary-cta {
        font-size: 1.1rem;
        padding: 1.25rem 1.5rem;
        width: 100%;
        word-wrap: break-word;
    }
    
    /* Video Container Mobile */
    .video-container {
        border-radius: 12px;
    }
    
    .placeholder-text {
        font-size: 1.2rem;
    }
    
    /* Trust & Social Proof Mobile */
    .urgency-box {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .daily-loss {
        font-size: 1.25rem;
    }
    
    .proof-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .social-proof-section {
        padding: 1.25rem;
        margin: 1rem 0;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .indicator-item {
        font-size: 0.85rem;
    }
    
    /* Risk Reversal Mobile */
    .risk-reversal {
        max-width: 100%;
        margin: 1rem 0;
        font-size: 0.875rem;
    }

    .risk-reversal li {
        margin: 0.4rem 0;
        padding-left: 1.25rem;
    }

    /* Secondary Results Section Mobile - SINGLE COLUMN, CLEAN */
    .secondary-results-section {
        padding: 0;
        min-height: auto;
        background: transparent;
    }

    .results-clean-header {
        padding: 0.75rem 1rem;
        margin: 0 0 0.5rem 0;
        border-radius: 0;
        background: #f5f5f5 !important;
    }

    .results-main-title {
        font-size: 0.95rem;
        line-height: 1.5;
        font-weight: 400;
        color: #2d3748 !important;
    }

    .amount-highlight {
        font-size: 0.95rem;
        display: inline;
        margin: 0;
        font-weight: 600;
        color: #f97316 !important;
    }

    .credits-subtitle {
        font-size: 0.95rem;
        display: inline;
        margin: 0;
        font-weight: 400;
        color: #2d3748 !important;
    }

    .results-breakdown-card {
        border-radius: 8px;
        margin: 0 0 0.75rem 0;
    }

    .breakdown-title {
        font-size: 0.85rem;
        padding: 0.5rem;
        margin: 0 0 0.5rem 0;
        border-radius: 8px 8px 0 0;
    }

    .credits-list {
        gap: 0.5rem;
        padding: 0 0.75rem 0.35rem 0.75rem;
        margin-bottom: 0.35rem;
    }

    .credit-item {
        margin-bottom: 0.35rem;
    }

    .credit-item-header {
        margin-bottom: 0.25rem;
    }

    .credit-item-name {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .credit-item-amount {
        font-size: 0.95rem;
    }

    .credit-item-description {
        display: none; /* Hide descriptions on mobile to save space */
    }

    .credit-progress-bar {
        height: 3px;
        margin-top: 0.15rem;
    }

    .total-section {
        padding: 0.5rem 0.75rem;
        margin: 0 0.35rem 0 0.35rem;
    }

    .total-label {
        font-size: 0.85rem;
    }

    .total-amount {
        font-size: 1.25rem;
    }

    .split-screen-container {
        flex-direction: column !important; /* SINGLE COLUMN */
        padding: 0;
        gap: 0.75rem;
    }

    .results-column {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        border-radius: 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
        order: 1; /* Show results FIRST on mobile */
        margin: 0;
    }

    .course-column {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        padding: 0;
        order: 2; /* Show ebook BELOW results on mobile */
    }

    .course-card {
        padding: 0.75rem;
        margin: 0;
        background: transparent !important;
        border-radius: 0;
        box-shadow: none;
        display: flex;
        flex-direction: column;
    }

    .course-title-large {
        display: none; /* Hide title on mobile to save space */
    }

    .title-line-1, .title-line-2, .title-line-3 {
        display: none;
    }

    .ebook-placeholder {
        margin: 0.5rem 0;
        order: 2; /* Show image AFTER button */
    }

    .ebook-container {
        max-width: 100%;
        margin: 0 auto;
    }

    /* Swap to mobile image on mobile screens */
    .ebook-image-desktop {
        display: none !important;
    }

    .ebook-image-mobile {
        display: block !important;
    }

    .btn-course-cta {
        font-size: 0.875rem;
        padding: 0.75rem 1.25rem;
        width: 100%;
        font-weight: 700;
        margin-bottom: 0.5rem;
        order: 1; /* Show button BEFORE image */
    }

    /* Hide Opportunity Alert on mobile */
    .additional-credits-cta {
        display: none !important;
    }

    .results-back-button-container {
        margin-bottom: 0.75rem;
    }

    .btn-back-to-quiz {
        font-size: 0.85rem;
        padding: 0.5rem 0.85rem;
    }
}

/* Extra Small Screens (phones in portrait) */
@media (max-width: 480px) {
    /* Header Mobile */
    .header {
        padding: 0.75rem 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    /* Results Page Mobile */
    .results-column,
    .course-column {
        padding: 1rem 0.75rem;
    }
    
    .results-content {
        padding: 1rem 0.75rem;
    }
    
    .results-header {
        padding: 0.75rem;
        border-radius: 12px;
    }
    
    .results-header h1 {
        font-size: 1.5rem;
        line-height: 1.15;
    }
    
    .results-amount {
        font-size: 2rem;
        margin: 0.75rem 0;
        overflow-wrap: break-word;
    }
    
    .results-subtitle {
        font-size: 0.9rem;
        padding: 0;
    }
    
    /* Credit Cards Extra Small */
    .credit-cards-container {
        padding: 0.25rem;
        gap: 0.75rem;
    }
    
    .credit-card {
        padding: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .credit-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .credit-name {
        font-size: 0.95rem;
        width: 100%;
    }
    
    .credit-amount {
        font-size: 1.1rem;
    }
    
    .credit-description {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .credit-eligibility {
        padding: 0.5rem;
        font-size: 0.7rem;
    }
    
    .total-card {
        padding: 1.25rem 0.75rem;
    }
    
    .total-amount {
        font-size: 1.75rem;
    }
    
    /* Course Card Extra Small */
    .course-card {
        padding: 1.25rem 0.75rem;
        border-radius: 12px;
    }
    
    .offer-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
        margin-bottom: 1rem;
    }
    
    .course-title-large {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .title-line-1 {
        font-size: 1.4rem;
    }
    
    .title-line-2,
    .title-line-3 {
        font-size: 1.5rem;
    }
    
    .course-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .feature-item {
        gap: 0.5rem;
    }
    
    .feature-icon {
        font-size: 1rem;
    }
    
    .feature-item strong {
        font-size: 0.95rem;
    }
    
    .feature-subtitle {
        font-size: 0.75rem;
    }
    
    /* Pricing Extra Small */
    .price-showcase {
        padding: 1.5rem 0.75rem;
    }
    
    .diagonal-price {
        display: none; /* Hide on very small screens */
    }
    
    .free-price-huge {
        font-size: 2.5rem;
        padding: 0.5rem 2rem;
    }
    
    /* Buttons Extra Small */
    .btn-course-cta {
        font-size: 1rem;
        padding: 1rem 1.25rem;
        border-radius: 12px;
    }
    
    .primary-cta {
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }
    
    .btn-back {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    /* Video Extra Small */
    .video-container {
        border-radius: 8px;
    }
    
    .placeholder-text {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    /* Social Proof Extra Small */
    .urgency-box {
        padding: 0.75rem;
        margin: 0.75rem 0;
    }
    
    .urgency-title {
        font-size: 0.9rem;
    }
    
    .daily-loss {
        font-size: 1.1rem;
    }
    
    .proof-stats {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .social-proof-section {
        padding: 1rem;
    }
    
    .social-proof-header h3 {
        font-size: 1.1rem;
    }
    
    .testimonial-text {
        font-size: 0.85rem;
    }
    
    .testimonial-author {
        font-size: 0.8rem;
    }
    
    /* Trust Indicators Extra Small */
    .trust-indicators {
        padding: 0.75rem;
    }
    
    .indicator-item {
        font-size: 0.8rem;
        gap: 0.3rem;
    }
    
    .indicator-icon {
        font-size: 1rem;
    }
    
    /* Risk Reversal Extra Small */
    .risk-reversal {
        font-size: 0.8rem;
    }

    .risk-reversal li {
        margin: 0.3rem 0;
        padding-left: 1rem;
    }

    /* Secondary Results Section Extra Small - SINGLE COLUMN, CLEAN */
    .secondary-results-section {
        padding: 0;
        background: transparent;
    }

    .results-clean-header {
        padding: 0.75rem 1rem;
        margin: 0 0 0.5rem 0;
        border-radius: 0;
        background: #f5f5f5 !important;
    }

    .results-main-title {
        font-size: 1rem;
        line-height: 1.75;
        font-weight: 400;
        color: #2d3748 !important;
    }

    .amount-highlight {
        font-size: 1rem;
        display: inline;
        margin: 0;
        font-weight: 400;
        color: #f97316 !important;
    }

    .credits-subtitle {
        font-size: 1rem;
        display: inline;
        margin: 0;
        font-weight: 400;
        color: #2d3748 !important;
    }

    .results-breakdown-card {
        border-radius: 10px;
        margin: 0 0 0.85rem 0;
    }

    .breakdown-title {
        font-size: 0.9rem;
        padding: 0.65rem;
        margin: 0 0 0.65rem 0;
        border-radius: 10px 10px 0 0;
    }

    .credits-list {
        gap: 0.65rem;
        padding: 0 0.85rem 0.4rem 0.85rem;
        margin-bottom: 0.4rem;
    }

    .credit-item-name {
        font-size: 0.8rem;
    }

    .credit-item-amount {
        font-size: 1rem;
    }

    .credit-item-description {
        display: none; /* Hide on small screens */
    }

    .total-section {
        padding: 0.65rem 0.85rem;
        margin: 0 0.4rem 0 0.4rem;
    }

    .total-label {
        font-size: 0.8rem;
    }

    .total-amount {
        font-size: 1.35rem;
    }

    .split-screen-container {
        flex-direction: column !important; /* SINGLE COLUMN */
        padding: 0;
        gap: 0.5rem;
    }

    .results-column {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        padding: 0;
        margin: 0;
        order: 1; /* Show results FIRST on mobile */
    }

    .course-column {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        padding: 0;
        order: 2; /* Show ebook BELOW results on mobile */
    }

    .course-card {
        padding: 0.65rem;
        margin: 0;
        background: transparent !important;
        border-radius: 0;
        box-shadow: none;
        display: flex;
        flex-direction: column;
    }

    .course-title-large {
        display: none; /* Hide title on mobile to save space */
    }

    .title-line-1, .title-line-2, .title-line-3 {
        display: none;
    }

    .ebook-placeholder {
        margin: 0.4rem 0;
        order: 2; /* Show image AFTER button */
    }

    .ebook-container {
        max-width: 100%;
        margin: 0 auto;
    }

    /* Swap to mobile image on mobile screens */
    .ebook-image-desktop {
        display: none !important;
    }

    .ebook-image-mobile {
        display: block !important;
    }

    .btn-course-cta {
        font-size: 0.8rem;
        padding: 0.65rem 1rem;
        width: 100%;
        font-weight: 700;
        margin-bottom: 0.4rem;
        order: 1; /* Show button BEFORE image */
    }

    /* Hide Opportunity Alert on mobile */
    .additional-credits-cta {
        display: none !important;
    }

    .credit-progress-bar {
        height: 3px;
    }

    .results-back-button-container {
        margin-bottom: 0.65rem;
    }

    .btn-back-to-quiz {
        font-size: 0.75rem;
        padding: 0.45rem 0.75rem;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .split-screen-container {
        flex-direction: column !important; /* Keep single column even in landscape */
    }

    .results-column {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        max-height: none;
        order: 1; /* Show results FIRST on mobile */
    }

    .course-column {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        max-height: none;
        order: 2; /* Show ebook BELOW results on mobile */
    }

    .results-header h1 {
        font-size: 1.5rem;
    }

    .results-amount {
        font-size: 2rem;
    }

    .course-title-large {
        display: none;
    }

    .btn-course-cta {
        width: 100%;
    }

    /* Hide Opportunity Alert on mobile */
    .additional-credits-cta {
        display: none !important;
    }
}

/* Error States */
.form-input.input-error,
.form-select.input-error {
    border-color: var(--color-error);
    background-color: rgba(239, 68, 68, 0.05);
}

.form-input.input-error:focus,
.form-select.input-error:focus {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.radio-group.error {
    padding: 0.5rem;
    border: 2px solid var(--color-error);
    border-radius: var(--radius-md);
    background-color: rgba(239, 68, 68, 0.05);
}

.error-message {
    color: var(--color-error);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
    animation: slideDown 0.2s ease-out;
}

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

.form-input-large {
    font-size: 1.25rem;
    padding: 1rem 1.25rem;
    text-align: center;
}

.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background-color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-slider {
    width: 100%;
    margin: 1rem 0;
}

.slider-value {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* Input Groups */
.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
}

.input-help-text {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
}

.help-text {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* Radio and Checkbox Groups */
.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.75rem;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
}

.radio-label input[type="radio"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.checkbox-item {
    padding: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    background-color: white;
    user-select: none;
    position: relative;
    min-height: 80px;
    display: flex;
    align-items: center;
}

.checkbox-item label {
    pointer-events: none; /* Prevent label from intercepting clicks */
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

.checkbox-item:hover {
    border-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background-color: rgba(63, 117, 160, 0.05);
}

.checkbox-item.selected {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.checkbox-item.selected:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.checkbox-item input[type="checkbox"] {
    display: none; /* Hide the checkbox completely */
}

.checkbox-item .credit-amount {
    display: block;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    color: #3F759F;
    font-weight: 600;
}

.checkbox-item.selected .credit-amount {
    opacity: 0.9;
}

/* Hero Updates */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}


.social-proof {
    margin: 1.5rem 0;
}

.live-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #3AB1E9;
    border-radius: 50%;
    position: relative;
    animation: pulse-ring 2s ease-out infinite;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid #3AB1E9;
    border-radius: 50%;
    animation: pulse-grow 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulse-grow {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(0); }
    50% { opacity: 0.5; }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

.counter-text {
    font-size: 0.9rem;
    color: var(--color-text);
}

#businessCounter {
    transition: color 0.3s ease-out;
    display: inline-block;
    font-weight: 700;
    color: var(--color-primary);
}

@keyframes number-complete {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); color: var(--color-accent); }
    100% { transform: scale(1); }
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 2rem 0;
    flex-wrap: nowrap;
}

.badge {
    padding: 0.75rem 0.5rem;
    background: white;
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-lg);
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
    text-align: center;
    transition: all var(--transition-base);
    cursor: default;
}

.badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(63, 117, 160, 0.2);
    background: var(--color-accent);
    color: white;
}

.badge-amount {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-accent);
    white-space: nowrap;
}

.badge:hover .badge-amount {
    color: white;
}

.badge-label {
    font-size: 0.7rem;
    opacity: 0.9;
    white-space: nowrap;
}

/* Mobile optimization for tax credit badges */
@media (max-width: 768px) {
    .hero-badges {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
        flex-wrap: wrap;
    }
    
    .badge {
        padding: 1rem;
        font-size: 0.9rem;
        min-height: 80px;
        flex: none;
        width: 100%;
    }
    
    .badge-amount {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }
    
    .badge-label {
        font-size: 0.75rem;
        white-space: normal;
        line-height: 1.2;
    }
}

/* Even smaller screens (phones in portrait) */
@media (max-width: 480px) {
    .hero-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0 0.5rem;
    }
    
    .badge {
        padding: 0.875rem 0.5rem;
        min-height: 75px;
    }
    
    .badge-amount {
        font-size: 1rem;
    }
    
    .badge-label {
        font-size: 0.7rem;
    }
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 280px;
}

.pulse-animation {
    animation: pulse-button 2s ease-in-out infinite;
}

@keyframes pulse-button {
    0%, 100% { 
        box-shadow: 0 4px 14px 0 rgba(63, 117, 160, 0.4);
    }
    50% { 
        box-shadow: 0 4px 20px 0 rgba(63, 117, 160, 0.6);
    }
}

.btn-subtext {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 400;
}

.trust-indicators {
    margin-top: 1.5rem;
}

.guarantee-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin: 0;
}

.shield-icon {
    color: #3AB1E9;
    flex-shrink: 0;
}

/* Quiz Steps */
.quiz-step {
    animation: fadeIn var(--transition-base);
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quiz-step.hidden {
    display: none;
}

/* Prevent footer flicker on mobile - no longer needed with single shared footer */
@media (max-width: 768px) {
    .quiz-card {
        position: relative;
        min-height: 400px;
    }

    .quiz-step {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
    }

    .quiz-step.hidden {
        visibility: hidden;
        pointer-events: none;
        z-index: -1;
    }

    .quiz-step:not(.hidden) {
        position: relative;
        visibility: visible;
        z-index: 1;
    }
}

/* Results Updates */
.success-animation {
    margin-bottom: 1.5rem;
    animation: scaleIn 0.5s ease-out;
}

.checkmark {
    animation: rotate 0.5s ease-out;
}

.checkmark-circle {
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: drawCircle 0.6s ease-out forwards;
}

.checkmark-check {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawCheck 0.4s ease-out 0.5s forwards;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.results-amount {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-accent);
    margin: 1.5rem 0;
    text-shadow: 0 4px 8px rgba(63, 117, 160, 0.2);
    animation: pulseGlow 2s ease-in-out infinite;
}

.counting {
    display: inline-block;
}

/* CTA Message */
.cta-message {
    margin-top: 2rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(63, 117, 160, 0.1) 0%, rgba(0, 44, 77, 0.05) 100%);
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.cta-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
    font-weight: bold;
}

.cta-text {
    font-size: 1.125rem;
    color: var(--color-text);
    margin: 0;
    font-weight: 500;
}

.cta-text .highlight {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 1.25rem;
}

/* Celebration Confetti */
.celebration-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 9999;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--color-accent);
    animation: fall 3s linear forwards;
}

.confetti:nth-child(1) { left: 10%; animation-delay: 0s; background: #3f75a0; }
.confetti:nth-child(2) { left: 30%; animation-delay: 0.2s; background: #002c4d; }
.confetti:nth-child(3) { left: 50%; animation-delay: 0.4s; background: #3f75a0; }
.confetti:nth-child(4) { left: 70%; animation-delay: 0.6s; background: #002c4d; }
.confetti:nth-child(5) { left: 90%; animation-delay: 0.8s; background: #3f75a0; }

.breakdown-title {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.credits-breakdown {
    background-color: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.credit-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    gap: 1rem;
}

.credit-line:last-child {
    border-bottom: none;
    font-weight: 600;
}

/* Enhanced Credit Line */
.credit-line-enhanced {
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    animation: slideUp 0.5s ease-out both;
}

.credit-line-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.credit-line-enhanced:nth-child(1) { animation-delay: 0.1s; }
.credit-line-enhanced:nth-child(2) { animation-delay: 0.2s; }
.credit-line-enhanced:nth-child(3) { animation-delay: 0.3s; }
.credit-line-enhanced:nth-child(4) { animation-delay: 0.4s; }

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

.credit-name {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1.125rem;
}

.credit-amount {
    font-weight: 700;
    color: #3F759F;
    font-size: 1.25rem;
}

.credit-description {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
}

.credit-progress {
    margin-top: 0.75rem;
}

.progress-track {
    height: 24px;
    background: var(--color-surface);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 12px;
    margin: 0.5rem 0;
    overflow: hidden;
}

.progress-fill-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-primary) 100%);
    border-radius: 12px;
    transition: width 1s ease-out;
    min-width: 2px;
}

.progress-label {
    font-size: 0.75rem;
    color: white;
    font-weight: 600;
    white-space: nowrap;
}

.progress-label-external {
    font-size: 0.75rem;
    color: var(--color-text-light);
    font-weight: 500;
    text-align: right;
    margin-top: 0.25rem;
    padding-right: 0.5rem;
}

@keyframes expandWidth {
    from {
        width: 0 !important;
    }
}

.credit-note {
    padding: 0.75rem;
    background-color: rgba(59, 130, 246, 0.05);
    border-left: 3px solid var(--color-info);
    border-radius: var(--radius-md);
    margin: 0.5rem 0;
}

/* Lead Form */
.lead-form {
    background-color: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.form-row {
    margin-bottom: 1rem;
}

.results-cta h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.125rem;
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.excitement-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.excitement-text {
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.course-offer {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.course-offer h4 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.course-highlight {
    background: var(--color-primary);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    text-align: left;
}

.course-highlight h5 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-align: center;
}

.course-highlight ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.course-highlight li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Above the fold layout */
.above-fold-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.results-column {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--color-primary);
}

.course-column {
    display: flex;
    align-items: stretch;
}

.course-offer-compact {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2563eb 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-offer-compact h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.course-highlight-compact {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    backdrop-filter: blur(10px);
}

.course-highlight-compact h5 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.course-benefits {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.guarantee-text-compact {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
    margin-bottom: 0;
}

.credits-breakdown.compact {
    max-height: 300px;
    overflow-y: auto;
}

.detailed-breakdown {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-border);
}

.course-details {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.course-details h4 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.course-details ul {
    list-style: none;
    padding: 0;
}

.course-details li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .above-fold-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .results-column {
        padding: 1rem;
    }
    
    .course-offer-compact {
        padding: 1rem;
    }
    
    .course-offer-compact h4 {
        font-size: 1.1rem;
    }
    
    .course-highlight-compact h5 {
        font-size: 1rem;
    }
    
    .course-benefits {
        font-size: 0.85rem;
    }
}

.disclaimers {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.disclaimers p {
    margin-bottom: 0.5rem;
}

/* Disclaimer text styling */
.disclaimer-text {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 0.75rem;
    line-height: 1.4;
    opacity: 0.8;
}

.disclaimer-text.quiz-disclaimer {
    text-align: center;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Results disclaimer - subtle and small */
.results-disclaimer {
    text-align: center;
    margin: 1rem 0;
}

.results-disclaimer p {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin: 0;
    opacity: 0.8;
}

/* Legal disclaimer in footer */
.legal-disclaimer {
    font-size: 0.7rem;
    color: var(--color-text-light);
    margin-top: 0.5rem;
    line-height: 1.4;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.7;
}

/* Lead Capture Form */
.lead-capture-form {
    background: var(--color-background);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    margin: 2rem auto;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 10;
}

.lead-capture-form .form-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.lead-capture-form .form-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.lead-capture-form .form-header p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.pre-quiz-form .form-row-inline {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pre-quiz-form .form-group {
    flex: 1;
    position: relative;
}

.pre-quiz-form .form-row {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 15;
}

.pre-quiz-form .form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: var(--transition-fast);
    background: var(--color-background);
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

.pre-quiz-form .form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(63, 117, 160, 0.1);
}

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

/* Remove default browser validation styling */
.pre-quiz-form .form-input:invalid {
    border-color: var(--color-border);
    box-shadow: none;
}

@media (max-width: 480px) {
    .lead-capture-form {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .pre-quiz-form .form-row-inline {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Fill-in-the-blank styling */
.fill-in-blank-group {
    text-align: center;
    margin: 2rem 0;
}

.blank-sentence {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    text-align: center;
    width: 100%;
    padding: 2rem 1rem;
}

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

.blank-input {
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-background);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
    width: 8rem;
    height: 4rem;
    padding: 1rem;
    transition: var(--transition-fast);
    outline: none;
    box-shadow: var(--shadow-sm);
}

.blank-input:focus {
    border-color: var(--color-secondary);
    background: rgba(63, 117, 160, 0.05);
    box-shadow: 0 0 0 3px rgba(63, 117, 160, 0.1);
    transform: translateY(-2px);
}

.blank-input::placeholder {
    color: var(--color-text-light);
    opacity: 0.7;
    font-style: italic;
    font-size: 0.9em;
}

.blank-input.error {
    border-color: var(--color-error);
    background: rgba(239, 68, 68, 0.05);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

@media (max-width: 768px) {
    .blank-sentence {
        font-size: 0.875rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .blank-input {
        font-size: 1.25rem;
        width: 7rem;
        height: 3.5rem;
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .blank-sentence {
        font-size: 0.875rem;
        gap: 0.5rem;
    }
    
    .blank-input {
        font-size: 1.125rem;
        width: 6rem;
        height: 3rem;
        padding: 0.5rem;
    }
}

/* Credit Preview */
.credit-preview {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border: 2px solid #3AB1E9;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    animation: slideInUp 0.5s ease-out;
}

.preview-icon {
    font-size: 2rem;
}

.preview-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preview-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 0.25rem;
}

.preview-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

/* Review Summary */
.review-summary {
    background-color: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
}

.review-item {
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-border);
}

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

.review-label {
    font-weight: 500;
    color: var(--color-text-light);
}

.review-value {
    font-weight: 600;
    color: var(--color-text);
}

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

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

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

.animated-fade {
    animation: animated-fade 0.8s ease-out;
}

.animated-slide {
    animation: animated-slide 0.6s ease-out both;
}

@keyframes drawCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

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

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.05);
        filter: brightness(1.1);
    }
}

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

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes rotate {
    from {
        transform: rotate(-180deg);
    }
    to {
        transform: rotate(0);
    }
}

/* Animated entrance classes */
.animated-fade {
    animation: fadeIn 0.6s ease-out;
}

.animated-slide {
    animation: slideUp 0.6s ease-out;
}

.animated-fade-delay {
    animation: fadeIn 0.6s ease-out 0.3s both;
}

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

/* Back to Quiz Button */
.results-back-button-container {
    margin-bottom: 2rem;
    text-align: left;
}

.btn-back-to-quiz {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back-to-quiz:hover {
    background: var(--color-primary);
    color: white;
    transform: translateX(-4px);
}

.btn-back-to-quiz svg {
    width: 20px;
    height: 20px;
}

/* Tax Credit Type Buttons - Results Page Only */
.credit-type-buttons {
    margin-top: 0.25rem;
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    height: 391px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: visible;
}

.credit-types-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.75rem;
    margin-top: -1rem;
    opacity: 0.95;
    padding: 0 1.5rem;
}

.credit-buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1.5rem 1.5rem;
    justify-content: space-evenly;
    height: 100%;
}

.credit-type-btn {
    display: block;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.6s ease;
    flex: 1;
    min-height: 85px;
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    perspective: 1000px;
    transform: rotateY(0deg);
}

.credit-type-btn span {
    color: white;
    pointer-events: none;
}

.credit-type-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.credit-btn-icon {
    font-size: 1.8rem;
    margin: 0;
    display: inline-block;
    width: 2.5rem;
    text-align: center;
}

/* Dynamic Case Study Section */
.case-study-section {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #E3F2FD 0%, #F0F9FF 100%);
    border-radius: 10px;
    border: 1px solid #90CAF9;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.case-study-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.case-study-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.case-study-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.case-study-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--color-text);
}

.case-study-text span {
    color: var(--color-primary);
    font-weight: 600;
}

.case-study-text strong {
    color: var(--color-success);
    font-size: 1.1rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .case-study-content {
        flex-direction: column;
        text-align: center;
    }
    
    .case-study-text {
        font-size: 0.95rem;
    }
}

/* Card flip animation styles */
.credit-type-btn.flipped {
    transform: rotateY(180deg);
}

.credit-btn-front,
.credit-btn-back {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    backface-visibility: hidden;
    transition: all 0.6s ease;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.credit-btn-front {
    flex-direction: row;
    justify-content: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.credit-btn-back {
    flex-direction: column;
    justify-content: center;
    text-align: left;
    background: rgba(255, 255, 255, 0.95);
    color: #002c4d;
    transform: rotateY(180deg);
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 1.5rem;
}

.credit-btn-back h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.credit-btn-back p {
    margin: 0;
    font-size: 0.9rem;
}

.credit-info-popup {
    display: none;
}

.credit-info-popup.hidden {
    display: none;
}

/* Quiz-only sections */
.quiz-only {
    display: block;
}

/* Hide quiz-only sections when results are shown */
body.results-active .quiz-only {
    display: none;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Mobile Responsive - Mobile First Approach */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .sales-cta-title {
        font-size: 1.75rem;
    }
    
    .sales-cta-subtitle {
        font-size: 1rem;
    }
    
    .sales-cta-features {
        gap: 1rem;
    }
    
    .btn-sales-cta {
        padding: 0.875rem 2rem;
        font-size: 1.1rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.875rem;
    }
    
    .hero {
        padding: 1.5rem 1rem;
        height: auto;
        min-height: auto;
        overflow: visible;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .quiz-header, .quiz-body, .results-header, .results-body {
        padding: 1.5rem;
    }
    
    .quiz-footer {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: white !important;
        padding: 1rem !important;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1) !important;
        z-index: 100 !important;
        flex-direction: column-reverse !important;
        gap: 1rem !important;
        margin-top: 0 !important;
        justify-content: flex-start !important;
    }

    .results-footer {
        flex-direction: column;
        padding: 1rem;
    }

    .quiz-body {
        padding-bottom: 20px !important;
        overflow-x: hidden;
        max-width: 100%;
    }

    /* Ensure Step 2 (industry) has proper constraints */
    #step2 .quiz-body {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .btn {
        width: 100%;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Step 1 form improvements for tablets */
    .input-label {
        font-size: 1.05rem;
        font-weight: 600;
    }

    select.form-input {
        font-size: 1.2rem;
        padding: 0.9rem;
    }

    select.form-input option {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        display: flex;
    }
    
    .btn-sales {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .hero-title {
        font-size: 1.4rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }

    .sentence-text {
        font-size: 1.4rem !important;
    }
}

/* Tablet and Desktop */
@media (min-width: 769px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero {
        padding: 4rem 2rem;
    }
    
    .main-content {
        padding: 3rem 0;
    }
}

@media (min-width: 1024px) {
    .quiz-card, .results-card {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* Print Styles */
@media print {
    .site-header, .site-footer, .btn, .quiz-footer, .results-footer {
        display: none;
    }
    
    .results-section {
        display: block !important;
    }
    
    body {
        font-size: 12pt;
        color: black;
    }
    
    .results-header {
        background: none;
        color: black;
        border-bottom: 2px solid black;
    }
    
    .results-title, .results-subtitle {
        color: black;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

button:focus, a:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* Skip to Content Link for Accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 200;
}

.skip-to-content:focus {
    top: 0;
}
/* Homepage Question Styles */
.homepage-question {
    margin: 2rem auto;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 500px;
}

.homepage-sentence {
    font-size: 1.25rem;
    margin-bottom: 0;
    padding: 0;
    width: auto;
    pointer-events: none;
}

.homepage-sentence .blank-input {
    pointer-events: auto;
}

.homepage-input {
    background: var(--color-background);
    border: 2px solid var(--color-secondary);
    color: var(--color-primary);
    font-weight: 600;
    pointer-events: auto;
    z-index: 10;
    position: relative;
}

.homepage-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.homepage-input.error {
    border-color: var(--color-error);
    background-color: rgba(239, 68, 68, 0.05);
}

.homepage-error-message {
    color: var(--color-error);
    font-size: 0.875rem;
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0;
}


/* Choice Button Styles */
.button-choice-group {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.btn-choice {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: 2px solid #002c4d;
    background: white;
    color: var(--color-text);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.btn-choice:hover {
    border-color: var(--color-secondary);
    background: #f8f9fa;
}

.btn-choice.selected {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: #3b82f6;
}

.btn-choice.selected:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
}

@media (max-width: 768px) {
    .btn-choice {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Retroactive Credits Popup Styles */
.popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    /* Enhanced backdrop with glow */
    background: radial-gradient(circle at center, 
                rgba(125, 217, 86, 0.15) 0%, 
                rgba(0, 0, 0, 0.75) 100%);
    backdrop-filter: blur(8px);
}

.popup-content {
    /* Translucent white background */
    background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.98) 0%, 
                rgba(255, 255, 255, 0.95) 100%);
    /* Bright blue border from brand palette */
    border: 3px solid #3AB1E9;
    border-radius: var(--radius-xl);
    /* Multi-layer glow effect */
    box-shadow: 
        /* Inner glow */
        inset 0 0 30px rgba(125, 217, 86, 0.08),
        /* Border glow */
        0 0 0 1px rgba(125, 217, 86, 0.5),
        /* Close glow */
        0 0 20px rgba(125, 217, 86, 0.6),
        /* Medium glow */
        0 0 40px rgba(125, 217, 86, 0.4),
        /* Far glow */
        0 0 80px rgba(125, 217, 86, 0.3),
        /* Ambient glow */
        0 0 120px rgba(125, 217, 86, 0.2),
        /* Shadow for depth */
        0 20px 60px rgba(0, 0, 0, 0.25);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    animation: popupGlow 0.8s ease-out, popupPulse 4s ease-in-out infinite;
    position: relative;
    /* Ensure content pops */
    z-index: 1;
}

@keyframes popupGlow {
    0% {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
        filter: brightness(0.8);
    }
    50% {
        transform: scale(1.02) translateY(-5px);
        filter: brightness(1.05);
    }
    100% {
        transform: scale(1) translateY(0);
        filter: brightness(1);
        opacity: 1;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 
                    0 0 40px rgba(31, 58, 138, 0.15),
                    0 0 80px rgba(31, 58, 138, 0.08);
    }
}

/* Continuous subtle glow pulse for popup */
@keyframes popupPulse {
    0%, 100% {
        box-shadow: 
            inset 0 0 30px rgba(125, 217, 86, 0.08),
            0 0 0 1px rgba(125, 217, 86, 0.5),
            0 0 20px rgba(125, 217, 86, 0.6),
            0 0 40px rgba(125, 217, 86, 0.4),
            0 0 80px rgba(125, 217, 86, 0.3),
            0 0 120px rgba(125, 217, 86, 0.2),
            0 20px 60px rgba(0, 0, 0, 0.25);
    }
    50% {
        box-shadow: 
            inset 0 0 40px rgba(125, 217, 86, 0.12),
            0 0 0 2px rgba(125, 217, 86, 0.7),
            0 0 30px rgba(125, 217, 86, 0.8),
            0 0 60px rgba(125, 217, 86, 0.6),
            0 0 100px rgba(125, 217, 86, 0.4),
            0 0 150px rgba(125, 217, 86, 0.3),
            0 20px 70px rgba(0, 0, 0, 0.3);
    }
}

.popup-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #2563eb 100%);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    position: relative;
    overflow: hidden;
}

.popup-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.popup-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    text-align: center;
}

.popup-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.4;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.popup-body {
    padding: 1.5rem;
}

/* Follow-up question styling */
.popup-followup-header {
    margin-bottom: 1.25rem;
    text-align: center;
}

.popup-followup-title {
    font-size: 1.1rem;
    color: var(--color-text);
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
}

.popup-followup-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popup-buttons {
    gap: 0.75rem;
}

/* Removed popup-question style - questions now in header */

.popup-input {
    margin-bottom: 1rem;
}

.popup-submit {
    width: 100%;
    margin-top: 1rem;
}

.popup-validation-error {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-error);
}

.popup-validation-error .error-text {
    color: var(--color-error);
    font-size: 0.875rem;
    margin: 0;
    font-weight: 500;
}

.popup-choice.error {
    border-color: var(--color-error);
    background-color: rgba(239, 68, 68, 0.05);
}

/* Popup Button Styling */
.popup-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1d4ed8 100%);
    color: white;
    border: 2px solid transparent;
    font-weight: 700;
    padding: 1.2rem 2rem;
    font-size: 1.05rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(31, 58, 138, 0.25);
}

.popup-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.popup-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 58, 138, 0.4);
}

.popup-primary.selected {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 6px 20px rgba(31, 58, 138, 0.4);
    transform: translateY(-1px);
}

.popup-secondary {
    background: rgba(31, 58, 138, 0.05);
    color: #6b7280;
    border: 1px solid #d1d5db;
    font-weight: 400;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    opacity: 0.8;
}

.popup-secondary:hover {
    background: rgba(31, 58, 138, 0.08);
    border-color: #9ca3af;
    color: #4b5563;
    transform: none;
    box-shadow: none;
}

.popup-secondary.selected {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    opacity: 1;
}

/* Recommended Badge */
.popup-primary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.button-text {
    font-size: 1.05rem;
    font-weight: 700;
}

.recommended-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

/* Retroactive Credit Notification Styles */
.retroactive-notice {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background-color: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-error);
}

.retroactive-notice .notice-text {
    color: var(--color-error);
    font-size: 0.875rem;
    margin: 0;
    font-weight: 500;
}

.retroactive-notice a {
    color: var(--color-error);
    text-decoration: underline;
    font-weight: 600;
}

.retroactive-notice a:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .popup-content {
        max-width: 90%;
        margin: 1rem;
    }
    
    .popup-header,
    .popup-body {
        padding: 1rem;
    }
    
    .popup-title {
        font-size: 1.15rem;
    }
    
    .popup-subtitle {
        font-size: 0.8rem;
    }
    
    .popup-followup-title {
        font-size: 1rem;
    }
    
    .popup-primary,
    .popup-secondary {
        padding: 0.875rem 1.25rem;
    }
    
    .button-text {
        font-size: 0.95rem;
    }
    
    .recommended-badge {
        font-size: 0.65rem;
        padding: 0.1rem 0.4rem;
    }
}

/* Retroactive Credits Section */
.retroactive-opportunity {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border: 2px solid #3f75a0;
}

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

.retroactive-title {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.retro-highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.retro-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #3f75a0;
    margin-bottom: 0.25rem;
}

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

.retro-details p {
    margin-bottom: 1rem;
    color: #374151;
    line-height: 1.6;
}

.retro-breakdown {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: left;
}

.retro-line {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.retro-line:last-child {
    border-bottom: none;
}

.retro-line.total {
    font-weight: 600;
    color: #3f75a0;
    border-top: 2px solid #3f75a0;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
}

.action-required {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.875rem;
    color: #92400e;
    text-align: left;
}

.action-required strong {
    color: #78350f;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .secondary-results-header {
        padding: 2rem 1.5rem;
    }
    
    .secondary-total-amount .amount-value {
        font-size: 2rem;
    }
    
    .secondary-results-title {
        font-size: 1.75rem;
    }
    
    .secondary-results-body {
        padding: 1.5rem;
    }
    
    .credit-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .secondary-cta-section .btn {
        display: block;
        width: 100%;
        margin: 0 0 1rem 0;
        min-width: auto;
    }
}


/* Custom Validation Modal */
.validation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.validation-modal {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.validation-modal-content {
    text-align: center;
}

.validation-modal-content p {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.validation-modal-content .btn {
    min-width: 100px;
}

/* Retroactive Credits Step Styles */
.btn-choice.recommended-choice {
    position: relative;
    border: 2px solid #002c4d;
    background: white;
}

.btn-choice.recommended-choice:hover {
    border-color: #93c5fd;
    background: #f0f9ff;
    transform: translateY(-2px);
}

.btn-choice.recommended-choice.selected {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: #3b82f6;
}

.recommended-badge {
    display: inline-block;
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.5rem;
}

.btn-choice.recommended-choice.selected .recommended-badge {
    background: white;
    color: #3b82f6;
}

.choice-main {
    display: block;
    margin-bottom: 0.25rem;
}

/* Retroactive Notice Styles */
.retroactive-notice {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #93c5fd;
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    animation: slideIn 0.3s ease-out;
}

.retroactive-notice .notice-text {
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
}

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

/* ========================================
   MOBILE OPTIMIZATIONS
   ======================================== */

/* Tablet and Small Desktop (768px - 1024px) */
@media (max-width: 1024px) {
    .quiz-container {
        height: auto;
        min-height: 530px;
        max-height: none;
    }

    .quiz-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
}

/* Mobile Landscape and Small Tablets (481px - 768px) */
@media (max-width: 768px) {
    /* Quiz Container - Allow flexible height */
    .quiz-container {
        height: auto;
        min-height: 470px;
        max-height: none;
        padding: 1rem;
    }

    .quiz-title {
        font-size: 1.35rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }

    .quiz-description {
        font-size: 1rem;
    }

    /* Step 8: Contact Form - Single Column */
    #step8 .quiz-body {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 1rem !important;
    }

    /* Step 6: Hiring Groups - 2 Columns */
    #step6 .quiz-title {
        font-size: 1.3rem !important;
        white-space: normal !important;
    }

    #hiringGroupsGrid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    /* Step 8: Contact Form Title */
    #step8 .quiz-title {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }

    /* Step 7: R&D Buttons */
    .button-choice-group {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .btn-choice {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        min-height: 48px;
    }

    /* Progress Bar */
    .progress-container {
        padding: 1rem;
    }

    /* Navigation Buttons */
    .quiz-footer {
        gap: 1rem;
        padding: 1rem;
    }

    .btn-primary, .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
    }
}

/* Mobile Portrait (320px - 480px) */
@media (max-width: 480px) {
    /* Quiz Container */
    .quiz-container {
        height: auto;
        min-height: 400px;
        max-height: none;
        padding: 0.75rem;
    }

    /* Prevent footer flicker - keep steps in DOM */
    .quiz-card {
        position: relative;
        min-height: 400px;
    }

    .quiz-step {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
    }

    .quiz-step.hidden {
        visibility: hidden;
        pointer-events: none;
        z-index: -1;
    }

    .quiz-step:not(.hidden) {
        position: relative;
        visibility: visible;
        z-index: 1;
    }

    .quiz-title {
        font-size: 1.4rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
        font-weight: 700;
    }

    .quiz-description {
        font-size: 1rem;
    }

    /* Step 8: Contact Form - Optimized */
    #step8 .quiz-body {
        padding: 0.75rem !important;
        gap: 0.75rem !important;
    }

    .input-group {
        margin-bottom: 0.75rem;
    }

    .input-label {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        font-weight: 600;
    }

    .form-input {
        padding: 1rem;
        font-size: 1.25rem;
        min-height: 54px;
    }

    select.form-input {
        font-size: 1.5rem;
        line-height: 1.4;
    }

    select.form-input option {
        font-size: 1.5rem;
        padding: 1rem;
        min-height: 50px;
        line-height: 1.5;
    }

    /* Sticky Bottom Navigation */
    .quiz-footer {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: white !important;
        padding: 1rem !important;
        gap: 0.75rem !important;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1) !important;
        z-index: 100 !important;
        flex-direction: column-reverse !important;
        margin-top: 0 !important;
        justify-content: flex-start !important;
    }

    /* Add padding to quiz body to prevent content from being hidden behind fixed footer */
    .quiz-body {
        padding-bottom: 20px !important;
        overflow-x: hidden;
        max-width: 100%;
    }

    .quiz-header {
        padding-top: 0.75rem;
    }

    /* Ensure Step 2 (industry) has proper constraints */
    #step2 .quiz-body {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    /* Step 6: Hiring Groups Title */
    #step6 .quiz-title {
        font-size: 1.2rem !important;
        white-space: normal !important;
    }

    /* Step 8: Contact Form Title */
    #step8 .quiz-title {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
    }

    /* Step 6: Hiring Groups - Single Column for very small screens */
    @media (max-width: 400px) {
        #hiringGroupsGrid {
            grid-template-columns: 1fr !important;
        }
    }

    /* Step 7: R&D Slider */
    .form-slider {
        width: 100%;
        min-height: 48px;
        padding: 0.5rem 0;
    }

    .slider-value {
        font-size: 1.25rem;
        margin-top: 0.5rem;
    }

    /* Buttons - Full Width with Better Touch Targets */
    .button-choice-group {
        width: 100%;
    }

    .btn-choice {
        padding: 1rem;
        font-size: 0.95rem;
        min-height: 52px;
        width: 100%;
    }

    /* Navigation */
    .quiz-footer {
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .btn-primary, .btn-secondary {
        padding: 1rem;
        font-size: 0.95rem;
        min-height: 52px;
        width: 100%;
    }

    /* Industry Cards - Optimize spacing */
    .industry-card {
        padding: 0.75rem 0.5rem;
        min-height: 80px;
    }

    .industry-icon {
        font-size: 1.5rem;
    }

    .industry-name {
        font-size: 0.75rem;
    }
}

/* Extra Small Devices (< 360px) */
@media (max-width: 359px) {
    .quiz-title {
        font-size: 1.1rem;
    }

    .btn-choice {
        font-size: 0.9rem;
        padding: 0.875rem;
    }

    .btn-primary, .btn-secondary {
        font-size: 0.9rem;
        padding: 0.875rem;
    }
}

/* ============================================
   LOGO SCROLLER - SOCIAL PROOF
   ============================================ */

.logo-scroller-container {
    width: 100%;
    overflow: hidden;
    padding: 3rem 0 2rem 0;
    background: transparent;
    position: relative;
}

.logo-scroller {
    width: 100%;
    position: relative;
}

.logo-track {
    display: flex;
    align-items: center;
    animation: scroll 30s linear infinite;
    width: fit-content;
    /* Pause animation until images load to prevent layout shift */
    animation-play-state: paused;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Add this class via JavaScript once images are loaded */
.logo-track.ready {
    animation-play-state: running;
    opacity: 1;
}

.logo-item {
    flex-shrink: 0;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
}

.logo-item img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* Pause animation on hover */
.logo-scroller:hover .logo-track {
    animation-play-state: paused;
}

/* Scroll animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .logo-scroller-container {
        padding: 2rem 0 1.5rem 0;
    }

    .logo-item {
        padding: 0 1.5rem;
    }

    .logo-item img {
        height: 50px;
    }
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .logo-scroller-container {
        padding: 1rem 0 0.5rem 0;
    }

    .logo-item {
        padding: 0 0.75rem;
    }

    .logo-item img {
        height: 35px;
    }

    .logo-track {
        animation: scroll 20s linear infinite;
    }
}

/* Pulse animation for Next button on Step 6 */
@keyframes pulse-green {
    0%, 100% {
        background-color: var(--color-primary);
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
    }
    50% {
        background-color: #10B981;
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.9);
    }
}

/* ===== EBOOK POPUP MODAL ===== */
.popup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.popup-content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    animation: popupSlideIn 0.3s ease;
}

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

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #6b7280;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.popup-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.popup-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #002C4D;
    margin: 0 0 0.5rem 0;
    padding-right: 2rem;
}

.popup-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin: 0 0 1.5rem 0;
}

#hubspotForm {
    margin-top: 1rem;
}

/* Mobile popup styles */
@media (max-width: 768px) {
    .popup-content {
        padding: 2rem 1.5rem;
        width: 95%;
        max-height: 85vh;
    }

    .popup-title {
        font-size: 1.5rem;
    }

    .popup-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .popup-content {
        padding: 1.5rem 1rem;
    }

    .popup-title {
        font-size: 1.25rem;
    }

    .popup-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 36px;
        height: 36px;
        font-size: 1.75rem;
    }
}

/* HubSpot form styling */
#hubspotForm iframe {
    width: 100% !important;
}

#hubspotForm .hs-form-field {
    margin-bottom: 1rem;
}

#hubspotForm .hs-input {
    width: 100% !important;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

#hubspotForm .hs-button {
    background: #002C4D;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#hubspotForm .hs-button:hover {
    background: #001f3a;
}
