/* ================================================
   NorthPoint Booking Widget — booking.css
   Brand: #0d1a3a (navy) | #1A6FE8 (blue)
   Font: Barlow Condensed + Barlow
   ================================================ */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800;900&family=Barlow:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

.nptb-wrap {
  font-family: 'Barlow', sans-serif;
  color: #0d1a3a;
  max-width: 860px;
  margin: 0 auto;
  background: #ffffff;
  border-top: 4px solid #1A6FE8;
}

/* ── Step indicator ── */
.nptb-steps {
  display: flex;
  align-items: center;
  padding: 28px 40px 0;
  gap: 0;
}

.nptb-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.nptb-step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #8a9ab8;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, color 0.25s;
}

.nptb-step-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #a0aec0;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.25s;
}

.nptb-step.active .nptb-step-num,
.nptb-step.done .nptb-step-num {
  background: #1A6FE8;
  color: #fff;
}

.nptb-step.active .nptb-step-label,
.nptb-step.done .nptb-step-label {
  color: #1A6FE8;
}

.nptb-step-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 6px;
  margin-bottom: 18px;
  transition: background 0.25s;
}

.nptb-step-line.done { background: #1A6FE8; }

/* ── Panel ── */
.nptb-panel { display: none; padding: 36px 40px 40px; }
.nptb-panel.active { display: block; }

/* ── Panel header ── */
.nptb-eyebrow {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #1A6FE8;
  margin-bottom: 6px;
}

.nptb-panel-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(22px, 3vw, 34px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #0d1a3a;
  line-height: 1.05;
  margin: 0 0 8px;
}

.nptb-panel-title span { color: #1A6FE8; }

.nptb-panel-subtitle {
  font-size: 14px;
  color: #5a6880;
  line-height: 1.6;
  margin: 0 0 28px;
}

/* ── Location cards ── */
.nptb-location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 8px;
}

.nptb-location-card {
  border: 2px solid #d1d9e8;
  border-radius: 4px;
  padding: 28px 24px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nptb-location-card:hover {
  border-color: #1A6FE8;
  background: #f4f8ff;
  transform: translateY(-2px);
}

.nptb-location-card.selected {
  border-color: #1A6FE8;
  background: #eef3ff;
}

.nptb-loc-icon {
  width: 44px;
  height: 44px;
  background: #1A6FE8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.nptb-loc-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.nptb-location-card strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0d1a3a;
}

.nptb-location-card span {
  font-size: 13px;
  color: #5a6880;
}

.nptb-loc-hours {
  font-size: 12px !important;
  color: #8a9ab8 !important;
}

/* ── Service grid ── */
.nptb-service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.nptb-service-card {
  border: 1.5px solid #d1d9e8;
  border-radius: 4px;
  padding: 18px 12px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.nptb-service-card svg {
  width: 28px;
  height: 28px;
  fill: #1A6FE8;
}

.nptb-service-card span {
  font-size: 12px;
  font-weight: 600;
  color: #0d1a3a;
  line-height: 1.35;
}

.nptb-service-card:hover,
.nptb-service-card.selected {
  border-color: #1A6FE8;
  background: #f0f5ff;
}

.nptb-service-card.selected svg { fill: #1259c4; }

/* ── Calendar ── */
.nptb-cal-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.nptb-calendar {
  border: 1.5px solid #d1d9e8;
  border-radius: 4px;
  overflow: hidden;
}

.nptb-cal-header {
  background: #0d1a3a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}

.nptb-cal-month-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.nptb-cal-nav {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nptb-cal-nav:hover { opacity: 1; }
.nptb-cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }

.nptb-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #1A6FE8;
}

.nptb-cal-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 8px 0;
}

.nptb-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 8px;
  gap: 3px;
}

.nptb-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  background: none;
}

.nptb-cal-day:hover:not(.disabled):not(.empty) {
  background: #f0f5ff;
  border-color: #1A6FE8;
}

.nptb-cal-day.today {
  font-weight: 700;
  color: #1A6FE8;
}

.nptb-cal-day.selected {
  background: #1A6FE8;
  color: #fff;
  border-color: #1A6FE8;
  font-weight: 700;
}

.nptb-cal-day.disabled {
  color: #d1d9e8;
  cursor: not-allowed;
}

.nptb-cal-day.empty { cursor: default; }

/* ── Time slots ── */
.nptb-timeslots {
  border: 1.5px solid #d1d9e8;
  border-radius: 4px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.nptb-timeslot-prompt {
  font-size: 14px;
  color: #a0aec0;
  text-align: center;
  margin: auto;
}

.nptb-timeslot-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5a6880;
  margin-bottom: 4px;
  display: block;
}

.nptb-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1.5px solid #d1d9e8;
  border-radius: 3px;
  padding: 11px 14px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #0d1a3a;
  transition: border-color 0.18s, background 0.18s;
}

