/* Native strategy-session booking (js/booking/booking.js). */

.native-booking {
  scroll-margin-top: 88px;
  padding: 1.5rem;
  border: 1px solid #d5dde8;
  border-radius: 16px;
  background: #fff;
  text-align: left;
}

.native-booking[hidden] { display: none; }

/* Hold the space only while times load, so the page doesn't jump. */
.native-booking:has(> .nb-loading) { min-height: 420px; }

.nb-loading,
.nb-empty { color: #374151; }

.nb-step + .nb-step,
.nb-form { margin-top: 1.75rem; }

.nb-step-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.nb-step-title {
  margin: 0 0 0.75rem;
  color: var(--brand-navy);
  font-family: 'Poppins', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
}

.nb-step-head .nb-step-title { margin-bottom: 0; }
.nb-step-head + .nb-days { margin-top: 0.75rem; }

.nb-scrollers { display: flex; gap: 0.375rem; }
.nb-scrollers[hidden] { display: none; }

.nb-scroll {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #c3cedb;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-navy);
  font-size: 1.375rem;
  line-height: 1;
}

.nb-scroll:disabled { opacity: 0.35; cursor: default; }
.nb-scroll:focus-visible { outline: 3px solid var(--brand-gold); outline-offset: 2px; }

.nb-days {
  display: flex;
  gap: 0.5rem;
  margin: 0 -0.25rem;
  padding: 0.25rem 0.25rem 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 0.25rem;
  scrollbar-width: thin;
}

.nb-day {
  flex: none;
  display: grid;
  justify-items: center;
  width: 4.25rem;
  padding: 0.5rem 0 0.4rem;
  border: 1px solid #c3cedb;
  border-radius: 12px;
  background: #fff;
  color: var(--brand-navy);
  line-height: 1.2;
  scroll-snap-align: start;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.nb-day:hover { border-color: var(--brand-navy); }

.nb-day[aria-selected="true"] {
  border-color: var(--brand-navy);
  background: var(--brand-navy);
  color: #fff;
}

.nb-day-name { font-size: 0.8125rem; font-weight: 600; }
.nb-day-date { font-size: 1.375rem; font-weight: 700; }
.nb-day-month { min-height: 1em; font-size: 0.75rem; font-weight: 600; }

.nb-zone { display: grid; gap: 0.25rem; }
.nb-zone-label { color: #374151; font-size: 0.8125rem; font-weight: 600; }

.nb-zone-select {
  min-height: 40px;
  padding: 0.375rem 2rem 0.375rem 0.75rem;
  border: 1px solid #c3cedb;
  border-radius: 8px;
  background-color: #fff;
  color: #1f2937;
  font-size: 0.9375rem;
}

.nb-times { margin-top: 1rem; display: grid; gap: 1rem; }

.nb-time-group-label {
  margin: 0 0 0.5rem;
  color: #4b5563;
  font-size: 0.875rem;
  font-weight: 600;
}

.nb-time-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.75rem, 1fr));
  gap: 0.5rem;
}

