/* AP Cars — Booking & Thank-you styles */
/* Uses site design tokens: --sand --sand-mid --ink --ink-60 --ink-30 --sea --sea-lt --gold --white --nav-h */

/* ─── PAGE SHELL ─── */
.bk-page { min-height: 100vh; background: var(--sand); }

/* ─── HERO ─── */
.bk-hero, .bk-thankyou-hero {
  position: relative;
  min-height: 38vh;
  padding-top: var(--nav-h);
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.bk-thankyou-hero { min-height: 50vh; }
.bk-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.55);
  transition: transform 8s ease;
}
.bk-hero:hover .bk-hero-bg { transform: scale(1.03); }
.bk-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,24,20,.9) 0%, rgba(26,24,20,.3) 60%, transparent 100%);
}
.bk-hero-content {
  position: relative; z-index: 2;
  padding: 52px 48px;
  max-width: 760px;
}
.bk-eyebrow {
  font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 14px;
}
.bk-h1 {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 400; line-height: 1.05;
  color: var(--white); margin: 0 0 14px;
}
.bk-sub {
  font-size: 16px; color: rgba(255,255,255,.65);
  line-height: 1.6; margin: 0;
}

/* ─── SHELL ─── */
.bk-shell {
  max-width: 900px; margin: 0 auto;
  padding: 48px 24px 80px;
}
.bk-shell--narrow { max-width: 680px; }

/* ─── PROGRESS ─── */
.bk-progress {
  position: relative;
  display: flex; gap: 0;
  margin-bottom: 32px;
  padding-bottom: 6px;
}
.bk-prog-track {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--sand-mid); border-radius: 2px;
}
.bk-prog-fill {
  height: 100%; width: 0%; background: var(--sea);
  border-radius: 2px; transition: width .4s ease;
}
.bk-prog-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 8px; cursor: default;
}
.bk-prog-dot {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--ink-30);
  display: flex; align-items: center; justify-content: center;
  background: var(--sand);
  transition: border-color .3s, background .3s;
}
.bk-prog-dot span { font-size: 12px; font-weight: 500; color: var(--ink-30); transition: color .3s; }
.bk-prog-item.is-active .bk-prog-dot { border-color: var(--sea); background: var(--sea); }
.bk-prog-item.is-active .bk-prog-dot span { color: var(--white); }
.bk-prog-item.is-done .bk-prog-dot { border-color: var(--sea); background: var(--white); }
.bk-prog-item.is-done .bk-prog-dot span { color: var(--sea); }
.bk-prog-label {
  font-size: 10px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-30); text-align: center;
  transition: color .3s;
}
.bk-prog-item.is-active .bk-prog-label { color: var(--sea); }
.bk-prog-item.is-done  .bk-prog-label { color: var(--ink-60); }

/* ─── ALERT ─── */
.bk-alert {
  padding: 14px 18px; border-radius: 2px;
  font-size: 14px; margin-bottom: 20px;
  background: #fdecea; color: #7a1c1c;
  border: 1px solid rgba(180,40,40,.2);
}

/* ─── STEP PANELS ─── */
.bk-step {
  display: none;
  background: var(--white);
  border: 1px solid var(--sand-mid);
  border-radius: 4px;
  padding: 40px 48px;
  animation: stepIn .3s ease;
}
.bk-step.is-active { display: grid; gap: 28px; }
@keyframes stepIn { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform: none; } }

.bk-step-head { display: flex; gap: 20px; align-items: flex-start; }
.bk-step-num {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 52px; font-weight: 400; line-height: 1;
  color: var(--ink-30); flex-shrink: 0; margin-top: -6px;
}
.bk-step-head h2 {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 30px; font-weight: 400;
  color: var(--ink); margin: 0 0 6px; line-height: 1.1;
}
.bk-step-head p { font-size: 14px; color: var(--ink-60); line-height: 1.6; margin: 0; }