.nptb-slot:hover {
  border-color: #1A6FE8;
  background: #f0f5ff;
}

.nptb-slot.selected {
  border-color: #1A6FE8;
  background: #1A6FE8;
  color: #fff;
}

.nptb-slot-duration {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.7;
}

/* ── Form fields ── */
.nptb-field-row {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.nptb-cols-2 { grid-template-columns: 1fr 1fr; }
.nptb-cols-1 { grid-template-columns: 1fr; }

.nptb-field { display: flex; flex-direction: column; gap: 5px; }

.nptb-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0d1a3a;
}

.nptb-req { color: #e53e3e; }

.nptb-input,
.nptb-textarea {
  width: 100%;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  color: #0d1a3a;
  background: #fff;
  border: 1.5px solid #d1d9e8;
  border-radius: 3px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nptb-input::placeholder,
.nptb-textarea::placeholder { color: #a0aec0; }

.nptb-input:focus,
.nptb-textarea:focus {
  border-color: #1A6FE8;
  box-shadow: 0 0 0 3px rgba(26,111,232,0.10);
}

.nptb-input.error { border-color: #e53e3e; }

.nptb-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }

.nptb-err {
  font-size: 12px;
  color: #e53e3e;
  display: none;
}
.nptb-err.visible { display: block; }

/* ── Booking summary ── */
.nptb-summary {
  background: #f5f7fa;
  border: 1.5px solid #d1d9e8;
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 28px;
}

.nptb-summary-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
}

.nptb-summary-row:last-child { border-bottom: none; }

.nptb-summary-icon {
  width: 34px;
  height: 34px;
  background: #1A6FE8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nptb-summary-icon svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
}

.nptb-summary-key {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a9ab8;
  margin-bottom: 2px;
}

.nptb-summary-val {
  font-size: 15px;
  font-weight: 600;
  color: #0d1a3a;
  line-height: 1.4;
}

/* ── Navigation buttons ── */
.nptb-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.nptb-btn-back {
  background: none;
  border: 1.5px solid #d1d9e8;
  border-radius: 3px;
  padding: 11px 24px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #5a6880;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.nptb-btn-back:hover { border-color: #1A6FE8; color: #1A6FE8; }

.nptb-btn-next,
.nptb-btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #1A6FE8;
  color: #fff;
  border: 2px solid #1A6FE8;
  border-radius: 3px;
  padding: 13px 32px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}

.nptb-btn-next:hover,
.nptb-btn-submit:hover { background: #1259c4; border-color: #1259c4; transform: translateY(-1px); }

.nptb-btn-submit svg { width: 16px; height: 16px; }

.nptb-btn-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

/* ── Success screen ── */
.nptb-success-wrap {
  text-align: center;
  padding: 16px 0 8px;
}

.nptb-success-icon {
  width: 72px;
  height: 72px;
  background: #1A6FE8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.nptb-success-icon svg {
  width: 36px;
  height: 36px;
  stroke: #fff;
}

.nptb-success-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(26px, 3vw, 36px);
  text-transform: uppercase;
  color: #0d1a3a;
  margin: 0 0 10px;
}

.nptb-success-title span { color: #1A6FE8; }

.nptb-success-sub {
  font-size: 15px;
  color: #5a6880;
  margin: 0 0 28px;
  line-height: 1.6;
}

.nptb-success-details {
  background: #f0f5ff;
  border: 1.5px solid #c5d8fc;
  border-radius: 4px;
  padding: 20px 28px;
  display: inline-block;
  text-align: left;
  margin-bottom: 24px;
  min-width: 300px;
}

.nptb-success-details p {
  margin: 0 0 6px;
  font-size: 14px;
  color: #0d1a3a;
  line-height: 1.5;
}

.nptb-success-details p:last-child { margin-bottom: 0; }

.nptb-success-details strong { color: #1A6FE8; }

.nptb-cal-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #0d1a3a;
  color: #fff;
  border-radius: 3px;
  padding: 13px 28px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}

.nptb-cal-btn svg { width: 17px; height: 17px; }
.nptb-cal-btn:hover { background: #1A6FE8; }

/* ── Responsive ── */
@media (max-width: 700px) {
  .nptb-steps { padding: 20px 16px 0; }
  .nptb-step-label { display: none; }
  .nptb-panel { padding: 24px 16px 28px; }
  .nptb-location-grid,
  .nptb-cal-wrap { grid-template-columns: 1fr; }
  .nptb-service-grid { grid-template-columns: repeat(2, 1fr); }
  .nptb-cols-2 { grid-template-columns: 1fr; }
  .nptb-btn-next,
  .nptb-btn-submit { width: 100%; justify-content: center; }
  .nptb-nav { flex-direction: column; align-items: stretch; }
  .nptb-btn-back { text-align: center; }
}
