:root { color-scheme: light; --navy: #00193c; --blue: #2e37a4; --focus: #4175fc; --accent: #87c4e6; --pale: #dae5f5; --ink: #24364c; --muted: #506078; --line: #cbd7e6; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: #edf3fa; color: var(--ink); font: 1rem/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
main { width: calc(100% - 3rem); max-width: 58rem; margin: 2.5rem auto; padding: 2.5rem 3rem; background: #fff; border: 1px solid #dce5f0; border-top: .4rem solid var(--accent); border-radius: 1.25rem; box-shadow: 0 12px 40px #00193c0a; }
h1, h2, h3, legend { color: var(--navy); line-height: 1.25; }
h1 { margin: 1.5rem 0 .75rem; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 750; letter-spacing: -.035em; text-wrap: balance; }
h2 { margin: 0 0 .75rem; font-size: 1.4rem; letter-spacing: -.015em; }
h3 { margin: 1.75rem 0 1rem; font-size: 1.1rem; }
p { margin: .5rem 0 1rem; }
a { color: var(--blue); text-underline-offset: .2em; font-weight: 650; overflow-wrap: anywhere; }
a:hover { color: var(--navy); }
.office-name { display: flex; gap: .85rem; align-items: center; margin: 0; color: var(--navy); font-size: .9rem; font-weight: 650; line-height: 1.35; }
.office-mark { display: grid; place-items: center; width: 3rem; height: 3rem; flex: 0 0 3rem; border-radius: .85rem; background: var(--navy); color: #fff; font-size: 1.05rem; font-weight: 750; border-bottom: .25rem solid var(--accent); }
.subtitle { max-width: 38rem; color: var(--muted); font-size: 1.125rem; margin-bottom: 1.5rem; }
.notice { width: fit-content; max-width: 100%; padding: .5rem .85rem; background: #f0f5fb; border: 1px solid #d8e3f0; border-radius: .5rem; color: #425975; font-size: .875rem; margin: 1rem 0 1.5rem; }
.start-guide { padding: 1rem 1.25rem; border-left: .25rem solid var(--accent); background: #f5f9fd; border-radius: 0 .65rem .65rem 0; }
.start-guide h2 { font-size: 1rem; margin-bottom: .3rem; }
.start-guide p { margin: 0; }
.form-path { display: flex; gap: 1.25rem; justify-content: space-between; list-style: none; padding: 1.25rem 0; margin: 1rem 0 .5rem; border-bottom: 1px solid var(--line); }
.form-path li { display: flex; gap: .55rem; align-items: center; font-size: .85rem; font-weight: 650; line-height: 1.35; }
.form-path li span, .section-number { display: inline-grid; place-items: center; flex: 0 0 1.75rem; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--pale); color: var(--navy); font-size: .85rem; vertical-align: .1em; }
.section-number { margin-right: .5rem; }
fieldset { min-width: 0; border: 1px solid var(--line); border-radius: .75rem; padding: 1.25rem; margin: 1rem 0; }
#questions { border: 0; padding: 0; margin: 1.25rem 0 0; }
#questions > legend { padding: .35rem 0; font-size: .9rem; color: var(--muted); font-weight: 600; }
#questions > section { padding-top: 1.5rem; margin-bottom: 2rem; }
#history { border-top: 1px solid var(--line); }
.section-intro { margin: 0 0 1.5rem; color: var(--muted); font-size: .95rem; }
label { display: block; min-width: 0; margin: 0 0 1.25rem; font-weight: 550; }
input, textarea, select { display: block; width: 100%; min-width: 0; min-height: 48px; margin-top: .45rem; padding: .7rem .8rem; border: 1px solid #8d9fb6; border-radius: .5rem; background: #fff; color: var(--ink); font: inherit; font-weight: 400; }
select { padding-right: 1.8rem; }
textarea { min-height: 6rem; resize: vertical; }
input:hover, textarea:hover, select:hover { border-color: var(--blue); }
input:focus, textarea:focus, select:focus { outline: 3px solid #4175fc36; outline-offset: 1px; border-color: var(--blue); }
:focus-visible, #status:focus { outline: 3px solid var(--focus); outline-offset: 3px; }
label:has(input[type="checkbox"]) { display: flex; align-items: flex-start; gap: .75rem; padding: .75rem; border: 1px solid var(--line); border-radius: .6rem; background: #fff; font-weight: 400; cursor: pointer; }
input[type="checkbox"] { order: -1; flex: 0 0 24px; width: 24px; height: 24px; min-height: 24px; margin: .1rem 0 0; padding: 0; accent-color: var(--blue); }
button { min-height: 48px; max-width: 100%; padding: .75rem 1.2rem; border: 1px solid transparent; border-radius: .6rem; background: var(--blue); color: #fff; font: inherit; font-weight: 650; line-height: 1.4; cursor: pointer; }
button:not(:disabled):hover { background: var(--navy); }
button:disabled { opacity: .65; cursor: default; }
button[type="button"] { background: #edf2fc; color: var(--blue); border-color: #bcc9e7; }
button[type="button"]:hover { color: #fff; }
#intake > button { width: 100%; font-size: 1.05rem; padding: 1rem; }
#before-submit, #confirmation { padding: 1.25rem !important; border-radius: .85rem; background: #f1f6fc; }
#prep-checklist { padding-left: 1.25rem; }
#prep-checklist li + li { margin-top: .7rem; }
#status { overflow-wrap: anywhere; color: var(--muted); font-size: .925rem; margin: 1rem 0; padding: .5rem 0; }
#preparation { margin-top: 1.5rem; padding: 1.5rem; border: 1px solid #c8dbef; border-radius: .85rem; background: #f1f7fd; }
#preparation h3 { margin: 1.25rem 0 .35rem; }
.help-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.5rem; font-size: .9rem; }
.help-footer strong { color: var(--navy); }
.help-footer p { margin: .35rem 0 .5rem; color: var(--muted); }
main:has(#questions[hidden]) .start-guide, main:has(#questions[hidden]) .form-path { display: none; }
main:has(#questions[hidden]) #status { margin-top: 1rem; padding: 1.25rem; border-left: .3rem solid var(--accent); border-radius: .5rem; color: var(--navy); background: #edf5fc; font-size: 1.2rem; font-weight: 600; line-height: 1.5; }
#intake:has(#questions[hidden]) > button:disabled { width: auto; min-height: 36px; padding: .4rem .9rem; font-size: .875rem; background: var(--navy); opacity: 1; }
.skip-link { position: absolute; top: -10rem; left: 1rem; padding: .75rem; background: #fff; z-index: 2; }
.skip-link:focus { top: 1rem; }
@media (min-width: 640px) {
  #driver { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1.25rem; }
  #driver > h2, #driver > .section-intro, #driver > label:has([name="streetAddress"]), #driver > label:has([name="streetAddress2"]), #driver > label:has([name="clpCdl"]) { grid-column: 1 / -1; }
  #history > label:has(> select) { display: grid; grid-template-columns: minmax(0, 1fr) 12rem; align-items: center; gap: 1.25rem; padding-bottom: 1.1rem; border-bottom: 1px solid #e4eaf2; }
  #history > label > select { margin-top: 0; }
}
@media (max-width: 639px) {
  main { width: calc(100% - 1rem); margin: .5rem auto 1rem; padding: 1.3rem 1rem; border-radius: .9rem; }
  h1 { font-size: 2rem; margin-top: 1.25rem; }
  .subtitle { font-size: 1rem; }
  .form-path { gap: .6rem; }
  .form-path li { flex: 1 1 0; min-width: 0; flex-direction: column; align-items: flex-start; font-size: .8rem; }
  #history > label:has(> select) { padding-bottom: .85rem; border-bottom: 1px solid #e4eaf2; }
  #before-submit, #confirmation, #preparation { padding: 1rem !important; }
  .help-footer { grid-template-columns: 1fr; gap: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
