/* =====================================================================
   Facilities Booking — Public Styles
   ===================================================================== */

:root {
  --fb-primary:       #1d4ed8;
  --fb-primary-dark:  #1e40af;
  --fb-primary-light: #dbeafe;
  --fb-primary-rgb:   29,78,216;
  --fb-on-primary:    #ffffff;
  --fb-secondary:     #64748b;
  --fb-success:       #16a34a;
  --fb-success-light: #dcfce7;
  --fb-warning:       #d97706;
  --fb-warning-light: #fef3c7;
  --fb-danger:        #dc2626;
  --fb-danger-light:  #fee2e2;
  --fb-info:          #0284c7;
  --fb-info-light:    #e0f2fe;
  --fb-border:        #e2e8f0;
  --fb-bg:            #f8fafc;
  --fb-white:         #ffffff;
  --fb-text:          #1e293b;
  --fb-text-muted:    #64748b;
  --fb-radius:        8px;
  --fb-radius-lg:     12px;
  --fb-shadow:        0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --fb-shadow-md:     0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -1px rgba(0,0,0,.05);
  --fb-shadow-lg:     0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.04);
  --fb-font:          -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --fb-form-width:    780px;
}

/* =====================================================================
   Wrapper
   ===================================================================== */
.fb-booking-wrapper {
  font-family: var(--fb-font);
  color: var(--fb-text);
  max-width: var(--fb-form-width);
  margin: 0 auto;
  padding: 32px 16px 48px;
  line-height: 1.5;
}

/* =====================================================================
   Step Indicator
   ===================================================================== */
.fb-steps {
  display: flex;
  align-items: center;
  margin-bottom: 46px;
  padding: 0 14px;
  position: relative;
}

/* Each step is only as wide as its circle; the label is taken out of the
   layout flow (absolutely positioned) so circles stay evenly spaced
   regardless of how long each label is. */
.fb-step {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

.fb-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--fb-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  background: var(--fb-white);
  color: var(--fb-text-muted);
  transition: background .25s, border-color .25s, color .25s, box-shadow .25s;
  position: relative;
  z-index: 1;
}

.fb-step.fb-step-active .fb-step-num {
  background: var(--fb-primary);
  border-color: var(--fb-primary);
  color: var(--fb-on-primary);
  box-shadow: 0 0 0 4px var(--fb-primary-light);
}

.fb-step.fb-step-done .fb-step-num {
  background: var(--fb-success);
  border-color: var(--fb-success);
  color: transparent;
}
/* Replace the number with a checkmark on completed steps. */
.fb-step.fb-step-done .fb-step-num::after {
  content: "\2713";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
}

.fb-step-label {
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%);
  font-size: .68rem;
  font-weight: 600;
  color: var(--fb-text-muted);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.fb-step.fb-step-active .fb-step-label { color: var(--fb-primary); }
.fb-step.fb-step-done  .fb-step-label  { color: var(--fb-success); }

.fb-step-connector {
  flex: 1 1 0;
  height: 2px;
  min-width: 16px;
  background: var(--fb-border);
  transition: background .35s;
}

/* Fill the connector once the step before it has been completed. */
.fb-step.fb-step-done + .fb-step-connector,
.fb-step-connector.fb-connector-done { background: var(--fb-success); }

/* =====================================================================
   Step Panels  —  each panel is a card
   ===================================================================== */
.fb-step-panel {
  display: none;
  background: var(--fb-white);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-lg);
  padding: 36px 40px;
  box-shadow: var(--fb-shadow-md);
}

.fb-panel-active {
  display: block;
  animation: fb-fadein .22s ease both;
}

@keyframes fb-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}

.fb-step-panel .fb-panel-title {
  font-size: 1.75rem !important;
  font-weight: 700;
  margin: 0 0 28px;
  color: var(--fb-primary);
  padding-bottom: 18px;
  border-bottom: 2px solid var(--fb-border);
}

/* =====================================================================
   Alerts
   ===================================================================== */
