/* =============================================
   La Fontaine — Reservation Form CSS
   ============================================= */

.lf-res-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  background: rgba(25, 43, 41, 0.6);
  border: 1px solid rgba(212, 227, 226, 0.15);
  backdrop-filter: blur(10px);
}

/* ---- STEPS INDICATOR ---- */
.lf-steps {
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
  gap: 0;
}

.lf-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0;
}

.lf-step-line {
  flex: 1;
  height: 1px;
  background: rgba(212, 227, 226, 0.2);
  margin: 0 12px;
  position: relative;
  top: -10px;
  transition: background 0.5s;
}

.lf-step-line.active { background: rgba(200, 169, 110, 0.5); }

.lf-step__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(212, 227, 226, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(245, 240, 232, 0.4);
  transition: all 0.4s;
}

.lf-step.active .lf-step__num {
  background: #c8a96e;
  border-color: #c8a96e;
  color: #192b29;
  font-weight: 600;
}

.lf-step.done .lf-step__num {
  background: #2e4f4c;
  border-color: #c8a96e;
  color: #c8a96e;
}

.lf-step__label {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.4);
  white-space: nowrap;
  transition: color 0.3s;
}

.lf-step.active .lf-step__label { color: #c8a96e; }
.lf-step.done  .lf-step__label  { color: rgba(245,240,232,0.6); }

/* ---- FORM HEADER ---- */
.lf-form-header { margin-bottom: 2.5rem; }
.lf-form-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #c8a96e;
  margin: 0 0 0.5rem;
}
.lf-form-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 300;
  font-style: italic;
  color: #f5f0e8;
  margin: 0;
  line-height: 1.2;
}

/* ---- INPUTS ---- */
.lf-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(212, 227, 226, 0.6);
  margin-bottom: 0.5rem;
}

.lf-optional { color: rgba(212,227,226,0.35); font-size:0.6rem; }

.lf-input, .lf-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(212, 227, 226, 0.2);
  color: #f5f0e8;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  border-radius: 2px;
  appearance: none;
  -webkit-appearance: none;
}

.lf-input:focus, .lf-textarea:focus {
  outline: none;
  border-color: #c8a96e;
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.1);
}

.lf-input.is-error { border-color: #f87171; }
.lf-input::placeholder, .lf-textarea::placeholder { color: rgba(245,240,232,0.3); }

/* Date input */
.lf-input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
  cursor: pointer;
}

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

.lf-field-hint {
  font-size: 0.72rem;
  color: rgba(212,227,226,0.4);
  margin: 0.4rem 0 0;
}

.lf-error {
  display: block;
  font-size: 0.72rem;
  color: #f87171;
  margin-top: 0.35rem;
  min-height: 1rem;
}

/* ---- FIELD GROUPS ---- */
.lf-field-group { margin-bottom: 1.5rem; }
.lf-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
}
.lf-field-group--full { grid-column: span 2; }

/* ---- STEP 1 GRID ---- */
.lf-step1-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: start;
}

/* ---- GUESTS SELECTOR ---- */
.lf-guests-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(212,227,226,0.2);
  width: fit-content;
}

.lf-guests-btn {
  width: 44px;
  height: 54px;
  background: rgba(255,255,255,0.05);
  border: none;
  color: #f5f0e8;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lf-guests-btn:hover { background: rgba(200,169,110,0.15); }
.lf-guests-btn:disabled { opacity: 0.3; cursor: default; }

.lf-guests-display {
  min-width: 70px;
  height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(212,227,226,0.2);
  border-right: 1px solid rgba(212,227,226,0.2);
}

.lf-guests-display span {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: #f5f0e8;
  line-height: 1;
}

.lf-guests-display small {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(212,227,226,0.4);
  margin-top: 2px;
}

/* ---- OCCASIONS ---- */
.lf-occasions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.25rem;
}

.lf-occasion-chip {
  cursor: pointer;
}

.lf-occasion-chip input { display: none; }

.lf-occasion-chip span {
  display: inline-block;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(212,227,226,0.2);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: rgba(245,240,232,0.6);
  transition: all 0.25s;
  border-radius: 2px;
}

.lf-occasion-chip:hover span {
  border-color: rgba(200,169,110,0.4);
  color: #c8a96e;
}

.lf-occasion-chip input:checked + span {
  border-color: #c8a96e;
  background: rgba(200,169,110,0.1);
  color: #c8a96e;
}

/* ---- SLOTS ---- */
.lf-slots-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(212,227,226,0.15);
}

.lf-slots-loading {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  color: rgba(212,227,226,0.5);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.lf-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(212,227,226,0.2);
  border-top-color: #c8a96e;
  border-radius: 50%;
  animation: lfSpin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes lfSpin { to { transform: rotate(360deg); } }

.lf-service-block { margin-bottom: 1.5rem; }

.lf-service-label {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(212,227,226,0.5);
  margin: 0 0 0.75rem;
}

.lf-slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lf-slot-btn {
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(212,227,226,0.2);
  color: #f5f0e8;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s;
  border-radius: 2px;
  position: relative;
}

.lf-slot-btn:hover:not(:disabled) {
  border-color: #c8a96e;
  color: #c8a96e;
  background: rgba(200,169,110,0.08);
}

.lf-slot-btn.selected {
  background: #c8a96e;
  border-color: #c8a96e;
  color: #192b29;
  font-weight: 500;
}

.lf-slot-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
}

