:root {
    --bg: #f5f7fb;
    --panel: #ffffff;
    --panel-alt: #eef4ff;
    --text: #626366;
    --muted: #5e6a82;
    --line: #d9e1ef;
    --primary: #FCC55D;
    --primary-dark: #E68524;
    --good: #167c4b;
    --warn: #9a5b00;
    --shadow: 0 20px 45px rgba(27, 49, 94, 0.08);
    --radius: 5px;
}
* {
    box-sizing: border-box;
}
html {
    -webkit-text-size-adjust: 100%;
}
body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #eef3ff 0%, var(--bg) 220px);
}
button.goBackButton {
    background-color: #E68524;
    padding: 10px 15px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    font-family: 'ITC Berkeley Oldstyle Std';
    font-weight: 700;
    font-size: 22px;
    line-height: 1;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    width: max-content;
    margin: 0 auto;
    img {
        width: 20px;
    }
}
.page-title {
    font-family: 'ITC Berkeley Oldstyle Std', sans-serif;
    font-size: 65px;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: 7px;
    color: var(--text);
    margin: 0;
    text-transform: uppercase;
    text-align: center;
}
@media screen and (max-width: 1366px) {
    .page-title {
        font-size: 50px;
        letter-spacing: 5px;
    }
}
@media screen and (max-width: 1024px) {
    .page-title {
        font-size: 40px;
        letter-spacing: 4px;
    }
}
@media screen and (max-width: 550px) {
    .page-title {
        font-size: 30px;
    }
}
.section-title {
    font-family: 'ITC Berkeley Oldstyle Std', sans-serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 0.95;
    color: var(--text);
    margin: 0;
}
@media screen and (max-width: 1366px) {
    .section-title {
        font-size: 25px;
    }
}
@media screen and (max-width: 1024px) {
    .section-title {
        font-size: 20px;
    }
}
.page-title span {
    color: var(--primary-dark);
}
.page-title strong {
    color: var(--primary-dark);
    display: block;
}
.screen-guard {
    display: none;
}
.container {
    margin: 0 auto;
}
.page-header {
    padding: 36px 0 18px;
}
.eyebrow,
.section-kicker {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
}
.page-header h1,
.dashboard-head h2,
.section-heading h2 {
    margin: 0 0 10px;
}
.lead {
    max-width: 760px;
    margin: 0 auto;
    color: var(--text);
    line-height: 1.6;
    text-align: center;
}
.notice-bar {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff8e7;
    border: 1px solid #f2dfab;
    color: #6f5310;
    line-height: 1.5;
    font-size: 0.95rem;
}
.app-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.9fr);
    gap: 24px;
    padding-bottom: 42px;
}
.form-panel,
.dashboard-card {
    border: 1px solid rgba(216, 226, 242, 0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.form-panel {
    padding: 22px;
    background-color: #fff4e1;
}
.dashboard-card {
    background-color: var(--panel);
}
.steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-bottom: 22px;
    margin-top: 30px;
}
#stepIndicators {
    --WidthPer: 0%;
}
#stepIndicators:after,
#stepIndicators:before {
    content: '';
    width: 100%;
    height: 2px;
    background: rgba(0, 0,0 ,1);
    border-radius: 5px;
    position: absolute;
    left: 0;
    bottom: 15px;
    z-index: 1;
    transition: width 0.3s ease-in-out 0s;
}
#stepIndicators:after {
    background-color: var(--primary);
    width: var(--WidthPer);
}
.step-pill {
    background: #000;
    color: #fff;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid transparent;
    position: relative;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 1200vw;
    z-index: 3;
}
.step-pill span {
    position: absolute;
    top: -30px;
    left: 0;
    color: var(--primary-dark);
    width: fit-content;
    text-wrap-mode: nowrap;
}
.step-pill:has(~ .step-pill.active),
.step-pill.active {
    background: var(--primary-dark);
    color: var(--panel);
    font-weight: 700;
}
.step-pill:has(~ .step-pill.active) {
    background: var(--primary-dark);
}
.step {
    display: none;
}
.step.is-active {
    display: block;
}
.section-heading {
    margin-bottom: 18px;
}
.section-heading p {
    margin: 0;
    color: var(--text);
    line-height: 1.55;
}
.field-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hide {
    display: none;
}
.field span {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--muted);
}
.field input,
.field select {
    padding: 15px 20px;
    outline: none;
    border-radius: var(--radius);
}
.field select {
    background-color: #fff;
    background-image: url(../images/select-arrow-down.webp);
    background-repeat: no-repeat;
    background-position: calc(100% - 20px) 50%;
    background-size: 16px;
}
.field input:focus,
.field select:focus {
    border-color: var(--primary);
}
.field.calculated {
    justify-content: center;
    min-height: 118px;
    padding: 16px;
    background: var(--panel-alt);
    border: 1px solid #d8e5ff;
    border-radius: var(--radius);
}
.field.calculated strong {
    font-size: 1.8rem;
}
.field.calculated small {
    color: var(--muted);
    line-height: 1.45;
}
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
    padding: 20px;
    border-radius: 14px;
    transition: all 0.3s ease;
}
.result-card {
    padding: 16px;
    border-radius: 14px;
    background: #f7f9fe;
    border: 1px solid #e3e9f5;
}
.result-card.accent {
    background: #e9f1ff;
    border-color: #c7d9ff;
}
.result-card span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.result-card strong {
    font-size: 1.2rem;
    line-height: 1.35;
}
.recommendation-green {
    /*background: #d4edda !important;
    border: 2px solid #28a745 !important;*/

    background: #e6852436 !important;
    border: 2px solid #e68524 !important;
}
.recommendation-yellow {
    background: #fff3cd !important;
    border: 2px solid #ffc107 !important;
}
.recommendation-red {
    background: #f8d7da !important;
    border: 2px solid #dc3545 !important;
}
.chart-container {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e3e9f5;
    height: 300px;
}
.explanation-card,
.table-wrap {
    margin-top: 16px;
}
.explanation-card {
    padding: 18px;
    background: #fcfdff;
    border: 1px solid #e5ebf7;
    border-radius: 14px;
}
.explanation-card h3,
.dashboard-why h3,
.dashboard-snapshot h3 {
    margin-top: 0;
    margin-bottom: 10px;
}
.dashboard-snapshot h3 {
    display: block;
    clear: both;
    width: 100%;
    background-image: url(../images/in-injur-accr-hdg-icon.webp);
    background-repeat: no-repeat;
    background-position: center right;
    background-size: 35px auto;
    cursor: pointer;
    user-select: none;
}
@media screen and (max-width: 1024px) {
    .dashboard-snapshot h3 {
        background-size: 27px auto;
    }
}
.dashboard-snapshot h3.openSubData {
    background-image: url(../images/in-injur-accr-hdg-hov-icon.webp);
}
.explanation-card p,
.dashboard-why p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}
.score-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.score-table th,
.score-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e7ecf7;
    text-align: left;
}
.score-table th {
    background: #f6f8fc;
}
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}
button.btn {
    min-height: 46px;
    padding: 10px 50px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    border-radius: 100vw;
}
button.btn.primary {
    background: var(--primary);
    color: #fff;
}
button.btn.primary:hover {
    background: var(--primary-dark);
}
button.btn.secondary {
    background: #fff;
    color: var(--text);
    border-color: var(--line);
}
.dashboard-panel {
    position: sticky;
    top: 20px;
    align-self: start;
}
.dashboard-card {
    padding: 22px;
}
.dashboard-head p {
    margin-top: 0;
    color: var(--muted);
    line-height: 1.55;
}
.dashboard-metrics,
.dashboard-range {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}
.dashboard-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dashboard-range {
    grid-template-columns: 1fr;
}
.dashboard-metrics div,
.dashboard-range div {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #e4eaf5;
    background: #f8faff;
}
.dashboard-metrics span,
.dashboard-range span {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}
.dashboard-metrics strong,
.dashboard-range strong {
    font-size: 1.05rem;
    line-height: 1.4;
}
.dashboard-why,
.dashboard-snapshot,
.dashboard-disclaimer {
    margin-top: 18px;
    padding: 16px;
    border-radius: 14px;
}
.dashboard-why,
.dashboard-snapshot {
    background: #fcfdff;
    border: 1px solid #e6ebf7;
}
.dashboard-snapshot dl {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.dashboard-snapshot div {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 10px;
}
.dashboard-snapshot dt {
    color: var(--muted);
    font-weight: 400;
}
.dashboard-snapshot dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
}
.dashboard-disclaimer {
    background: #fff8e7;
    border: 1px solid #f2dfab;
    color: #6f5310;
    line-height: 1.55;
    font-size: 0.92rem;
}

