:root {
  color-scheme: light;
  font: 16px/1.55 system-ui, "Malgun Gothic", sans-serif;
  color: #14263d;
  background: #f5f7fa;
  accent-color: #07529b;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.site-header { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 54px; padding: 0 clamp(10px, 3vw, 37px) 0 4px; border-bottom: 1px solid #eee; background: #fff; color: #111; }
.site-logo { display: flex; align-items: center; flex: 0 1 clamp(88px, 25vw, 163px); min-width: 0; }
.site-logo img { display: block; width: 100%; height: auto; }
.site-nav-primary { display: flex; align-items: center; justify-content: end; gap: clamp(9px, 2vw, 30px); font-size: clamp(12px, 2.8vw, 16px); }
.site-header a { color: inherit; text-decoration: none; white-space: nowrap; }
.site-header a:hover, .site-header a:focus-visible { text-decoration: underline; }
.site-header a[aria-current] { font-weight: 750; }
.site-header.is-scrolled { color: #fff; background: #1a1a1a; border-bottom-color: #1a1a1a; }
.site-logo .site-logo-inverse, .site-header.is-scrolled .site-logo-color { display: none; }
.site-header.is-scrolled .site-logo-inverse { display: block; }
main { max-width: 760px; margin: auto; padding: clamp(12px, 4vw, 30px); }
header { border-top: 4px solid #07529b; border-bottom: 1px solid #dce4ed; padding: 22px 2px 16px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(24px, 5vw, 34px); line-height: 1.23; overflow-wrap: anywhere; }
h2 { font-size: 19px; margin-bottom: 14px; }
#period { color: #52647b; margin-top: 9px; font-size: 14px; }
#period:empty { display: none; }
section, .notice { background: white; border: 1px solid #dce4ed; border-radius: 12px; padding: clamp(14px, 3vw, 23px); }
.notice, form, #receipt { margin-top: 15px; }
form { display: grid; gap: 14px; }
#intake-fields { display: grid; gap: 14px; margin: 0; }
#outlet-fields { margin: 0; }
.fields, .vehicles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
label { display: block; font-weight: 650; }
input, select, button { font: inherit; }
input:not([type=checkbox], [type=radio]), select {
  width: 100%; min-height: 44px; margin-top: 5px; padding: 8px 10px; background: #fff;
  border: 1px solid #aab9cb; border-radius: 7px; color: inherit;
}
select:disabled { background: #eef2f6; color: #52647b; }
#applicant-title ~ label, #gift-field { margin-top: 12px; }
.postcode-row { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.postcode-row label { max-width: 145px; }
.postcode-row button, .dialog-heading button { min-height: 44px; padding: 7px 14px; }
#postcode-error { margin-top: 8px; }
#address-dialog { width: min(560px, max(min(300px, 100%), calc(100% - 28px))); max-width: none; max-height: calc(100dvh - 28px); padding: 0; border: 0; border-radius: 14px; box-shadow: 0 20px 60px #14263d4d; overflow: hidden; }
#address-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); height: min(560px, calc(100dvh - 28px)); }
#address-dialog::backdrop { background: #14263da6; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid #e4e9ef; background: #fff; }
.dialog-heading h2 { margin: 0; }
.dialog-heading button { min-height: 36px; padding: 6px 14px; background: #edf2f7; color: #20334c; }
#address-results { display: grid; min-width: 0; min-height: 0; overflow: hidden; background: #fff; }
#address-results div, #address-results iframe { display: block; width: 100% !important; height: 100% !important; border: 0; }
#retry { background: white; border: 1px solid #07529b; color: #07529b; }
#phone-note { display: block; color: #52647b; font-size: 14px; font-weight: 400; }
#email-field legend { margin-bottom: 0; }
.email-receipt-note { color: #52647b; font-size: 14px; font-weight: 400; }
.email-address { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.email-address input, .email-address select { min-width: 0; }
#email-verification { margin-top: 8px; }
#email-verification button { min-height: 44px; padding: 7px 14px; }
#email-code-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
#email-code-row input { max-width: 220px; min-width: 0; margin: 0; }
#email-code-row button { white-space: nowrap; }
#email-message { margin-top: 7px; color: #52647b; font-size: 14px; }
#email-message.error { color: #9b2331; }
#email-message.verified { color: #146147; font-weight: 650; }
fieldset { border: 0; padding: 0; margin: 15px 0 0; min-inline-size: 0; }
legend { padding: 0; margin-bottom: 6px; font-weight: 650; }
.vehicles label { border: 1px solid #aab9cb; padding: 9px; border-radius: 7px; display: flex; align-items: center; gap: 6px; }
.vehicles label:has(input:checked) { border-color: #07529b; background: #eaf4ff; }
.vehicles label:has(input:disabled) { color: #5e6370; background: #eef2f6; }
.vehicles span { overflow-wrap: anywhere; }
.vehicles small { color: #9b2331; display: block; }
summary { cursor: pointer; padding: 8px 0; color: #07529b; }
.policy { white-space: pre-wrap; overflow-wrap: anywhere; margin: 7px 0; }
.check { display: flex; gap: 7px; align-items: baseline; font-weight: 500; margin: 4px 0 12px; }
input[type=checkbox], input[type=radio] { flex: 0 0 auto; width: 17px; height: 17px; margin: 1px 0; }
button { background: #07529b; border: 0; color: white; min-height: 48px; padding: 9px 18px; border-radius: 8px; font-weight: 700; cursor: pointer; }
button:disabled { background: #536881; cursor: default; }
.error { color: #9b2331; font-weight: 650; }
#receipt p + p { margin-top: 9px; }
.deposit-account { margin: 12px 0; padding: 10px 12px; border: 1px solid #dce4ed; border-radius: 6px; }
.deposit-account h3 { margin: 0; font-size: 16px; }
#receipt a { color: #07529b; font-weight: 650; }
.lookup-fields { margin: 12px 0; }
#lookup-methods { display: flex; flex-wrap: wrap; gap: 10px 20px; }
#lookup-methods label { display: flex; align-items: center; gap: 6px; }
.lookup .error { margin-top: 9px; }
.gsx-r1000r .lookup { max-width: 680px; margin: 28px auto 0; }
.gsx-r1000r .lookup section { padding: clamp(22px, 5vw, 40px); border: 1px solid #dfe5ed; box-shadow: 0 12px 38px #14263d0d; }
.gsx-r1000r .lookup h2 { font-size: 23px; margin-bottom: 22px; }
.gsx-r1000r #lookup-methods { gap: 8px; }
.gsx-r1000r #lookup-methods legend { margin-bottom: 10px; font-size: 14px; color: #52647b; }
.gsx-r1000r #lookup-methods label { flex: 1 1 190px; padding: 12px 14px; border: 1px solid #d7dfe8; border-radius: 8px; }
.gsx-r1000r #lookup-methods label:has(input:checked) { border-color: #07529b; background: #edf5fd; color: #07529b; }
.gsx-r1000r .lookup-fields { margin: 22px 0; }
.gsx-r1000r .lookup button[type=submit] { width: 100%; }
.gsx-r1000r #receipt { max-width: 680px; margin: 24px auto; padding: clamp(22px, 5vw, 40px); box-shadow: 0 12px 38px #14263d0d; }
.gsx-r1000r #receipt { border-top: 4px solid #07529b; }
.gsx-r1000r #receipt[data-state=cancelled] { border-top-color: #9b2331; }
.gsx-r1000r #receipt[data-state=approved] { border-top-color: #168256; }
.gsx-r1000r #receipt-title { font-size: clamp(22px, 4vw, 28px); margin-bottom: 20px; }
.reservation-progress { margin: 0 0 22px; }
.reservation-progress h3 { margin: 0 0 10px; font-size: 16px; }
.reservation-progress ol { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.reservation-progress li { border-radius: 6px; padding: 5px 9px; color: #52647b; background: #edf2f7; font-size: 13px; }
.reservation-progress li.completed { color: #07529b; background: #eaf4ff; }
.reservation-progress li[aria-current=step] { color: #fff; background: #07529b; font-weight: 700; }
.gsx-r1000r #receipt-number { font-size: 20px; font-weight: 750; color: #07529b; }
.gsx-r1000r #receipt-outlet { font-weight: 650; }
.gsx-r1000r #receipt-phone { margin-top: 8px; color: #52647b; }
.gsx-r1000r #receipt-state, .gsx-r1000r #waiting-count { background: #f2f6fa; border-radius: 8px; padding: 12px 14px; }
.gsx-r1000r #receipt-state:empty { display: none; }
.gsx-r1000r .deposit-account { margin: 18px 0; padding: 16px; border-color: #bdd2e7; background: #f5faff; }
.gsx-r1000r #payment:not(:empty) { margin: 18px 0; }
.gsx-r1000r #print-receipt { margin-top: 18px; }
.receipt-code { border-top: 1px solid #dedede; margin-top: 14px; padding-top: 12px; }
.receipt-code code { font-size: 1.05em; margin-left: 5px; }
.receipt-code p { margin: 5px 0 8px; }
.gsx-r1000r { background: #fff; color: #181818; }
.gsx-r1000r main { max-width: 1000px; }
.gsx-r1000r header { border-top: 0; padding: clamp(24px, 6vw, 64px) 0 26px; text-align: center; }
.gsx-r1000r h1 { font-size: clamp(26px, 5vw, 46px); font-weight: 850; }
.gsx-r1000r section { border-radius: 10px; }
.gsx-r1000r #application { gap: 18px; }
.gsx-r1000r #application section { padding: clamp(20px, 3vw, 30px); border-color: #e1e6ec; }
.gsx-r1000r #application section h2 { padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid #edf0f3; }
.gsx-r1000r #intake-fields { gap: 18px; }
.gsx-r1000r .fields { gap: 14px; }
.gsx-r1000r input:focus-visible, .gsx-r1000r select:focus-visible { outline: 2px solid #07529b; outline-offset: 2px; }
#phone-note { margin-top: 5px; }
.gsx-r1000r #availability { border-color: #efc1c4; border-radius: 4px; background: #fff0f1; text-align: center; }
.gsx-r1000r #submit:enabled { background: #c91524; }
.model-guide { margin-top: 20px; }
.reservation-inquiry { margin-top: 14px; }
.reservation-inquiry a { color: #07529b; font-weight: 700; text-underline-offset: 3px; }
.model-guide dl { display: grid; gap: 14px; margin: 0 0 22px; }
.model-guide dt { font-weight: 750; }
.model-guide dt::before { content: '■'; font-size: .65em; margin-right: .5em; }
.model-guide dd { margin: 1px 0 0; }
.model-guide h3 { font-size: 16px; margin: 0; }
.model-guide ol { padding-left: 1.3em; margin: 7px 0 0; }
.model-guide li + li { margin-top: 4px; }
.model-guide #terms-details { border-top: 1px solid #dce4ed; margin-top: 20px; padding-top: 12px; }
.model-guide #terms-details .scroll-notice { max-height: none; overflow: visible; padding: 0; border: 0; background: transparent; }
.notice-group { margin: 12px 0; }
.notice-group h3 { font-size: 16px; margin: 0 0 8px; }
.scroll-notice { max-height: 220px; overflow-y: scroll; scrollbar-gutter: stable; padding: 8px 13px; border: 1px solid #aab9cb; border-radius: 4px; background: #fafbfc; line-height: 1.7; }
#stock-note { color: #52647b; margin-bottom: 10px; font-size: 14px; }
@media print {
  .site-header, main > header, #status-lookup, #availability, #application, #print-receipt { display: none !important; }
  main { max-width: none; padding: 0; }
  #receipt { display: block; border: 0; margin: 0; padding: 0; }
}
:focus-visible { outline: 3px solid #2879c5; outline-offset: 3px; }
@media (max-width: 480px) { .fields, .vehicles { grid-template-columns: minmax(0, 1fr); } }
