

:root {
    --mauve: #96758f;
    --dark-mauve: #654b62;
    --light-mauve: #f5edf3;
    --white: #ffffff;
}

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

body {
    font-family: Arial, sans-serif;
    background: var(--light-mauve);
    color: var(--dark-mauve);
}

header {
    background: var(--mauve);
    color: var(--white);
    padding: 22px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 23px;
    font-weight: bold;
}

.language-btn {
    background: white;
    color: var(--dark-mauve);
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
}

.hero {
    text-align: center;
    padding: 110px 20px;
}

.hero h1 {
    font-size: 43px;
    margin-bottom: 22px;
}

.hero p {
    max-width: 650px;
    margin: 0 auto 35px;
    font-size: 18px;
    line-height: 1.8;
}

.start-btn {
    display: inline-block;
    padding: 15px 30px;
    background: var(--mauve);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: bold;
}

.start-btn:hover {
    background: var(--dark-mauve);
}

.features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    padding: 40px 8% 100px;
}

.feature-card {
    width: 300px;
    padding: 35px;
    background: white;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(101, 75, 98, 0.08);
}

.feature-card h2 {
    margin-bottom: 15px;
}

.feature-card p {
    line-height: 1.7;
}

footer {
    padding: 30px;
    text-align: center;
    background: var(--dark-mauve);
    color: white;
}

footer p {
    margin: 5px;
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 30px;
    }

    .hero {
        padding: 70px 20px;
    }
}

.header-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.auth-container {
    min-height: 75vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
}

.auth-card {
    background: white;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(101,75,98,0.1);
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 15px;
}

.auth-card > p {
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.6;
}

.auth-card label {
    display: block;
    margin: 18px 0 8px;
    font-weight: bold;
}

.auth-card input {
    display: block;
    width: 100%;
    padding: 13px;
    border: 1px solid #d7c6d3;
    border-radius: 10px;
    font-size: 15px;
}

.auth-button {
    width: 100%;
    padding: 14px;
    margin: 25px 0 15px;
    background: var(--mauve);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
}

.auth-button:hover {
    background: var(--dark-mauve);
}

.auth-card a {
    color: var(--dark-mauve);
    font-weight: bold;
}

.form-message {
    padding: 12px;
    background: var(--light-mauve);
    border-radius: 8px;
    margin: 15px 0;
}

.dashboard-card {
    max-width: 650px;
}

.dashboard-feature {
    margin-top: 25px;
    padding: 25px;
    border-radius: 14px;
    background: var(--light-mauve);
}

.dashboard-feature h2 {
    margin-bottom: 10px;
}

.dashboard-feature p {
    line-height: 1.6;
}

.coming-soon {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: bold;
    color: var(--mauve);
}

.assessment-container {
    padding: 45px 20px;
    display: flex;
    justify-content: center;
}

.assessment-card {
    width: 100%;
    max-width: 650px;
    padding: 35px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(101,75,98,0.1);
}

.assessment-card h1 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 12px;
}

.assessment-card > p {
    text-align: center;
    line-height: 1.6;
}

.assessment-card label {
    display: block;
    margin: 18px 0 7px;
    font-weight: bold;
}

.assessment-card input:not([type="checkbox"]),
.assessment-card select {
    width: 100%;
    padding: 13px;
    border: 1px solid #d7c6d3;
    border-radius: 10px;
    font-size: 15px;
}

.assessment-card small {
    display: block;
    margin-top: 6px;
    color: #736474;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.bmi-box {
    margin-top: 25px;
    padding: 20px;
    border-radius: 12px;
    background: #f5edf3;
    color: #654b62;
}

.health-notice {
    margin-top: 25px;
    font-size: 13px;
    color: #736474;
}

#pregnancy-fields[hidden] {
    display: none;
}

.guide-btn {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 13px;
    margin: 3px 0 12px;
    background: #f5edf3;
    color: #654b62;
    border: 1px solid #d7c6d3;
    border-radius: 9px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.guide-btn:hover {
    background: #e9dce6;
    border-color: #96758f;
}

/* ===== Professional Measurement Guide ===== */

.field-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.field-heading label {
    margin: 0 !important;
}

.measurement-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 0;
    background: transparent;
    border: none;
    color: #876a83;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.measurement-link:hover {
    color: #654b62;
    text-decoration: underline;
}