.fb-alert {
  padding: 12px 16px;
  border-radius: var(--fb-radius);
  margin-bottom: 20px;
  font-size: .9rem;
}
.fb-alert-error   { background: var(--fb-danger-light);  color: var(--fb-danger);  border: 1px solid #fca5a5; }
.fb-alert-success { background: var(--fb-success-light); color: var(--fb-success); border: 1px solid #86efac; }
.fb-alert-info    { background: var(--fb-info-light);    color: var(--fb-info);    border: 1px solid #7dd3fc; }
.fb-alert-warning { background: var(--fb-warning-light); color: var(--fb-warning); border: 1px solid #fcd34d; }
.fb-alert .dashicons { font-size: 1.1rem; width: auto; height: auto; vertical-align: middle; margin-right: 6px; }

/* =====================================================================
   Buttons
   ===================================================================== */
.fb-step-actions .fb-btn {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 11px 24px;
  border-radius: var(--fb-radius);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .1s;
  line-height: 1;
  white-space: nowrap;
  height: 56px;
}
.fb-btn:disabled          { opacity: .5; cursor: not-allowed; }
.fb-btn:active:not(:disabled) { transform: scale(.98); }

.fb-step-actions .fb-btn-primary {
  background: var(--fb-primary);
  color: var(--fb-on-primary);
  border-color: var(--fb-primary);
}
.fb-step-actions .fb-btn-primary:hover:not(:disabled) {
  background: var(--fb-primary-dark);
  border-color: var(--fb-primary-dark);
  box-shadow: 0 4px 14px rgba(var(--fb-primary-rgb),.3);
}

.fb-step-actions .fb-btn-secondary {
  background: var(--fb-white);
  color: var(--fb-secondary);
  border-color: var(--fb-border);
}
.fb-step-actions .fb-btn-secondary:hover:not(:disabled) { background: var(--fb-bg); border-color: #cbd5e1; }

.fb-step-actions .fb-btn-outline {
  background: var(--fb-primary-light);
  color: var(--fb-primary);
  border-color: var(--fb-primary-light);
}
.fb-step-actions .fb-btn-outline:hover:not(:disabled) {
  background: var(--fb-primary-light);
  border-color: var(--fb-primary);
  color: var(--fb-primary);
}

.fb-step-actions {
  display: flex;
  gap: 1.25rem;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--fb-border);
  justify-content: flex-end;
  align-items: center;
}

/* =====================================================================
   Form Elements
   ===================================================================== */
.fb-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.fb-form-row-full { grid-column: 1 / -1; }

.fb-form-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.fb-form-row label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fb-primary);
}

.fb-required { color: var(--fb-danger); }

.fb-input {
  width: 100%;
  padding: 10px 14px;
  height: 56px;
  border: 2px solid var(--fb-border);
  border-radius: var(--fb-radius);
  font-size: 1rem;
  font-family: var(--fb-font);
  background: var(--fb-white);
  color: var(--fb-text);
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}
.fb-input::placeholder { color: #94a3b8; }
.fb-input:focus {
  outline: none;
  border-color: var(--fb-primary);
  box-shadow: 0 0 0 3px rgba(var(--fb-primary-rgb),.12);
}

/* ---- Inputs with a leading icon ---- */
.fb-input-wrap { position: relative; }
.fb-input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  color: var(--fb-primary);
  pointer-events: none;
  transition: color .2s;
}
.fb-input-icon svg { width: 20px; height: 20px; }
.fb-input-wrap .fb-input { padding-left: 44px; }
.fb-input-wrap:focus-within .fb-input-icon { color: var(--fb-primary); }

/* ---- Phone field: flag selector + dial-code prefix + number ---- */
.fb-phone-group {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 56px;
  border: 2px solid var(--fb-border);
  border-radius: var(--fb-radius);
  background: var(--fb-white);
  transition: border-color .2s, box-shadow .2s;
}
.fb-phone-group:focus-within {
  border-color: var(--fb-primary);
  box-shadow: 0 0 0 3px rgba(var(--fb-primary-rgb),.12);
}

/* Flag button — collapsed control shows only the flag + caret.
   Hardened against theme/Bootstrap <button> styling (background, border, shadow). */
.fb-booking-wrapper .fb-phone-group .fb-phone-flag-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  margin: 0;
  padding: 0 9px 0 13px;
  min-height: 0;
  font: inherit;
  color: var(--fb-text);
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-transform: none;
  cursor: pointer;
  border-radius: calc(var(--fb-radius) - 2px) 0 0 calc(var(--fb-radius) - 2px);
  -webkit-appearance: none;
  appearance: none;
}
.fb-booking-wrapper .fb-phone-group .fb-phone-flag-btn:hover { background: var(--fb-bg) !important; }
.fb-booking-wrapper .fb-phone-group .fb-phone-flag-btn:focus,
.fb-booking-wrapper .fb-phone-group .fb-phone-flag-btn:focus-visible { outline: none; box-shadow: none !important; }
.fb-phone-flag { font-size: 1.35rem; line-height: 1; }
.fb-phone-caret { width: 13px; height: 13px; color: var(--fb-text-muted); transition: transform .2s; flex-shrink: 0; }
.fb-phone-flag-btn[aria-expanded="true"] .fb-phone-caret { transform: rotate(180deg); }

/* Live dial-code prefix (e.g. +44) */
.fb-phone-dial {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0 4px 0 10px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--fb-text);
  border-left: 1px solid var(--fb-border);
}

