/* All Glass Installation: small additions on top of the Atlas design system
   (atlas-design.css + home-cta.css, copied unchanged from atlasautoglass.com).
   Only pieces Atlas's home page doesn't have: breadcrumb, the quote form card,
   check lists, a 3-up service grid and the brand mark. */

.agi-mark { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--atlas-green); color: #fff; flex: 0 0 44px; }
.agi-mark svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.atlas-brand { display: flex; align-items: center; gap: 12px; color: var(--atlas-ink); text-decoration: none; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }

.agi-breadcrumb { font-size: 13px; color: var(--atlas-muted); margin: 0 0 18px; }
.agi-breadcrumb a { color: var(--atlas-muted); text-decoration: none; }
.agi-breadcrumb a:hover { color: var(--atlas-green); text-decoration: underline; }

/* Service + city + landing pages: centred Atlas hero, then copy beside the form. */
.agi-page-hero { padding-bottom: 56px; }
.agi-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: start; }
@media (max-width: 920px) { .agi-split { grid-template-columns: 1fr; } }
.agi-prose h2 { font-size: clamp(24px, 3vw, 32px) !important; margin: 36px 0 12px !important; }
.agi-prose h2:first-child { margin-top: 0 !important; }
.agi-prose p, .agi-prose li { color: var(--atlas-muted); font-size: 17px; }
.agi-checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.agi-checks li { position: relative; padding-left: 30px; color: var(--atlas-ink); font-size: 16px; }
.agi-checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--atlas-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006d33' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.atlas-services.agi-services-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 920px) { .atlas-services.agi-services-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .atlas-services.agi-services-3 { grid-template-columns: 1fr; } }
.atlas-shops.agi-shops-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .atlas-shops.agi-shops-2 { grid-template-columns: 1fr; } }
.agi-notice { background: #fff8e1; border: 1px solid #f3d27a; color: #6b4e00; border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.agi-map { width: 100%; height: 320px; border: 0; border-radius: var(--atlas-radius); }

/* Quote form card (simple form; the Atlas booking flow is embedded on /request-a-quote/). */
.agi-quote { background: #fff; border: 1px solid var(--atlas-line); border-radius: 24px; padding: 28px; text-align: left; box-shadow: 0 10px 30px #0000000d; }
html body .agi-quote h2 { font-size: 26px !important; margin: 0 0 6px !important; letter-spacing: -.03em; }
.agi-quote .sub { color: var(--atlas-muted); font-size: 15px; margin: 0 0 18px; }
.agi-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.agi-form-grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .agi-form-grid { grid-template-columns: 1fr; } }
.agi-field label { display: block; font-size: 13px; font-weight: 600; color: var(--atlas-ink); margin: 0 0 6px; }
.agi-field input, .agi-field select, .agi-field textarea { width: 100%; padding: 12px 14px; }
.agi-field textarea { min-height: 88px; resize: vertical; }
.agi-field .hint { color: #b42318; font-size: 13px; min-height: 0; margin-top: 4px; }
.agi-field .hint:empty { display: none; }
.agi-vehicle[hidden] { display: none !important; }
.agi-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.5; color: var(--atlas-muted); }
.agi-consent input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; }
.agi-consent a { color: var(--atlas-green); }
.agi-form-error { color: #b42318; font-weight: 600; font-size: 14px; margin: 10px 0 0; }
.agi-form-error:empty { display: none; }
html body .agi-quote .atlas-button { width: 100%; margin-top: 16px; }
.agi-small { font-size: 12px; color: var(--atlas-muted); font-weight: 400; }

/* Footer extras on top of .atlas-footer */
.atlas-footer-grid > div { display: flex; flex-direction: column; gap: 8px; }
.atlas-footer-grid h3 { font-size: 15px !important; margin: 0 0 6px !important; }
.atlas-footer-grid a { color: var(--atlas-muted); font-size: 14px; text-decoration: none; }
.atlas-footer-grid a:hover { color: var(--atlas-green); text-decoration: underline; }
.atlas-footer-grid p { color: var(--atlas-muted); font-size: 14px; margin: 0; }

/* Multi-step quote (Atlas /quote/ steps: Glass, Vehicle, Service, Details). */
.agi-progress ol { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 18px; padding: 0; }
.agi-progress li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--atlas-muted); text-align: center; position: relative; }
.agi-progress li::after { content: ""; position: absolute; top: 14px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px; background: var(--atlas-line); }
.agi-progress li:last-child::after { display: none; }
.agi-step-number { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--atlas-line); background: #fff; font-size: 13px; font-weight: 600; color: var(--atlas-muted); }
.agi-progress li[aria-current="step"] { color: var(--atlas-ink); font-weight: 600; }
.agi-progress li[aria-current="step"] .agi-step-number { border-color: var(--atlas-green); background: var(--atlas-green); color: #fff; }
.agi-progress li.done .agi-step-number { border-color: var(--atlas-green); color: var(--atlas-green); background: var(--atlas-tint); }
.agi-progress li.done::after { background: var(--atlas-green); }
.agi-progress li.skipped { opacity: .45; }
.agi-summary { margin: -6px 0 14px; padding: 8px 12px; border-radius: 10px; background: var(--atlas-canvas); font-size: 13px; color: var(--atlas-ink); }
.agi-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.agi-step legend { font-size: 18px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 12px; padding: 0; color: var(--atlas-ink); }
.agi-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.agi-tile { position: relative; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 12px; border: 1.5px solid var(--atlas-line); border-radius: 14px; background: #fff; cursor: pointer; font-size: 14px; line-height: 1.25; transition: border-color 150ms, background 150ms; }
.agi-tile:hover { border-color: #9fbfaa; }
.agi-tile input { position: absolute; opacity: 0; pointer-events: none; }
.agi-tile svg { width: 26px; height: 26px; flex: 0 0 26px; fill: none; stroke: var(--atlas-green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.agi-tile:has(input:checked) { border-color: var(--atlas-green); background: var(--atlas-tint); box-shadow: 0 0 0 1px var(--atlas-green) inset; }
.agi-tile:has(input:focus-visible) { outline: 3px solid var(--atlas-focus); outline-offset: 2px; }
.agi-tiles-rows { grid-template-columns: 1fr 1fr; }
.agi-tile-row span { display: flex; flex-direction: column; }
.agi-tile-row small { color: var(--atlas-muted); font-size: 12px; margin-top: 2px; }
@media (max-width: 420px) { .agi-tiles-rows { grid-template-columns: 1fr; } }
.agi-step-actions { display: flex; gap: 10px; margin-top: 16px; }
html body .agi-quote .agi-step-actions .atlas-button { width: auto; flex: 1; margin-top: 0; }
html body .agi-quote .agi-step-actions [data-back] { flex: 0 0 auto; }

/* Shop's own photos (moved from allglassinstallation.com). */
html body .atlas-brand img { width: auto; height: 44px; object-fit: contain; border-radius: 6px; }
@media (max-width: 760px) { html body .atlas-brand img { height: 36px; } }
.agi-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 24px 0 0; }
.agi-gallery.agi-gallery-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.agi-gallery figure { margin: 0; }
.agi-gallery img { display: block; width: 100%; height: 240px; object-fit: cover; border-radius: 18px; background: var(--atlas-canvas); }
@media (max-width: 640px) { .agi-gallery, .agi-gallery.agi-gallery-2 { grid-template-columns: 1fr; } .agi-gallery img { height: 220px; } }
.agi-insurers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.agi-insurers figure { margin: 0; background: #fff; border: 1px solid var(--atlas-line); border-radius: 14px; padding: 8px; }
.agi-insurers img { display: block; width: 100%; height: 64px; object-fit: contain; }
@media (max-width: 640px) { .agi-insurers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.agi-reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 900px; margin: 28px auto 0; }
.agi-reviews figure { margin: 0; background: #fff; border: 1px solid var(--atlas-line); border-radius: 18px; overflow: hidden; display: grid; place-items: center; }
.agi-reviews img { display: block; width: 100%; height: auto; }
@media (max-width: 640px) { .agi-reviews { grid-template-columns: 1fr; } }
.agi-reviews-crop img { aspect-ratio: 400 / 250; object-fit: cover; object-position: center 55%; }
@media (max-width: 420px) {
  html body .atlas-brand img { height: 28px; }
  .agi-tile { font-size: 13px; padding: 8px 10px; gap: 8px; min-height: 52px; }
  .agi-tile svg { width: 22px; height: 22px; flex-basis: 22px; }
  .agi-quote { padding: 20px 16px; }
}
/* Every page: on phones the quote form comes before the text beside it. */
@media (max-width: 920px) { .agi-split > .agi-quote { order: -1; } }
/* Phones: trust strip as a 2x2 grid so the form sits closer to the hero. */
@media (max-width: 640px) {
  .atlas-trust-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding-top: 14px; padding-bottom: 14px; }
  .atlas-trust-inner a { font-size: 12px; line-height: 1.3; }
}

/* Glass step: multi-select tiles, side-window picker, notes (Sina, 2026-11-28). */
.agi-tile > span { display: flex; flex-direction: column; }
.agi-tile > span small { color: var(--atlas-muted); font-size: 11.5px; margin-top: 2px; line-height: 1.25; }
.agi-step legend .agi-small { font-weight: 400; margin-left: 4px; }
.agi-sides { margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--atlas-canvas); border: 1px solid var(--atlas-line); }
.agi-sides-title { margin: 0 0 10px; font-weight: 600; font-size: 15px; color: var(--atlas-ink); }
.agi-side-row { display: grid; grid-template-columns: 110px 1fr; gap: 8px; align-items: center; margin: 8px 0; }
.agi-side-name { font-size: 13px; font-weight: 600; color: var(--atlas-ink); }
.agi-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.agi-chip { position: relative; cursor: pointer; }
.agi-chip input { position: absolute; opacity: 0; pointer-events: none; }
.agi-chip span { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border: 1.5px solid var(--atlas-line); border-radius: 999px; background: #fff; font-size: 13px; transition: border-color 150ms, background 150ms; }
.agi-chip:hover span { border-color: #9fbfaa; }
.agi-chip input:checked + span { border-color: var(--atlas-green); background: var(--atlas-tint); color: var(--atlas-green); font-weight: 600; }
.agi-chip input:focus-visible + span { outline: 3px solid var(--atlas-focus); outline-offset: 2px; }
@media (max-width: 420px) { .agi-side-row { grid-template-columns: 1fr; gap: 4px; } }
.agi-heavy-title { margin: 6px 0 0; font-weight: 600; font-size: 15px; }
.agi-heavy { margin-top: 10px; }
.agi-where-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--atlas-tint); color: var(--atlas-ink); font-size: 13.5px; }

/* Clickable progress steps (finished steps go back) and compact vehicle rows (2026-11-29). */
.agi-step-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: default; min-height: 44px; }
.agi-step-btn:not(:disabled) { cursor: pointer; }
.agi-step-btn:not(:disabled):hover .agi-step-number { background: var(--atlas-green); color: #fff; }
.agi-step-btn:not(:disabled) { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #9fbfaa; }
.agi-progress li { z-index: 0; }
.agi-progress li .agi-step-btn { position: relative; z-index: 1; }
.agi-vrow { display: grid; grid-template-columns: 6.2em minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.agi-vrow-ids { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); margin-top: 12px; }
.agi-f-year select { padding-left: 10px; padding-right: 4px; }
.agi-f-vin input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; letter-spacing: .04em; text-transform: uppercase; min-width: 0; }
.agi-f-plate input { text-transform: uppercase; }
.agi-vin-help { margin: 8px 0 0; }
@media (max-width: 420px) {
  /* Year | Make | Model on one row, VIN | plate on the next, even on a phone. */
  .agi-vrow { grid-template-columns: 4.9em minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
  .agi-vrow-ids { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
  .agi-vehicle .agi-field input, .agi-vehicle .agi-field select { padding-left: 9px; padding-right: 6px; font-size: 15px; }
  .agi-f-year select { padding-right: 0; }
  .agi-f-vin input { font-size: 13.5px; letter-spacing: 0; }
  .agi-vehicle .agi-field label { font-size: 12px; }
}

/* Year / make / model: dropdown + type-to-search in one field (2026-11-29). */
.agi-combo { position: relative; }
.agi-combo input { width: 100%; padding-right: 30px !important; }
.agi-combo-btn { position: absolute; top: 1px; right: 1px; bottom: 1px; width: 30px; display: grid; place-items: center; background: none; border: 0; border-radius: 0 12px 12px 0; color: var(--atlas-muted); cursor: pointer; padding: 0; }
.agi-combo-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 150ms; }
.agi-combo.open .agi-combo-btn svg { transform: rotate(180deg); }
.agi-combo-list { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; min-width: 100%; width: max-content; max-width: min(320px, 80vw); max-height: 260px; overflow-y: auto; margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--atlas-line); border-radius: 12px; box-shadow: 0 12px 28px #00000024; }
.agi-combo-list li { padding: 9px 12px; border-radius: 8px; font-size: 15px; cursor: pointer; white-space: nowrap; }
.agi-combo-list li:hover, .agi-combo-list li[aria-selected="true"] { background: var(--atlas-tint); color: var(--atlas-green); }
.agi-combo-list li.agi-combo-empty { color: var(--atlas-muted); cursor: default; white-space: normal; font-size: 13px; }
.agi-combo-list li.agi-combo-empty:hover { background: none; color: var(--atlas-muted); }
.agi-vrow .agi-field:last-child .agi-combo-list { left: auto; right: 0; }
