/* Braden Scale Calculator - Teal/Clinical Theme */
.braden-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 */
.braden-hero {
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    color: #fff;
    text-align: center;
    padding: 48px 32px;
    border-radius: 16px;
    margin-bottom: 32px;
}
.braden-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 */
.braden-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.stat-item {
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
}
.stat-number { display: block; font-size: 1.8rem; font-weight: 800; color: #0f766e; }
.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: #0f766e; font-size: 1.4rem; margin: 0 0 6px; }
.form-instructions { color: #64748b; margin: 0 0 24px; }

/* Subscale Groups */
.subscale-group {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}
.subscale-group:last-of-type { border-bottom: none; }
.subscale-group h3 {
    color: #0f766e;
    font-size: 1.1rem;
    margin: 0 0 14px;
}
.subscale-hint {
    font-weight: 400;
    font-size: 0.85rem;
    color: #64748b;
    display: block;
    margin-top: 2px;
}

/* Radio Option Cards */
.radio-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.option-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.option-card:hover {
    border-color: #5eead4;
    background: #f0fdfa;
}
.option-card input[type="radio"] {
    margin-top: 4px;
    accent-color: #0f766e;
    flex-shrink: 0;
}
.option-card input[type="radio"]:checked ~ .option-content {
    color: #0f766e;
}
.option-card:has(input:checked) {
    border-color: #14b8a6;
    background: #f0fdfa;
}
.option-content { flex: 1; }
.option-score {
    display: inline-block;
    background: #0f766e;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 0.78rem;
    font-weight: 700;
    float: right;
    margin-left: 8px;
}
.option-content strong {
    display: block;
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 4px;
}
.option-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}

.form-submit { text-align: center; margin-top: 24px; }
.submit-btn {
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    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(20,184,166,0.35);
}

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

/* 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 #14b8a6;
    transition: border-color 0.4s;
}
.score-circle #braden-score-value {
    font-size: 2.8rem;
    font-weight: 800;
    color: #0f766e;
    line-height: 1;
}
.score-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

/* Risk Gauge */
.risk-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-severe { background: #7f1d1d; }
.zone-high { background: #ef4444; }
.zone-moderate { background: #f97316; }
.zone-mild { background: #eab308; }
.zone-none { background: #22c55e; }
.gauge-marker-wrap {
    position: relative;
    height: 20px;
}
.gauge-marker {
    position: absolute;
    top: 0;
    font-size: 1.2rem;
    color: #0f766e;
    transform: translateX(-50%);
    transition: left 0.6s ease;
}

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

.interpretation-card.risk-severe { border-color: #7f1d1d; background: #fef2f2; }
.interpretation-card.risk-severe h3 { color: #7f1d1d; }
.interpretation-card.risk-high { border-color: #ef4444; background: #fef2f2; }
.interpretation-card.risk-high h3 { color: #dc2626; }
.interpretation-card.risk-moderate { border-color: #f97316; background: #fff7ed; }
.interpretation-card.risk-moderate h3 { color: #c2410c; }
.interpretation-card.risk-mild { border-color: #eab308; background: #fefce8; }
.interpretation-card.risk-mild h3 { color: #a16207; }
.interpretation-card.risk-none { border-color: #22c55e; background: #f0fdf4; }
.interpretation-card.risk-none h3 { color: #166534; }

/* Subscale Breakdown */
.subscale-breakdown {
    text-align: left;
    margin: 24px 0;
}
.subscale-breakdown h3 { color: #0f766e; }
.breakdown-grid { display: flex; flex-direction: column; gap: 12px; }
.breakdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.breakdown-label {
    width: 140px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
    flex-shrink: 0;
}
.breakdown-bar-wrap {
    flex: 1;
    height: 20px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
.breakdown-bar {
    height: 100%;
    background: linear-gradient(90deg, #14b8a6, #0f766e);
    border-radius: 10px;
    transition: width 0.6s ease;
}
.breakdown-score {
    font-weight: 700;
    color: #0f766e;
    font-size: 0.95rem;
    min-width: 16px;
    text-align: right;
}
.breakdown-max {
    font-size: 0.82rem;
    color: #94a3b8;
}

/* Recommendations */
.recommendations-section {
    text-align: left;
    margin: 20px 0;
}
.recommendations-section h4 { color: #0f766e; margin-top: 0; }
.recommendations-section ul { padding-left: 20px; color: #475569; }
.recommendations-section li { margin-bottom: 6px; }
.alert-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}
.alert-box h4 { color: #dc2626; margin: 0 0 8px; }
.alert-box p { color: #7f1d1d; margin: 0; font-size: 0.92rem; }

/* Retake Button */
.retake-btn {
    background: transparent;
    border: 2px solid #14b8a6;
    color: #14b8a6;
    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: #14b8a6; 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: #0f766e; border-bottom-color: #0f766e; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content h3 { color: #0f766e; 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: #0f766e; 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: #14b8a6; 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: #0f766e; }
.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: #0f766e; }

/* Responsive */
@media (max-width: 768px) {
    .braden-hero { padding: 32px 20px; }
    .braden-hero h1 { font-size: 1.6rem; }
    .braden-stats { grid-template-columns: 1fr; }
    .calculator-form-section { padding: 20px; }
    .breakdown-item { flex-wrap: wrap; }
    .breakdown-label { width: 100%; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .tab-btn { padding: 8px 10px; font-size: 0.78rem; }
    .results-section { padding: 20px; }
}