/* Number input */
.fb-phone-group .fb-phone-number {
  flex: 1 1 auto;
  min-width: 0;
  height: auto;
  border: 0;
  border-radius: 6px;
  padding-left: 8px;
}
.fb-phone-group .fb-phone-number:focus { outline: none; box-shadow: none; }

/* Country dropdown */
.fb-phone-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  width: max(300px, 100%);
  max-height: 290px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--fb-white);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-lg);
  box-shadow: var(--fb-shadow-lg);
}
.fb-phone-dropdown[hidden] { display: none; }
/* Reset theme list styling (carely paints a bullet via li::before / ::marker). */
.fb-booking-wrapper .fb-phone-dropdown,
.fb-booking-wrapper .fb-phone-dropdown .fb-phone-option { list-style: none !important; }
.fb-booking-wrapper .fb-phone-dropdown .fb-phone-option::before,
.fb-booking-wrapper .fb-phone-dropdown .fb-phone-option::after { content: none !important; display: none !important; }
.fb-booking-wrapper .fb-phone-dropdown .fb-phone-option::marker { content: "" !important; }

.fb-phone-option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 9px 12px;
  border-radius: var(--fb-radius);
  cursor: pointer;
  font-size: .9rem;
  color: var(--fb-text);
}
.fb-phone-option:hover,
.fb-phone-option.is-active { background: rgba(var(--fb-primary-rgb), .1); }
.fb-phone-option.is-selected { font-weight: 700; color: var(--fb-primary); }
.fb-phone-opt-flag { font-size: 1.3rem; line-height: 1; width: 28px; text-align: center; flex-shrink: 0; }
.fb-phone-opt-name { flex: 1 1 auto; }
.fb-phone-opt-dial { color: var(--fb-text-muted); font-weight: 600; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.fb-phone-option.is-selected .fb-phone-opt-dial { color: var(--fb-primary); }

select.fb-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

textarea.fb-input { resize: vertical; min-height: 90px; }

/* =====================================================================
   Facility Selector  (Step 1)
   ===================================================================== */
.fb-facility-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 4px;
}

.fb-sel-card {
  border: 2px solid var(--fb-border);
  border-radius: var(--fb-radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  background: var(--fb-white);
  position: relative;
}
.fb-sel-card:hover {
  border-color: var(--fb-primary);
  box-shadow: var(--fb-shadow-md);
  transform: translateY(-2px);
}
.fb-sel-card-active {
  border-color: var(--fb-primary);
  box-shadow: 0 0 0 3px var(--fb-primary-light), var(--fb-shadow-md);
}

.fb-sel-card-img img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.fb-sel-card-body { padding: 1.5rem; }
.fb-sel-card-body h3 {
  margin: 0 0 6px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--fb-primary);
}
.fb-sel-card-body p {
  margin: 0;
  font-size: .825rem;
  color: var(--fb-text-muted);
  line-height: 1.5;
}

.fb-sel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}
.fb-sel-meta span {
  font-size: .825rem;
  font-weight: 600;
  background: var(--fb-primary-light);
  color: var(--fb-primary);
  padding: 3px 9px;
  border-radius: 20px;
}

.fb-sel-card-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: var(--fb-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  transform: scale(.65);
}
.fb-sel-card-active .fb-sel-card-check {
  opacity: 1;
  transform: scale(1);
}
.fb-sel-card-check .dashicons { color: var(--fb-on-primary); font-size: 18px; }

/* =====================================================================
   Date & Time  (Step 2)
   ===================================================================== */
.fb-datetime-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

#fb-hourly-options { display: contents; }

