:root {
    --blue: #1767a5;
    --blue-dark: #104d7b;
    --green: #9fbe32;
    --ink: #263746;
    --muted: #667784;
    --line: #d7e0e6;
    --soft: #f4f7f9;
    --danger: #a62d2d;
    --white: #fff;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--soft); color: var(--ink); font: 16px/1.5 Arial, sans-serif; }
.page-width { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .page-width { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: flex; align-items: center; }
.brand img { display: block; width: auto; height: 54px; }
.header-title { color: var(--muted); font-size: 18px; }
main { padding: 40px 0 60px; }
footer { border-top: 1px solid var(--line); background: var(--white); color: var(--muted); padding: 24px 0; }
.footer-disclaimer { color: var(--ink); font-size: 13px; margin: 0 0 14px; }
.footer-contact { margin: 0; }
h1, h2 { line-height: 1.2; }
h1 { margin: 0 0 14px; font-size: clamp(28px, 4vw, 42px); color: var(--blue-dark); }
a { color: var(--blue); }
.intro-card, .form-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 28px rgb(39 62 78 / 8%); }
.intro-card { max-width: 820px; margin: 35px auto; padding: clamp(28px, 5vw, 56px); }
.disclaimer { margin: 30px 0; padding: 20px; border-left: 5px solid var(--green); background: #f7faed; }
.actions, .form-actions { margin-top: 30px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.split-actions { justify-content: space-between; }
.button { appearance: none; border: 0; border-radius: 5px; background: var(--blue); color: var(--white); cursor: pointer; display: inline-block; font: inherit; font-weight: 700; padding: 13px 20px; text-decoration: none; }
.button:hover { background: var(--blue-dark); }
.button-secondary { background: #e8eef2; color: var(--ink); }
.button-secondary:hover { background: #d9e3e9; }
.button:disabled { cursor: not-allowed; opacity: .5; }
.form-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.sidebar { position: sticky; top: 20px; }
.sidebar h2 { margin: 0 0 10px; font-size: 16px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.sidebar nav { display: grid; gap: 6px; }
.section-link { width: 100%; border: 0; border-radius: 5px; background: transparent; color: var(--ink); cursor: pointer; display: flex; align-items: center; gap: 10px; font: inherit; padding: 10px; text-align: left; text-decoration: none; }
.section-link span { width: 25px; height: 25px; border-radius: 50%; background: #dce5ea; display: inline-grid; place-items: center; flex: 0 0 auto; font-size: 13px; }
.section-link:hover, .section-link.current { background: var(--white); color: var(--blue-dark); }
.section-link.current span, .section-link.review-link span { background: var(--green); color: #1d3300; }
.form-card { padding: clamp(24px, 4vw, 44px); }
.section-heading { padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.section-heading > div { color: var(--green); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.section-heading h1 { font-size: 34px; margin-top: 5px; }
.section-heading p { color: var(--muted); margin-bottom: 0; }
.section-heading .section-intro-emphasis { color: var(--ink); font-size: 17px; }
.field-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 22px; }
.field { grid-column: span 4; min-width: 0; }
.field-wide, .field-group { grid-column: 1 / -1; }
.field-three_eighths { grid-column: span 3; }
.field-one_quarter { grid-column: span 2; }
.field-group { margin: 20px 0 -4px; padding-bottom: 8px; border-bottom: 2px solid var(--blue); color: var(--blue-dark); font-size: 21px; }
.field label:not(.checkbox-label) { display: block; font-weight: 700; margin-bottom: 7px; }
.required { color: var(--danger); float: right; font-size: 12px; font-weight: 400; text-transform: uppercase; }
input, select, textarea { width: 100%; border: 1px solid #aebdc7; border-radius: 4px; background: var(--white); color: var(--ink); font: inherit; padding: 11px 12px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 3px solid rgb(23 103 165 / 14%); }
.checkbox-label { display: flex; gap: 9px; align-items: center; margin-top: 12px; }
.checkbox-label input { width: auto; }
.field-invalid input, .field-invalid select, .field-invalid textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 14px; margin-top: 5px; }
.documentation-destinations { grid-column: span 4; background: var(--soft); border-left: 5px solid var(--green); border-radius: 4px; padding: 18px 20px; }
.documentation-destinations h2 { color: var(--blue-dark); font-size: 18px; margin: 0 0 12px; }
.documentation-destinations dl { margin: 0; }
.documentation-destinations dl div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 7px 0; }
.documentation-destinations dt { font-weight: 700; }
.documentation-destinations dd { margin: 0; }
.error-summary { background: #fff0f0; border-left: 5px solid var(--danger); color: #791c1c; margin-bottom: 24px; padding: 15px 18px; }
.error-summary ul { margin-bottom: 0; }
.form-actions { justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 25px; }
.review-section { margin: 30px 0; }
.review-section-heading { align-items: center; border-bottom: 2px solid var(--blue); display: flex; justify-content: space-between; }
.review-section-heading h2 { color: var(--blue-dark); font-size: 22px; }
.review-section dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; }
.review-section dl div { border-bottom: 1px solid var(--line); padding: 13px 0; }
.review-section dt { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.review-section dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.review-note { background: #f7faed; border-left: 5px solid var(--green); color: var(--ink); font-weight: 700; padding: 15px 18px; }
.submit-actions { justify-content: space-between; }
.success-card { text-align: center; }
.success-mark { background: var(--green); border-radius: 50%; color: #203700; display: grid; font-size: 36px; height: 70px; margin: 0 auto 20px; place-items: center; width: 70px; }
.reference { background: var(--soft); font-size: 20px; padding: 15px; }
.saved-notice { background: #f7faed; border-left: 5px solid var(--green); margin-bottom: 24px; padding: 15px 18px; }
.empty-procedures { background: var(--soft); border: 1px dashed #9cabb5; border-radius: 7px; margin-bottom: 30px; padding: 24px; text-align: center; }
.empty-procedures h2 { color: var(--blue-dark); margin-top: 0; }
.procedure-list { display: grid; gap: 20px; margin-bottom: 34px; }
.procedure-summary-card { border: 1px solid var(--line); border-radius: 7px; padding: 20px; }
.procedure-card-heading { align-items: center; display: flex; gap: 20px; justify-content: space-between; }
.procedure-card-heading h2 { color: var(--blue-dark); margin: 0; }
.code-summary-table, .cost-summary-table { border-collapse: collapse; width: 100%; }
.code-summary-table th, .code-summary-table td, .cost-summary-table th, .cost-summary-table td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
.code-summary-table th:first-child { width: 28%; }
.cost-summary-table th:last-child, .cost-summary-table td:last-child { text-align: right; white-space: nowrap; }
.cost-summary-table tfoot { background: var(--soft); color: var(--blue-dark); }
.procedure-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 16px; }
.procedure-codes { border-top: 2px solid var(--blue); margin-top: 30px; padding-top: 22px; }
.field-help { color: var(--muted); font-size: 14px; }
.code-entry-row { align-items: end; display: grid; gap: 14px; grid-template-columns: minmax(150px, 1fr) minmax(260px, 2fr) minmax(90px, .45fr) auto; margin: 15px 0; }
.code-entry-row .field { grid-column: auto; }
.text-button { appearance: none; background: transparent; border: 0; cursor: pointer; font: inherit; padding: 10px; text-decoration: underline; }
.danger-link { color: var(--danger); }

@media (max-width: 800px) {
    .form-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .field-grid, .review-section dl { grid-template-columns: 1fr; }
    .field, .field-wide, .field-group, .field-three_eighths, .field-one_quarter, .documentation-destinations { grid-column: 1; }
    .site-header .page-width { align-items: flex-start; flex-direction: column; gap: 0; justify-content: center; }
    .code-entry-row { align-items: stretch; grid-template-columns: 1fr; }
}
