/* ═══════════════════════════════════════════════════════
   Fashion Bookings — Booking Form
   Palette: off-white / pale mint accent / rouge / gold
   Tone: minimal, editorial, mature
═══════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Manrope:wght@300;400;500;600&display=swap');

.fb-booking-wrap {
  /* ── Colour tokens ── */
  --bg:       #f8faf9;      /* very pale mint — page background */
  --surface:  #ffffff;      /* pure white card */
  --ink:      #1a1a1a;      /* near-black text */
  --ink-2:    #6b7280;      /* secondary text */
  --ink-3:    #9ca3af;      /* placeholder / disabled */
  --border:   #e5e7eb;      /* light grey border */
  --border-f: #c9a84c;      /* gold — focused input border */
  --accent:   #6b1a2a;      /* rouge — buttons, selected states */
  --accent-h: #7d2035;      /* rouge hover */
  --gold:     #c9a84c;      /* gold — price, rate hint */
  --gold-pale:#fdf6e3;      /* gold tint — currency active bg */
  --green:    #15803d;      /* success text */
  --green-bg: #f0fdf4;      /* success background */
  --err:      #b91c1c;      /* error text */
  --err-bg:   #fef2f2;      /* error background */
  --radius:   2px;
  --display:  'Cormorant Garamond', Georgia, serif;
  --body:     'Manrope', Arial, sans-serif;

  color-scheme: light only;
  font-family: var(--body);
  color: var(--ink);
  max-width: 640px;
  margin: 48px auto;
}

/* ── Card ────────────────────────────────────────────── */
.fb-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 52px 48px;
  position: relative;
}
.fb-form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: var(--radius) var(--radius) 0 0;
}

