/* Clarity Fleet – booking page styles */

/* ── Page header ── */
.page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding-block: 2.5rem 0;
}
.page-header-inner { max-width: 52rem; text-align: center; }
.page-header-inner p { margin-inline: auto; }
.booking-canvas { max-width: 40rem; margin-inline: auto; padding-block: 2rem 4rem; }

/* ── Step panels ── */
.step-panel { display: flex; flex-direction: column; gap: 1.5rem; }

/* ── Step heading typography ── */
.step-heading { display: flex; flex-direction: column; gap: .3rem; }
.step-heading h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--heading);
}
.step-heading p { font-size: 0.875rem; color: var(--muted); }

/* ── Progress stepper ── */
.stepper { display: flex; align-items: center; }
.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .375rem;
}
.stepper-circle {
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: .875rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.stepper-num   { line-height: 1; }
.stepper-check { display: none; font-size: 1.125rem; }
.stepper-step.active .stepper-circle {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(59,130,246,.18);
}
.stepper-step.completed .stepper-circle {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.stepper-step.completed .stepper-num   { display: none; }
.stepper-step.completed .stepper-check { display: block; }
.stepper-label {
  font-size: .6875rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  text-align: center;
}
.stepper-step.active    .stepper-label { color: var(--primary); font-weight: 600; }
.stepper-step.completed .stepper-label { color: var(--body); }
.stepper-track {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-bottom: 1.25rem;
  transition: background .3s;
  min-width: .75rem;
}
.stepper-track.completed { background: var(--primary); }
.stepper-counter {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: .625rem;
  margin-bottom: 1.75rem;
}

/* ── Option cards ── */
.option-card { transition: border-color .15s, background .15s, box-shadow .15s; }
.option-card:hover {
  border-color: var(--primary);
  background: rgba(59,130,246,.03);
}
.option-card.selected {
  border-color: var(--primary);
  background: rgba(59,130,246,.06);
  box-shadow: 0 0 0 2px var(--primary);
}
.option-card:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Hide native inputs visually while keeping them accessible */
.option-card input[type="checkbox"],
.option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Custom control shell */
.custom-control {
  width: 1.25rem; height: 1.25rem;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
  position: relative;
}
.custom-control--checkbox { border-radius: .3rem; }
.custom-control--radio    { border-radius: 50%; }
.option-card:hover    .custom-control { border-color: var(--primary); }
.option-card.selected .custom-control { background: var(--primary); border-color: var(--primary); }

/* Checkbox tick */
.custom-control--checkbox::after {
  content: '';
  display: block;
  width: .35rem; height: .6rem;
  border: 2.5px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg) translateY(-1px) scale(0);
  transition: transform .15s ease;
}
.option-card.selected .custom-control--checkbox::after {
  transform: rotate(45deg) translateY(-1px) scale(1);
}

/* Radio dot */
.custom-control--radio::after {
  content: '';
  display: block;
  width: .45rem; height: .45rem;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
  transition: transform .15s ease;
}
.option-card.selected .custom-control--radio::after { transform: scale(1); }

/* ── Option list (step 3 full-width stacked cards) ── */
.option-list { display: flex; flex-direction: column; gap: 1rem; }

/* ── Form submit row ── */
.form-actions-wrap {
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-actions { display: flex; flex-direction: column-reverse; gap: .875rem; }

/* ── Contact card ── */
.step-contact-card { padding: 1.5rem 1.5rem 2rem; }

/* ── Step nav ── */
.step-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.step-nav.has-back { justify-content: space-between; }

/* ── Contact form grid ── */
.form-grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 600px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }

/* ── Trust banner ── */
.trust-banner { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .8125rem; }
.trust-banner .material-symbols-outlined { color: var(--primary); font-size: 1.25rem; flex-shrink: 0; }

/* ── Image strip ── */
.img-strip {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  height: 16rem;
  margin-top: 2.5rem;
  border: 1px solid var(--border);
}
.img-strip img { width: 100%; height: 100%; object-fit: cover; }
.img-strip .img-placeholder { width: 100%; height: 100%; border-radius: 0; border: none; }
.img-strip-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
}
.img-strip-caption {
  position: absolute; bottom: 1.25rem; left: 1.25rem;
  color: #fff; display: flex; align-items: center; gap: .5rem;
  font-size: 1rem; font-weight: 600;
}
.img-strip-caption .material-symbols-outlined { font-size: 1.25rem; }

/* ── Assistance card ── */
.assist-card {
  background: #eff6ff; border: 1px solid #bfdbfe;
  border-radius: var(--r-card); padding: 1.25rem 1.5rem;
  display: flex; flex-direction: column; gap: .875rem; margin-top: 2rem;
}
@media (min-width: 640px) {
  .assist-card { flex-direction: row; align-items: center; justify-content: space-between; }
}
.assist-card a {
  color: var(--primary); font-weight: 600;
  display: flex; align-items: center; gap: .375rem; white-space: nowrap;
}
.assist-card a:hover { text-decoration: underline; }

/* ── Step transition animations ── */
@keyframes step-slide-in-right {
  from { opacity: 0; transform: translateX(2rem); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes step-slide-in-left {
  from { opacity: 0; transform: translateX(-2rem); }
  to   { opacity: 1; transform: translateX(0); }
}
.step-enter-right { animation: step-slide-in-right 220ms ease-out both; }
.step-enter-left  { animation: step-slide-in-left  220ms ease-out both; }

/* ── Thank-you screen ── */
#thankYouState {
  max-width: 40rem;
  margin-inline: auto;
  padding: 3.5rem 1.5rem 4rem;
  gap: 0;
}
.ty-icon-wrap {
  width: 5.5rem; height: 5.5rem;
  border-radius: 50%;
  background: var(--success-bg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.75rem;
  animation: ty-pop .45s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes ty-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.ty-icon-wrap .material-symbols-outlined { font-size: 3rem; color: var(--success); }
.ty-headline {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--heading);
  margin-bottom: .75rem;
}
.ty-sub {
  font-size: 1rem; color: var(--muted); line-height: 1.65;
  max-width: 28rem; margin-inline: auto; margin-bottom: 2.5rem;
}
.ty-next {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 1.5rem;
  text-align: left;
  margin-bottom: 2rem;
  width: 100%;
}
.ty-next-heading {
  font-size: .6875rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.125rem;
}
.ty-next-list { display: flex; flex-direction: column; gap: 1rem; }
.ty-next-item { display: flex; align-items: flex-start; gap: .875rem; }
.ty-next-num {
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  font-size: .8125rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: .1rem;
}
.ty-next-text { font-size: .9375rem; color: var(--body); line-height: 1.55; }
.ty-next-text strong { color: var(--heading); display: block; margin-bottom: .15rem; }
.ty-actions { display: flex; flex-direction: column; gap: .75rem; width: 100%; }
@media (min-width: 480px) { .ty-actions { flex-direction: row; justify-content: center; } }
