/* ═══════════════════════════════════════════════
   FOTO BOOKING SYSTEM — public/css/booking.css
═══════════════════════════════════════════════ */

.foto-booking-app {
  max-width: 860px;
  margin: 0 auto;
  font-family: var(--font-sans, 'Inter', sans-serif);
}

/* ── Step Indicator ─────────────────────────── */
.foto-booking-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.foto-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.4;
  transition: opacity 0.3s;
}
.foto-step.active  { opacity: 1; }
.foto-step.done    { opacity: 0.7; }
.step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-border, #2a2a2a);
  color: var(--color-muted, #888);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  transition: background 0.3s, color 0.3s;
}
.foto-step.active  .step-num { background: var(--color-accent, #c9a96e); color: #0d0d0d; }
.foto-step.done    .step-num { background: #4caf50; color: #fff; }
.step-label { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; color: var(--color-text, #f0ece6); }
.foto-step-divider { width: 40px; height: 1px; background: var(--color-border, #2a2a2a); flex-shrink: 0; }

/* ── Headings ───────────────────────────────── */
.foto-booking-heading {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  color: var(--color-text, #f0ece6);
}
.foto-booking-sub {
  color: var(--color-muted, #888);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* ── Package Grid ───────────────────────────── */
.foto-packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.foto-pkg-card {
  background: var(--color-surface, #141414);
  border: 2px solid var(--color-border, #2a2a2a);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
}
.foto-pkg-card:hover { border-color: var(--color-accent, #c9a96e); transform: translateY(-2px); }
.foto-pkg-card.selected { border-color: var(--color-accent, #c9a96e); background: rgba(201,169,110,0.08); }
.foto-pkg-card.featured::before {
  content: 'Most Popular';
  position: absolute; top: -1px; left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent, #c9a96e); color: #0d0d0d;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 0 0 6px 6px;
}
.foto-pkg-cat { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-accent, #c9a96e); margin-bottom: 0.5rem; }
.foto-pkg-name { font-family: var(--font-display, Georgia, serif); font-size: 1.2rem; margin-bottom: 0.25rem; color: var(--color-text, #f0ece6); }
.foto-pkg-price { font-size: 1.8rem; font-weight: 700; color: var(--color-text, #f0ece6); margin-bottom: 0.25rem; }
.foto-pkg-price span { font-size: 0.85rem; font-weight: 300; color: var(--color-muted, #888); }
.foto-pkg-desc { font-size: 0.82rem; color: var(--color-muted, #888); margin-bottom: 0.5rem; }
.foto-pkg-duration { font-size: 0.78rem; color: var(--color-accent, #c9a96e); margin-bottom: 1rem; }
.foto-pkg-features { list-style: none; padding: 0; margin: 0; }
.foto-pkg-features li { font-size: 0.82rem; padding: 4px 0; border-bottom: 1px solid var(--color-border, #2a2a2a); color: var(--color-muted, #888); display: flex; align-items: center; gap: 6px; }
.foto-pkg-features li::before { content: '—'; color: var(--color-accent, #c9a96e); font-weight: 700; }
.foto-pkg-check {
  position: absolute; top: 1rem; right: 1rem;
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--color-border, #2a2a2a);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.foto-pkg-card.selected .foto-pkg-check { background: var(--color-accent, #c9a96e); border-color: var(--color-accent, #c9a96e); }
.foto-pkg-card.selected .foto-pkg-check::after { content: '✓'; font-size: 12px; font-weight: 700; color: #0d0d0d; }

/* ── Calendar ───────────────────────────────── */
.foto-calendar-wrap {
  background: var(--color-surface, #141414);
  border: 1px solid var(--color-border, #2a2a2a);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.foto-cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.foto-cal-nav {
  background: var(--color-surface-2, #1c1c1c);
  border: 1px solid var(--color-border, #2a2a2a);
  color: var(--color-text, #f0ece6);
  width: 36px; height: 36px; border-radius: 8px;
  cursor: pointer; font-size: 1rem; transition: background 0.2s;
}
.foto-cal-nav:hover { background: var(--color-accent, #c9a96e); color: #0d0d0d; border-color: var(--color-accent, #c9a96e); }
.foto-cal-month { font-family: var(--font-display, Georgia, serif); font-size: 1.2rem; color: var(--color-text, #f0ece6); }

.foto-cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.foto-cal-days-header { margin-bottom: 4px; }
.foto-cal-day-label { text-align: center; font-size: 0.7rem; color: var(--color-muted, #888); font-weight: 600; letter-spacing: 0.05em; padding: 4px 0; }

.foto-cal-day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  position: relative;
  border: 1px solid transparent;
  color: var(--color-text, #f0ece6);
}
.foto-cal-day:empty { cursor: default; }
.foto-cal-day.past        { color: var(--color-muted, #888); opacity: 0.35; cursor: not-allowed; }
.foto-cal-day.blocked     { background: rgba(220,50,50,0.15); color: rgba(220,50,50,0.6); cursor: not-allowed; text-decoration: line-through; }
.foto-cal-day.booked      { background: rgba(100,100,100,0.2); color: var(--color-muted, #888); cursor: not-allowed; }
.foto-cal-day.available { background: rgba(201,169,110,0.10); border-color: rgba(201,169,110,0.35); cursor: pointer; }
.foto-cal-day.available:hover, .foto-cal-day.available:focus { background: rgba(201,169,110,0.22); border-color: var(--color-accent, #c9a96e); outline: none; }
.foto-cal-day.selected    { background: var(--color-accent, #c9a96e); color: #0d0d0d; font-weight: 700; }
.foto-cal-day.today       { border-color: var(--color-accent, #c9a96e); }
.foto-cal-day.today.selected { border-color: transparent; }

.foto-cal-legend {
  display: flex; gap: 1.25rem; margin-top: 1rem; flex-wrap: wrap;
  font-size: 0.72rem; color: var(--color-muted, #888);
}
.leg-dot {
  display: inline-block; width: 10px; height: 10px;
  border-radius: 50%; margin-right: 4px; vertical-align: middle;
}
.leg-available { background: rgba(201,169,110,0.3); border: 1px solid var(--color-accent, #c9a96e); }
.leg-booked    { background: rgba(100,100,100,0.3); }
.leg-blocked   { background: rgba(220,50,50,0.3); }
.leg-selected  { background: var(--color-accent, #c9a96e); }

/* ── Time Slots ─────────────────────────────── */
.foto-time-heading { font-family: var(--font-display, Georgia, serif); font-size: 1.1rem; margin: 0 0 1rem; color: var(--color-text, #f0ece6); }
.foto-time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.5rem; margin-bottom: 1.5rem; }
.foto-time-slot {
  padding: 0.6rem 0.75rem; border-radius: 8px;
  border: 1px solid var(--color-border, #2a2a2a);
  background: var(--color-surface, #141414);
  color: var(--color-text, #f0ece6);
  font-size: 0.82rem; text-align: center;
  cursor: pointer; transition: all 0.15s;
}
.foto-time-slot:hover { border-color: var(--color-accent, #c9a96e); color: var(--color-accent, #c9a96e); }
.foto-time-slot.selected { background: var(--color-accent, #c9a96e); border-color: var(--color-accent, #c9a96e); color: #0d0d0d; font-weight: 600; }
.foto-time-slot.taken { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

/* ── Form ───────────────────────────────────── */
.foto-booking-form { max-width: 680px; }
.foto-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.foto-form-group { margin-bottom: 1rem; }
.foto-form-group label {
  display: block; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-muted, #888); margin-bottom: 0.4rem;
}
.foto-form-group input,
.foto-form-group textarea {
  width: 100%; box-sizing: border-box;
  background: var(--color-surface, #141414);
  border: 1px solid var(--color-border, #2a2a2a);
  border-radius: 6px; color: var(--color-text, #f0ece6);
  font-size: 0.9rem; padding: 0.65rem 0.9rem;
  outline: none; transition: border-color 0.2s;
  font-family: inherit;
}
.foto-form-group input:focus,
.foto-form-group textarea:focus { border-color: var(--color-accent, #c9a96e); }
.foto-form-group textarea { resize: vertical; min-height: 90px; }

.foto-account-option {
  background: var(--color-surface, #141414);
  border: 1px solid var(--color-border, #2a2a2a);
  border-radius: 8px; padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.foto-checkbox-label {
  display: flex; align-items: center; gap: 0.75rem;
  cursor: pointer; font-size: 0.9rem; color: var(--color-text, #f0ece6);
}
.foto-checkbox-label input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--color-accent, #c9a96e); cursor: pointer;
}

/* ── Booking Summary ────────────────────────── */
.foto-booking-summary {
  background: var(--color-surface, #141414);
  border: 1px solid var(--color-border, #2a2a2a);
  border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem;
}
.foto-summary-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 0.75rem 0; border-bottom: 1px solid var(--color-border, #2a2a2a);
  font-size: 0.9rem;
}
.foto-summary-row:last-child { border-bottom: none; }
.foto-summary-label { color: var(--color-muted, #888); font-size: 0.8rem; }
.foto-summary-value { color: var(--color-text, #f0ece6); font-weight: 500; text-align: right; max-width: 60%; }
.foto-booking-disclaimer { font-size: 0.82rem; color: var(--color-muted, #888); margin-bottom: 1.5rem; line-height: 1.6; }

/* ── Buttons ────────────────────────────────── */
.foto-booking-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; }
.foto-btn-next, .foto-btn-primary {
  background: var(--color-accent, #c9a96e); color: #0d0d0d;
  border: none; border-radius: 6px; padding: 0.75rem 1.75rem;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s, transform 0.2s;
}
.foto-btn-next:hover, .foto-btn-primary:hover { background: #d4b47a; transform: translateY(-1px); }
.foto-btn-next:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.foto-btn-back {
  background: transparent; color: var(--color-muted, #888);
  border: 1px solid var(--color-border, #2a2a2a); border-radius: 6px;
  padding: 0.75rem 1.25rem; font-size: 0.82rem; cursor: pointer;
  transition: all 0.2s;
}
.foto-btn-back:hover { border-color: var(--color-text, #f0ece6); color: var(--color-text, #f0ece6); }
.foto-btn-primary#step4-submit { min-width: 200px; }
.foto-btn-primary#step4-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Error / Loading ────────────────────────── */
.foto-booking-error {
  background: rgba(220,50,50,0.1); border: 1px solid rgba(220,50,50,0.3);
  border-radius: 6px; padding: 0.75rem 1rem;
  color: #ef5350; font-size: 0.88rem; margin-bottom: 1rem;
}
.foto-loading { color: var(--color-muted, #888); font-size: 0.9rem; padding: 2rem; text-align: center; }

/* ── Success ────────────────────────────────── */
.foto-booking-success { text-align: center; padding: 3rem 1rem; }
.foto-success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--color-accent, #c9a96e); color: #0d0d0d;
  font-size: 2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}
.foto-booking-success h2 { font-family: var(--font-display, Georgia, serif); font-size: 2rem; margin-bottom: 1rem; color: var(--color-text, #f0ece6); }
.foto-booking-success p { color: var(--color-muted, #888); max-width: 480px; margin: 0 auto 0.75rem; }
.foto-success-sub { font-size: 0.85rem; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 600px) {
  .foto-form-row { grid-template-columns: 1fr; }
  .foto-booking-steps { gap: 0.25rem; }
  .foto-step-divider { width: 16px; }
  .step-label { display: none; }
  .foto-packages-grid { grid-template-columns: 1fr; }
}

/* Booking lead-time helper and clearer available dates */
.foto-lead-time-note {
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border, #2a2a2a);
  border-radius: 8px;
  color: var(--color-muted, #aaa);
  background: rgba(255,255,255,0.03);
  font-size: 0.82rem;
}
.foto-cal-day.available {
  background: rgba(201,169,110,0.08);
  border-color: rgba(201,169,110,0.25);
  color: var(--color-text, #f0ece6);
}
.foto-cal-day.available:hover {
  background: rgba(201,169,110,0.18);
  border-color: var(--color-accent, #c9a96e);
}
