:root {
  color-scheme: light;
  --navy: #0a1f4f;
  --navy-2: #102d6f;
  --blue: #1f4aa8;
  --blue-2: #2f6df6;
  --blue-3: #6f9cff;
  --ink: #13213f;
  --muted: #7182a3;
  --muted-2: #91a0ba;
  --line: #d9e3f2;
  --line-strong: #c8d6ea;
  --surface: #ffffff;
  --soft: #f5f8fe;
  --soft-blue: #edf4ff;
  --success: #0ea66d;
  --success-soft: #e8fbf3;
  --danger: #c2413b;
  --shadow-sm: 0 8px 24px rgba(25, 54, 112, .07);
  --shadow-md: 0 18px 46px rgba(21, 50, 111, .10);
  --shadow-lg: 0 28px 70px rgba(17, 43, 99, .14);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -8rem, rgba(74, 128, 255, .16), transparent 32rem),
    linear-gradient(180deg, #f7faff 0%, #f1f5fb 42%, #edf2f8 100%);
}
button, input, select { font: inherit; }
a { color: inherit; }

.page-shell {
  width: min(100%, 920px);
  margin: 0 auto;
  min-height: 100vh;
  padding: max(18px, env(safe-area-inset-top)) 20px max(30px, env(safe-area-inset-bottom));
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 4px 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .035em;
  color: var(--navy);
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #0b2a6b 0%, #2665e9 100%);
  box-shadow: 0 10px 24px rgba(29, 77, 170, .24);
  font-size: 16px;
  font-weight: 900;
}
.secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(185, 204, 231, .9);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #294f86;
  box-shadow: 0 6px 18px rgba(31, 70, 135, .05);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(14px);
}
.secure-pill::before {
  content: "✓";
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--success);
  font-size: 11px;
  font-weight: 900;
}

.booking-layout { display: grid; gap: 18px; }

.hero-card {
  position: relative;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 30px;
  background: linear-gradient(135deg, #091d4a 0%, #173d91 58%, #2f6df6 100%);
  box-shadow: var(--shadow-lg);
}
.hero-card::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  right: -112px;
  top: -136px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .075);
}
.eyebrow {
  margin: 0 0 9px;
  color: #bfd4ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
}
h1 {
  margin: 0;
  font-size: clamp(29px, 5.5vw, 43px);
  line-height: 1.02;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.hero-copy {
  max-width: 650px;
  margin: 14px 0 17px;
  color: rgba(255, 255, 255, .88);
  font-size: 15px;
  line-height: 1.58;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, .74);
  font-size: 12px;
  font-weight: 600;
}

.status-panel {
  padding: 15px 18px;
  border: 1px solid #cfdcf0;
  border-radius: 18px;
  background: rgba(255, 255, 255, .88);
  color: #3e5d86;
  box-shadow: var(--shadow-sm);
  line-height: 1.55;
  backdrop-filter: blur(12px);
}
.status-panel.error { border-color: #f1c4c0; background: #fff5f4; color: #8d302a; }
.status-panel.warning { border-color: #f0d59d; background: #fff9ec; color: #795614; }

.booking-card {
  display: grid;
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.success-card {
  padding: 34px 28px;
  border: 1px solid rgba(195, 210, 232, .92);
  border-radius: 26px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-md);
}
.step-block {
  display: grid;
  gap: 11px;
  padding: 24px;
  border: 1px solid rgba(202, 216, 237, .92);
  border-radius: 24px;
  background: rgba(255, 255, 255, .965);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 24px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.step-block:focus-within {
  border-color: #afc8ed;
  box-shadow: 0 14px 34px rgba(30, 72, 152, .10);
}
#branch-block {
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,251,255,.99));
}
.step-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 7px;
}
.step-heading h2 {
  margin: 0 0 3px;
  color: #152445;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -.018em;
}
.step-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.step-number {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #163f96, #2d68eb);
  box-shadow: 0 7px 17px rgba(34, 85, 184, .20);
  font-size: 13px;
  font-weight: 900;
}

