/* ============================================
   AI ACT READINESS CHECKER PAGE STYLES
   ============================================ */

/* Main offset for fixed header */
main {
    margin-top: 90px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--navy);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    top: 0;
}

/* Screen reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   WHISPER ANIMATION DELAYS
   ============================================ */

.whisper-delay-1.visible {
    animation-delay: 0.3s;
}

.whisper-delay-2.visible {
    animation-delay: 0.6s;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    padding: 4rem 0 2rem;
    text-align: center;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-urgency {
    background: var(--red);
    color: white;
}

.badge-free {
    background: var(--green);
    color: white;
}

/* ============================================
   PROGRESS INDICATOR
   ============================================ */

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

.progress-bar-wrapper {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

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

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--green));
    border-radius: 4px;
    transition: width 0.4s ease;
}

.progress-label {
    display: inline-block;
    font-size: 0.8125rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ============================================
   QUESTIONNAIRE
   ============================================ */

.questionnaire-section {
    padding: 2rem 0 3rem;
}

.question-card {
    position: relative;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem 2rem 2rem 4.5rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.question-card:hover {
    border-color: #cbd5e0;
    box-shadow: 0 2px 12px rgba(15, 31, 51, 0.06);
}

.question-card.answered {
    border-color: var(--blue);
    background: #f7faff;
}

.question-card.answered-yes {
    border-color: var(--blue);
    background: #eff6ff;
}

.question-card.answered-no {
    border-color: var(--green);
    background: #f0fff4;
}

.question-number {
    position: absolute;
    top: 2rem;
    left: 1.5rem;
    width: 2rem;
    height: 2rem;
    background: var(--navy);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.8125rem;
}

.question-text {
    font-size: 1.125rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
    margin-top: 0;
    line-height: 1.5;
}

.question-context {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    font-style: italic;
}

/* ============================================
   CUSTOM RADIO BUTTONS
   ============================================ */

.radio-group {
    display: flex;
    gap: 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.625rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
    user-select: none;
    min-width: 100px;
    justify-content: center;
}

.radio-option:hover {
    border-color: var(--blue);
    background: #f7faff;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blue);
    transition: transform 0.2s ease;
}

.radio-option input[type="radio"]:checked ~ .radio-custom {
    border-color: var(--blue);
}

.radio-option input[type="radio"]:checked ~ .radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: var(--blue);
    background: #eff6ff;
}

.radio-option input[type="radio"]:focus-visible ~ .radio-custom {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.radio-label {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--navy);
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */

.submit-wrapper {
    text-align: center;
    padding-top: 1.5rem;
}

.cta-submit {
    display: inline-block;
    padding: 1.125rem 3rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    background: var(--blue);
    color: white;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.01em;
}

.cta-submit:hover:not(:disabled) {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.cta-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.submit-hint {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-light);
}

.submit-hint.all-answered {
    color: var(--green);
    font-weight: 600;
}

/* ============================================
   RESULTS SECTION
   ============================================ */

.results-section {
    padding: 3rem 0;
    background: var(--bg-subtle);
}

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

.results-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(15, 31, 51, 0.08);
}

.results-header {
    text-align: center;
    padding: 2.5rem 2rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.results-header h2 {
    font-size: 1.75rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
    margin-top: 0;
}

/* Risk level badges */
.risk-badge {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 32px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: 0.02em;
}

.risk-badge.risk-high {
    background: #fef2f2;
    color: var(--red);
    border: 2px solid var(--red);
}

.risk-badge.risk-limited {
    background: #fffbeb;
    color: #d97706;
    border: 2px solid #d97706;
}

.risk-badge.risk-minimal {
    background: #f0fff4;
    color: var(--green);
    border: 2px solid var(--green);
}

/* Results body */
.results-body {
    padding: 2rem;
}

.risk-explanation {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1rem;
}

.risk-explanation.explanation-high {
    background: #fef2f2;
    border-left: 4px solid var(--red);
}

.risk-explanation.explanation-limited {
    background: #fffbeb;
    border-left: 4px solid #d97706;
}

.risk-explanation.explanation-minimal {
    background: #f0fff4;
    border-left: 4px solid var(--green);
}

/* Results breakdown */
.results-breakdown {
    margin-bottom: 2rem;
}

.results-breakdown h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--navy);
    margin-top: 0;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.breakdown-item {
    text-align: center;
    background: var(--bg-subtle);
    border-radius: 8px;
    padding: 1.25rem 1rem;
}

.breakdown-stat {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.breakdown-stat.stat-high {
    color: var(--red);
}

.breakdown-stat.stat-limited {
    color: #d97706;
}

.breakdown-stat.stat-governance {
    color: var(--green);
}

.breakdown-label {
    font-size: 0.8125rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Recommendations */
.recommendations {
    margin-bottom: 1rem;
}

.recommendations h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--navy);
    margin-top: 0;
}

.recommendations-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommendations-list li {
    padding: 0.875rem 1rem 0.875rem 2.5rem;
    position: relative;
    background: var(--bg-subtle);
    border-radius: 8px;
    margin-bottom: 0.625rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text);
}

