/* ============================================================
   BOOKING PAGE STYLES
   Uses CSS custom properties from style.css (--color-*, --space-*, etc.)
   ============================================================ */

/* ── Page Header ─────────────────────────────────────────── */
.booking-hero {
  background-color: var(--color-primary);
  padding: var(--space-16) 0 var(--space-12);
  text-align: center;
}

.booking-hero .section__eyebrow {
  color: var(--color-accent);
}

.booking-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--color-surface);
  margin: var(--space-2) 0 var(--space-4);
  line-height: 1.15;
}

.booking-hero__desc {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--text-lg);
  max-width: 56ch;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Booking Layout ──────────────────────────────────────── */
.booking-content {
  padding: var(--space-12) 0 var(--space-20);
  background-color: var(--color-bg);
}

.booking-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
}

@media (max-width: 768px) {
  .booking-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ── Calendar ────────────────────────────────────────────── */
.calendar {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
  user-select: none;
}

.calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.calendar__month {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  font-weight: 600;
}

.calendar__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: var(--radius-full);
  background: var(--color-bg);
  color: var(--color-primary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.calendar__nav:hover {
  background: var(--color-primary);
  color: var(--color-surface);
}

.calendar__nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.calendar__nav svg {
  width: 1rem;
  height: 1rem;
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar__day-label {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: var(--space-2);
}

.calendar__day {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: background 0.12s, color 0.12s, transform 0.12s;
  min-width: 0;
}

.calendar__day--empty {
  /* spacer cell */
}

.calendar__day--past {
  color: #ccc;
  cursor: not-allowed;
}

.calendar__day--unavailable {
  color: var(--color-text-muted);
  cursor: default;
  opacity: 0.55;
}

.calendar__day--available {
  color: var(--color-primary);
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 0 0 2px rgba(134, 197, 142, 0.75);
}

.calendar__day--available:hover {
  background: var(--color-primary);
  color: var(--color-surface);
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px rgba(134, 197, 142, 0.75);
}

.calendar__day--selected {
  background: var(--color-accent) !important;
  color: var(--color-surface) !important;
  font-weight: 700;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(201, 149, 26, 0.35) !important;
}

/* Loading state */
.calendar--loading .calendar__grid {
  opacity: 0.4;
  pointer-events: none;
}

/* ── Booking Form Pane ───────────────────────────────────── */
.booking-form-pane {
  position: sticky;
  top: calc(var(--space-6) + 72px); /* header height offset */
}

/* Prompt (before date selected) */
.booking-prompt {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  border: 2px dashed var(--color-border, #e5e1d8);
}

.booking-prompt__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto var(--space-4);
  color: var(--color-accent);
}

.booking-prompt__icon svg {
  width: 100%;
  height: 100%;
}

.booking-prompt__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.booking-prompt__text {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.6;
}

/* Form card */
.booking-form-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-8);
}

.booking-form-card__date {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(201, 149, 26, 0.1);
  color: var(--color-accent);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.booking-form-card__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form-field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.form-field label .optional {
  font-weight: 400;
  color: var(--color-text-muted);
  margin-left: var(--space-1);
}

.form-field input,
.form-field textarea {
  border: 1.5px solid var(--color-border, #ddd9cf);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  box-sizing: border-box;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 149, 26, 0.15);
}

.form-field textarea {
  resize: vertical;
  min-height: 80px;
}

.form-field input.is-invalid,
.form-field textarea.is-invalid {
  border-color: #c0392b;
}

.booking-form__error {
  background: #fdf2f2;
  border: 1.5px solid #f5c6c6;
  border-radius: var(--radius-md);
  color: #c0392b;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  display: none;
}

.booking-form__error.is-visible {
  display: block;
}

.booking-form__submit {
  margin-top: var(--space-2);
}

.booking-form__submit .btn-primary {
  width: 100%;
  justify-content: center;
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-base);
}

.booking-form__submit .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Success state */
.booking-success {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-10) var(--space-8);
  text-align: center;
}

.booking-success__icon {
  width: 4rem;
  height: 4rem;
  background: rgba(201, 149, 26, 0.12);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  color: var(--color-accent);
}

.booking-success__icon svg {
  width: 2rem;
  height: 2rem;
}

.booking-success__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.booking-success__text {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.booking-success__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--color-primary);
  font-size: var(--text-lg);
  text-decoration: none;
}

.booking-success__phone:hover {
  color: var(--color-accent);
}
