/* ============================================================
   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);
  color: var(--color-dark); /* explicit: iOS Safari renders unstyled button text blue */
}
.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-contract-card {
  display: block;
  min-height: 120px;
  text-align: left;
  font-weight: 400;
}
.booking-option-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin: 0;
}
.booking-option-promo {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 8px;
}
.booking-option-desc {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.5;
  margin: 8px 0 0;
}
.booking-promo-line {
  color: var(--color-accent);
  font-weight: 600;
  margin: 10px 0 0;
}
.booking-deposit-line {
  color: var(--color-text-light);
  font-size: 0.92rem;
  margin: 8px 0 0;
}
.booking-available-tag { color: #10b981; font-weight: 600; }
.booking-insurance-note { margin-top: 6px; }
.booking-reserved-note {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-left: 4px solid #10b981;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.booking-reserved-note strong { color: #065f46; }
.booking-reserved-note p { margin: 6px 0 0; color: var(--color-text); }

.booking-radio-row { display: flex; gap: 22px; }
.booking-radio {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  cursor: pointer;
}
.booking-radio input { accent-color: var(--color-dark); width: 17px; height: 17px; }
.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);
  color: var(--color-dark); /* explicit: iOS Safari renders unstyled button text blue */
}
.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); }
/* Three-line price hierarchy, matching the location pages. */
.booking-unit-card__price .price-amount,
.booking-unit-card__price .price-promo-tag,
.booking-unit-card__price .price-then { display: block; }
.booking-unit-card__price .price-amount { font-size: 1.5rem; font-weight: 800; color: var(--color-dark); line-height: 1.2; }
.booking-unit-card__price .price-amount__unit { font-size: 0.6em; font-weight: 600; color: var(--color-text-light); }
.booking-unit-card__price .price-promo-tag { margin-top: 6px; font-size: 0.9rem; font-weight: 700; color: #a3762a; }
.booking-unit-card__price .price-then { margin-top: 4px; font-size: 0.9rem; font-weight: 400; color: var(--color-dark); opacity: 0.8; }
/* Weekly / Monthly toggle for the size cards */
.booking-price-toggle { display: flex; width: fit-content; margin: 36px auto 28px; }
.booking-units-grid[data-period="weekly"] .pricing-card__price-block[data-period="monthly"],
.booking-units-grid[data-period="monthly"] .pricing-card__price-block[data-period="weekly"] { display: none; }
.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-linklike { background: none; border: none; padding: 0; color: var(--color-dark); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.booking-size-card.is-price-pending { opacity: 0.55; cursor: default; }
.booking-size-card.is-price-pending .booking-available-tag { color: var(--color-text-light); }
.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;
}
.booking-copy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.booking-copy-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 40px 12px 14px;
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.booking-copy-item:hover { border-color: var(--color-accent); box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.booking-copy-item.is-copied { border-color: #10b981; }
.booking-copy-item.is-copied .booking-copy-item__label { color: #10b981; }
.booking-copy-item__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-light);
}
.booking-copy-item__value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark);
  word-break: break-all;
}
.booking-copy-item__icon {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--color-text-light);
}
.booking-copy-item:hover .booking-copy-item__icon { color: var(--color-accent-hover); }
.booking-payment-amount { margin-top: 4px; }

.booking-sign-status {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin: 12px 0 0;
}
.booking-sign-check {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.booking-sign-check:disabled { cursor: wait; opacity: 0.7; }
.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; }
}

.booking-insurance-note--good { color: #0f7a4f; font-weight: 600; }
.booking-insurance-note--warn { color: #b3261e; font-weight: 600; }

.booking-next-steps ol { list-style: decimal inside; padding-left: 4px; }
.booking-next-steps ol li { padding-left: 4px; margin-bottom: 6px; }

/* Step 3 availability summary — one coherent block */
.booking-promo-pill { display: inline-block; width: fit-content; align-self: flex-start; background: rgba(197,160,73,0.16); color: #8a6d1d; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.3px; padding: 6px 16px; border-radius: 50px; margin: 0 0 14px; }
.booking-summary-rows { border: 1px solid rgba(24,76,79,0.12); border-radius: 10px; overflow: hidden; margin-bottom: 16px; background: #fff; }
.booking-summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 13px 16px; }
.booking-summary-row + .booking-summary-row { border-top: 1px solid rgba(24,76,79,0.08); }
.booking-summary-row__label { flex-shrink: 0; font-weight: 600; font-size: 0.88rem; color: rgba(24,76,79,0.75); }
.booking-summary-row__value { text-align: right; color: var(--color-dark); font-weight: 600; line-height: 1.55; }
.booking-next-steps h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--color-dark); margin: 20px 0 10px; }
.booking-next-steps ol { color: var(--color-text); }
.booking-hold-note { margin-top: 16px; background: #fff8e8; border: 1px solid #ecd28a; border-left: 4px solid #d9a514; border-radius: 8px; padding: 12px 16px; color: #7a5b10; font-size: 0.95rem; line-height: 1.6; }
@media (max-width: 600px) {
  .booking-summary-row { flex-direction: column; gap: 2px; }
  .booking-summary-row__value { text-align: left; }
}

.booking-summary-row--total { background: var(--color-cream); }
.booking-summary-row--total .booking-summary-row__label { color: var(--color-dark); }
