/* Ready Score Quiz Styles */

:root {
    /* Slate - Primary (matches home page) */
    --slate-darkest: #1e293b;
    --slate-dark: #334155;
    --slate: #475569;
    --slate-medium: #64748b;
    --slate-light: #94a3b8;
    --slate-pale: #cbd5e1;

    /* Amber - Accent */
    --amber-dark: #b45309;
    --amber: #d97706;
    --amber-light: #f59e0b;
    --accent-light: #d97706;

    /* Backgrounds */
    --bg: #f5f5f5;
    --bg-light: #fafafa;
    --card: #ffffff;

    /* Text */
    --text: #334155;
    --text-dark: #1e293b;
    --text-muted: #64748b;

    /* Status */
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #dc2626;

    /* Legacy aliases */
    --primary: var(--slate-dark);
    --accent: var(--amber);
    --accent-dark: var(--amber-dark);
    --border: var(--slate-pale);
    --text-secondary: var(--text-muted);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    z-index: 1;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 32px;
}

.hero-badge {
    display: inline-block;
    background: var(--amber);
    color: #f8fafc;
    padding: 6px 16px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
    transform: rotate(-1deg);
    text-transform: uppercase;
}

h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 8vw, 72px);
    color: var(--primary);
    letter-spacing: 2px;
    line-height: 1;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.subtitle {
    font-size: 21px;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 28px;
    line-height: 1.5;
}

/* Quiz Length Selector */
.quiz-length-selector {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
}

.length-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 24px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 170px;
}

.length-option:hover {
    border-color: var(--amber);
    background: #fffbeb;
}

.length-option.selected {
    border-color: var(--amber);
    background: #fffbeb;
}

.length-icon {
    width: 28px;
    height: 28px;
    color: var(--text-muted);
}

.length-option.selected .length-icon,
.length-option:hover .length-icon {
    color: var(--amber);
}

.length-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.length-time {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
}

.length-option.selected .length-title,
.length-option:hover .length-title {
    color: var(--amber-dark);
}

.length-option.selected .length-time,
.length-option:hover .length-time {
    color: var(--amber);
}

/* Disabled state when quiz has started */
.quiz-length-selector.disabled {
    pointer-events: none;
    opacity: 0.6;
}

.quiz-length-selector.disabled .length-option {
    cursor: not-allowed;
}

.quiz-length-selector.disabled .length-option:hover {
    transform: none;
    box-shadow: none;
}

/* Hero Share Buttons */
.hero-share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

.hero-share-buttons .share-btn {
    padding: 12px 24px;
    font-size: 14px;
}

