@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --navy: #0e1c36;
  --navy-2: #172a4d;
  --navy-3: #22396a;
  --silver: #c3c9d2;
  --silver-2: #e6e9ee;
  --ink: #0e1c36;
  --muted: #5b6577;
  --line: #dde1e8;
  --bg: #f4f5f7;
  --card: #ffffff;
  --ok: #1f7a55;
  --warn: #b7791f;
  --bad: #b42318;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(14, 28, 54, .06), 0 6px 20px rgba(14, 28, 54, .06);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Manrope, system-ui, sans-serif; color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .cond { font-family: "Barlow Condensed", Manrope, sans-serif; letter-spacing: .01em; line-height: 1.1; }
a { color: var(--navy-3); }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

.topbar { background: var(--navy); color: #fff; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.wordmark { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 22px; letter-spacing: .12em; color: #fff; text-decoration: none; white-space: nowrap; }
.wordmark { display: inline-flex; align-items: center; vertical-align: middle; }
.wordmark img { height: 16px; width: auto; display: block; }
@media (max-width: 480px) { .wordmark img { height: 12px; } .topbar .tag { display: none; } }
.topbar .tag { vertical-align: middle; color: var(--silver); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-left: 10px; }
.topbar a.wa { color: #fff; text-decoration: none; font-size: 14px; border: 1px solid rgba(255,255,255,.25); padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.hero { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 28px 0 88px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); margin: 6px 0 8px; font-weight: 700; text-transform: uppercase; }
.hero p { color: var(--silver); margin: 0; max-width: 560px; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.search { margin-top: -64px; padding: 18px; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.search .leg { display: grid; gap: 8px; grid-template-columns: 1fr; }
.search .legtitle { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.search .go { grid-column: 1 / -1; }
@media (max-width: 720px) { .search { grid-template-columns: 1fr; } }

label.f { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.in { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; min-height: 44px; }
.in:focus { outline: 2px solid var(--navy-3); outline-offset: 0; border-color: transparent; }
textarea.in { min-height: 80px; resize: vertical; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 8px; padding: 13px 18px; font-weight: 700; min-height: 46px; text-decoration: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-3); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }

.section-h { display: flex; align-items: baseline; justify-content: space-between; margin: 32px 0 14px; gap: 12px; }
.section-h h2 { font-size: 30px; margin: 0; text-transform: uppercase; }
.section-h .sub { color: var(--muted); font-size: 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.car { display: flex; flex-direction: column; overflow: hidden; }
.car .ph { position: relative; aspect-ratio: 4 / 3; background: #fff; overflow: hidden; }
.car .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.car .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.car h3 { font-size: 24px; margin: 0; }
.car .desc { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.car .desc.open { -webkit-line-clamp: unset; }
.car .more { background: none; border: 0; padding: 0; color: var(--navy-3); font-size: 13px; text-align: left; font-weight: 600; }
.car .price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.car .price b { font-size: 22px; font-family: "Barlow Condensed", sans-serif; }
.car .price small { color: var(--muted); }
.car.unavail { opacity: .55; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--silver-2); color: var(--navy); }
.badge.ok { background: #e3f3eb; color: var(--ok); }
.badge.warn { background: #fdf1dc; color: var(--warn); }
.badge.bad { background: #fde7e5; color: var(--bad); }
.badge.blue { background: #e4ebf8; color: var(--navy-3); }
.badge.purple { background: #efe6f8; color: #6b3fa0; }

.checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; margin-bottom: 40px; }
@media (max-width: 860px) { .checkout { grid-template-columns: 1fr; } }
.panel { padding: 18px; }
.panel h3 { font-size: 24px; margin: 0 0 12px; text-transform: uppercase; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
.upload { border: 1.5px dashed var(--silver); border-radius: 8px; padding: 12px; display: flex; align-items: center; gap: 12px; background: #fafbfc; min-height: 64px; }
.upload img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.upload input { font-size: 14px; max-width: 100%; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; font-size: 15px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-weight: 600; }
.summary .tot { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.summary .due { background: var(--navy); color: #fff; border-radius: 8px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 6px; }
.summary .due b { font-size: 26px; font-family: "Barlow Condensed", sans-serif; }
.fine { font-size: 13px; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 12px 0; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.err { color: var(--bad); font-weight: 600; font-size: 14px; min-height: 1em; }
.notice { padding: 12px 14px; border-radius: 8px; background: #e4ebf8; color: var(--navy); font-size: 14px; }
.notice.ok { background: #e3f3eb; color: var(--ok); }
.notice.warn { background: #fdf1dc; color: #7a4f12; }

footer { color: var(--muted); font-size: 13px; padding: 28px 0 40px; }
.hidden { display: none !important; }
.spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: s .7s linear infinite; }
@keyframes s { to { transform: rotate(360deg); } }

/* photo tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.tile { position: relative; border: 1.5px dashed var(--silver); border-radius: 10px; aspect-ratio: 1; display: grid; place-items: center; text-align: center; padding: 8px; background: #fafbfc; overflow: hidden; }
.tile.done { border-style: solid; border-color: var(--ok); background: #f1faf5; }
.tile .lbl { font-weight: 700; font-size: 14px; }
.tile .st { font-size: 12px; color: var(--muted); }
.tile input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.tile .over { position: relative; }