.guide-icon {
    font-size: 17px;
}

.measurement-modal[hidden] {
    display: none;
}

.measurement-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px;
    background: rgba(35, 24, 34, 0.55);
    backdrop-filter: blur(4px);
}

.measurement-content {
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 25px 70px rgba(40, 25, 40, 0.2);
}

.guide-header {
    position: relative;
    padding: 30px;
    background: #f0e4ed;
}

.guide-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    margin-bottom: 15px;
    background: #ffffff;
    border-radius: 13px;
    color: #96758f;
    font-size: 23px;
}

.guide-header h2 {
    margin: 0 35px 8px 0;
    color: #58435a;
    font-size: 23px;
}

.guide-header p {
    margin: 0;
    color: #786779;
    font-size: 14px;
}

.close-guide {
    position: absolute;
    top: 20px;
    right: 22px;
    background: transparent;
    border: none;
    color: #654b62;
    font-size: 28px;
    cursor: pointer;
}

.guide-body {
    padding: 28px 30px 30px;
}

.guide-equipment {
    padding: 18px;
    border-radius: 14px;
    background: #faf6f9;
}

.guide-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #654b62;
}

.guide-equipment p {
    margin: 9px 0 0;
    color: #786779;
    line-height: 1.6;
    font-size: 14px;
}

.guide-steps-title {
    margin: 25px 0 18px;
    color: #58435a;
    font-size: 16px;
}

.guide-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-steps li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 17px;
    color: #58435a;
    line-height: 1.6;
    font-size: 14px;
}

.step-number {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background: #f0e4ed;
    color: #654b62;
    font-weight: 700;
    font-size: 12px;
}

.guide-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
    background: #f8f3f7;
    color: #654b62;
}

.guide-note p {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
}

.guide-done {
    width: 100%;
    margin-top: 24px;
    padding: 14px;
    border: none;
    border-radius: 11px;
    background: #96758f;
    color: #ffffff;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}

.guide-done:hover {
    background: #654b62;
}

@media (max-width: 600px) {
    .guide-header,
    .guide-body {
        padding: 22px;
    }

    .field-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ===== Assessment History ===== */

.history-container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 55px 25px;
}

.history-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 35px;
}

.history-heading h1 {
    font-size: 34px;
    color: #654b62;
    margin-bottom: 10px;
}

.history-heading p {
    color: #786779;
}

.history-add-btn {
    display: inline-block;
    padding: 13px 22px;
    border-radius: 11px;
    background: #96758f;
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.history-add-btn:hover {
    background: #654b62;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 450px), 1fr)
    );
    gap: 22px;
}

.history-card {
    background: white;
    padding: 27px;
    border-radius: 20px;
    border: 1px solid #eadfe8;
    box-shadow: 0 8px 30px rgba(101,75,98,0.06);
}

.history-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0e7ee;
}

.history-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #96758f;
}

.history-card h2 {
    margin-top: 8px;
    font-size: 20px;
    color: #654b62;
}

.history-date {
    color: #8c7a89;
    font-size: 12px;
    white-space: nowrap;
}

.history-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 22px 0;
}

.history-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #faf6f9;
    padding: 17px;
    border-radius: 13px;
}

.history-stat span {
    color: #786779;
    font-size: 12px;
}

.history-stat strong {
    color: #654b62;
    font-size: 19px;
}

.history-stat small {
    color: #96758f;
}

.history-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 17px;
    border-top: 1px solid #f0e7ee;
}

.history-card-footer span {
    background: #f5edf3;
    padding: 7px 11px;
    border-radius: 20px;
    color: #654b62;
    font-size: 12px;
}

.history-empty {
    max-width: 550px;
    margin: 60px auto;
    padding: 55px 30px;
    background: white;
    border-radius: 22px;
    text-align: center;
}

