/* Kaame demo checkout (page 53): Customer -> Address -> Schedule -> Payment, with the order summary beside it.
   Layout, sizes and colours follow the reference checkout (two cards; 4-step progress bar; calendar and time pills). Everything is scoped to .km-co.
   DEMO ONLY: no payment is taken and nothing typed here is stored or sent (see km-checkout.js). */
body:has(.km-co) { background: #f4f7fe; }
.km-co-page { background: transparent !important; margin-top: 84px; }
.km-co { --co-navy: #0B1A4F; --co-cobalt: #1A5CEE; --co-ink: #101C41; --co-muted: #66728D; --co-line: #DFE7F2; --co-ice: #F3F8FE; --co-ice-deep: #EAF3FC;
  width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: 36px 0 70px; box-sizing: border-box; color: var(--co-ink); font-family: var(--km-font, 'Montserrat', sans-serif); }
.km-co *, .km-co *::before, .km-co *::after { box-sizing: border-box; }
.km-co-empty { font-size: 13px; color: var(--co-muted); }
.km-co-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* two columns: the step card (1.1fr) and the order summary (.78fr, at least 340px) */
.km-co-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .78fr); align-items: start; gap: 27px; }
.km-co-card { background: #fff; border: 1px solid #e7edf6; border-radius: 18px; box-shadow: 0 15px 38px rgba(9, 31, 79, .055); }
.km-co-layout > .km-co-card:first-child { padding: 34px; min-width: 0; }

/* progress */
.km-co-progress { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 37px; }
.km-co-pi { display: grid; justify-items: start; gap: 9px; flex: 1; position: relative; font-size: 11px; font-weight: 700; color: var(--co-muted); }
.km-co-pi:not(:last-child)::before { content: ''; position: absolute; top: 10px; left: 24px; right: 6px; height: 3px; background: #d1e1f6; }
.km-co-pi.is-done:not(:last-child)::before { background: var(--co-cobalt); }
.km-co-dot { height: 21px; width: 21px; border-radius: 50%; background: #ccddf8; z-index: 1; }
.km-co-pi.is-active .km-co-dot, .km-co-pi.is-done .km-co-dot { background: var(--co-cobalt); }
.km-co-pi.is-active { color: var(--co-navy); }

/* step text */
.km-co-h { margin: 0 0 6px; font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -.036em; color: var(--co-navy); }
.km-co-h:focus { outline: none; }
.km-co-h4 { margin: 0 0 11px; font-size: 14px; font-weight: 750; letter-spacing: -.02em; color: var(--co-navy); }
.km-co-desc { margin: 0 0 28px; font-size: 12px; line-height: 1.65; color: var(--co-muted); }
.km-co-step[hidden] { display: none; }
.km-co-stack { display: grid; gap: 15px; }
.km-co-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.km-co-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.km-co-field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.km-co-field > label { font-size: 11px; font-weight: 750; color: var(--co-navy); }
.km-co-input { display: block; width: 100%; min-height: 44px; padding: 12px 14px; border: 1px solid #ccd8e9; border-radius: 9px; background: #fff; color: var(--co-navy); font: 400 13px/1.4 var(--km-font, sans-serif); outline: none; transition: box-shadow .18s, border-color .18s; }
.km-co-input:focus { border-color: var(--co-cobalt); box-shadow: 0 0 0 3px rgba(26, 92, 238, .10); }
.km-co-input::placeholder { color: #9aa5b9; }
.km-co-input:user-invalid { border-color: #cf454f; }
.km-co-textarea { min-height: 110px; resize: vertical; }

/* guest checkout strip */
.km-co-help { display: flex; align-items: center; gap: 10px; padding: 13px 15px; margin-top: 8px; background: #e0fcf4; border: 1px solid #91e9d4; border-radius: 9px; color: #0b7661; font-size: 11px; }
.km-co-help svg { flex: none; }

/* buttons */
.km-co-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; }
.km-co-btn { display: inline-flex; gap: 9px; align-items: center; justify-content: center; min-height: 44px; padding: 11px 20px; border: 1.5px solid #1A5CEE; border-radius: 10px; background: #1A5CEE; color: #fff; font: 750 12px/1.2 var(--km-font, sans-serif); letter-spacing: -.005em; text-align: center; text-decoration: none; cursor: pointer; transition: background .18s, transform .18s, box-shadow .18s; }
.km-co-btn:hover:not(:disabled) { background: #104ed6; border-color: #104ed6; box-shadow: 0 6px 20px rgba(26, 92, 238, .15); transform: translateY(-1px); }
.km-co-btn:active:not(:disabled) { transform: translateY(0); }
.km-co-btn:disabled { opacity: .5; cursor: not-allowed; }
.km-co a.km-co-btn, .km-co a.km-co-btn:hover { color: #fff; text-decoration: none; }
.km-co-btn-outline, .km-co a.km-co-btn-outline, .km-co a.km-co-btn-outline:hover { background: #fff; color: var(--co-navy); border-color: #9baac7; }
.km-co-btn-outline:hover:not(:disabled), .km-co a.km-co-btn-outline:hover { background: var(--co-ice); color: var(--co-cobalt); border-color: var(--co-cobalt); box-shadow: none; }
.km-co-btn:focus-visible, .km-co-slot:focus-visible, .km-co-day:focus-visible, .km-co-cal-nav:focus-visible { outline: 3px solid rgba(26, 92, 238, .35); outline-offset: 2px; }

/* calendar and time slots */
.km-co-cal { padding: 17px; border: 1px solid var(--co-line); border-radius: 13px; background: #fff; }
.km-co-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.km-co-cal-head strong { font-size: 12px; color: var(--co-navy); }
.km-co-cal-nav { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--co-line); border-radius: 10px; background: #fff; color: var(--co-navy); font-size: 16px; cursor: pointer; }
.km-co-cal-nav:hover:not(:disabled) { border-color: var(--co-cobalt); color: var(--co-cobalt); }
.km-co-cal-nav:disabled { opacity: .35; cursor: not-allowed; }
.km-co-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.km-co-day { height: 41px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: #fff; color: var(--co-navy); font: 650 11px/1 var(--km-font, sans-serif); cursor: pointer; }
.km-co-day.is-head { height: 30px; background: none; border: 0; font-size: 10px; color: var(--co-muted); font-weight: 800; pointer-events: none; }
.km-co-day:hover:not(:disabled):not(.is-head) { border-color: var(--co-cobalt); background: #eaf1ff; }
.km-co-day.is-selected { background: var(--co-cobalt); color: #fff; }
.km-co-day:disabled { opacity: .2; cursor: not-allowed; }
.km-co-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.km-co-slot { min-height: 44px; padding: 9px; border: 1px solid #bac8df; border-radius: 100px; background: #fff; color: var(--co-navy); font: 650 11px/1.2 var(--km-font, sans-serif); cursor: pointer; transition: background .15s, border-color .15s; }
.km-co-slot:hover { border-color: var(--co-cobalt); }
.km-co-slot.is-selected { background: #ddfbf2; border-color: #18b995; color: #05644e; }

/* payment */
.km-co-notice { padding: 18px 20px; margin-bottom: 20px; background: #fff8e8; border: 1px solid #f2d79d; border-radius: 11px; color: #855608; font-size: 11px; line-height: 1.6; }
.km-co-notice strong { display: block; margin-bottom: 4px; }
.km-co-radio, .km-co-check { display: flex; gap: 10px; align-items: flex-start; color: var(--co-ink); font-size: 12px; cursor: pointer; }
.km-co-radio { padding: 20px; border: 1px solid var(--co-line); border-radius: 11px; }
.km-co-radio input, .km-co-check input { accent-color: var(--co-cobalt); width: 15px; height: 15px; margin-top: 3px; cursor: pointer; }
.km-co-radio strong { color: var(--co-navy); }
.km-co-muted { font-size: 11px; color: var(--co-muted); }

/* order summary */
.km-co-summary { padding: 20px 22px; position: sticky; top: 100px; min-width: 0; }
.km-co-img { display: block; width: 100%; height: 185px; object-fit: cover; border-radius: 11px; }
.km-co-img-none { background: #e6edf5; }
.km-co-sumhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 18px 0 10px; }
.km-co-sumhead h3 { margin: 0; font-size: 16px; line-height: 1.25; font-weight: 800; letter-spacing: -.036em; color: var(--co-navy); overflow-wrap: anywhere; }
.km-co-verified { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 2px; border-radius: 50%; background: #24DBAF; color: #0B1A4F; font-size: 10px; font-weight: 800; vertical-align: 1px; }
.km-co-rate { flex: none; font-size: 12px; color: var(--co-navy); white-space: nowrap; }
.km-co-star { color: #F7B61D; }
.km-co-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.km-co-pill { display: inline-flex; align-items: center; padding: 6px 11px; border-radius: 100px; background: var(--co-ice-deep); color: var(--co-navy); font-size: 10px; font-weight: 800; letter-spacing: .025em; line-height: 1.2; }
.km-co-sumrows { margin-top: 21px; }
.km-co-kv { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 10px 0; font-size: 11px; }
.km-co-kv > span:first-child { color: var(--co-muted); }
.km-co-kv > span:last-child { color: var(--co-navy); font-weight: 750; text-align: right; overflow-wrap: anywhere; }
.km-co-total { border-top: 1px solid var(--co-line); margin-top: 13px; padding-top: 13px; }
.km-co-total .km-co-kv > span { font-size: 17px; }
.km-co-note { margin: 12px 0 0; font-size: 11px; line-height: 1.6; color: var(--co-muted); }

/* confirmation (replaces the two columns after the last button): one centred 620px card, as in the reference confirmation page */
.km-co-confirmed .km-co-layout { grid-template-columns: minmax(0, 620px); justify-content: center; }
.km-co-confirmed .km-co-summary { display: none; }
.km-co-confirmed .km-co-layout > .km-co-card.km-co-success { padding: 58px 54px; text-align: center; }
.km-co-done { max-width: none; margin: 0 auto; padding: 0; text-align: center; }
.km-co-emblem { width: 80px; height: 80px; display: grid; place-items: center; margin: 0 auto 19px; border-radius: 50%; background: #24DBAF; color: #0B1A4F; }
.km-co-donepill { display: inline-flex; padding: 6px 11px; margin-bottom: 14px; border-radius: 100px; background: #d9fbf2; color: #04785e; font-size: 10px; font-weight: 800; letter-spacing: .025em; }
.km-co-done h1 { margin: 0 0 12px; font-size: 29px; line-height: 1.17; font-weight: 800; letter-spacing: -.036em; color: var(--co-navy); }
.km-co-details { margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--co-line); text-align: left; }
.km-co-donebtns { display: flex; gap: 12px; margin-top: 23px; }
.km-co-donebtns .km-co-btn { flex: 1; }

/* tablet and phone: the two cards stack */
@media (max-width: 960px) {
  .km-co-layout { grid-template-columns: minmax(0, 1fr); }
  .km-co-summary { position: static; }
  .km-co-img { height: 190px; }
}
@media (max-width: 560px) {
  .km-co { width: calc(100% - 32px); padding: 22px 0 56px; }
  .km-co-layout > .km-co-card:first-child { padding: 22px 19px; }
  .km-co-grid, .km-co-grid3 { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .km-co-slots { grid-template-columns: minmax(0, 1fr); }
  .km-co-actions { flex-wrap: wrap; }
  .km-co-actions .km-co-btn { flex: 1 1 140px; }
  .km-co-progress { margin-bottom: 28px; }
  .km-co-pi { font-size: 10px; }
  .km-co-day { height: 38px; }
  .km-co-cal { padding: 12px; }
  .km-co-summary { padding: 18px 16px; }
  .km-co-confirmed .km-co-layout > .km-co-card.km-co-success { padding: 37px 24px; }
  .km-co-done h1 { font-size: 24px; }
  .km-co-donebtns { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .km-co-btn, .km-co-input, .km-co-slot { transition: none; } .km-co-btn:hover:not(:disabled) { transform: none; } }

/* Request a quote (public page 66): same card look as the checkout, one centred column */
.km-qr { max-width: 900px; margin: 0 auto; padding: 28px 16px 56px; }
.km-qr-crumb { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; font-size: 12px; color: var(--co-muted); }
.km-qr-crumb a { color: var(--co-cobalt); text-decoration: none; font-weight: 700; }
.km-qr-card { padding: 34px; }
.km-qr-eyebrow { display: inline-block; margin-bottom: 8px; font-size: 10px; font-weight: 800; letter-spacing: .12em; color: var(--co-cobalt); }
.km-co-textarea { min-height: 110px; resize: vertical; }
.km-co-err { display: block; color: #cf454f; font-size: 11px; line-height: 1.4; }
.km-co-input[aria-invalid="true"] { border-color: #cf454f; }
.km-qr-formerr { padding: 11px 14px; background: #fdecee; border: 1px solid #f3b6bb; border-radius: 9px; }
.km-qr-note { margin: 12px 0 0; font-size: 11px; color: var(--co-muted); }
.km-qr-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.km-qr-done { text-align: center; padding: 54px 34px; }
.km-qr-done h2 { margin: 12px 0 8px; font-size: 24px; color: var(--co-navy); }
.km-qr-done p { margin: 0 auto 18px; max-width: 520px; font-size: 13px; line-height: 1.65; color: var(--co-muted); }
.km-qr-emblem { display: inline-flex; width: 54px; height: 54px; align-items: center; justify-content: center; border-radius: 50%; background: #e0fcf4; color: #0b7661; font-size: 26px; font-weight: 800; }
.km-qr-pill { display: inline-block; padding: 5px 12px; border-radius: 999px; background: #e0fcf4; color: #0b7661; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.km-qr-kv { display: grid; gap: 8px; max-width: 420px; margin: 20px auto; text-align: left; }
.km-qr-kv div { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; border-bottom: 1px solid var(--co-line); font-size: 12px; }
.km-qr-kv span { color: var(--co-muted); }
.km-qr-kv strong { color: var(--co-navy); text-align: right; }
@media (max-width: 640px) { .km-qr-card { padding: 22px 18px; } .km-qr .km-co-grid { grid-template-columns: 1fr; } }

/* Request a quote: photo picker */
.km-qr-upload { position: relative; display: grid; justify-items: center; gap: 4px; padding: 22px 16px; border: 1.5px dashed #b9c7de; border-radius: 12px; background: var(--co-ice); color: var(--co-muted); text-align: center; }
.km-qr-upload strong { font-size: 12px; color: var(--co-navy); }
.km-qr-upload span { font-size: 11px; }
.km-qr-upload input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.km-qr-upload:focus-within { outline: 3px solid rgba(26, 92, 238, .35); outline-offset: 2px; }
.km-qr-thumbs { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.km-qr-thumbs li { position: relative; width: 84px; height: 84px; }
.km-qr-thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; border: 1px solid var(--co-line); }
.km-qr-thumbs button { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: #0B1A4F; color: #fff; font-size: 15px; line-height: 1; cursor: pointer; }

/* Request a quote: confirmation page (67) */
.km-qd-h { margin: 12px 0 8px; font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.03em; color: var(--co-navy); }
.km-qd-h:focus { outline: none; }
.km-qd-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }

/* Request a quote: an element with the hidden attribute stays hidden (these rules would otherwise show the empty error box) */
.km-co-err[hidden], .km-qr-done[hidden], .km-qr-card[hidden], .km-qd [hidden] { display: none !important; }

/* Request a quote: a field turns red ONLY after "Submit quote request" found it empty or invalid (aria-invalid is set by km-quote-request.js on submit).
   The browser's own :user-invalid state (it fires as soon as you clear a required field) is switched off here. */
.km-qr .km-co-input:user-invalid:not([aria-invalid="true"]):not(:focus) { border-color: #ccd8e9; }
.km-qr .km-co-input:user-invalid:not([aria-invalid="true"]):focus { border-color: var(--co-cobalt); }

/* Request a quote: field rhythm of the reference form (styles.css of the design: .stack gap 15, .field-grid gap 18, .field gap 8; body text 14px on a 1.65 line,
   so a label row is 18px tall and an input about 49px). The checkout's fields use a tighter 13px / 1.4 line, which is why this form looked cramped. */
.km-qr .km-co-stack { gap: 15px; }
.km-qr .km-co-grid { gap: 18px; }
.km-qr .km-co-field { gap: 8px; }
.km-qr .km-co-field > label { font-size: 11px; font-weight: 750; line-height: 1.65; }
.km-qr .km-co-input { padding: 12px 14px; min-height: 44px; font-size: 14px; line-height: 1.65; }
.km-qr .km-co-textarea { min-height: 110px; }
.km-qr .km-co-err { line-height: 1.65; }
.km-qr .km-co-actions { margin-top: 24px; }