.fb-price-preview { margin-top: 24px; }
.fb-price-card {
  background: linear-gradient(135deg, rgba(var(--fb-primary-rgb), .10) 0%, rgba(var(--fb-primary-rgb), .02) 100%);
  border: 1px solid rgba(var(--fb-primary-rgb), .25);
  border-radius: var(--fb-radius-lg);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
}
.fb-price-breakdown {
  font-size: .82rem;
  font-weight: 500;
  color: var(--fb-text-muted);
}
.fb-price-vat-breakdown {
  border-top: 1px solid rgba(var(--fb-primary-rgb), .18);
  margin-top: 12px;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fb-price-vat-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .85rem;
  color: var(--fb-text-muted);
}
.fb-price-vat-line--vat {
  font-weight: 700;
  color: var(--fb-text);
}
.fb-price-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(var(--fb-primary-rgb), .18);
}
.fb-price-label {
  font-size: .74rem;
  font-weight: 700;
  color: var(--fb-primary);
  text-transform: uppercase;
  letter-spacing: .07em;
}
.fb-price-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--fb-primary);
  line-height: 1;
  letter-spacing: -.02em;
}

/* =====================================================================
   Booking Summary  (Step 4)
   ===================================================================== */
.fb-booking-summary {
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-lg);
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--fb-shadow);
}

.fb-sum-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 20px;
  background: var(--fb-bg);
  border-bottom: 1px solid var(--fb-border);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--fb-primary);
}
.fb-sum-header-icon { display: inline-flex; align-items: center; color: var(--fb-primary); }
.fb-sum-header-icon svg { width: 16px; height: 16px; }

.fb-sum-rows { background: var(--fb-white); }

.fb-sum-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--fb-border);
}
.fb-sum-row:last-child { border-bottom: none; }

/* Icon sits in a soft accent-tinted chip. */
.fb-sum-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(var(--fb-primary-rgb), .1);
  color: var(--fb-primary);
  flex-shrink: 0;
}
.fb-sum-icon svg { width: 17px; height: 17px; }

.fb-sum-label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--fb-primary);
  text-transform: uppercase;
  letter-spacing: .04em;
  flex-shrink: 0;
}

.fb-sum-value {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fb-text);
  text-align: right;
}

/* Price rows (subtotal / VAT) read as a quieter sub-group above the total. */
#fb-sum-subtotal-row,
#fb-sum-vat-row {
  background: var(--fb-bg);
  font-size: .9rem;
}
#fb-sum-subtotal-row { border-top: 1px solid var(--fb-border); }
#fb-sum-subtotal-row .fb-sum-icon,
#fb-sum-vat-row .fb-sum-icon {
  background: transparent;
  color: var(--fb-text-muted);
}
#fb-sum-vat-row .fb-sum-label { font-weight: 700; }

.fb-sum-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 17px 22px;
  background: linear-gradient(135deg, var(--fb-primary) 0%, var(--fb-primary-dark) 100%);
}

.fb-sum-total-label {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--fb-on-primary);
}

.fb-sum-total-amount {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--fb-on-primary);
  line-height: 1;
  letter-spacing: -.01em;
}

/* ---- Payment method selector ---- */
.fb-payment-method-selector {
  margin-bottom: 20px;
}
.fb-pm-heading {
  font-size: .8rem;
  font-weight: 700;
  color: var(--fb-text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 10px;
}
.fb-pm-options {
  display: flex;
  gap: 10px;
}
.fb-pm-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1.5px solid var(--fb-border);
  border-radius: var(--fb-radius);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
  background: var(--fb-white);
  user-select: none;
}
.fb-pm-option:hover {
  border-color: var(--fb-primary);
}
.fb-pm-option--active {
  border-color: var(--fb-primary);
  box-shadow: 0 0 0 3px rgba(var(--fb-primary-rgb),.1);
  background: var(--fb-primary-light);
}
.fb-pm-option input[type="radio"] {
  accent-color: var(--fb-primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.fb-pm-icon {
  color: var(--fb-primary);
  display: flex;
  align-items: center;
}
.fb-pm-label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--fb-text);
}
@media (max-width: 480px) {
  .fb-pm-options { flex-direction: column; }
}

