/* ============================================================
   Booking Wizard Styles
   ============================================================ */

/* --- Compact Page Hero for Booking --- */
.page-hero--compact { padding: calc(var(--nav-height) + 40px) 0 40px; }

/* --- Progress Bar --- */
.booking-progress { background: var(--color-white); border-bottom: 1px solid var(--color-border); padding: 20px 0; }
.booking-progress__steps { display: flex; justify-content: center; gap: 0; list-style: none; counter-reset: step; max-width: 640px; margin: 0 auto; }
.booking-progress__steps--seven { max-width: 680px; }
.booking-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; position: relative; }
.booking-step__num {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; border: 2px solid var(--color-border); color: var(--color-text-light);
  background: var(--color-white); position: relative; z-index: 1; transition: all 200ms ease;
}
.booking-step__label { font-size: 0.75rem; font-weight: 600; color: var(--color-text-light); white-space: nowrap; transition: color 200ms ease; }

.booking-step::after {
  content: ''; position: absolute; top: 18px; left: calc(50% + 22px); right: calc(-50% + 22px);
  height: 2px; background: var(--color-border); z-index: 0; transition: background 200ms ease;
}
.booking-step:last-child::after { display: none; }

.booking-step.active .booking-step__num { border-color: var(--color-accent); color: var(--color-white); background: var(--color-accent); }
.booking-step.active .booking-step__label { color: var(--color-dark); }

.booking-step.completed .booking-step__num { border-color: var(--color-accent); color: var(--color-accent); background: var(--color-white); }
.booking-step.completed::after { background: var(--color-accent); }
.booking-step.completed .booking-step__label { color: var(--color-accent); }

/* --- Panels --- */
.booking-section { padding-top: 48px; padding-bottom: 80px; min-height: 60vh; }
.booking-panel { animation: fadeIn 300ms ease; }
.booking-panel-heading { font-size: 1.25rem; margin-top: 28px; margin-bottom: 14px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- Location Cards --- */
.booking-locations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 32px; }
.booking-loc-card {
  background: var(--color-white); border: 2px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 24px; text-align: left; cursor: pointer; transition: all 200ms ease;
  display: flex; flex-direction: column; gap: 8px; font-family: var(--font-body);
}
.booking-loc-card:hover { border-color: var(--color-accent); box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.booking-loc-card.is-selected { border-color: var(--color-dark); box-shadow: 0 0 0 3px rgba(24,76,79,0.12); }
.booking-loc-card h3 { font-family: var(--font-heading); font-size: 1.2rem; }
.booking-loc-card__address { font-size: 0.85rem; color: var(--color-text-light); line-height: 1.5; }
.booking-loc-card__features { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.booking-loc-card__select {
  margin-top: auto; padding-top: 12px; font-size: 0.85rem; font-weight: 600; color: var(--color-accent);
  display: flex; align-items: center; gap: 4px;
}
.booking-loc-card__select::after { content: '\2192'; }

/* --- Service + Option Cards --- */
.booking-service-wrap { margin-top: 34px; }
.booking-service-grid,
.booking-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
  gap: 16px;
}
.booking-service-card,
.booking-option-card {
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-dark);
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
  transition: all 200ms ease;
}
.booking-service-card {
  min-height: 136px;
  padding: 24px;
}
.booking-option-card {
  min-height: 72px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-align: center;
}
.booking-service-card:hover,
.booking-option-card:hover { border-color: var(--color-accent); box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.booking-service-card.is-selected,
.booking-option-card.is-selected {
  border-color: var(--color-dark);
  background: rgba(24,76,79,0.06);
  box-shadow: 0 0 0 3px rgba(24,76,79,0.12);
}
.booking-service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.booking-service-card p {
  color: var(--color-text-light);
  line-height: 1.45;
}

/* --- Size Calculator Embed --- */
.booking-calcumate-wrap {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
}
.booking-calcumate-header { margin-bottom: 18px; }
.booking-calcumate-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.booking-calcumate-header p,
.booking-calcumate-empty {
  color: var(--color-text-light);
}
.booking-calcumate-mount {
  min-height: 240px;
  overflow: hidden;
}
.booking-calcumate-domain-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #f2cf68;
  border-radius: var(--radius);
  background: #fff8df;
  color: #7a4a12;
  font-weight: 700;
  line-height: 1.45;
}