.nb-time {
  min-height: 44px;
  border: 1px solid #c3cedb;
  border-radius: 10px;
  background: #fff;
  color: var(--brand-navy);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.nb-time:hover { border-color: var(--brand-navy); }

.nb-time[aria-pressed="true"] {
  border-color: var(--brand-navy);
  background: var(--brand-navy);
  color: #fff;
}

.nb-day:focus-visible,
.nb-time:focus-visible,
.nb-action:focus-visible,
.nb-link-button:focus-visible,
.nb-submit:focus-visible,
.nb-zone-select:focus-visible {
  outline: 3px solid var(--brand-gold);
  outline-offset: 2px;
}

.nb-form {
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.nb-chosen {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}

.nb-chosen-time,
.nb-done-time {
  margin: 0;
  color: var(--brand-navy);
  font-size: 1.0625rem;
  font-weight: 700;
}

.nb-link-button {
  padding: 0.25rem 0;
  color: var(--brand-navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nb-link-button[hidden] { display: none; }

.nb-field { margin-top: 1rem; }

.nb-field label {
  display: block;
  margin-bottom: 0.375rem;
  color: var(--brand-navy);
  font-weight: 600;
}

.nb-field input,
.nb-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem;
  border: 1px solid #9ca3af;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 1rem;
}

.nb-field textarea { min-height: 6.5rem; resize: vertical; }

.nb-field input:focus,
.nb-field textarea:focus {
  outline: 3px solid rgba(234, 179, 8, 0.35);
  border-color: var(--brand-navy);
}

.nb-field [aria-invalid="true"] { border-color: #b91c1c; }

.nb-hint { margin: 0.375rem 0 0; color: #4b5563; font-size: 0.875rem; }

.nb-topics { margin-inline: 0; padding: 0; border: 0; min-width: 0; }

.nb-topics legend {
  margin-bottom: 0.375rem;
  padding: 0;
  color: var(--brand-navy);
  font-weight: 600;
}

/* Beats .nb-field label and .nb-field input, which style ordinary fields. */
.nb-topics .nb-topic { position: relative; display: inline-block; margin: 0 0.375rem 0.5rem 0; }

.nb-topics .nb-topic input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.nb-topic span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid #c3cedb;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-navy);
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.nb-topic:hover span { border-color: var(--brand-navy); }

.nb-topic input:checked + span {
  border-color: var(--brand-navy);
  background: var(--brand-navy);
  color: #fff;
}

.nb-topic input:focus-visible + span {
  outline: 3px solid var(--brand-gold);
  outline-offset: 2px;
}

.nb-topic input[aria-invalid="true"] + span { border-color: #b91c1c; }

.nb-guests:not(:empty) + .nb-link-button { margin-top: 0.5rem; }
.nb-form > .nb-link-button { margin-top: 0.75rem; }

.nb-error,
.nb-fallback-note {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
}

.nb-fallback-note { margin: 0 0 1rem; }

.nb-error[hidden] { display: none; }

.nb-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--brand-navy);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 700;
  transition: background-color 0.2s ease;
}

.nb-submit:hover:not(:disabled) { background: #244b7d; }
.nb-submit:disabled { cursor: progress; opacity: 0.75; }

.nb-submit-quiet { background: #991b1b; }
.nb-submit-quiet:hover:not(:disabled) { background: #7f1d1d; }

.nb-fineprint { margin: 0.75rem 0 0; color: #4b5563; font-size: 0.875rem; }
.nb-fineprint a { color: var(--brand-navy); text-decoration: underline; }

.nb-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.nb-done { display: grid; gap: 0.75rem; color: #1f2937; }

.nb-done-title {
  margin: 0;
  color: var(--brand-navy);
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
}

.nb-done-title:focus { outline: none; }

.nb-done p { margin: 0; }

.nb-done-link {
  color: var(--brand-navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* After booking, the confirmation takes the whole section. */
.nb-layout-booked > [data-booking-intro],
.nb-layout-booked .after-hours-request { display: none; }
.nb-layout-booked > [data-booking-main] { grid-column: 1 / -1; width: 100%; max-width: 44rem; margin: 0 auto; }

.nb-booked { gap: 1rem; }
.nb-done-head { display: flex; align-items: center; gap: 0.625rem; }
.nb-done-mark { flex: none; width: 1.75rem; height: 1.75rem; }
.nb-done-mark circle { fill: #15803d; }
.nb-done-mark path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.nb-done-session {
  padding: 1rem 1.125rem;
  border-radius: 12px;
  background: var(--brand-navy);
  color: #fff;
}

.nb-done-session .nb-done-time { color: #fff; font-size: 1.1875rem; }
.nb-done-actions { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

.nb-next-title {
  margin: 0.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
  color: var(--brand-navy);
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.nb-journey { margin: 0; padding: 0; list-style: none; }
.nb-journey li { position: relative; padding: 0 0 1.5rem 2rem; }
.nb-journey li:last-child { padding-bottom: 0; }

/* A dot per step, joined by a line, with the fact find in gold. */
.nb-journey li::before {
  content: '';
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  width: 0.875rem;
  height: 0.875rem;
  border: 2px solid var(--brand-navy);
  border-radius: 50%;
  background: #fff;
}

.nb-journey li::after {
  content: '';
  position: absolute;
  top: 1.375rem;
  bottom: 0.25rem;
  left: calc(0.6875rem - 1px);
  width: 2px;
  background: #d5dde8;
}

.nb-journey li:last-child::after { display: none; }
.nb-journey .nb-journey-key::before { border-color: var(--brand-gold); background: var(--brand-gold); }

.nb-when { color: #52616f; font-size: 0.8125rem; font-weight: 600; }

.nb-journey h4 {
  margin: 0.125rem 0 0.25rem;
  color: var(--brand-navy);
  font-family: 'Poppins', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
}

.nb-done .nb-journey .nb-quiet { margin-top: 0.5rem; color: #52616f; font-size: 0.9375rem; }

.nb-cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  background: var(--brand-gold);
  color: #172b4d;
  font-weight: 700;
  text-decoration: none;
}

.nb-cta:hover { background: #facc15; }
.nb-cta:focus-visible { outline: 3px solid var(--brand-navy); outline-offset: 2px; }

.nb-manage-summary { display: grid; gap: 0.5rem; }

.nb-manage-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.nb-action {
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--brand-navy);
  border-radius: 10px;
  background: var(--brand-navy);
  color: #fff;
  font-weight: 700;
}

.nb-action-quiet { background: #fff; color: var(--brand-navy); }

.nb-manage-panel:not(:empty) { margin-top: 1.5rem; }

@media (max-width: 640px) {
  .native-booking { padding: 1.125rem; border-radius: 12px; }
  .nb-time-list { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .nb-day, .nb-time, .nb-submit { transition: none; }
}