/* ---- Stripe ---- */
.fb-stripe-element {
  border: 1.5px solid var(--fb-border);
  border-radius: var(--fb-radius);
  padding: 14px;
  background: var(--fb-white);
  margin-bottom: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.fb-stripe-element.StripeElement--focus {
  border-color: var(--fb-primary);
  box-shadow: 0 0 0 3px rgba(var(--fb-primary-rgb),.12);
}
.fb-stripe-errors { color: var(--fb-danger); font-size: .85rem; min-height: 20px; }

/* ---- Spinner ---- */
.fb-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: fb-spin .7s linear infinite;
  vertical-align: middle;
  flex-shrink: 0;
}
@keyframes fb-spin { to { transform: rotate(360deg); } }

/* =====================================================================
   Confirmation  (Step 5)
   ===================================================================== */
.fb-confirmation {
  text-align: center;
  padding: 40px 20px;
}

/* Status icon — defaults to confirmed (green); pending modifier overrides */
.fb-confirm-icon {
  width: 84px;
  height: 84px;
  background: var(--fb-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 0 0 10px rgba(22,163,74,.1);
  transition: background .2s, box-shadow .2s;
}
.fb-confirm-icon .dashicons {
  font-size: 44px;
  color: var(--fb-primary);
  width: 44px;
  height: 44px;
  transition: color .2s;
}
.fb-confirm-icon--pending {
  background: var(--fb-warning-light);
  box-shadow: 0 0 0 10px rgba(217,119,6,.1);
}
.fb-confirm-icon--pending .dashicons { color: var(--fb-warning); }

.fb-confirmation .fb-confirm-title {
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--fb-primary);
}

.fb-confirm-message {
  font-size: 1rem;
  color: var(--fb-text-muted);
  margin: 0 auto 28px;
  max-width: 480px;
}

/* Booking summary card */
.fb-confirm-card {
  display: inline-block;
  width: 100%;
  text-align: left;
  background: var(--fb-white);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--fb-shadow-md);
}
.fb-cc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--fb-border);
}
.fb-cc-row:last-of-type { border-bottom: none; }
.fb-cc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(var(--fb-primary-rgb), .1);
  color: var(--fb-primary);
  flex-shrink: 0;
}
.fb-cc-icon svg { width: 17px; height: 17px; }
.fb-cc-label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--fb-primary);
  text-transform: uppercase;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.fb-cc-value {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fb-text);
  text-align: right;
}
#fb-cc-subtotal-row,
#fb-cc-vat-row {
  background: var(--fb-bg);
  font-size: .9rem;
}
#fb-cc-subtotal-row { border-top: 1px solid var(--fb-border); }
#fb-cc-subtotal-row .fb-cc-icon,
#fb-cc-vat-row .fb-cc-icon {
  background: transparent;
  color: var(--fb-text-muted);
}
#fb-cc-vat-row .fb-cc-label { font-weight: 700; }

.fb-cc-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 17px 22px;
  background: linear-gradient(135deg, var(--fb-primary) 0%, var(--fb-primary-dark) 100%);
}
.fb-cc-total-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fb-on-primary);
  opacity: 1;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.fb-cc-total-amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--fb-on-primary);
  letter-spacing: -.01em;
}

/* Reference badge */
.fb-confirm-ref {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--fb-primary-light);
  color: var(--fb-primary);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 32px;
}
.fb-confirm-ref-icon { display: inline-flex; align-items: center; }
.fb-confirm-ref-icon svg   { width: 15px; height: 15px; }
.fb-confirm-ref strong     { font-weight: 800; }

/* Calendar links */
.fb-cal-prompt {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--fb-text-muted);
  margin: 0 0 14px;
}
.fb-cal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* These links lost the generic .fb-btn styling (it is now scoped to
   .fb-step-actions), so give the calendar links their own button look —
   specific enough to beat the theme's default <a> styling. */
.fb-booking-wrapper .fb-cal-buttons .fb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1.5px solid var(--fb-border);
  border-radius: var(--fb-radius);
  background: var(--fb-white);
  color: var(--fb-primary);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .1s;
}
.fb-booking-wrapper .fb-cal-buttons .fb-btn:hover,
.fb-booking-wrapper .fb-cal-buttons .fb-btn:focus {
  color: var(--fb-primary);
  border-color: var(--fb-primary);
  background: rgba(var(--fb-primary-rgb), .07);
  box-shadow: 0 4px 12px rgba(var(--fb-primary-rgb), .14);
  transform: translateY(-1px);
}
.fb-booking-wrapper .fb-cal-buttons .fb-btn:active { transform: translateY(0) scale(.98); }
.fb-cal-buttons .fb-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.fb-cal-buttons .fb-btn .dashicons { font-size: 17px; width: 17px; height: 17px; line-height: 1; }

