/* ==========================================================================
   Divorce Risk Assessment Tool - Professional Clinical Styles
   Based on Gottman Four Horsemen Research
   ========================================================================== */

/* CSS Variables - Clinical Color Palette */
:root {
    --primary-dark: #1a2332;
    --primary-blue: #2c5282;
    --primary-light: #4a7ab8;
    --accent-blue: #3182ce;
    
    --risk-critical: #c53030;
    --risk-high: #dd6b20;
    --risk-moderate: #d69e2e;
    --risk-low: #38a169;
    --risk-none: #2f855a;
    
    --horseman-criticism: #805ad5;
    --horseman-contempt: #c53030;
    --horseman-defensiveness: #d69e2e;
    --horseman-stonewalling: #3182ce;
    
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    
    --border-light: #e2e8f0;
    --border-medium: #cbd5e0;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Reset and Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: linear-gradient(135deg, var(--bg-light) 0%, #edf2f7 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* App Container */
.app-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-light);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo-text h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.logo-text .tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.privacy-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    color: #276749;
    font-weight: 500;
}

.badge-icon {
    font-size: 0.9rem;
}

/* ==========================================================================
   Progress Bar
   ========================================================================== */

.progress-container {
    display: none;
    margin-bottom: 25px;
}

.progress-container.active {
    display: block;
}

.progress-bar-wrapper {
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    border-radius: 4px;
    transition: width var(--transition-normal);
}