/* ─── GRID & FIELDS ─── */
.bk-grid { display: grid; gap: 20px; }
.bk-grid.four { grid-template-columns: repeat(4,1fr); }
.bk-grid.two  { grid-template-columns: repeat(2,1fr); }
.bk-field { display: flex; flex-direction: column; gap: 8px; }
.bk-field label, label.bk-field-label {
  font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-60);
}
.bk-field input,
.bk-field select,
.bk-field textarea {
  padding: 13px 16px;
  border: 1px solid var(--sand-mid);
  border-radius: 2px;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 15px; font-weight: 400;
  color: var(--ink); background: var(--sand);
  outline: none; appearance: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  width: 100%; box-sizing: border-box;
}
.bk-field input:focus,
.bk-field select:focus,
.bk-field textarea:focus {
  border-color: var(--sea); background: var(--white);
  box-shadow: 0 0 0 3px rgba(27,94,123,.1);
}
.bk-field textarea { resize: vertical; min-height: 96px; }
.bk-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231a1814' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer;
}
.conditional-field { display: none !important; }
.conditional-field.is-visible { display: flex !important; }
#pickup_remote_notice, #dropoff_remote_notice { display: none; }
#pickup_remote_notice.is-visible, #dropoff_remote_notice.is-visible { display: block; }

/* ─── ACTIONS ─── */
.bk-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 16px;
  border-top: 1px solid var(--sand-mid); flex-wrap: wrap;
}
.bk-actions.right { justify-content: flex-end; }

.bk-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; background: var(--sea); color: var(--white);
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  border: none; border-radius: 2px; cursor: pointer;
  transition: background .2s, transform .15s; text-decoration: none;
}
.bk-btn-primary:hover:not(:disabled) { background: var(--sea-lt); transform: translateY(-1px); }
.bk-btn-primary:disabled { opacity: .5; pointer-events: none; }

.bk-btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 22px; background: transparent; color: var(--ink-60);
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 12px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--ink-30); border-radius: 2px; cursor: pointer;
  transition: border-color .2s, color .2s; text-decoration: none;
}
.bk-btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ─── NOTICES ─── */
.bk-msg {
  padding: 16px 20px; border-radius: 2px;
  font-size: 14px; color: var(--ink-60);
  background: var(--sand); border: 1px dashed var(--ink-30);
}
.bk-notice {
  padding: 14px 18px; border-radius: 2px;
  font-size: 13px; color: var(--ink-60);
  background: var(--sand); border: 1px solid var(--sand-mid);
  line-height: 1.6;
}
.bk-notice.warning {
  background: rgba(201,168,76,.08); color: #7a5c1e;
  border-color: rgba(201,168,76,.3);
}

/* ─── CATEGORY CARDS ─── */
.bk-cat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }

.bk-cat-card {
  position: relative; border: 2px solid var(--sand-mid);
  border-radius: 4px; overflow: hidden; cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  background: var(--white);
}
.bk-cat-card:hover:not(.is-disabled) { border-color: var(--sea-lt); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,24,20,.1); }
.bk-cat-card.is-selected { border-color: var(--sea); box-shadow: 0 0 0 3px rgba(27,94,123,.12); }
.bk-cat-card.is-disabled { opacity: .45; cursor: not-allowed; }
.bk-cat-card input[type=radio] { display: none; }

.bk-cat-img {
  height: 160px; background-size: cover; background-position: center;
  position: relative;
}
.bk-cat-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,24,20,.7) 0%, transparent 60%);
}
.bk-cat-status {
  position: absolute; top: 12px; right: 12px;
  font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
}
.bk-cat-status.ok  { background: rgba(27,94,123,.85); color: var(--white); }
.bk-cat-status.bad { background: rgba(26,24,20,.7); color: rgba(255,255,255,.6); }

.bk-cat-check {
  position: absolute; top: 12px; left: 12px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--sea); display: none;
  align-items: center; justify-content: center;
}
.bk-cat-check svg { width: 13px; height: 13px; color: white; }
.bk-cat-card.is-selected .bk-cat-check { display: flex; }

.bk-cat-body { padding: 16px 20px; }
.bk-cat-body h3 {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 22px; font-weight: 400; margin: 0 0 6px; color: var(--ink);
}
.bk-cat-code { font-size: 12px; color: var(--ink-60); margin-bottom: 12px; }
.bk-cat-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.bk-cat-spec {
  font-size: 11px; color: var(--ink-60);
  background: var(--sand); border-radius: 20px; padding: 3px 10px;
}
.bk-cat-avail { font-size: 12px; color: var(--ink-60); }

/* ─── OPTIONS (checkboxes) ─── */
.bk-options-list { display: flex; flex-direction: column; gap: 12px; }
.bk-option-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px; border: 1px solid var(--sand-mid);
  border-radius: 4px; background: var(--white);
  cursor: pointer; transition: border-color .2s;
}
.bk-option-row:hover { border-color: var(--sea-lt); }
.bk-option-row input[type=checkbox] {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--sea); cursor: pointer;
}
.bk-option-text strong { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 3px; }
.bk-option-text span   { display: block; font-size: 13px; color: var(--ink-60); line-height: 1.5; }