.history-empty-icon {
    font-size: 50px;
    color: #96758f;
}

.history-empty h2 {
    margin: 15px 0;
    color: #654b62;
}

.history-empty p {
    margin-bottom: 25px;
    color: #786779;
}

@media (max-width: 600px) {
    .history-container {
        padding: 30px 15px;
    }

    .history-heading h1 {
        font-size: 27px;
    }

    .history-card {
        padding: 18px;
    }

    .history-stats {
        gap: 10px;
    }
}

/* ===== Assessment Results ===== */

.result-container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 45px 22px 65px;
}

.result-hero {
    text-align: center;
    background: white;
    border-radius: 22px;
    padding: 40px 25px;
    margin-bottom: 25px;
}

.result-icon {
    color: #96758f;
    font-size: 45px;
}

.result-hero h1 {
    color: #654b62;
    margin: 12px 0;
}

.result-hero p {
    color: #786779;
    line-height: 1.7;
}

.result-status {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 16px;
    background: #f5edf3;
    color: #654b62;
    border-radius: 25px;
    font-size: 13px;
}

.result-section {
    background: white;
    padding: 28px;
    border-radius: 20px;
    margin-bottom: 22px;
}

.result-section h2 {
    color: #654b62;
    margin-bottom: 22px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.result-stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #faf6f9;
    padding: 20px;
    border-radius: 14px;
}

.result-stat span {
    color: #786779;
    font-size: 13px;
}

.result-stat strong {
    color: #654b62;
    font-size: 23px;
}

.result-stat small {
    color: #96758f;
}

.result-advice {
    color: #654b62;
    line-height: 1.8;
}

.result-advice p {
    margin-bottom: 15px;
}

.result-description {
    color: #786779;
    line-height: 1.7;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.result-secondary-btn {
    padding: 13px 22px;
    border: 1px solid #96758f;
    border-radius: 11px;
    color: #654b62;
    text-decoration: none;
    font-weight: 600;
}

.result-secondary-btn:hover {
    background: #f5edf3;
}

.result-disclaimer {
    color: #786779;
    text-align: center;
    font-size: 12px;
    line-height: 1.7;
}

@media (max-width: 600px) {
    .result-grid {
        grid-template-columns: 1fr;
    }

    .result-section {
        padding: 20px;
    }
}

/* ===== Personalized Health Insights ===== */

.insights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.insight-card {
    background: #faf7fa;
    border: 1px solid #eadfe8;
    border-left: 5px solid #96758f;
    border-radius: 16px;
    padding: 22px;
    transition: transform 0.2s ease;
}

.insight-card:hover {
    transform: translateY(-2px);
}

.insight-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.insight-header h3 {
    margin: 0;
    color: #654b62;
    font-size: 18px;
}

.insight-label {
    background: #eee4ec;
    color: #654b62;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
}

.insight-card p {
    margin: 0;
    color: #685969;
    line-height: 1.8;
    font-size: 14px;
}

.insight-attention {
    border-left-color: #bd8751;
    background: #fffaf4;
}

.insight-attention .insight-label {
    background: #f6e7d4;
    color: #865d31;
}

.insight-special {
    border-left-color: #8c79ad;
    background: #f8f5fc;
}

.insight-special .insight-label {
    background: #eae2f5;
    color: #665182;
}

@media (max-width: 600px) {
    .insight-card {
        padding: 17px;
    }

    .insight-header h3 {
        font-size: 16px;
    }
}

/* ===== History Result Button ===== */

.history-result-action {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #eee3eb;
}

.history-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 12px 22px;
    background: #96758f;
    color: #ffffff;

    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;

    transition: background 0.2s ease,
                transform 0.2s ease;
}

.history-view-btn:hover {
    background: #654b62;
    color: #ffffff;
    transform: translateY(-2px);
}

.history-view-btn span {
    font-size: 18px;
    line-height: 1;
}

@media (max-width: 600px) {
    .history-view-btn {
        width: 100%;
        box-sizing: border-box;
    }
}

/* ===== Download PDF Button ===== */

