/* Appliance Geeks online booking page. Mobile first; brand colors come from settings via book.js. */
:root {
  --primary: #0b5fff;
  --primary-deep: #0846c4;
  --primary-soft: #eaf1ff;
  --primary-glow: rgba(11, 95, 255, .28);
  --dark: #071236;
  --text: #1a2233;
  --muted: #5a6479;
  --line: #dde3ee;
  --bg: #f2f5fb;
  --card: #fff;
  --error: #b42318;
  --error-bg: #fdecea;
  --note-bg: #fff6df;
  --note-line: #f0c254;
  --ok: #0d8a4f;
  --ok-soft: #e4f6ec;
  --radius: 16px;
  --tap: 48px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --lift: 0 2px 4px rgba(7, 18, 54, .05), 0 10px 24px rgba(7, 18, 54, .09);
}
@supports (color: color-mix(in srgb, red, blue)) {
  :root {
    --primary-deep: color-mix(in srgb, var(--primary) 78%, #001a5c);
    --primary-soft: color-mix(in srgb, var(--primary) 9%, #fff);
    --primary-glow: color-mix(in srgb, var(--primary) 30%, transparent);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(900px 480px at 0% -8%, #dce8ff 0%, transparent 62%),
    radial-gradient(760px 420px at 100% 0%, #e8e4ff 0%, transparent 58%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.embedded { background: var(--card); min-height: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: var(--primary); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.icon { width: 1em; height: 1em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.shell { max-width: 620px; margin: 0 auto; padding: 0 16px 40px; }
body.embedded .shell { padding-bottom: 24px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.brand { flex: 0 1 138px; min-width: 64px; }
.brand img { display: block; width: 100%; height: auto; }
.top-call {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: .3em; min-height: 42px; padding: 6px 16px;
  border: 1.5px solid var(--primary); border-radius: 999px; background: rgba(255, 255, 255, .7);
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.top-call:hover { background: var(--primary); color: #fff; box-shadow: 0 6px 16px var(--primary-glow); transform: translateY(-1px); }
@media (max-width: 380px) { .top-call-label { display: none; } .top-call { padding: 6px 12px; font-size: 14px; } }
/* Inside a website's booking modal the site shows the brand, and the modal's header the phone. */
body.embedded .top { display: none; }

/* Card */
.app {
  position: relative; background: var(--card); border-radius: 22px; padding: 22px 18px 26px;
  border: 1px solid rgba(7, 18, 54, .05);
  box-shadow: 0 1px 2px rgba(7, 18, 54, .05), 0 18px 48px rgba(7, 18, 54, .1);
}
body.embedded .app { box-shadow: none; border: 0; padding: 16px 0 16px; }
@media (min-width: 560px) { .app { padding: 30px 32px 34px; } }
.app:focus { outline: none; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); }

/* Screen transitions: forward slides in from the right, back from the left. */
.screen.in-fwd { animation: ag-in-fwd .38s var(--ease) both; }
.screen.in-back { animation: ag-in-back .38s var(--ease) both; }
@keyframes ag-in-fwd { from { opacity: 0; transform: translateX(22px); } }
@keyframes ag-in-back { from { opacity: 0; transform: translateX(-22px); } }

h1 { font-size: 25px; line-height: 1.2; letter-spacing: -.015em; margin: 6px 0 8px; color: var(--dark); font-weight: 800; }
@media (min-width: 560px) { h1 { font-size: 28px; } }
h1:focus { outline: none; }
h2 { font-size: 17px; margin: 26px 0 12px; color: var(--dark); font-weight: 750; letter-spacing: -.005em; }
h2.with-icon { display: flex; align-items: center; gap: 8px; }
h2 .star { width: 20px; height: 20px; color: #f5a623; fill: #ffc94d; stroke: #e89b12; }
.lead { margin: 0 0 20px; color: var(--muted); font-size: 16.5px; }
.hint { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

/* Progress */
.progress { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 12px; }
.progress-text { font-size: 13.5px; color: var(--muted); text-align: right; }
.progress-name { font-weight: 700; color: var(--dark); }
.back {
  display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 6px 10px 6px 4px; margin-left: -4px;
  min-height: 36px; border-radius: 10px; color: var(--primary); font-weight: 650; cursor: pointer;
  transition: background .18s var(--ease);
}
.back:hover { background: var(--primary-soft); }
.back-arrow { font-size: 22px; line-height: 1; transition: transform .18s var(--ease); }
.back:hover .back-arrow { transform: translateX(-3px); }
.bar { position: relative; height: 8px; background: var(--primary-soft); border-radius: 99px; overflow: hidden; margin: 6px 0 18px; }
.bar-fill {
  position: relative; height: 100%; border-radius: 99px; overflow: hidden;
  background: linear-gradient(90deg, #4f8bff, var(--primary) 60%, var(--primary-deep));
  transition: width .6s var(--ease);
}
.bar-fill::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  animation: ag-shine 2.6s ease-in-out 1s infinite;
}
@keyframes ag-shine { 60%, 100% { transform: translateX(100%); } }

/* Notices */
.alert {
  margin: 0 0 16px; padding: 12px 14px; border-radius: 12px;
  background: var(--error-bg); color: var(--error); border-left: 4px solid var(--error);
  animation: ag-shake .4s var(--ease);
}
@keyframes ag-shake { 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
.alert a { color: var(--error); font-weight: 700; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.notice {
  margin: 0 0 16px; padding: 12px 14px; border-radius: 12px;
  background: var(--note-bg); border: 1px solid var(--note-line); font-size: 15px;
}
.notice strong { color: #7a4b00; }
.test-flag { font-size: 14px; }

/* Forms */
.field { margin: 0 0 16px; }
.field > label, .label { display: block; font-weight: 650; margin-bottom: 7px; color: var(--dark); }
.optional { font-weight: 400; color: var(--muted); }
input[type=text], input[type=tel], input[type=email], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fbfcfe;
  font-size: 16px; /* 16px keeps iOS from zooming */
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
input[type=text]:hover, input[type=tel]:hover, input[type=email]:hover, select:hover, textarea:hover { border-color: #c5cede; background: #fff; }
textarea { min-height: 92px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); background: #fff; outline: 0; box-shadow: 0 0 0 4px var(--primary-glow); }
[aria-invalid=true] { border-color: var(--error) !important; box-shadow: 0 0 0 4px rgba(180, 35, 24, .12) !important; }
.field-error { margin: 7px 0 0; color: var(--error); font-size: 14px; font-weight: 600; animation: ag-fade .25s var(--ease); }
.counter { text-align: right; font-size: 13px; color: var(--muted); margin-top: 4px; }
/* minmax(0, ...) lets columns shrink below their content, so nothing pushes the page sideways. */
.row-3 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; }
@media (max-width: 420px) { .row-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .row-3 > :first-child { grid-column: 1 / -1; } }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 22px; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--primary); cursor: pointer; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.btn {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px;
  padding: 14px 20px; margin-top: 10px; border: 0; border-radius: 14px;
  background: linear-gradient(135deg, #3d7bff 0%, var(--primary) 55%, var(--primary-deep) 100%);
  color: #fff; font-weight: 750; font-size: 17px; letter-spacing: .01em; cursor: pointer; text-decoration: none;
  box-shadow: 0 8px 20px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
}
.btn::after {
  content: ""; width: 18px; height: 18px; flex: 0 0 auto; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, .22); filter: brightness(1.04); }
.btn:hover::after { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(.985); box-shadow: 0 5px 12px var(--primary-glow); }
.btn[disabled] { cursor: progress; filter: saturate(.85); transform: none; }
.btn.is-busy::after {
  -webkit-mask: none; mask: none; background: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: ag-spin .7s linear infinite;
}
.btn-ghost { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); box-shadow: none; }
.btn-ghost::after { display: none; }
.btn-ghost:hover { background: var(--primary-soft); box-shadow: none; }
.linkbtn {
  border: 0; background: none; padding: 8px 2px; min-height: 40px; color: var(--primary);
  font-weight: 650; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
  transition: color .15s var(--ease);
}
.linkbtn:hover { color: var(--primary-deep); text-decoration-thickness: 2px; }
.spinner {
  width: 18px; height: 18px; flex: 0 0 auto; border-radius: 50%;
  border: 2.5px solid var(--primary-soft); border-top-color: var(--primary); animation: ag-spin .8s linear infinite;
}
@keyframes ag-spin { to { transform: rotate(360deg); } }
@keyframes ag-fade { from { opacity: 0; transform: translateY(-3px); } }

/* Trust row and first-step perks */
.trust {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px;
  margin: 16px 0 0; padding: 0; font-size: 13.5px; color: var(--muted);
}
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust .icon { width: 17px; height: 17px; color: var(--ok); }
.trust .star { color: #f5a623; fill: #ffc94d; stroke: #e89b12; }
.perks { list-style: none; display: grid; gap: 10px; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px dashed var(--line); }
@media (min-width: 560px) { .perks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
.perks li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.4; }
.perks strong { display: block; color: var(--dark); font-size: 14.5px; margin-bottom: 2px; }
@media (min-width: 560px) { .perks li { flex-direction: column; gap: 8px; } }
.perk-icon {
  display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-soft), #f3efff); color: var(--primary);
}
.perk-icon .icon { width: 22px; height: 22px; }

/* Appliance tabs and tiles */
.tabs { display: flex; gap: 6px; padding: 5px; background: var(--bg); border-radius: 14px; margin-bottom: 16px; }
.tabs [role=tab] {
  flex: 1; min-height: 44px; border: 0; border-radius: 10px; background: none;
  font-weight: 650; color: var(--muted); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.tabs [role=tab]:hover { color: var(--dark); }
.tabs [role=tab][aria-selected=true] { background: #fff; color: var(--dark); box-shadow: 0 1px 3px rgba(7, 18, 54, .12), 0 4px 10px rgba(7, 18, 54, .06); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 520px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  min-height: 104px; padding: 14px 14px 13px; text-align: left;
  border: 1.5px solid var(--line); border-radius: 16px; background: #fff; font-weight: 650; cursor: pointer;
  overflow-wrap: break-word; color: var(--dark);
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.tile.enter { animation: ag-pop-in .42s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes ag-pop-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.tile:hover:not([disabled]) { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); box-shadow: var(--lift); }
.tile:active:not([disabled]) { transform: translateY(-1px) scale(.98); }
.tile-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--bg); color: var(--primary); transition: background .2s var(--ease), color .2s var(--ease), transform .25s var(--ease);
}
.tile-icon .icon { width: 28px; height: 28px; stroke-width: 1.6; }
.tile:hover .tile-icon { transform: scale(1.06) rotate(-3deg); }
.tile-label { line-height: 1.25; }
.tile[aria-pressed=true] {
  border-color: var(--primary); background: linear-gradient(160deg, #fff 0%, var(--primary-soft) 100%);
  box-shadow: 0 0 0 1px var(--primary), 0 10px 22px var(--primary-glow);
}
.tile[aria-pressed=true] .tile-icon { background: var(--primary); color: #fff; }
.tile::after {
  content: ""; position: absolute; right: 12px; top: 12px; width: 22px; height: 22px;
  border: 1.5px solid var(--line); border-radius: 50%; background: #fff;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.tile[aria-pressed=true]::after {
  border-color: var(--primary); background: var(--primary)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.tile.just[aria-pressed=true]::after { animation: ag-check-pop .4s var(--ease); }
.tile.just[aria-pressed=true] .tile-icon { animation: ag-bounce .45s var(--ease); }
@keyframes ag-check-pop { 0% { transform: scale(.4); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes ag-bounce { 40% { transform: scale(1.14); } 100% { transform: scale(1); } }
.tile[disabled] { opacity: .45; cursor: not-allowed; }
.picked { margin: 14px 0 0; font-size: 14px; color: var(--muted); min-height: 1.5em; }

/* Price */
.price { margin: 18px 0 4px; padding: 14px 16px; background: var(--bg); border-radius: 14px; }
.price-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.price-row.total { border-top: 1.5px dashed var(--line); margin-top: 8px; padding-top: 10px; font-weight: 800; color: var(--dark); font-size: 17px; }
.price-note { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }

/* Appliance details */
.appl { border: 1.5px solid var(--line); border-radius: 18px; padding: 16px 16px 6px; margin: 0 0 18px; min-width: 0; background: #fff; }
.appl legend { display: flex; align-items: center; gap: 10px; padding: 0 8px; font-weight: 800; font-size: 17px; color: var(--dark); }
.legend-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--primary); color: #fff; }
.legend-icon .icon { width: 21px; height: 21px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 15px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; cursor: pointer; text-align: left;
  transition: border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.chip:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateY(-1px); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed=true] { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 14px var(--primary-glow); }
.chip[aria-pressed=true]::before { content: "✓"; font-weight: 800; animation: ag-check-pop .3s var(--ease); }
.safety { margin: 10px 0 0; font-size: 14px; color: #7a4b00; }

/* Address search */
.combo { position: relative; }
.suggest {
  list-style: none; margin: 6px 0 0; padding: 6px; border: 1.5px solid var(--line); border-radius: 14px;
  background: #fff; box-shadow: 0 14px 34px rgba(7, 18, 54, .14); animation: ag-fade .18s var(--ease);
}
.opt { padding: 12px 12px; border-radius: 10px; cursor: pointer; transition: background .12s var(--ease); }
.opt[aria-selected=true], .opt:hover { background: var(--primary-soft); }
.opt.empty { cursor: default; color: var(--muted); background: none; }
.addr-card {
  position: relative; padding: 14px 16px 14px 50px; border: 1.5px solid var(--primary); border-radius: 14px;
  background: var(--primary-soft); margin-bottom: 12px; animation: ag-fade .3s var(--ease);
}
.addr-card::before {
  content: ""; position: absolute; left: 16px; top: 16px; width: 22px; height: 22px; background: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7-6.2-7-11.2a7 7 0 0 1 14 0C19 14.8 12 21 12 21z' fill='none' stroke='%23000' stroke-width='2'/%3E%3Ccircle cx='12' cy='9.8' r='2.5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7-6.2-7-11.2a7 7 0 0 1 14 0C19 14.8 12 21 12 21z' fill='none' stroke='%23000' stroke-width='2'/%3E%3Ccircle cx='12' cy='9.8' r='2.5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.addr-card p { margin: 0; }

/* Arrival windows */
.skeleton { display: grid; gap: 10px; margin-top: 16px; }
.skeleton span {
  display: block; height: 66px; border-radius: 14px;
  background: linear-gradient(90deg, #edf1f8 25%, #f8faff 40%, #edf1f8 60%); background-size: 300% 100%;
  animation: ag-skeleton 1.3s ease-in-out infinite;
}
.skeleton span:nth-child(2) { animation-delay: .12s; }
.skeleton span:nth-child(3) { animation-delay: .24s; }
@keyframes ag-skeleton { from { background-position: 100% 0; } to { background-position: 0 0; } }
.best { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.slot {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; width: 100%;
  min-height: var(--tap); padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 14px;
  background: #fff; text-align: left; cursor: pointer; color: var(--text);
  transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.slot:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--lift); }
.slot:active { transform: translateY(0) scale(.985); }
.slot[aria-busy=true] { opacity: .65; pointer-events: none; }
.slot[aria-busy=true]::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
  border: 2.5px solid var(--primary-soft); border-top-color: var(--primary); animation: ag-spin .7s linear infinite;
}
.slot-main { display: flex; flex-direction: column; min-width: 0; }
.slot-day { font-size: 14px; color: var(--muted); }
.slot-time { font-weight: 800; font-size: 17px; color: var(--dark); white-space: nowrap; }
.slot-best { flex-wrap: nowrap; justify-content: flex-start; gap: 14px; padding: 14px 16px; border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.slot-best .slot-main { flex: 1 1 auto; }
.slot-best:hover { background: linear-gradient(160deg, #fff, var(--primary-soft)); }
.slot-icon {
  display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary); transition: background .2s var(--ease), color .2s var(--ease);
}
.slot-icon .icon { width: 24px; height: 24px; }
.slot-best:hover .slot-icon { background: var(--primary); color: #fff; }
.slot-go { font-size: 26px; line-height: 1; color: var(--primary); transition: transform .2s var(--ease); }
.slot-best:hover .slot-go { transform: translateX(4px); }
/* On phones the badge drops under the time so the card never gets wider than the screen. */
@media (max-width: 519px) {
  .slot-best { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "icon main go" "icon badge go"; gap: 0 14px; align-items: center; }
  .slot-best .slot-icon { grid-area: icon; }
  .slot-best .slot-main { grid-area: main; }
  .slot-best .badge { grid-area: badge; justify-self: start; margin-top: 6px; }
  .slot-best .slot-go { grid-area: go; }
}
.best .slot { animation: ag-pop-in .4s var(--ease) both; }
.best .slot:nth-child(2) { animation-delay: .06s; }
.best .slot:nth-child(3) { animation-delay: .12s; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 4px 10px; border-radius: 999px;
  background: var(--ok-soft); color: var(--ok); font-size: 12.5px; font-weight: 750; white-space: nowrap;
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok);
  animation: ag-pulse 1.8s ease-out infinite;
}
@keyframes ag-pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(3); opacity: 0; } }
.days {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 10px; margin: 0 -4px; scroll-snap-type: x proximity;
  scrollbar-width: thin; -webkit-mask: linear-gradient(90deg, #000 88%, transparent); mask: linear-gradient(90deg, #000 88%, transparent);
}
.day {
  flex: 0 0 auto; min-width: 78px; min-height: 60px; padding: 7px 12px; scroll-snap-align: start;
  border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; line-height: 1.25;
  transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.day:hover { border-color: var(--primary); transform: translateY(-2px); }
.day span { display: block; }
.day .d1 { font-size: 13px; color: var(--muted); }
.day .d2 { font-weight: 800; }
.day[aria-pressed=true] {
  background: linear-gradient(160deg, #1c2b5e, var(--dark)); border-color: var(--dark); color: #fff;
  box-shadow: 0 8px 18px rgba(7, 18, 54, .25);
}
.day[aria-pressed=true] .d1 { color: #c8d0e6; }
.windows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; animation: ag-fade .25s var(--ease); }
@media (min-width: 520px) { .windows { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 340px) { .tiles, .windows { grid-template-columns: minmax(0, 1fr); } }
.windows .slot { flex-direction: column; align-items: flex-start; justify-content: center; }
.windows .badge { font-size: 12px; padding: 3px 8px; max-width: 100%; white-space: normal; }
.call-box { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--bg); font-size: 15px; }
.call-box p { margin: 0 0 8px; }
.call-times { display: flex; flex-wrap: wrap; gap: 8px; }
.call-times a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px;
  border: 1.5px dashed var(--primary); background: #fff; font-weight: 650; text-decoration: none;
  transition: background .18s var(--ease), border-style .18s;
}
.call-times a:hover { background: var(--primary-soft); border-style: solid; }
.more-help { margin-top: 22px; font-size: 15px; color: var(--muted); }
/* "Call me to schedule" (time step, when no online window suits) */
.request { padding: 16px; }
.request p { margin: 0 0 10px; }
.request .field { margin-bottom: 12px; }
.request input[type=text], .request input[type=tel] { background: #fff; }
.request-call { margin: 12px 0 0 !important; font-size: 15px; }
.call { font-weight: 700; white-space: nowrap; }

/* Review */
.review-block { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); animation: ag-pop-in .4s var(--ease) both; }
.review-block:nth-of-type(2) { animation-delay: .05s; }
.review-block:nth-of-type(3) { animation-delay: .1s; }
.review-block:nth-of-type(4) { animation-delay: .15s; }
.review-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.review-icon .icon { width: 21px; height: 21px; }
.review-body { flex: 1 1 auto; min-width: 0; }
.review-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.review-head h2 { margin: 0 0 4px; font-size: 16px; }
.review-block p { margin: 2px 0; }
.review-appl + .review-appl { margin-top: 8px; }
.review-block .muted, .muted { color: var(--muted); }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.phones { padding-left: 20px; }
.phones li { margin: 6px 0; }
.fine { font-size: 14px; color: var(--muted); margin-top: 12px; text-align: center; }
.ts { margin: 18px 0 4px; min-height: 65px; }
.ts-start { display: flex; justify-content: center; margin: 14px 0 0; min-height: 0; }

/* Done */
.done { text-align: center; }
.done-hero { position: relative; width: 96px; height: 96px; margin: 6px auto 14px; }
.done-mark { position: relative; display: block; width: 96px; height: 96px; }
.done-ring { fill: var(--ok); stroke: none; transform-origin: 50% 50%; animation: ag-ring .45s var(--ease) both; }
.done-mark.pending .done-ring { fill: var(--primary); }
.done-tick {
  fill: none; stroke: #fff; stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 42; stroke-dashoffset: 42; animation: ag-tick .45s var(--ease) .35s forwards;
}
@keyframes ag-ring { from { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.08); } to { transform: scale(1); opacity: 1; } }
@keyframes ag-tick { to { stroke-dashoffset: 0; } }
.burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.burst span {
  position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 2px; background: var(--c); opacity: 0;
  animation: ag-burst .9s var(--ease) calc(.3s + var(--d)) forwards;
}
.burst span:nth-child(odd) { border-radius: 50%; }
@keyframes ag-burst {
  0% { opacity: 0; transform: translate(0, 0) scale(.4); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1) rotate(160deg); }
}
.done .ref { font-size: 18px; }
.done .ref strong { letter-spacing: .05em; white-space: nowrap; padding: 2px 8px; border-radius: 8px; background: var(--primary-soft); color: var(--primary-deep); }
.done dl {
  display: inline-grid; grid-template-columns: auto auto; gap: 6px 16px; text-align: left; margin: 14px 0;
  padding: 14px 18px; border-radius: 14px; background: var(--bg);
}
@media (max-width: 400px) { .done dl { font-size: 15px; padding: 12px 14px; gap: 6px 12px; } }
.done dt { color: var(--muted); }
.done dd { margin: 0; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .done-tick { stroke-dashoffset: 0; }
  .burst { display: none; }
}
