:root {
    --bg-color: #ffffff;
    --surface: #ffffff;
    --surface-hover: #fdfdfd;
    --surface-border: #e2e8f0;
    
    --primary: #e11d48; /* Red tone */
    --primary-hover: #be123c;
    --primary-glow: rgba(225, 29, 72, 0.2);
    
    --accent-1: #fb7185;
    --accent-2: #f43f5e;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* Background Effects for Light Theme */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at top right, rgba(225, 29, 72, 0.03), transparent 40%),
                radial-gradient(circle at bottom left, rgba(225, 29, 72, 0.02), transparent 40%);
}

.glow-orb {
    display: none; /* Removed for a cleaner white look */
}

/* Layout Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Header */
.header {
    text-align: center;
    animation: fadeDown 0.8s ease-out forwards;
}

.title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.highlight {
    color: var(--primary);
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Glass Panel (Adapted for Light Theme) */
.glass-panel {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
}

/* Instructions & Legend */
.instructions {
    margin-bottom: 3rem;
    text-align: center;
}

.instructions p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.scale-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--surface-border);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

.badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.75rem;
}

/* Form Sections */
.section-title {
    margin: 0 0 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--surface-border);
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.mt-4 {
    margin-top: 4rem;
}

/* Question Items */
.questions-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.question-item {
    background: #ffffff;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.question-item:hover {
    border-color: rgba(225, 29, 72, 0.3);
    box-shadow: 0 5px 15px rgba(225, 29, 72, 0.05);
    transform: translateY(-2px);
}

.question-text {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    color: var(--text-primary);
}

.question-number {
    color: var(--primary);
    font-weight: 700;
    font-family: var(--font-heading);
}

/* Custom Radio Scale */
.radio-scale {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.radio-option {
    flex: 1;
    position: relative;
}

.radio-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    background: #f8fafc;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.radio-option:hover .radio-label {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--text-primary);
}

.radio-option input:checked ~ .radio-label {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px var(--primary-glow);
    transform: scale(1.05);
    z-index: 10;
}

/* Subtler colored active states for light theme */
.radio-option:nth-child(1) input:checked ~ .radio-label { background: var(--danger); border-color: var(--danger); box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2); }
.radio-option:nth-child(2) input:checked ~ .radio-label { background: #f97316; border-color: #f97316; box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2); }
.radio-option:nth-child(3) input:checked ~ .radio-label { background: var(--warning); border-color: var(--warning); box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2); }
.radio-option:nth-child(4) input:checked ~ .radio-label { background: #84cc16; border-color: #84cc16; box-shadow: 0 4px 12px rgba(132, 204, 22, 0.2); }
.radio-option:nth-child(5) input:checked ~ .radio-label { background: var(--success); border-color: var(--success); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2); }

/* Buttons */
.actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.btn-primary, .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-lg);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--primary-glow);
    background: var(--primary-hover);
}

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

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--surface-border);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

/* Results Section */
.result-header {
    text-align: center;
    margin-bottom: 2rem;
}

.result-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.score-display {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    background: #f8fafc;
    padding: 1.5rem 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--surface-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

#final-score {
    font-size: 4rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
}

.score-max {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.result-content {
    background: #f8fafc;
    border-radius: var(--radius-md);
    padding: 2.5rem;
    text-align: center;
    border: 1px solid var(--surface-border);
}

.result-status {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.status-high { color: var(--success); }
.status-medium { color: var(--warning); }
.status-low { color: var(--danger); }

.result-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Animations */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Footer */
.site-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--surface-border);
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem;
    }
    
    .glass-panel {
        padding: 1.5rem;
    }

    /* Modal Responsiveness */
    .modal-content {
        padding: 1.5rem;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-title {
        font-size: 1.4rem;
    }

    .modal-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .title {
        font-size: 2.25rem;
    }

    .scale-legend {
        flex-direction: column;
        align-items: flex-start;
    }

    .radio-scale {
        gap: 0.25rem;
    }

    .actions {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-content {
    max-width: 500px;
    width: 90%;
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.modal-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
    cursor: pointer;
}

.checkbox-group label {
    display: inline;
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.checkbox-group a {
    color: var(--primary);
    text-decoration: none;
}

.checkbox-group a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.w-100 {
    width: 100%;
}