.result-pdf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    background: #96758f;
    color: white;
    border-radius: 11px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.result-pdf-btn:hover {
    background: #654b62;
    color: white;
}

/* ===== MAUVE LANGUAGE SWITCH ===== */

header .language-switch {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px;
    background-color: #f5edf3;
    border: 1px solid #e5d5e1;
    border-radius: 12px;
    direction: ltr;
}

header .language-switch a,
header .language-switch a:link,
header .language-switch a:visited {
    display: inline-block;
    padding: 8px 15px;
    background-color: transparent;
    color: #654b62;
    border-radius: 9px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}

header .language-switch a.active,
header .language-switch a.active:visited {
    background-color: #96758f;
    color: #ffffff;
}

header .language-switch a:hover {
    background-color: #654b62;
    color: #ffffff;
}

html[dir="rtl"] body {
    text-align: right;
}

/* ===== REGISTER BILINGUAL DESIGN ===== */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.register-header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-header .language-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: #f5edf3;
    border: 1px solid #e5d5e1;
    border-radius: 12px;
    direction: ltr;
}

.site-header .language-switch a,
.site-header .language-switch a:link,
.site-header .language-switch a:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 9px;
    background: transparent;
    color: #654b62;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.site-header .language-switch a.active,
.site-header .language-switch a.active:link,
.site-header .language-switch a.active:visited {
    background: #96758f;
    color: #ffffff;
}

.site-header .language-switch a:hover {
    background: #654b62;
    color: #ffffff;
}

.password-requirements {
    margin: 8px 0 20px;
    padding: 15px;
    background: #f5edf3;
    border: 1px solid #e5d5e1;
    border-radius: 12px;
    color: #654b62;
    font-size: 13px;
}

.password-requirements strong {
    display: block;
    margin-bottom: 8px;
}

.password-requirements ul {
    margin: 0;
    padding-inline-start: 20px;
    line-height: 1.9;
}

.register-login-text {
    text-align: center;
    margin-top: 18px;
}

.register-login-text a,
.register-login-text a:visited {
    color: #654b62;
    font-weight: 700;
}

html[dir="rtl"] .auth-card {
    text-align: right;
}

html[dir="rtl"] .auth-card input {
    text-align: right;
}

html[dir="rtl"] .auth-card input[type="email"] {
    direction: ltr;
    text-align: left;
}

@media (max-width: 600px) {
    .site-header {
        flex-wrap: wrap;
    }

    .register-header-actions {
        gap: 10px;
    }
}

/* ===== LOGIN / REGISTER LINKS ===== */

.auth-card a,
.auth-card a:link,
.auth-card a:visited {
    color: #654b62;
    text-decoration: none;
    font-weight: 700;
}

.auth-card a:hover {
    color: #96758f;
    text-decoration: underline;
}

html[dir="rtl"] .auth-card {
    text-align: right;
}

html[dir="rtl"] .auth-card input[type="email"] {
    direction: ltr;
    text-align: left;
}

@media (max-width: 600px) {
    .register-header-actions {
        flex-wrap: wrap;
    }
}

/* ===== DASHBOARD LOGOUT ===== */

.dashboard-logout-btn {
    padding: 10px 20px;
    background: #96758f;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dashboard-logout-btn:hover {
    background: #654b62;
}

.dashboard-card {
    text-align: start;
}

html[dir="rtl"] .dashboard-card {
    text-align: right;
}

html[dir="rtl"] .dashboard-feature {
    text-align: right;
}

/* ===== ASSESSMENT RTL SUPPORT ===== */

html[dir="rtl"] .assessment-card {
    text-align: right;
}

html[dir="rtl"] .assessment-card input,
html[dir="rtl"] .assessment-card select {
    text-align: right;
}

html[dir="rtl"] .field-heading {
    flex-direction: row;
}

html[dir="rtl"] .measurement-content {
    text-align: right;
}

html[dir="rtl"] .guide-steps {
    padding-right: 22px;
    padding-left: 0;
}

html[dir="rtl"] .checkbox-label {
    flex-direction: row;
}

/* ===== BILINGUAL MEASUREMENT GUIDE ===== */