/* ─── PREPAYMENT ─── */
.bk-prepay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bk-prepay-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px 22px; border: 2px solid var(--sand-mid);
  border-radius: 4px; background: var(--white); cursor: pointer;
  transition: border-color .2s, box-shadow .2s; position: relative;
}
.bk-prepay-card:hover { border-color: var(--sea-lt); }
.bk-prepay-card.is-selected { border-color: var(--sea); box-shadow: 0 0 0 3px rgba(27,94,123,.1); }
.bk-prepay-card input[type=radio] { display: none; }
.bk-prepay-body strong { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 5px; }
.bk-prepay-body span   { display: block; font-size: 13px; color: var(--ink-60); line-height: 1.5; }
.bk-info-btn {
  margin-left: auto; flex-shrink: 0;
  border: 1px solid var(--ink-30); background: var(--sand);
  border-radius: 50%; width: 26px; height: 26px;
  font-size: 12px; font-weight: 500; color: var(--sea);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s; font-family: 'Zen Maru Gothic', sans-serif;
}
.bk-info-btn:hover { background: var(--sand-mid); }

/* ─── SUMMARY ─── */
.bk-summary-box { display: flex; flex-direction: column; gap: 0; }
.bk-summary-section {
  border: 1px solid var(--sand-mid); border-bottom: none;
  padding: 22px 28px; background: var(--white);
}
.bk-summary-section:first-child { border-radius: 4px 4px 0 0; }
.bk-summary-section:last-child  { border-radius: 0 0 4px 4px; border-bottom: 1px solid var(--sand-mid); }
.bk-summary-section h4 {
  font-size: 11px; font-weight: 500; letter-spacing: .15em;
  text-transform: uppercase; color: var(--sea); margin: 0 0 14px;
}
.bk-summary-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; padding: 7px 0; border-bottom: 1px solid rgba(26,24,20,.05);
}
.bk-summary-row:last-child { border-bottom: none; }
.bk-summary-row span   { font-size: 13px; color: var(--ink-60); }
.bk-summary-row strong { font-size: 14px; color: var(--ink); font-weight: 400; text-align: right; }
.bk-summary-row.is-total strong {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 22px; color: var(--sea);
}
.bk-summary-note { font-size: 12px; color: var(--ink-60); margin-top: 10px; font-style: italic; }

/* ─── PAYMENT ─── */
.bk-pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bk-pay-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border: 2px solid var(--sand-mid);
  border-radius: 4px; background: var(--white); cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.bk-pay-card:hover { border-color: var(--sea-lt); }
.bk-pay-card.is-selected { border-color: var(--sea); box-shadow: 0 0 0 3px rgba(27,94,123,.1); }
.bk-pay-card input[type=radio] { display: none; }
.bk-pay-icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--sea); }
.bk-pay-card strong { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 3px; }
.bk-pay-card span   { display: block; font-size: 12px; color: var(--ink-60); }

/* ─── SPINNER ─── */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin .8s linear infinite; }

/* ─── MODALS ─── */
.bk-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none; place-items: center; padding: 24px;
  background: rgba(26,24,20,.65); backdrop-filter: blur(4px);
}
.bk-modal.is-open { display: grid; }
.bk-modal-box {
  width: min(520px,100%); background: var(--white);
  border-radius: 4px; padding: 40px; position: relative;
  box-shadow: 0 32px 80px rgba(26,24,20,.22);
  animation: stepIn .25s ease;
}
.bk-modal-box h3 {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 28px; font-weight: 400; color: var(--ink); margin: 0 0 14px;
}
.bk-modal-box p { font-size: 14px; color: var(--ink-60); line-height: 1.7; margin: 0; }
.bk-modal-close {
  position: absolute; right: 16px; top: 14px;
  border: none; background: transparent; font-size: 26px;
  line-height: 1; color: var(--ink-60); cursor: pointer;
}
.bk-modal-close:hover { color: var(--ink); }