/* =====================================================================
   Terms
   ===================================================================== */
.fb-terms-section { margin-top: 24px; }
.fb-terms-box {
  max-height: 160px;
  overflow-y: auto;
  background: var(--fb-bg);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius);
  padding: 14px 16px;
  font-size: .85rem;
  margin-bottom: 14px;
  line-height: 1.6;
  color: var(--fb-text-muted);
}
.fb-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  cursor: pointer;
  font-weight: 500;
}
.fb-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--fb-primary);
  cursor: pointer;
  flex-shrink: 0;
}

/* =====================================================================
   Facilities List
   ===================================================================== */
.fb-facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.fb-facility-card {
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-lg);
  overflow: hidden;
  background: var(--fb-white);
  box-shadow: var(--fb-shadow);
  transition: box-shadow .2s, transform .2s;
}
.fb-facility-card:hover { box-shadow: var(--fb-shadow-lg); transform: translateY(-2px); }
.fb-facility-image img { width: 100%; height: 200px; object-fit: cover; display: block; }
.fb-facility-body { padding: 20px; }
.fb-facility-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 8px; }
.fb-facility-excerpt { font-size: .875rem; color: var(--fb-text-muted); margin: 0 0 14px; line-height: 1.6; }
.fb-facility-meta { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.fb-meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .85rem;
  color: var(--fb-text-muted);
}
.fb-meta-item .dashicons { font-size: 16px; width: 16px; height: 16px; color: var(--fb-primary); }

/* =====================================================================
   Flatpickr calendar overrides (.fb-flatpickr class set via className option)
   Flatpickr appends to <body>, so these cannot be scoped to .fb-booking-wrapper.
   ===================================================================== */

/* ----- Outer shell ----- */
.fb-flatpickr {
  /* Let flatpickr keep its natural width (307.875 px). Only override visuals. */
  background: #fff;
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-lg);
  box-shadow: var(--fb-shadow-lg);
  font-family: var(--fb-font);
  padding: 0;
  overflow: hidden;          /* clips child elements to rounded corners */
  animation: fb-fadein .18s ease both;
}
/* Hide the default arrow-pointer above/below the calendar */
.fb-flatpickr.arrowTop::before,
.fb-flatpickr.arrowTop::after,
.fb-flatpickr.arrowBottom::before,
.fb-flatpickr.arrowBottom::after { display: none; }

/* ----- Month / navigation header ----- */
.fb-flatpickr .flatpickr-months {
  padding: 12px 8px 10px;
  border-bottom: 1px solid var(--fb-border);
}
.fb-flatpickr .flatpickr-month {
  background: transparent;
  height: 36px;
  color: var(--fb-text);
  fill: var(--fb-text);
}
.fb-flatpickr .flatpickr-prev-month,
.fb-flatpickr .flatpickr-next-month {
  top: 12px;
  padding: 5px 8px;
  fill: var(--fb-text-muted);
  color: var(--fb-text-muted);
  border-radius: var(--fb-radius);
  transition: background .12s, fill .12s;
}
.fb-flatpickr .flatpickr-prev-month:hover,
.fb-flatpickr .flatpickr-next-month:hover {
  background: var(--fb-primary-light);
  fill: var(--fb-primary);
  color: var(--fb-primary);
}
.fb-flatpickr .flatpickr-prev-month svg,
.fb-flatpickr .flatpickr-next-month svg { width: 14px; height: 14px; }