html[dir="rtl"] .measurement-content {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .guide-body,
html[dir="rtl"] .guide-equipment,
html[dir="rtl"] .guide-note {
    text-align: right;
}

html[dir="rtl"] .guide-steps {
    direction: rtl;
    padding-right: 24px;
    padding-left: 0;
}

html[dir="rtl"] .guide-steps li {
    text-align: right;
}

html[dir="ltr"] .guide-steps {
    direction: ltr;
}

/* ===== BILINGUAL RESULT PAGE ===== */

html[dir="rtl"] .result-container {
    direction: rtl;
}

html[dir="rtl"] .result-section,
html[dir="rtl"] .result-stat,
html[dir="rtl"] .insight-card {
    text-align: right;
}

html[dir="rtl"] .insight-header {
    direction: rtl;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}

@media (max-width: 600px) {
    .result-actions {
        flex-direction: column;
    }

    .result-actions .result-pdf-btn {
        width: 100%;
        box-sizing: border-box;
    }
}

/* ===== BILINGUAL HISTORY PAGE ===== */

html[dir="rtl"] .history-container {
    direction: rtl;
}

html[dir="rtl"] .history-heading,
html[dir="rtl"] .history-card,
html[dir="rtl"] .history-empty {
    text-align: right;
}

html[dir="rtl"] .history-card-top,
html[dir="rtl"] .history-card-footer {
    direction: rtl;
}

html[dir="rtl"] .history-stats {
    direction: rtl;
}

html[dir="rtl"] .history-stat {
    text-align: right;
}

html[dir="rtl"] .history-result-action {
    text-align: right;
}

html[dir="rtl"] .history-date {
    direction: ltr;
    unicode-bidi: isolate;
}

html[dir="rtl"] .history-empty {
    text-align: center;
}

/* ===== HOME LANGUAGE SWITCH ===== */

.site-header .language-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: #f5edf3;
    border: 1px solid #e5d5e1;
    direction: ltr;
}

.site-header .language-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 9px;
    color: #654b62;
    background: transparent;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.site-header .language-switch a.active {
    background: #96758f;
    color: white;
}

.site-header .language-switch a:hover {
    background: #654b62;
    color: white;
}

/* Keep homepage centered in both languages */

.hero,
.feature-card,
footer {
    text-align: center;
}

html[dir="rtl"] .features {
    direction: rtl;
}

/* Health Risk Level */

.risk-level-card {
    --risk-color: #43866b;
    --risk-width: 25%;
    background: #ffffff;
    border: 1px solid #eadfea;
    border-inline-start: 5px solid var(--risk-color);
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(100, 60, 100, 0.07);
}

.risk-level-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.risk-level-header small {
    color: #806c80;
}

.risk-level-header h3 {
    color: var(--risk-color);
    font-size: 24px;
    margin: 8px 0 0;
}

.risk-level-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 3px solid var(--risk-color);
    color: var(--risk-color);
    font-size: 28px;
    font-weight: bold;
    flex-shrink: 0;
}

.risk-level-track {
    height: 12px;
    background: #f0e8f0;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 18px;
}

.risk-level-fill {
    height: 100%;
    width: var(--risk-width);
    background: var(--risk-color);
    border-radius: 20px;
}

.risk-low {
    --risk-color: #43866b;
    --risk-width: 25%;
}

.risk-moderate {
    --risk-color: #c28c32;
    --risk-width: 50%;
}

.risk-high {
    --risk-color: #d16a42;
    --risk-width: 75%;
}

.risk-emergency {
    --risk-color: #b94058;
    --risk-width: 100%;
}

.risk-level-reasons {
    background: #faf7fa;
    padding: 16px 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.risk-level-reasons h4 {
    margin: 0 0 12px;
    color: #624c63;
}

.risk-level-reasons ul {
    margin: 0;
    padding-inline-start: 22px;
    line-height: 1.9;
}

.risk-level-disclaimer {
    font-size: 13px;
    color: #786d78;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .risk-level-card {
        padding: 18px;
    }

    .risk-level-header h3 {
        font-size: 20px;
    }
}