/* ─── TOASTS ─── */
.bk-toast-stack {
  position: fixed; right: 20px; bottom: 20px; z-index: 1100;
  display: flex; flex-direction: column; gap: 10px;
  width: min(360px, calc(100vw - 40px));
}
.bk-toast {
  border-radius: 4px; padding: 14px 48px 14px 18px;
  font-size: 14px; line-height: 1.5; position: relative;
  box-shadow: 0 12px 40px rgba(26,24,20,.2);
  animation: stepIn .25s ease;
}
.bk-toast.success { background: #1b5e30; color: white; }
.bk-toast.error   { background: #7a1c1c; color: white; }
.bk-toast.warning { background: #7a5c1e; color: white; }
.bk-toast button {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%); border: none; background: transparent;
  color: rgba(255,255,255,.7); font-size: 20px; cursor: pointer;
}

/* ─── THANK YOU ─── */
.bk-ty-card {
  background: var(--white); border: 1px solid var(--sand-mid);
  border-radius: 4px; padding: 48px; display: flex; flex-direction: column; gap: 32px;
}
.bk-ty-code-block { text-align: center; }
.bk-ty-label { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--sea); margin: 0 0 10px; }
.bk-ty-code {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 48px; font-weight: 400; color: var(--ink);
  letter-spacing: .1em;
  padding: 20px; background: var(--sand); border-radius: 4px;
}
.bk-ty-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bk-ty-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; background: var(--sand);
  border-radius: 4px;
}
.bk-ty-item svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--sea); }
.bk-ty-item span { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-60); display: block; margin-bottom: 4px; }
.bk-ty-item strong { font-size: 15px; color: var(--ink); font-weight: 400; }
.bk-ty-notice {
  padding: 20px 24px; border-radius: 4px;
  background: rgba(201,168,76,.08); border: 1px solid rgba(201,168,76,.25);
}
.bk-ty-notice strong { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.bk-ty-notice p { font-size: 14px; color: var(--ink-60); line-height: 1.6; margin: 0; }
.bk-ty-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── RESPONSIVE ─── */
@media (max-width:900px) {
  .bk-grid.four { grid-template-columns: 1fr 1fr; }
  .bk-cat-grid, .bk-prepay-grid, .bk-pay-grid { grid-template-columns: 1fr; }
  .bk-step { padding: 28px 24px; }
  .bk-hero-content { padding: 36px 28px; }
}
@media (max-width:640px) {
  .bk-shell { padding: 24px 16px 60px; }
  .bk-step { padding: 22px 18px; }
  .bk-hero-content { padding: 28px 20px; }
  .bk-grid.four, .bk-grid.two { grid-template-columns: 1fr; }
  .bk-prog-label { display: none; }
  .bk-prog-dot { width: 26px; height: 26px; }
  .bk-prog-dot span { font-size: 11px; }
  .bk-actions { flex-direction: column-reverse; }
  .bk-btn-primary, .bk-btn-ghost { width: 100%; justify-content: center; }
  .bk-ty-grid { grid-template-columns: 1fr; }
  .bk-ty-card { padding: 28px 20px; }
  .bk-ty-code { font-size: 36px; }
  .bk-step-head { flex-direction: column; gap: 8px; }
  .bk-step-num { font-size: 36px; }
}


/* Vehicle selection: one category per row + date-based price badge */
.bk-cat-grid {
  grid-template-columns: 1fr !important;
  gap: 18px;
}

.bk-cat-card {
  display: grid;
  grid-template-columns: minmax(240px, 34%) minmax(0, 1fr);
  min-height: 190px;
}

.bk-cat-img {
  height: 100%;
  min-height: 190px;
}

.bk-cat-price {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: grid;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 3px;
  background: rgba(255,255,255,.93);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(26,24,20,.18);
}

.bk-cat-price small {
  font-size: 9px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sea);
}

.bk-cat-price strong {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 500;
  color: var(--ink);
}

.bk-cat-price.is-missing strong {
  font-size: 11px;
  color: #7a5c1e;
}

.bk-cat-check {
  top: auto;
  bottom: 12px;
  left: 12px;
  z-index: 4;
}

.bk-cat-body {
  display: grid;
  align-content: center;
}

.bk-cat-specs span,
.bk-cat-spec {
  font-size: 11px;
  color: var(--ink-60);
  background: var(--sand);
  border-radius: 20px;
  padding: 3px 10px;
}

@media (max-width: 760px) {
  .bk-cat-card {
    grid-template-columns: 1fr;
  }

  .bk-cat-img {
    height: 180px;
    min-height: 180px;
  }
}