label {
  margin-top: 4px;
  color: #425476;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
}
input,
select {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  outline: none;
  background: #fbfdff;
  color: #162445;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
input:hover,
select:hover { border-color: #b3c7e5; background: #fff; }
input:focus,
select:focus {
  border-color: #5f8fe4;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 109, 246, .10), 0 8px 20px rgba(38, 83, 166, .06);
}
input:disabled,
select:disabled { opacity: .58; background: #f1f4f8; cursor: not-allowed; }

.selection-summary {
  padding: 13px 15px;
  border: 1px solid #d8e5f7;
  border-radius: 14px;
  background: linear-gradient(180deg, #f3f7ff, #edf4ff);
  color: #2c4f82;
  font-size: 13px;
  line-height: 1.5;
}
.divider { display: none; }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}
.slot-button {
  min-height: 44px;
  border: 1px solid #cfdbed;
  border-radius: 13px;
  background: #fff;
  color: #315783;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(30, 64, 124, .03);
  transition: transform .15s, border-color .15s, background .15s, box-shadow .15s;
}
.slot-button:hover {
  transform: translateY(-1px);
  border-color: #8fb0e4;
  background: #f7faff;
  box-shadow: 0 8px 18px rgba(33, 76, 153, .08);
}
.slot-button.selected {
  border-color: #2457c4;
  background: linear-gradient(145deg, #183f95, #2c67e9);
  color: #fff;
  box-shadow: 0 9px 20px rgba(32, 83, 181, .22);
}

.muted,
.empty-note,
.privacy-note,
.submit-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.empty-note {
  padding: 13px;
  border: 1px solid #e2e9f3;
  border-radius: 14px;
  background: #f8fafc;
  text-align: center;
}
.privacy-note { margin: 1px 0 0; }
.turnstile-box { min-height: 66px; overflow: hidden; border-radius: 12px; }

.primary-button,
.secondary-button {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .15s, opacity .15s, box-shadow .15s;
}
.primary-button {
  margin-top: 2px;
  color: #fff;
  background: linear-gradient(135deg, #173f95 0%, #2f6df6 100%);
  box-shadow: 0 14px 30px rgba(38, 89, 194, .24);
  letter-spacing: -.01em;
}
.primary-button:hover:not(:disabled) { box-shadow: 0 17px 36px rgba(38, 89, 194, .29); transform: translateY(-1px); }
.primary-button:active,
.secondary-button:active { transform: translateY(1px); }
.primary-button:disabled {
  opacity: .42;
  cursor: not-allowed;
  box-shadow: none;
  filter: saturate(.65);
}
.secondary-button {
  color: var(--blue);
  background: #eef4ff;
  border: 1px solid #c9daf6;
}
.submit-help { margin: -7px 0 3px; text-align: center; }

.success-card { text-align: center; }
.success-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 17px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: var(--success-soft);
  color: var(--success);
  box-shadow: inset 0 0 0 1px rgba(14,166,109,.12);
  font-size: 34px;
  font-weight: 900;
}
.success-card h2 { margin: 0 0 8px; font-size: 25px; }
.success-card p { color: var(--muted); line-height: 1.6; }
.reference { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; word-break: break-word; }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 5px 4px;
  color: #7485a3;
  font-size: 12px;
}
footer a { color: #315c99; text-decoration: none; font-weight: 650; }
footer a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .page-shell { padding-left: 14px; padding-right: 14px; }
  .slot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  body { background: linear-gradient(180deg, #f5f8fe 0%, #edf2f9 100%); }
  .page-shell { padding: max(12px, env(safe-area-inset-top)) 10px max(22px, env(safe-area-inset-bottom)); }
  .brand-bar { padding: 2px 4px 13px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
  .secure-pill { display: none; }
  .booking-layout { gap: 13px; }
  .hero-card { border-radius: 23px; }
  .step-block { padding: 19px 16px; border-radius: 20px; }
  .step-heading { gap: 11px; }
  .step-heading h2 { font-size: 18px; }
  .step-number { width: 33px; height: 33px; flex-basis: 33px; border-radius: 11px; }
  input, select { min-height: 54px; border-radius: 15px; }
  .slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .primary-button, .secondary-button { min-height: 56px; border-radius: 16px; }
  .success-card { padding: 28px 18px; border-radius: 22px; }
  footer { align-items: flex-start; padding-left: 5px; padding-right: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