.fb-flatpickr .flatpickr-current-month {
  font-size: .975rem;
  font-weight: 700;
  color: var(--fb-text);
  padding-top: 4px;
}
.fb-flatpickr .flatpickr-current-month .flatpickr-monthDropdown-months {
  background: transparent;
  border: none;
  font-weight: 700;
  font-size: .975rem;
  color: var(--fb-text);
  padding: 0 2px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.fb-flatpickr .flatpickr-current-month .flatpickr-monthDropdown-months:hover {
  color: var(--fb-primary);
}
.fb-flatpickr .flatpickr-current-month .numInputWrapper {
  width: 58px;
}
.fb-flatpickr .flatpickr-current-month input.cur-year {
  font-weight: 700;
  color: var(--fb-text);
  font-size: .975rem;
}
.fb-flatpickr .numInputWrapper span {
  border-color: var(--fb-border);
}
.fb-flatpickr .numInputWrapper span:hover {
  background: var(--fb-bg);
}
.fb-flatpickr .numInputWrapper span svg path {
  fill: var(--fb-text-muted);
}

/* ----- Weekday labels ----- */
.fb-flatpickr .flatpickr-weekdays { background: transparent; }
.fb-flatpickr span.flatpickr-weekday {
  background: transparent;
  color: var(--fb-text-muted);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ----- Day grid ----- */
/* No width overrides — flatpickr sets 307.875px on these, trust it */

.fb-flatpickr .flatpickr-day {
  /* Force exactly 1/7 width so 7 days always fill a row cleanly */
  flex: 0 0 calc(100% / 7);
  max-width: calc(100% / 7);
  border-radius: var(--fb-radius);
  border: 1px solid transparent;
  height: 36px;
  line-height: 34px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--fb-text);
  transition: background .1s, color .1s, border-color .1s;
}

/* Hover — accent colour at reduced opacity */
.fb-flatpickr .flatpickr-day:hover,
.fb-flatpickr .flatpickr-day:focus {
  background: rgba(var(--fb-primary-rgb), .15);
  border-color: transparent;
  color: var(--fb-primary);
  outline: none;
}

/* Today */
.fb-flatpickr .flatpickr-day.today {
  background: transparent;
  border-color: var(--fb-primary);
  color: var(--fb-primary);
  font-weight: 700;
}
.fb-flatpickr .flatpickr-day.today:hover {
  background: rgba(var(--fb-primary-rgb), .15);
  border-color: var(--fb-primary);
}

/* Selected */
.fb-flatpickr .flatpickr-day.selected,
.fb-flatpickr .flatpickr-day.selected:hover,
.fb-flatpickr .flatpickr-day.selected:focus {
  background: var(--fb-primary);
  border-color: var(--fb-primary);
  color: var(--fb-on-primary);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(var(--fb-primary-rgb),.35);
}

/* Selected today */
.fb-flatpickr .flatpickr-day.today.selected {
  background: var(--fb-primary);
  border-color: var(--fb-primary);
  color: var(--fb-on-primary);
}

/* Disabled (closed / fully booked) */
.fb-flatpickr .flatpickr-day.flatpickr-disabled,
.fb-flatpickr .flatpickr-day.flatpickr-disabled:hover {
  background: transparent;
  color: #cbd5e1;
  border-color: transparent;
  cursor: not-allowed;
  text-decoration: line-through;
  opacity: 1;
}

/* Prev/next month days shown in the grid */
.fb-flatpickr .flatpickr-day.prevMonthDay,
.fb-flatpickr .flatpickr-day.nextMonthDay {
  color: #cbd5e1;
}
.fb-flatpickr .flatpickr-day.prevMonthDay:hover,
.fb-flatpickr .flatpickr-day.nextMonthDay:hover {
  background: var(--fb-bg);
  color: var(--fb-text-muted);
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 640px) {
  .fb-step-panel    { padding: 24px 20px; }
  .fb-form-grid     { grid-template-columns: 1fr; }
  .fb-datetime-form { grid-template-columns: 1fr; }
  #fb-hourly-options { display: flex; flex-direction: column; gap: 16px; }
  .fb-facility-selector { grid-template-columns: 1fr; }
  .fb-step-actions  { flex-direction: column-reverse; }
  .fb-step-actions .fb-btn { width: 100%; justify-content: center; }
  /* Compact circles; show only the active step's label, centered under the bar. */
  .fb-steps          { padding: 0 6px; margin-bottom: 38px; }
  .fb-step           { position: static; }
  .fb-step-num       { width: 30px; height: 30px; font-size: .8rem; }
  .fb-step.fb-step-active .fb-step-num { box-shadow: 0 0 0 3px var(--fb-primary-light); }
  .fb-step.fb-step-done .fb-step-num::after { font-size: .9rem; }
  .fb-step-connector { min-width: 8px; }
  .fb-step-label     { display: none; }
  .fb-step.fb-step-active .fb-step-label {
    display: block;
    left: 0;
    right: 0;
    transform: none;
    text-align: center;
    font-size: .72rem;
  }
  .fb-cal-buttons   { flex-direction: column; align-items: center; }
  .fb-confirm-card  { max-width: 100%; box-sizing: border-box; }
}