.lf-slot-btn.almost-full::after {
  content: '•';
  font-size: 6px;
  color: #f59e0b;
  position: absolute;
  top: 4px;
  right: 5px;
  line-height: 1;
}

.lf-slots-message {
  padding: 2rem;
  text-align: center;
  color: rgba(212,227,226,0.4);
  border: 1px solid rgba(212,227,226,0.1);
}

.lf-slots-message svg { margin: 0 auto 12px; opacity: 0.4; display: block; }
.lf-slots-message p { font-size: 0.9rem; margin: 0; }

/* ---- BOOKING SUMMARY ---- */
.lf-booking-summary {
  background: rgba(212,227,226,0.06);
  border: 1px solid rgba(200,169,110,0.2);
  border-left: 3px solid #c8a96e;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.lf-summary-item { }
.lf-summary-label {
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(212,227,226,0.4);
  margin-bottom: 3px;
}
.lf-summary-value {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  color: #f5f0e8;
}

/* ---- NAVIGATION ---- */
.lf-form-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(212,227,226,0.1);
}

.lf-btn-next, .lf-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 2px;
}

.lf-btn-next {
  background: #c8a96e;
  color: #192b29;
  border: 1px solid #c8a96e;
  position: relative;
  overflow: hidden;
}

.lf-btn-next::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #f5f0e8;
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(.77,0,.175,1);
}

.lf-btn-next:hover:not(:disabled)::after { transform: translateX(0); }
.lf-btn-next span, .lf-btn-next svg { position: relative; z-index: 1; }

.lf-btn-next:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.lf-btn-next.loading {
  pointer-events: none;
}

.lf-btn-back {
  background: transparent;
  border: 1px solid rgba(212,227,226,0.2);
  color: rgba(245,240,232,0.6);
}

.lf-btn-back:hover {
  border-color: rgba(212,227,226,0.5);
  color: #f5f0e8;
}

/* ---- SUCCESS STATE ---- */
.lf-success-state {
  text-align: center;
  padding: 2rem 0;
}

.lf-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  background: rgba(200,169,110,0.15);
  border: 1px solid #c8a96e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lfPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lf-success-icon svg { width: 36px; height: 36px; color: #c8a96e; }

@keyframes lfPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.lf-success-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #c8a96e;
  margin: 0 0 0.5rem;
}

.lf-success-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  font-style: italic;
  color: #f5f0e8;
  margin: 0 0 1rem;
}

.lf-success-sub {
  font-size: 0.9rem;
  color: rgba(212,227,226,0.6);
  margin: 0 0 2rem;
}

.lf-success-ref {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 1rem 2.5rem;
  border: 1px solid rgba(200,169,110,0.3);
  margin-bottom: 2rem;
}

.lf-success-ref__label {
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(212,227,226,0.4);
}

.lf-success-ref__value {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  color: #c8a96e;
}

.lf-success-details {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.lf-success-detail-item { text-align: center; }
.lf-success-detail-label {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(212,227,226,0.4);
  margin-bottom: 4px;
}
.lf-success-detail-value {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  color: #f5f0e8;
}

.lf-success-note {
  font-size: 0.8rem;
  color: rgba(212,227,226,0.4);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.7;
}
.lf-success-note a { color: #c8a96e; }

/* ---- CANCEL PAGE ---- */
.lf-cancel-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
  background: rgba(25,43,41,.6);
  border: 1px solid rgba(212,227,226,.15);
}

.lf-cancel-ref {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #c8a96e;
  margin: 0 0 6px;
}

.lf-cancel-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 300;
  font-style: italic;
  color: #f5f0e8;
  margin: 0 0 2rem;
}

.lf-cancel-details {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 2rem;
  text-align: left;
}

.lf-cancel-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(212,227,226,.08);
  font-size: 0.9rem;
}

.lf-cancel-row__key { color: rgba(212,227,226,.5); }
.lf-cancel-row__val { color: #f5f0e8; font-weight: 400; }

.lf-cancel-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.lf-cancel-btn {
  padding: 0.85rem 2rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 2px;
  border: none;
}

.lf-cancel-btn--danger {
  background: rgba(200, 60, 60, 0.9);
  color: #fff;
}
.lf-cancel-btn--danger:hover { background: rgb(200,60,60); }
.lf-cancel-btn--ghost {
  background: transparent;
  border: 1px solid rgba(212,227,226,.2);
  color: rgba(245,240,232,.7);
}
.lf-cancel-btn--ghost:hover { border-color: rgba(212,227,226,.5); color:#f5f0e8; }

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .lf-step1-grid { grid-template-columns: 1fr; }
  .lf-fields-grid { grid-template-columns: 1fr; }
  .lf-field-group--full { grid-column: span 1; }
  .lf-step__label { display: none; }
  .lf-steps { gap: 4px; }
}