/* --- Unit Cards --- */
.booking-units-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 32px; }
.booking-unit-card {
  background: var(--color-white); border: 2px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 24px; text-align: left; cursor: pointer; transition: all 200ms ease;
  display: flex; flex-direction: column; gap: 4px; position: relative; font-family: var(--font-body);
}
.booking-unit-card:hover { border-color: var(--color-accent); box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.booking-unit-card.is-selected { border-color: var(--color-dark); box-shadow: 0 0 0 3px rgba(24,76,79,0.12); }
.booking-unit-card--popular { border-color: var(--color-accent); }
.booking-unit-card__badge { position: absolute; top: -1px; right: 16px; background: var(--color-accent); color: #fff; padding: 3px 12px; border-radius: 0 0 var(--radius) var(--radius); font-size: 0.7rem; font-weight: 700; }
.booking-unit-card__size { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--color-accent); }
.booking-unit-card__name { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; }
.booking-unit-card__dims { font-size: 0.8rem; color: var(--color-text-light); }
.booking-unit-card__desc { font-size: 0.85rem; color: var(--color-text-light); line-height: 1.5; margin-top: 4px; }
.booking-unit-card__price { font-size: 1.1rem; font-weight: 700; margin-top: 8px; }
.booking-unit-card__price small { font-weight: 400; font-size: 0.85rem; color: var(--color-text-light); }
.booking-unit-card__select { margin-top: auto; padding-top: 12px; font-size: 0.85rem; font-weight: 600; color: var(--color-accent); }

/* --- Availability + Payment Cards --- */
.booking-availability-card,
.booking-card,
.booking-agreement,
.booking-info-card,
.booking-warning {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.booking-card { max-width: 880px; margin: 24px auto 0; }
.booking-availability-card { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.booking-availability-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.booking-availability-card strong { color: var(--color-dark); font-size: 1.15rem; }
.booking-available {
  background: #e9f9ef; color: #0f7a3a; border-radius: var(--radius);
  padding: 12px 16px; font-weight: 600;
}
.booking-next-steps h3 { font-family: var(--font-heading); font-size: 1.15rem; margin-bottom: 12px; }
.booking-next-steps ol { margin: 0; padding-left: 20px; color: var(--color-text-light); line-height: 1.7; }
.booking-warning--compact { padding: 14px 18px; }
.booking-warning--compact strong { font-family: var(--font-body); font-size: 0.95rem; margin-bottom: 0; }
.booking-muted { color: var(--color-text-light); font-size: 0.95rem; }
.booking-empty { text-align: center; color: var(--color-text-light); margin-top: 24px; }
.booking-agreement { display: flex; flex-direction: column; gap: 16px; max-width: 880px; margin: 24px auto 0; }
.booking-agreement__link { color: var(--color-dark); font-weight: 700; }
.booking-agreement__link::before { content: '\2192'; margin-right: 8px; }
.booking-payment-grid { display: grid; gap: 16px; margin-top: 24px; }
.booking-info-card h3,
.booking-warning strong { font-family: var(--font-heading); font-size: 1.2rem; display: block; margin-bottom: 8px; }
.booking-info-card p,
.booking-warning p { color: var(--color-text-light); }
.booking-access-code {
  text-align: center; font-size: 1.6rem; font-weight: 800; letter-spacing: 8px;
  color: var(--color-dark) !important; margin-top: 16px;
}
.booking-warning { background: #fffbeb; border-color: #facc15; }
.booking-warning strong,
.booking-warning p { color: #9a3412; }

.booking-sign-card {
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
}
.booking-sign-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.booking-sign-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #facc15;
}
.booking-sign-card__header h3 { font-family: var(--font-heading); font-size: 1.05rem; }
.booking-sign-card__header p,
.booking-sign-card__body p { color: var(--color-text-light); }
.booking-sign-card__body {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.booking-sign-card__body .btn { margin-top: 14px; }
.booking-sign-card .is-disabled {
  opacity: 0.5;
  pointer-events: auto;
  cursor: not-allowed;
}
.booking-sign-note {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}
.btn-full { width: 100%; justify-content: center; }

/* --- Form Fields (reuse main styles + additions) --- */
.booking-form { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }

.field-error { border-color: #ef4444 !important; }
.field-error-msg { font-size: 0.8rem; color: #ef4444; margin-top: 2px; }

/* --- File Upload Zone --- */
.file-upload-zone {
  border: 2px dashed var(--color-border); border-radius: var(--radius-lg); padding: 40px 24px;
  text-align: center; cursor: pointer; transition: all 200ms ease; background: var(--color-cream);
}
.file-upload-zone:hover, .file-upload-zone.dragover { border-color: var(--color-accent); background: rgba(200,150,90,0.05); }
.file-upload-zone__prompt svg { color: var(--color-accent); margin-bottom: 12px; }
.file-upload-zone__prompt p { margin-bottom: 4px; font-size: 0.9rem; color: var(--color-text-light); }
.file-upload-zone__hint { font-size: 0.8rem; color: var(--color-text-light); opacity: 0.7; }

.file-preview-info { display: flex; align-items: center; gap: 12px; justify-content: center; }
.file-preview-info svg { color: var(--color-accent); flex-shrink: 0; }
.file-preview-info span { font-weight: 600; font-size: 0.9rem; }
.file-remove-btn { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--color-text-light); padding: 0 4px; line-height: 1; }
.file-remove-btn:hover { color: #ef4444; }

/* --- Navigation Buttons --- */
.booking-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; }
.booking-nav--end { justify-content: flex-end; }

/* --- Review Summary --- */
.booking-summary { margin-top: 24px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.booking-summary__row { display: flex; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--color-border); }
.booking-summary__row:last-child { border-bottom: none; }
.booking-summary__row:nth-child(even) { background: var(--color-cream); }
.booking-summary__label { font-size: 0.85rem; font-weight: 600; color: var(--color-text-light); }
.booking-summary__value { font-size: 0.9rem; font-weight: 600; text-align: right; }

/* --- Terms Checkbox --- */
.booking-terms { margin-top: 24px; }
.booking-checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.9rem; line-height: 1.6; color: var(--color-text-light); }
.booking-checkbox input[type="checkbox"] { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--color-accent); flex-shrink: 0; }
.booking-checkbox a { color: var(--color-accent); text-decoration: underline; }

/* --- Success Screen --- */
.booking-success-content { text-align: center; padding: 48px 0; }
.booking-success-content svg { color: var(--color-accent); margin-bottom: 20px; }
.booking-success-content h2 { font-size: 1.8rem; margin-bottom: 16px; }
.booking-success-content p { font-size: 1rem; color: var(--color-text-light); line-height: 1.7; max-width: 480px; margin: 0 auto 12px; }
.booking-success-ref { margin-top: 20px; margin-bottom: 32px; font-size: 1.05rem; }
.booking-success-ref strong { color: var(--color-dark); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .booking-progress__steps { gap: 0; }
  .booking-step__label { font-size: 0.65rem; }
  .booking-step__num { width: 30px; height: 30px; font-size: 0.75rem; }
  .booking-step::after { top: 15px; left: calc(50% + 18px); right: calc(-50% + 18px); }
  .booking-locations-grid { grid-template-columns: 1fr; }
  .booking-units-grid { grid-template-columns: 1fr; }
  .booking-service-grid,
  .booking-option-grid { grid-template-columns: 1fr; }
  .booking-sign-card__header { align-items: flex-start; }
  .booking-availability-row { flex-direction: column; align-items: flex-start; }
  .booking-summary__row { flex-direction: column; gap: 2px; }
  .booking-summary__value { text-align: left; }
}

@media (max-width: 480px) {
  .booking-step__label { display: none; }
}