.recommendations-list li::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 1.1rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
}

/* Results CTA */
.results-cta {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #e2e8f0;
    background: var(--bg-subtle);
}

.cta-results {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    background: var(--navy);
    color: white;
    font-family: 'Montserrat', sans-serif;
}

.cta-results:hover {
    background: #1a2d47;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 31, 51, 0.2);
}

.results-cta-subtext {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* ============================================
   EMAIL CAPTURE
   ============================================ */

.email-capture-section {
    padding: 3rem 0;
    background: white;
}

.email-capture-section[hidden] {
    display: none;
}

.email-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg-subtle);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2.5rem;
}

.email-card h2 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.email-card > p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.email-input-group {
    display: flex;
    gap: 0.75rem;
    max-width: 450px;
    margin: 0 auto;
}

.email-input-group input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease;
    outline: none;
}

.email-input-group input[type="email"]:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cta-email {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    cursor: pointer;
    background: var(--blue);
    color: white;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.cta-email:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.email-disclaimer {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.email-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
}

.email-success[hidden] {
    display: none;
}

.email-success p {
    color: var(--green);
    font-weight: 600;
    margin: 0;
}

/* ============================================
   FINAL CTA
   ============================================ */

.final-cta-section {
    background: var(--navy);
    color: white;
    padding: 4rem 0;
}

.final-cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.final-cta-content h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.3;
}

.final-cta-text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.cta-large {
    font-size: 1.25rem;
    padding: 1.25rem 3rem;
    background: white;
    color: var(--navy);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.cta-large:hover {
    background: var(--bg-subtle);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.cta-secondary-text {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.cta-secondary-text a {
    color: white;
    text-decoration: underline;
    font-weight: 500;
}

.cta-secondary-text a:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    main {
        margin-top: 70px;
    }

    .hero h1 {
        font-size: 1.85rem;
    }

    .hero-subtitle {
        font-size: 1.0625rem;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .question-card {
        padding: 1.5rem 1.5rem 1.5rem 4rem;
    }

    .question-number {
        left: 1rem;
        top: 1.5rem;
    }

    .question-text {
        font-size: 1rem;
    }

    .radio-group {
        gap: 0.75rem;
    }

    .radio-option {
        padding: 0.5rem 1.25rem;
        min-width: 85px;
    }

    .breakdown-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .results-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .results-body {
        padding: 1.5rem;
    }

    .results-header h2 {
        font-size: 1.375rem;
    }

    .email-input-group {
        flex-direction: column;
    }

    .email-card {
        padding: 2rem 1.5rem;
    }

    .final-cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-large {
        font-size: 1.125rem;
        padding: 1rem 2rem;
    }

    .cta-submit {
        width: 100%;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .question-card {
        padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    }

    .question-number {
        left: 0.75rem;
        top: 1.25rem;
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.75rem;
    }

    .radio-option {
        padding: 0.5rem 1rem;
        min-width: 75px;
        font-size: 0.875rem;
    }
}

/* ============================================
   ACCESSIBILITY — REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .whisper {
        animation: none;
        opacity: 1;
    }

    .progress-fill {
        transition: none;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