.progress-text {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================================================
   Section Management
   ========================================================================== */

.section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Landing Page Styles
   ========================================================================== */

.landing-content {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.landing-content h2 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.lead-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.7;
}

.key-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

.metric-card {
    text-align: center;
    padding: 25px 15px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.metric-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.research-note {
    background: #fffaf0;
    border: 1px solid #fbd38d;
    border-radius: var(--radius-md);
    padding: 25px;
    margin-bottom: 25px;
}

.research-note h3 {
    color: #c05621;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.research-note p {
    color: #744210;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.horsemen-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.horseman-item {
    padding: 12px 8px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    color: white;
}

.horseman-item.criticism { background: var(--horseman-criticism); }
.horseman-item.contempt { background: var(--horseman-contempt); }
.horseman-item.defensiveness { background: var(--horseman-defensiveness); color: #1a202c; }
.horseman-item.stonewalling { background: var(--horseman-stonewalling); }

.privacy-guarantee {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: var(--radius-md);
    padding: 25px;
    margin-bottom: 30px;
}

.privacy-guarantee h4 {
    color: #276749;
    margin-bottom: 15px;
}

.privacy-guarantee ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.privacy-guarantee li {
    font-size: 0.9rem;
    color: #22543d;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   Button Styles
   ========================================================================== */

.btn-primary, .btn-secondary, .btn-nav {
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: white;
    box-shadow: 0 4px 14px rgba(44, 82, 130, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 82, 130, 0.4);
}

.btn-primary:disabled {
    background: var(--border-medium);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--bg-light);
}

.btn-nav {
    padding: 12px 24px;
    background: white;
    color: var(--text-secondary);
    border: 1px solid var(--border-medium);
}

.btn-nav:hover {
    background: var(--bg-light);
}

.btn-nav.btn-primary {
    background: var(--primary-blue);
    color: white;
    border: none;
}

.btn-arrow {
    transition: transform var(--transition-fast);
}

.btn-primary:hover .btn-arrow {
    transform: translateX(3px);
}

.btn-secondary:hover .btn-arrow {
    transform: translateX(-3px);
}

/* ==========================================================================
   Mode Selection Styles
   ========================================================================== */

.mode-selection {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.mode-selection h2 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.section-description {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.mode-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.mode-card {
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
}

.mode-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.mode-card.selected {
    border-color: var(--primary-blue);
    background: #ebf4ff;
}

.mode-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    text-align: center;
}

.mode-card h3 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.mode-card > p {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.mode-features {
    list-style: none;
    margin-bottom: 20px;
}

.mode-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.mode-features li:last-child {
    border-bottom: none;
}

.mode-disclaimer {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 0.8rem;
    color: #c53030;
    line-height: 1.5;
}

/* ==========================================================================
   Consent Form Styles
   ========================================================================== */

.consent-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.consent-form h2 {
    color: var(--primary-dark);
    margin-bottom: 25px;
    text-align: center;
}

.consent-content {
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 15px;
    margin-bottom: 25px;
}

.consent-block {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.consent-block:last-of-type {
    border-bottom: none;
}

.consent-block h3 {
    color: var(--primary-dark);
    font-size: 1rem;
    margin-bottom: 12px;
}

.consent-block p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.consent-block ul {
    list-style: none;
    margin-left: 5px;
}

.consent-block li {
    padding: 6px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.consent-block li::before {
    content: "•";
    color: var(--primary-blue);
    font-weight: bold;
    position: absolute;
    left: 8px;
}

.consent-block.warning {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-left: -20px;
    margin-right: -20px;
}

.consent-block.warning h3 {
    color: var(--risk-critical);
}

.consent-checkbox {
    margin-bottom: 25px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.checkbox-container:hover {
    background: #edf2f7;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid var(--border-medium);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.checkbox-container input:checked + .checkmark {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.checkbox-container input:checked + .checkmark::after {
    content: "✓";
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
}

.checkbox-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.consent-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

/* ==========================================================================
   Assessment Question Styles
   ========================================================================== */

.assessment-container {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.question-category {
    padding: 6px 14px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.question-counter {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.question-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mini-progress {
    flex: 1;
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    overflow: hidden;
}

.mini-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary-blue);
    border-radius: 2px;
    transition: width var(--transition-normal);
}

.question-text {
    font-size: 1.2rem;
    color: var(--primary-dark);
    line-height: 1.6;
    margin-bottom: 35px;
    min-height: 80px;
    display: flex;
    align-items: center;
}

.response-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.response-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.response-btn:hover {
    border-color: var(--primary-light);
    background: #ebf4ff;
}

.response-btn.selected {
    border-color: var(--primary-blue);
    background: #ebf4ff;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
}

.response-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.response-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

/* ==========================================================================
   Results Dashboard Styles
   ========================================================================== */

.results-dashboard {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-header h2 {
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.results-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.overall-score-card {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #edf2f7 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
}

.score-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.score-ring {
    width: 150px;
    height: 150px;
    position: relative;
    margin-bottom: 15px;
}

.score-ring svg {
    transform: rotate(-90deg);
}

.score-ring-bg {
    fill: none;
    stroke: var(--border-light);
    stroke-width: 10;
}

.score-ring-fill {
    fill: none;
    stroke: var(--risk-none);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1s ease, stroke 0.5s ease;
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.score-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.score-description {
    max-width: 500px;
    margin: 0 auto;
    color: var(--text-secondary);
    line-height: 1.6;
}

.risk-banner {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    border-radius: var(--radius-md);
    margin-bottom: 35px;
}

.risk-banner.low { background: #f0fff4; border: 1px solid #9ae6b4; }
.risk-banner.moderate { background: #fffff0; border: 1px solid #f6e05e; }
.risk-banner.high { background: #fffaf0; border: 1px solid #f6ad55; }
.risk-banner.critical { background: #fff5f5; border: 1px solid #fc8181; }

.risk-icon {
    font-size: 2rem;
}

.risk-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.risk-text strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text-primary);
}

/* ==========================================================================
   Horsemen Breakdown Styles
   ========================================================================== */

.horsemen-breakdown {
    margin-bottom: 35px;
}

.horsemen-breakdown h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.breakdown-intro {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.horseman-cards {
    display: grid;
    gap: 20px;
}

.horseman-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 25px;
    border: 1px solid var(--border-light);
}

.horseman-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.horseman-icon {
    font-size: 1.5rem;
}

.horseman-header h4 {
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.horseman-score {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.horseman-bar {
    flex: 1;
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.horseman-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.8s ease;
}

#card-criticism .horseman-fill { background: var(--horseman-criticism); }
#card-contempt .horseman-fill { background: var(--horseman-contempt); }
#card-defensiveness .horseman-fill { background: var(--horseman-defensiveness); }
#card-stonewalling .horseman-fill { background: var(--horseman-stonewalling); }

.horseman-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    min-width: 40px;
}

.horseman-level {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.horseman-level.healthy { background: #c6f6d5; color: #22543d; }
.horseman-level.mild { background: #fefcbf; color: #744210; }
.horseman-level.moderate { background: #fed7aa; color: #7b341e; }
.horseman-level.critical { background: #fed7d7; color: #822727; }

.horseman-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.horseman-toggle {
    width: 100%;
    padding: 12px;
    background: white;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-blue);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.horseman-toggle:hover {
    background: var(--bg-light);
    border-color: var(--primary-blue);
}

.horseman-advice {
    display: none;
    margin-top: 15px;
    padding: 20px;
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.horseman-advice.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.advice-section {
    margin-bottom: 20px;
}

.advice-section:last-child {
    margin-bottom: 0;
}

.advice-section h5 {
    color: var(--primary-dark);
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.advice-section p, .advice-section li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.advice-section ul {
    margin-left: 20px;
    margin-top: 8px;
}

.advice-section li {
    margin-bottom: 6px;
}

/* ==========================================================================
   Recommendations Styles
   ========================================================================== */

.detailed-recommendations {
    margin-bottom: 35px;
}

.detailed-recommendations h3 {
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.recommendation-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-blue);
}

.recommendation-item.high-priority {
    border-left-color: var(--risk-critical);
    background: #fff5f5;
}

.recommendation-icon {
    font-size: 1.5rem;
}

.recommendation-content h4 {
    color: var(--primary-dark);
    font-size: 1rem;
    margin-bottom: 8px;
}

.recommendation-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==========================================================================
   Professional Help Styles
   ========================================================================== */

.professional-help {
    margin-bottom: 35px;
}

.professional-help h3 {
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.help-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.help-card {
    text-align: center;
    padding: 25px 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.help-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.help-card h4 {
    color: var(--primary-dark);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.help-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   Results Actions Styles
   ========================================================================== */

.results-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    padding-top: 25px;
    border-top: 1px solid var(--border-light);
}

.btn-icon {
    font-size: 1.1rem;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

.main-footer {
    margin-top: auto;
    padding: 25px 0;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    text-align: center;
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Modal Styles
   ========================================================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    max-width: 400px;
    text-align: center;
}

.modal-content h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    body {
        background: white;
    }
    
    .app-container {
        max-width: 100%;
        padding: 0;
    }
    
    .main-header, .progress-container, 
    .results-actions, .btn-primary, .btn-secondary,
    .horseman-toggle, .professional-help {
        display: none !important;
    }
    
    .section {
        display: block !important;
        page-break-after: always;
    }
    
    .results-dashboard {
        box-shadow: none;
        padding: 20px;
    }
    
    .horseman-advice {
        display: block !important;
    }
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 768px) {
    .app-container {
        padding: 15px;
    }
    
    .main-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .privacy-badge {
        width: 100%;
        justify-content: center;
    }
    
    .landing-content {
        padding: 25px;
    }
    
    .landing-content h2 {
        font-size: 1.4rem;
    }
    
    .key-metrics {
        grid-template-columns: 1fr;
    }
    
    .privacy-guarantee ul {
        grid-template-columns: 1fr;
    }
    
    .mode-options {
        grid-template-columns: 1fr;
    }
    
    .assessment-container {
        padding: 25px;
    }
    
    .response-options {
        grid-template-columns: 1fr;
    }
    
    .response-btn {
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .response-value {
        margin-bottom: 0;
        font-size: 1.2rem;
    }
    
    .response-label {
        font-size: 0.9rem;
    }
    
    .results-dashboard {
        padding: 25px;
    }
    
    .score-ring {
        width: 120px;
        height: 120px;
    }
    
    .score-value {
        font-size: 2rem;
    }
    
    .help-cards {
        grid-template-columns: 1fr;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .results-actions button {
        width: 100%;
        justify-content: center;
    }
    
    .horsemen-preview {
        grid-template-columns: repeat(2, 1fr);
    }
}