/* Important Note Section */
.important-note-section {
    margin: 40px 0;
    padding: 0;
}
.important-note-card {
    background: #fff8e7;
    border: 2px solid #f2dfab;
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--shadow);
}
.important-note-card h3 {
    font-family: 'ITC Berkeley Oldstyle Std', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 12px 0;
}
.important-note-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 1rem;
}

/* Disclaimers Section */
.disclaimers-section {
    margin: 40px 0 60px;
    padding: 0;
}
.disclaimers-card {
    background: var(--panel);
    border: 1px solid rgba(216, 226, 242, 0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}
.disclaimers-card h3 {
    font-family: 'ITC Berkeley Oldstyle Std', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 24px 0;
}
.disclaimer-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.disclaimer-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.disclaimer-item h4 {
    font-family: 'Jost', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 8px 0;
}
.disclaimer-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 32px;
    border-radius: 14px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideDown 0.3s;
    position: relative;
}
.close-modal {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    line-height: 20px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}
.close-modal:hover,
.close-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
.modal-content h2 {
    font-family: 'ITC Berkeley Oldstyle Std', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 12px 0;
    padding-right: 40px;
}
.modal-content p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 24px 0;
}
.modal-content .field {
    margin-bottom: 16px;
}
.modal-content .btn {
    width: 100%;
    margin-top: 8px;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 1024px) {
    .app-layout {
        grid-template-columns: 1fr;
    }
    .dashboard-panel {
        position: static;
    }
    .dashboard-metrics,
    .results-grid,
    .field-grid {
        grid-template-columns: 1fr;
    }
    .steps {
        grid-template-columns: 1fr;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto;
    }
}
@media print {
    body {
        display: none !important;
    }
}
@media screen and (max-width: 1280px) {
    .dashboard-metrics {
        grid-template-columns: repeat(4, minmax(0, 1fr))
    }
    .dashboard-metrics>div {
        grid-column: span 2;
    }
    .dashboard-metrics>div:first-child {
        grid-column-start: 1;
        grid-column-end: -1;
    }
    .steps {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
}
@media screen and (max-width: 1024px) {
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
    .form-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
}
@media screen and (max-width: 480px) {
    .steps,
    .dashboard-metrics {
        grid-template-columns: 1fr;
    }
    p {
        font-size: 14px;
    }
    .field span {
        font-size: 16px;
    }
    .field input,
    .field select {
        padding: 8px 10px;
    }
    .dashboard-card,
    .dashboard-why,
    .dashboard-snapshot,
    .dashboard-disclaimer,
    .form-panel {
        padding: 15px;
    }
    button.btn {
        width: 100%;
    }
    .field.calculated strong {
        font-size: 24px;
    }
    .dashboard-snapshot div,
    .dashboard-snapshot dl {
        gap: 5px;
    }
    .dashboard-snapshot div {
        grid-template-columns: 1fr;
    }
    .app-layout {
        padding: 0 !important;
    }
    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 10% auto;
    }
    .results-grid {
        grid-template-columns: 1fr;
    }
    .chart-container {
        height: 250px;
    }
    .step-pill span {
        display: none;
    }
}