/* Rosenberg Self-Esteem Scale - Green/Growth Theme */
.rses-calculator-container {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
    line-height: 1.6;
}

/* Hero */
.rses-hero {
    background: linear-gradient(135deg, #22c55e, #15803d);
    color: #fff;
    text-align: center;
    padding: 48px 32px;
    border-radius: 16px;
    margin-bottom: 32px;
}
.rses-hero h1 { font-size: 2.2rem; margin: 0 0 8px; }
.hero-subtitle { font-size: 1.15rem; opacity: 0.9; margin: 0 0 20px; }
.hero-badges { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.badge {
    background: rgba(255,255,255,0.18);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.badge-icon { font-size: 1rem; }

/* Stats */
.rses-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.stat-item {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
}
.stat-number { display: block; font-size: 1.8rem; font-weight: 800; color: #15803d; }
.stat-label { font-size: 0.82rem; color: #64748b; margin-top: 4px; display: block; }

/* Privacy */
.privacy-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 28px;
}
.privacy-icon { font-size: 1.6rem; }
.privacy-notice strong { display: block; color: #166534; font-size: 0.95rem; }
.privacy-notice p { margin: 2px 0 0; font-size: 0.85rem; color: #4b5563; }

/* Form */
.calculator-form-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 32px;
    margin-bottom: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.calculator-form-section h2 { color: #15803d; font-size: 1.4rem; margin: 0 0 6px; }
.form-instructions { color: #64748b; margin: 0 0 24px; }

/* Questions */
.question-group {
    margin-bottom: 24px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.question-text {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
    margin: 0 0 14px;
}
.q-number {
    color: #15803d;
    font-weight: 800;
}

/* Likert Options */
.likert-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.likert-option {
    cursor: pointer;
    text-align: center;
}
.likert-option input { display: none; }
.likert-label {
    display: block;
    padding: 10px 8px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    transition: all 0.2s;
}
.likert-option:hover .likert-label {
    border-color: #86efac;
    background: #f0fdf4;
}
.likert-option input:checked + .likert-label {
    border-color: #22c55e;
    background: #f0fdf4;
    color: #15803d;
}

.form-submit { text-align: center; margin-top: 24px; }
.submit-btn {
    background: linear-gradient(135deg, #22c55e, #15803d);
    color: #fff;
    border: none;
    padding: 14px 48px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34,197,94,0.35);
}

/* Results */
.results-section {
    background: #fff;
    border: 2px solid #bbf7d0;
    border-radius: 14px;
    padding: 32px;
    margin-bottom: 28px;
    text-align: center;
}
.results-section h2 { color: #15803d; }

/* Score Circle */
.score-display { margin: 20px 0; }
.score-circle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 6px solid #22c55e;
    transition: border-color 0.4s;
}
.score-circle #rses-score-value {
    font-size: 2.8rem;
    font-weight: 800;
    color: #15803d;
    line-height: 1;
}
.score-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

/* Score Gauge */
.score-gauge { margin: 24px 0; }
.gauge-bar {
    display: flex;
    height: 36px;
    border-radius: 18px;
    overflow: hidden;
}
.gauge-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
}
.zone-low { background: #ef4444; }
.zone-normal { background: #eab308; }
.zone-high { background: #22c55e; }
.gauge-marker-wrap {
    position: relative;
    height: 20px;
}
.gauge-marker {
    position: absolute;
    top: 0;
    font-size: 1.2rem;
    color: #15803d;
    transform: translateX(-50%);
    transition: left 0.6s ease;
}

/* Interpretation Card */
.interpretation-card {
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 20px 0;
    text-align: left;
}
.interpretation-card h3 { color: #15803d; margin: 0 0 8px; }
.interpretation-card p { color: #475569; margin: 0; }

.interpretation-card.level-low { border-color: #ef4444; background: #fef2f2; }
.interpretation-card.level-low h3 { color: #dc2626; }
.interpretation-card.level-normal { border-color: #eab308; background: #fefce8; }
.interpretation-card.level-normal h3 { color: #a16207; }
.interpretation-card.level-high { border-color: #22c55e; background: #f0fdf4; }
.interpretation-card.level-high h3 { color: #15803d; }

/* Score Context */
.score-context {
    margin: 24px 0;
    text-align: left;
}
.score-context h3 { color: #15803d; }
.context-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.context-item {
    background: #f0fdf4;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}
.context-label { display: block; font-size: 0.78rem; color: #166534; font-weight: 600; text-transform: uppercase; }
.context-value { display: block; font-size: 1.6rem; font-weight: 800; color: #15803d; margin-top: 4px; }

/* Recommendations */
.recommendations-section {
    text-align: left;
    margin: 20px 0;
}
.recommendations-section h4 { color: #15803d; margin-top: 0; }
.recommendations-section ul { padding-left: 20px; color: #475569; }
.recommendations-section li { margin-bottom: 6px; }

/* Retake */
.retake-btn {
    background: transparent;
    border: 2px solid #22c55e;
    color: #22c55e;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.2s;
}
.retake-btn:hover { background: #22c55e; color: #fff; }

/* Education Tabs */
.education-tabs {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 28px;
}
.tab-nav {
    display: flex;
    gap: 6px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 24px;
    overflow-x: auto;
}
.tab-btn {
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}
.tab-btn.active,
.tab-btn:hover { color: #15803d; border-bottom-color: #15803d; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content h3 { color: #15803d; margin-top: 0; }
.tab-content h4 { color: #374151; margin-top: 20px; }
.tab-content p { color: #475569; }
.tab-content ul { color: #475569; padding-left: 20px; }
.tab-content li { margin-bottom: 6px; }

/* FAQ */
.faq-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 28px;
}
.faq-section h2 { color: #15803d; margin-top: 0; }
.faq-item { border-bottom: 1px solid #e2e8f0; }
.faq-item:last-child { border-bottom: none; }
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 16px 0;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after { content: '+'; font-size: 1.4rem; color: #22c55e; font-weight: 300; }
.faq-item.active .faq-question::after { content: '\2212'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer p { padding: 0 0 16px; color: #475569; margin: 0; font-size: 0.95rem; }

/* Disclaimer */
.medical-disclaimer {
    background: #fef9ee;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 28px;
}
.medical-disclaimer h3 { color: #92400e; margin: 0 0 8px; font-size: 1rem; }
.medical-disclaimer p { margin: 0; font-size: 0.88rem; color: #78716c; }

/* Related */
.related-calculators { margin-bottom: 28px; }
.related-calculators h2 { color: #15803d; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.related-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 12px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.related-icon { font-size: 2rem; margin-bottom: 8px; }
.related-title { font-weight: 700; color: #1e293b; font-size: 0.9rem; margin-bottom: 4px; }
.related-desc { color: #64748b; font-size: 0.78rem; }

/* References */
.references-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 28px;
}
.references-section h3 { margin: 0 0 12px; color: #475569; font-size: 1rem; }
.references-list { margin: 0; padding-left: 20px; }
.references-list li { font-size: 0.82rem; color: #64748b; margin-bottom: 8px; }
.references-list a { color: #15803d; }

/* Responsive */
@media (max-width: 768px) {
    .rses-hero { padding: 32px 20px; }
    .rses-hero h1 { font-size: 1.6rem; }
    .rses-stats { grid-template-columns: 1fr; }
    .calculator-form-section { padding: 20px; }
    .likert-options { grid-template-columns: repeat(2, 1fr); }
    .context-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .tab-btn { padding: 8px 10px; font-size: 0.78rem; }
    .results-section { padding: 20px; }
}