/* ── Brand header ────────────────────────────────────── */
.fb-form-brand {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.fb-form-brand h2 {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin: 0 0 5px;
  line-height: 1.1;
}
.fb-form-brand p {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0;
}

/* ── Field labels ────────────────────────────────────── */
.fb-fl {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 8px;
  font-weight: 600;
}
.fb-fl.req::after { content: ' *'; color: var(--accent); }

/* ── Inputs ──────────────────────────────────────────── */
.fb-fi, .fb-fs, .fb-ft {
  width: 100%;
  padding: 11px 14px;
  font-size: 13.5px;
  font-family: var(--body);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.fb-fi:focus, .fb-fs:focus, .fb-ft:focus {
  border-color: var(--border-f);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.10);
}
.fb-fi:hover, .fb-fs:hover { border-color: #d1d5db; }
.fb-fi::placeholder, .fb-ft::placeholder { color: var(--ink-3); }
.fb-fs option { background: #fff; color: var(--ink); }
.fb-ft { resize: vertical; min-height: 88px; line-height: 1.6; }
input[type="date"].fb-fi::-webkit-calendar-picker-indicator { opacity: 0.4; cursor: pointer; }

/* ── Field groups ────────────────────────────────────── */
.fb-fg       { margin-bottom: 22px; }
.fb-fg-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fb-field-error { font-size: 11.5px; color: var(--err); margin-top: 5px; display: none; }

/* ── Section divider ─────────────────────────────────── */
.fb-divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}

/* ── Booking type selector ───────────────────────────── */
.fb-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fb-type-opt {
  padding: 18px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
  background: #fff;
}
.fb-type-opt:hover { border-color: #d1d5db; }
.fb-type-opt.selected {
  border-color: var(--accent);
  background: #fdf8f8;
}
.fb-type-opt .tn {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 4px;
}
.fb-type-opt.selected .tn { color: var(--accent); }
.fb-type-opt .tp { font-size: 12px; color: var(--gold); font-weight: 600; display: block; }
.fb-type-opt .tf { font-size: 12px; color: var(--green); font-weight: 600; display: block; }

/* ── Currency selector ───────────────────────────────── */
.fb-cur-row { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-cur-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  background: #fff;
  transition: all 0.15s;
  font-family: var(--body);
  outline: none;
}
.fb-cur-btn:hover { border-color: var(--gold); color: var(--ink); }
.fb-cur-btn.active {
  border-color: var(--gold);
  background: var(--gold-pale);
  color: #92640a;
  font-weight: 600;
}

/* ── Rate hint ───────────────────────────────────────── */
.fb-rate-hint {
  font-size: 11px;
  color: var(--ink-3);
  text-align: right;
  margin: -10px 0 16px;
  letter-spacing: 0.03em;
}

/* ── Consultation notice ─────────────────────────────── */
.fb-notice {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-left: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 24px;
}

/* ── Timezone note ───────────────────────────────────── */
.fb-tz-note {
  font-size: 11px;
  color: var(--ink-3);
  text-align: center;
  margin: -6px 0 18px;
  letter-spacing: 0.03em;
}

/* ── Time slot loading ───────────────────────────────── */
.fb-slot-loading {
  font-size: 12px;
  color: var(--ink-3);
  font-style: italic;
  margin-top: 6px;
  display: none;
}

/* ── Radio / checkbox ────────────────────────────────── */
.fb-radio-group, .fb-check-group {
  display: flex; flex-direction: column; gap: 10px; margin-top: 2px;
}
.fb-radio-group label, .fb-check-group label {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--ink); cursor: pointer;
}
.fb-radio-group input, .fb-check-group input { accent-color: var(--accent); }

/* ── Upload zone ─────────────────────────────────────── */
.fb-upload-zone {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  color: var(--ink-3);
  cursor: pointer;
  font-size: 12.5px;
  transition: border-color 0.15s, color 0.15s;
  background: #fafafa;
}
.fb-upload-zone:hover { border-color: #9ca3af; color: var(--ink-2); }
.fb-upload-icon { font-size: 22px; display: block; margin-bottom: 6px; }
.fb-upload-zone .sub { font-size: 10.5px; margin-top: 4px; }
.fb-upload-zone input[type="file"] { display: none; }
.fb-previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fb-preview-img {
  width: 72px; height: 72px; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--border);
}

/* ── Submit button ───────────────────────────────────── */
.fb-submit-btn {
  width: 100%;
  padding: 15px;
  margin-top: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}
.fb-submit-btn:hover:not(:disabled) { background: var(--accent-h); }
.fb-submit-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── Messages ────────────────────────────────────────── */
.fb-msg {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.55;
  display: none;
}
.fb-msg.success {
  background: var(--green-bg);
  border: 1px solid #bbf7d0;
  color: var(--green);
}
.fb-msg.error {
  background: var(--err-bg);
  border: 1px solid #fecaca;
  color: var(--err);
}

/* ── Service display (pre-selected / single service) ─── */
.fb-service-display {
  padding: 12px 14px;
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fb-service-display span { color: var(--ink-2); font-size: 12px; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 620px) {
  .fb-form-card { padding: 32px 22px; }
  .fb-form-brand h2 { font-size: 26px; }
  .fb-fg-row { grid-template-columns: 1fr; }
  .fb-type-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   DATE PICKER CALENDAR
═══════════════════════════════════════════════════════ */

/* Trigger button */
.fb-cal-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  font-size: 13.5px;
  font-family: var(--body);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s;
  text-align: left;
}
.fb-cal-btn:hover { border-color: #d1d5db; }
.fb-cal-btn:focus { border-color: var(--border-f); outline: none; box-shadow: 0 0 0 3px rgba(201,168,76,.10); }
.fb-cal-display { flex: 1; }
.fb-cal-icon    { opacity: 0.45; font-size: 15px; }

/* Popup */
.fb-cal-popup {
  position: absolute;
  z-index: 9999;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 16px;
  width: 280px;
  margin-top: 4px;
}

/* Make parent relative so popup positions correctly */
.fb-fg { position: relative; }

/* Header: prev / month label / next */
.fb-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.fb-cal-month-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.fb-cal-prev, .fb-cal-next {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--ink-2);
  padding: 0 6px;
  line-height: 1;
  border-radius: 2px;
}
.fb-cal-prev:hover, .fb-cal-next:hover { color: var(--ink); background: #f3f4f6; }

/* Day-of-week headers */
.fb-cal-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 6px;
}
.fb-cal-days-header span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  padding: 4px 0;
}

/* Grid */
.fb-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.fb-cal-grid.fb-cal-loading {
  display: block;
  text-align: center;
  padding: 16px 0;
  font-size: 12px;
  color: var(--ink-3);
  font-style: italic;
}

/* Individual day cells */
.fb-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  border-radius: 2px;
  color: var(--ink-3);
  font-family: var(--body);
}
/* Available days — clearly highlighted */
.fb-cal-day.available {
  background: #f0fdf4;
  color: var(--green);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #bbf7d0;
}
.fb-cal-day.available:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
/* Selected day */
.fb-cal-day.available.selected {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
/* Past days */
.fb-cal-day.past {
  opacity: 0.3;
  cursor: not-allowed;
}
/* Unavailable future days */
.fb-cal-day.unavailable {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Legend */
.fb-cal-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.fb-cal-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--ink-2);
}
.fb-cal-legend-dot {
  width: 10px; height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}
