/* SMBI Car Keys — plain CSS, no framework, no external fonts.
   Colours are the app blue from Bay Islands Guide (#556cf6) on a
   pale background, so the deployable site matches the Muse prototype. */
:root {
  --blue: #556cf6;
  --blue-dark: #3f55d6;
  --ink: #1c2333;
  --muted: #5b6478;
  --line: #dfe3ee;
  --bg: #f4f6fb;
  --card: #ffffff;
  --amber-bg: #fff7e0;
  --amber-line: #e8c96a;
  --green-bg: #e8f7ee;
  --red: #b3261e;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.55;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px 64px; }
header.hero {
  background: var(--ink); color: #fff; padding: 36px 16px 28px; text-align: center;
}
header.hero h1 { margin: 0; font-size: 2rem; letter-spacing: .02em; }
header.hero p { margin: 6px 0 0; color: #c6cde6; }
header.hero .phone { color: #fff; font-weight: 700; }
h2 { margin-top: 32px; font-size: 1.35rem; }
h3 { margin: 28px 0 8px; font-size: 1.1rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; margin-top: 16px;
}
.notice {
  background: var(--amber-bg); border: 1px solid var(--amber-line);
  border-radius: 10px; padding: 14px 16px; margin-top: 16px;
}
.ok {
  background: var(--green-bg); border: 1px solid #9ed6b4;
  border-radius: 10px; padding: 14px 16px; margin-top: 16px;
}
.error-box {
  background: #fdecea; border: 1px solid #f0b4ae; color: var(--red);
  border-radius: 10px; padding: 14px 16px; margin-top: 16px;
}
label { display: block; font-weight: 600; margin: 16px 0 6px; }
label .req { color: var(--red); }
.hint { font-weight: 400; color: var(--muted); font-size: .9rem; }
input[type=text], input[type=tel], input[type=email], input[type=password],
select, textarea {
  width: 100%; padding: 11px 12px; font: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue);
}
textarea { min-height: 96px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.radio-row { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.radio-row label, .check-row label {
  display: flex; gap: 10px; align-items: flex-start; font-weight: 400;
  margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px;
  cursor: pointer; background: #fff;
}
.radio-row label:has(input:checked), .check-row label:has(input:checked) {
  border-color: var(--blue); background: #eef1ff;
}
.radio-row input, .check-row input { margin-top: 4px; accent-color: var(--blue); }
.radio-row small, .check-row small { display: block; color: var(--muted); }
.check-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
@media (max-width: 560px) { .check-row { grid-template-columns: 1fr; } }
button, .btn {
  display: inline-block; background: var(--blue); color: #fff; border: 0;
  border-radius: 8px; padding: 13px 22px; font: inherit; font-weight: 700;
  cursor: pointer; text-decoration: none; margin-top: 20px;
}
button:hover, .btn:hover { background: var(--blue-dark); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-danger { background: var(--red); }
.estimate {
  position: sticky; bottom: 12px; margin-top: 24px; background: var(--ink);
  color: #fff; border-radius: 10px; padding: 14px 18px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.estimate strong { font-size: 1.25rem; }
.estimate small { display: block; color: #c6cde6; }
.hidden { display: none !important; }
.price-list { list-style: none; padding: 0; margin: 12px 0 0; }
.price-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.price-list li:first-child { border-top: 0; }
.price-list b { float: right; }
footer { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 40px; }
footer a { color: var(--muted); }
/* Admin */
table.jobs { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .95rem; }
table.jobs th, table.jobs td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.jobs tr:hover td { background: #f7f8fd; }
.pill {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: .85rem; font-weight: 700; background: #eef1ff; color: var(--blue-dark);
}
.pill.in_progress { background: var(--amber-bg); color: #7a5b00; }
.pill.finished { background: var(--green-bg); color: #14663a; }
.pill.failed { background: #fdecea; color: var(--red); }
.filters a { margin-right: 8px; }
.filters a.active { font-weight: 700; color: var(--ink); }
.photos { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.photos img { width: 160px; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
dl.detail { display: grid; grid-template-columns: 180px 1fr; gap: 6px 16px; margin: 0; }
dl.detail dt { font-weight: 700; color: var(--muted); }
dl.detail dd { margin: 0; }
.admin-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