.stats-row {
    display: flex;
    gap: 8px 32px; /* Shorthand: row-gap column-gap */
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* Fallback for Safari < 14.1 that doesn't support gap in flexbox */
@supports not (gap: 1px) {
    .stats-row > * { margin: 4px 16px; }
}

.stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-icon {
    color: var(--accent);
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.stat-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 21px;
    color: #334155;
    text-transform: uppercase;
}

/* Quiz Card */
.quiz-card {
    background: var(--card);
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

/* Results section - no white box on all sizes */
#resultsSection.active {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

/* When results are active, remove quiz-card styling */
/* Note: :has() not supported in Firefox < 121. JS fallback in quiz.js handles this */
.quiz-card:has(#resultsSection.active),
.quiz-card.results-active {
    background: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

/* Progress Bar */
.progress-section { margin-bottom: 40px; }

.progress-label {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--warning));
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

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

/* Question Styles */
.question {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.3s ease-out forwards;
}

.question-header { margin-bottom: 24px; }

.question-category {
    display: block;
    color: var(--accent);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-bottom: 8px;
}

.question-text {
    font-size: 22px;
    font-weight: 400;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 12px;
}

.question-intro {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option {
    background: var(--bg);
    border: 2px solid var(--border);
    padding: 20px 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-size: 17px;
}

@media (hover: hover) {
    .option:hover {
        border-color: var(--blue);
        background: white;
        transform: translateX(4px);
    }
}

.option.selected {
    border-color: var(--accent);
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.option::before {
    content: '';
    position: absolute;
    left: -2px;
    top: -2px;
    bottom: -2px;
    width: 4px;
    background: var(--accent);
    border-radius: 8px 0 0 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.option.selected::before { opacity: 1; }

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    justify-content: center;
}

button {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1px;
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Pagination-style nav buttons (equal hierarchy) */
.btn-nav {
    background: transparent;
    color: var(--text-muted);
    border: 2px solid var(--border);
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-nav:hover {
    border-color: var(--amber);
    color: var(--amber);
    background: rgba(217, 119, 6, 0.05);
}

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

.btn-nav:disabled:hover {
    border-color: var(--border);
    color: var(--text-muted);
    background: transparent;
}

.btn-primary {
    background: linear-gradient(180deg, var(--amber) 0%, var(--amber-dark) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

/* In nav-buttons context, primary button grows to fill space */
.nav-buttons .btn-primary {
    flex: 1;
    min-width: 180px;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 56, 13, 0.4);
}

.btn-primary:disabled {
    background: var(--border);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Email Capture Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.modal.active { display: flex; }

.modal-content {
    background: var(--card);
    padding: 50px;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--cyan);
    cursor: pointer;
    padding: 4px 2px;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 4px;
}

.modal-close:hover {
    color: var(--cyan-dark, #0e7490);
}

.modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 20px;
    color: var(--amber);
}

.modal-icon svg {
    width: 56px;
    height: 56px;
}

.modal h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.modal p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 18px;
}

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

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

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 16px;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: var(--blue);
}

.privacy-note {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 15px;
}

/* Results Section */
.results { display: none; }
.results.active { display: block; animation: fadeInUp 0.8s ease-out; }

/* Loading & Error States */
.loading-results,
.error-results {
    text-align: center;
    padding: 60px 30px;
}

.loading-results p {
    font-size: 18px;
    color: var(--text-muted);
}

.error-results h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 15px;
}

.error-results p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.score-display {
    text-align: center;
    padding: 40px 30px;
    margin-bottom: 32px;
    background: linear-gradient(160deg, #1e293b 0%, #334155 100%);
    border-radius: 16px;
    color: white;
    position: relative;
    overflow: hidden;
}

.score-display::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(100, 160, 200, 0.25) 0%, transparent 50%);
}

.score-content { position: relative; z-index: 1; }

.score-label {
    font-size: 36px;
    letter-spacing: -1px;
    margin-bottom: 2px;
    opacity: 0.8;
    font-weight: bold;
}

.score-date {
    font-size: 13px;
    letter-spacing: 1px;
    opacity: 0.6;
    margin-bottom: 15px;
}

.score-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 140px;
    line-height: 1;
    margin-bottom: 10px;
}

.score-rating {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    color: var(--warning);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

/* Score Gauge */
.score-gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.gauge-svg {
    width: 100%;
    max-width: 320px;
    height: auto;
}

.gauge-score {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 72px;
    line-height: 1;
    margin-top: 15px;
}

.gauge-rating {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

/* NEW Gradient Score Gauge (Credit Score Style) */
.score-gauge-new {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0 20px;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 15px;
}

.gauge-svg-new {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.gauge-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    fill: rgba(255, 255, 255, 0.7);
}

.gauge-score-area {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.gauge-score-big {
    font-family: 'DM Sans', sans-serif;
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
}

.score-improvement {
    display: inline-flex;
    align-items: center;
    background: rgba(75, 194, 181, 0.2);
    color: #4bc2b5;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.score-improvement::before {
    content: '+';
    font-weight: 700;
    margin-right: 1px;
}

.score-improvement.decreased {
    background: rgba(244, 120, 84, 0.2);
    color: #f47854;
}

.score-improvement.decreased::before {
    content: '−';
}

.gauge-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 20px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
}

.rating-face {
    width: 20px;
    height: 20px;
}

.gauge-rating-badge.excellent {
    background: #dcfce7;
    color: #16a34a;
}

.gauge-rating-badge.good {
    background: #e0f2fe;
    color: #0284c7;
}

.gauge-rating-badge.fair {
    background: #fef9c3;
    color: #ca8a04;
}

.gauge-rating-badge.poor {
    background: #ffedd5;
    color: #ea580c;
}

.gauge-rating-badge.critical {
    background: #fee2e2;
    color: #dc2626;
}

.category-results {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

.category-result {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--blue);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.category-score {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 26px;
    color: var(--blue);
}

.category-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.category-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-bar-fill.critical { background: #7c3aed; }
.category-bar-fill.needs-work { background: #dc2626; }
.category-bar-fill.moderate { background: #f59e0b; }
.category-bar-fill.strong { background: #22c55e; }

.category-feedback {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
}

/* Accordion Category Results */
.category-section {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 32px;
}

.category-section-header {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.category-result {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.category-result:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.category-result:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 16px 11px;
}

.category-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.category-name {
    font-size: 21px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1;
}

.category-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.category-score-visual {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-mini-bar {
    width: 100px;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.category-mini-bar-fill {
    height: 100%;
    border-radius: 4px;
}

.category-mini-bar-fill.critical { background: #f47854; }
.category-mini-bar-fill.poor { background: #f7b249; }
.category-mini-bar-fill.fair { background: #f7ce46; }
.category-mini-bar-fill.good { background: #6dbcb8; }
.category-mini-bar-fill.excellent { background: #4bc2b5; }

.category-percent {
    font-size: 18px;
    font-weight: 600;
    min-width: 50px;
    text-align: right;
    line-height: 1;
}

.category-percent.critical { color: #f47854; }
.category-percent.poor { color: #f7b249; }
.category-percent.fair { color: #e8c026; }
.category-percent.good { color: #6dbcb8; }
.category-percent.excellent { color: #4bc2b5; }

.category-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1;
}

.category-result.open .category-toggle {
    transform: rotate(180deg);
}

.category-details {
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.category-result.open .category-details {
    max-height: 1000px;
    padding: 15px 16px 16px;
}

.category-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin: 15px 0;
}

.category-assessment {
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 24px;
    border-left: 3px solid var(--slate-light);
}

.category-assessment.critical {
    background: #fef0ee;
    border-left-color: #f47854;
}

.category-assessment.poor {
    background: #fef6eb;
    border-left-color: #f7b249;
}

.category-assessment.fair {
    background: #fefaeb;
    border-left-color: #f7ce46;
}

.category-assessment.good {
    background: #eef8f7;
    border-left-color: #6dbcb8;
}

.category-assessment.excellent {
    background: #ebfaf6;
    border-left-color: #4bc2b5;
}

.category-assessment-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.category-assessment-label.critical { color: #f47854; }
.category-assessment-label.poor { color: #f7b249; }
.category-assessment-label.fair { color: #e8c026; }
.category-assessment-label.good { color: #6dbcb8; }
.category-assessment-label.excellent { color: #4bc2b5; }

.category-assessment p {
    font-size: 17px;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

.category-actions h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.category-actions ol {
    margin: 0;
    padding-left: 20px;
}

.category-actions li {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.2;
}

.category-actions li:last-child {
    margin-bottom: 0;
}

.category-actions li::marker {
    color: var(--accent);
    font-weight: 700;
}

/* Score Description */
.score-description {
    font-size: 17px;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 600px;
    margin: 20px auto 0;
}

/* Priority Action Plan - Checklist Style */
.priority-plan {
    background: white;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 32px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.priority-plan-header {
    margin-bottom: 8px;
}

.priority-plan-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.checklist-intro {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.checklist-item:hover {
    border-color: var(--amber);
    background: #fffbeb;
}

.checklist-checkbox {
    flex-shrink: 0;
    color: var(--amber);
    margin-top: 2px;
}

.checklist-content {
    flex: 1;
}

.checklist-category {
    font-size: 13px;
    font-weight: 600;
    color: var(--amber-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.checklist-action {
    font-size: 15px;
    color: var(--text);
    line-height: 1.5;
}

/* Legacy priority styles (kept for compatibility) */
.priority-badge {
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.priority-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.priority-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.priority-number {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.priority-number span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.priority-category {
    font-size: 16px;
    font-weight: 500;
    color: var(--slate-dark);
}

.priority-assessment {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.priority-action {
    background: #f0fdf4;
    border-left: 3px solid var(--success);
    padding: 12px 16px;
    border-radius: 0 6px 6px 0;
}

.priority-action-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.priority-action-text {
    font-size: 15px;
    color: var(--text);
}

.priority-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px dashed #eee;
    text-align: center;
}

.priority-footer p {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0 0 5px 0;
}

.priority-footer strong {
    color: var(--accent);
}

/* Disclaimer Footer */
.disclaimer-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.disclaimer-text {
    font-size: 11px;
    color: #999;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 15px;
}

.privacy-text {
    font-size: 11px;
    color: #999;
    line-height: 1.5;
    margin-bottom: 15px;
}

.copyright-text {
    font-size: 11px;
    color: #aaa;
}

.gaps-section {
    background: #fff9e6;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--warning);
    margin-bottom: 40px;
}

.gaps-section h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: var(--primary);
}

.gap-list { list-style: none; }

.gap-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(212, 56, 13, 0.15);
    color: var(--text);
    font-size: 16px;
}

.gap-list li:last-child { border-bottom: none; }
.gap-list li::before { content: '⚠'; color: var(--warning); font-weight: bold; margin-right: 12px; }

.cta-box {
    background: var(--navy-dark);
    color: white;
    padding: 50px 40px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shine 3s infinite;
}

.cta-box h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    letter-spacing: 1px;
    margin-bottom: 15px;
    position: relative;
}

.cta-box p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    position: relative;
}

.btn-cta {
    background: var(--accent);
    color: white;
    padding: 18px 50px;
    font-size: 20px;
    box-shadow: 0 6px 20px rgba(212, 56, 13, 0.4);
    position: relative;
}

.btn-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 56, 13, 0.5);
}

/* Share Section */
.share-section {
    text-align: center;
    padding: 30px;
}

.share-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid var(--border);
    background: transparent;
    border-radius: 6px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: white;
}

.share-icon {
    flex-shrink: 0;
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes shine { 0% { left: -100%; } 50%, 100% { left: 100%; } }

/* Share Email Modal */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.share-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.share-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #94a3b8;
    line-height: 1;
}

.share-modal-close:hover {
    color: #334155;
}

.share-modal-title {
    margin: 0 0 8px;
    font-size: 22px;
    color: #334155;
}

.share-modal-desc {
    margin: 0 0 20px;
    font-size: 14px;
    color: #64748b;
}

.spouse-input {
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    background: white;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.spouse-input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Full Assessment CTA (for quick quiz results) */
.full-assessment-cta {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 32px;
    text-align: center;
}

.full-assessment-content h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    color: #0369a1;
    margin: 0 0 12px;
    letter-spacing: 0.5px;
}

.full-assessment-content p {
    font-size: 15px;
    color: #0c4a6e;
    margin: 0 0 20px;
    line-height: 1.5;
}

.full-assessment-cta .btn-primary {
    background: linear-gradient(180deg, #0891b2 0%, #0e7490 100%);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.full-assessment-cta .btn-primary:hover {
    background: #0e7490;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

/* Restart Section */
.restart-section {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 768px) {
    .container { padding: 20px 15px; }

    /* Quiz length selector mobile */
    .quiz-length-selector {
        flex-direction: row;
        gap: 10px;
    }

    .length-option {
        padding: 14px 16px;
        min-width: 140px;
        flex: 1;
    }

    .length-icon {
        font-size: 24px;
    }

    .length-title {
        font-size: 15px;
    }

    .length-time {
        font-size: 12px;
    }

    /* Remove white box on mobile for results only */
    .quiz-card {
        padding: 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    /* Keep white background for quiz questions */
    #quizSection {
        background: white;
        padding: 20px 15px;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    #resultsSection.active {
        /* transparent, padding handled by children */
    }

    .modal-content { padding: 30px 20px; }
    h1 { font-size: 36px; }
    .question-text { font-size: 18px; }
    .option { padding: 14px 16px; font-size: 15px; background: white; }
    .stats-row { gap: 20px; }
    .stat-text { font-size: 18px; }
    .stat-icon { width: 22px; height: 22px; }
    .nav-buttons { flex-direction: row; }
    .btn-nav { flex: 1; min-width: auto; padding: 14px 20px; }
    .score-number { font-size: 72px; }

    /* Results section mobile */
    .score-display { margin-bottom: 20px; }
    .share-section { padding: 15px 0; }
    .share-buttons { gap: 8px; }
    .share-btn { padding: 10px 12px; font-size: 12px; }
    .category-section { margin-top: 20px; padding: 0; }
    .category-section-header { font-size: 20px; margin-bottom: 15px; padding: 0 15px; }
    .category-result { margin-bottom: 8px; border-radius: 8px; background: white; padding: 10px; }

    /* Accordion responsive - 15px max padding */
    .priority-plan { padding: 15px; margin: 0 0 15px 0; }
    .category-header { padding: 12px 15px; }
    .category-result.open .category-details { padding: 15px; }
    .category-assessment { padding: 12px 15px; margin-bottom: 15px; }
    .category-actions { padding: 0; }
    .category-actions h4 { margin-bottom: 10px; }
    .category-actions ol { padding-left: 20px; }
    .category-mini-bar { width: 50px; }
    .category-percent { font-size: 18px; min-width: 40px; }
    .category-name { font-size: 15px; }
    .priority-plan-header { flex-wrap: wrap; }
    .priority-plan-header h2 { font-size: 20px; }

    /* Footer on mobile */
    .disclaimer-footer { padding: 15px; }
    .disclaimer-text, .privacy-text { font-size: 11px; }
}

/* Print Styles - Show results and hero */
@media print {
    body {
        background: white !important;
        font-size: 11px;
    }

    /* Hide non-essential elements */
    .hero-badge,
    .stats-row,
    .hero-share-buttons,
    #quizSection,
    .modal,
    .share-section,
    .restart-section,
    .cta-box {
        display: none !important;
    }

    /* Show and style the hero for print */
    .hero {
        margin-bottom: 10px;
    }

    .hero h1 {
        font-size: 28px;
        margin-bottom: 5px;
    }

    .subtitle {
        font-size: 12px;
        margin-bottom: 10px;
    }

    /* Results section */
    .results {
        display: block !important;
    }

    .quiz-card {
        box-shadow: none;
        padding: 10px 0;
    }

    /* Light gray score display for print */
    .score-display {
        background: #f5f5f5 !important;
        color: #333 !important;
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 8px;
    }

    .score-display::before {
        display: none !important;
    }

    .score-label {
        color: #333 !important;
        font-size: 18px;
    }

    .score-date {
        color: #666 !important;
    }

    .gauge-score-big {
        color: #333 !important;
        font-size: 48px;
    }

    .gauge-label {
        fill: #666 !important;
    }

    .gauge-rating-badge {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        color-adjust: exact;
    }

    .score-description {
        color: #444 !important;
        font-size: 12px;
    }

    .score-improvement {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        color-adjust: exact;
    }

    /* Category section condensed */
    .category-section {
        padding: 10px;
        margin-bottom: 15px;
    }

    .category-section-header {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .category-result {
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 8px;
        padding: 8px;
        box-shadow: none;
        border: 1px solid #ddd;
        cursor: default;
    }

    .category-header {
        padding: 5px 8px;
    }

    .category-name {
        font-size: 14px;
    }

    .category-percent {
        font-size: 14px;
    }

    /* Show all accordion details when printing - fully expanded */
    .category-details {
        max-height: none !important;
        padding: 8px !important;
        display: block !important;
    }

    .category-toggle {
        display: none !important;
    }

    .category-assessment {
        padding: 10px;
        margin-bottom: 10px;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        color-adjust: exact;
    }

    .category-assessment p {
        font-size: 11px;
    }

    .category-actions h4 {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .category-actions li {
        font-size: 11px;
        margin-bottom: 5px;
    }

    .category-bar-fill,
    .category-mini-bar-fill {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        color-adjust: exact;
    }

    .gaps-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    /* Priority plan print styles - condensed */
    .priority-plan {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1px solid #ddd;
        box-shadow: none;
        padding: 15px;
        margin-bottom: 15px;
    }

    .priority-plan-header {
        margin-bottom: 10px;
    }

    .priority-plan-header h2 {
        font-size: 14px;
    }

    .priority-item {
        break-inside: avoid;
        page-break-inside: avoid;
        padding: 10px 0;
    }

    .priority-assessment {
        font-size: 11px;
    }

    .priority-action {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        color-adjust: exact;
        padding: 8px 10px;
    }

    .priority-action-text {
        font-size: 11px;
    }

    /* Footer */
    .disclaimer-footer {
        margin-top: 20px;
    }

    .disclaimer-text,
    .privacy-text,
    .copyright-text {
        font-size: 9px;
    }
}

/* Form Validation Errors */
input.validation-error {
    border-color: #dc2626 !important;
    background-color: #fef2f2;
}

input.validation-error:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.validation-error-message {
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.validation-error-message::before {
    content: "⚠";
    font-size: 14px;
}

/* Email Typo Confirmation Modal */
.typo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.typo-modal {
    background: white;
    border-radius: 12px;
    padding: 28px 32px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.typo-modal h3 {
    margin: 0 0 12px;
    font-size: 18px;
    color: #1e293b;
    font-weight: 600;
}

.typo-modal p {
    margin: 0 0 24px;
    font-size: 15px;
    color: #64748b;
    line-height: 1.5;
}

.typo-modal p strong {
    color: #334155;
}

.typo-modal-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.typo-btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.typo-btn-secondary {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.typo-btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.typo-btn-primary {
    background: var(--blue, #4f46e5);
    border: none;
    color: white;
}

.typo-btn-primary:hover {
    background: #4338ca;
}

@media (max-width: 480px) {
    .typo-modal {
        padding: 24px 20px;
    }

    .typo-modal-buttons {
        flex-direction: column;
    }

    .typo-btn {
        min-width: 100%;
    }
}

/* Keep Going Box (upgrade from quick to full mid-quiz) */
.keep-going-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    padding: 28px;
    margin: 24px 0 16px;
    text-align: center;
}

.keep-going-box h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0369a1;
    margin: 0 0 8px;
}

.keep-going-box p {
    font-size: 16px;
    color: #0c4a6e;
    margin: 0 0 20px;
    line-height: 1.5;
}

.keep-going-box .btn-primary.btn-large {
    background: linear-gradient(180deg, #0891b2 0%, #0e7490 100%);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
    padding: 16px 32px;
    font-size: 20px;
}

.keep-going-box .btn-primary.btn-large:hover {
    background: #0e7490;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.keep-going-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 16px;
    color: #64748b;
}

.keep-going-time svg {
    color: #0891b2;
}

/* Already answered message (after upgrading from quick to full) */
.already-answered-msg {
    color: #0891b2;
    font-weight: 500;
    opacity: 0.7;
}

/* Products CTA on Results Page */
.products-cta {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border: 2px solid #eab308;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.products-cta-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.products-cta-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.products-cta-icon svg {
    color: #ca8a04;
}

.products-cta-text {
    flex: 1;
    min-width: 200px;
}

.products-cta-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: #854d0e;
    margin: 0 0 4px;
}

.products-cta-text p {
    font-size: 14px;
    color: #a16207;
    margin: 0;
    line-height: 1.4;
}

.btn-products {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(180deg, #ca8a04 0%, #a16207 100%);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-products:hover {
    background: #a16207;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(202, 138, 4, 0.3);
}

@media (max-width: 600px) {
    .products-cta-content {
        flex-direction: column;
        text-align: center;
    }

    .btn-products {
        width: 100%;
        justify-content: center;
    }
}

