/* ===========================
   LejEnSauna — Booking Styles
   =========================== */

/* --- Back link --- */
.booking-back-link {
  display: inline-flex;
  align-items: center;
}

/* --- Hero (for success/cancel pages) --- */
.booking-hero {
  background: linear-gradient(135deg, var(--bg-primary), rgba(212,114,42,0.2));
  padding: 140px 24px 64px;
  text-align: center;
  color: var(--white);
}

.booking-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
}

.booking-hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  opacity: 0.9;
  line-height: 1.7;
}

/* --- No-hero layout --- */
.booking-main--no-hero {
  padding-top: calc(var(--header-height) + 24px);
}

/* --- Booking steps --- */
.booking-step {
  margin-bottom: 32px;
}

.booking-step__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 20px;
  text-align: center;
}

/* --- Rental type cards (step 1) --- */
.rental-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.rental-card {
  background: var(--bg-card);
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  font-family: var(--font-body);
}

.rental-card:hover {
  border-color: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.rental-card--selected {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow), var(--shadow-glow);
}

.rental-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.rental-card__price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 8px;
}

.rental-card__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Calendar (step 2) --- */
.calendar {
  max-width: 420px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-100);
}

.calendar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

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

.calendar__nav {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.calendar__nav:hover {
  background: var(--bg-elevated);
  color: var(--orange);
}

.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 8px;
}

.calendar__weekdays span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 0;
}

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

.calendar__day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: default;
  font-family: var(--font-body);
  padding: 2px;
}

.calendar__day--available {
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 500;
  background: var(--orange-glow);
}

.calendar__day--available:hover {
  background: rgba(212, 114, 42, 0.25);
}

.calendar__day--selected {
  background: var(--orange) !important;
  color: var(--white) !important;
  font-weight: 600;
}

.calendar__day--range {
  background: rgba(212, 114, 42, 0.3) !important;
  color: var(--text-primary) !important;
}

.calendar__day--blocked {
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.4;
}

.calendar__day--today {
  border: 2px solid var(--orange-light);
}

.calendar__day--past {
  opacity: 0.3;
}

.calendar__loading {
  text-align: center;
  padding: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Pickup time selector --- */
.time-selector {
  max-width: 420px;
  margin: 16px auto 0;
}

.time-selector__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 10px;
  text-align: center;
}

.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.time-slot {
  padding: 10px 20px;
  border: 2px solid var(--gray-100);
  border-radius: 50px;
  background: var(--bg-card);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: all 0.2s;
}

.time-slot:hover {
  border-color: var(--orange-light);
}

.time-slot--selected {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
}

/* --- Selected date display --- */
.selected-summary {
  text-align: center;
  margin: 16px 0;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.selected-summary__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.selected-summary__value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--orange);
}

/* --- Add-ons (step 3) --- */
.addons-form {
  max-width: 480px;
  margin: 0 auto;
}

.addon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.addon-row__info {
  flex: 1;
}

.addon-row__name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.addon-row__price {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.addon-row__control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.addon-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.addon-stepper__btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--bg-elevated);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.addon-stepper__btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.addon-stepper__value {
  font-weight: 600;
  min-width: 20px;
  text-align: center;
  color: var(--text-primary);
}

/* --- Firewood toggle --- */
.firewood-toggle {
  display: flex;
  gap: 0;
  border-radius: 50px;
  overflow: hidden;
  border: 2px solid var(--gray-100);
  max-width: 480px;
  margin: 0 auto 16px;
}

.firewood-option {
  flex: 1;
  padding: 14px 16px;
  border: none;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.firewood-option--active {
  background: var(--orange);
  color: var(--white);
}

.firewood-option:hover:not(.firewood-option--active) {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.firewood-stepper {
  max-width: 320px;
  margin: 0 auto;
}

.pickup-notice {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.pickup-notice a {
  color: var(--orange-light);
}

.delivery-notice {
  text-align: center;
  color: var(--orange-light);
  font-size: 0.85rem;
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(212, 114, 42, 0.1);
  border: 1px solid rgba(212, 114, 42, 0.25);
  border-radius: var(--radius-md);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Form card --- */
.booking-form-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-100);
}

/* --- Form groups --- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-group__optional {
  font-weight: 400;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-elevated);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23888888' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 60px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

/* --- Checkbox for terms --- */
.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.terms-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--orange);
}

.terms-check label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.terms-check a {
  color: var(--orange-light);
}

/* --- Validation error --- */
.form-error {
  background: rgba(231, 76, 60, 0.15);
  color: var(--error);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* --- Total display --- */
.total-display {
  text-align: center;
  padding: 20px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.total-display__label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.total-display__breakdown {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.total-display__amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--orange);
}

/* --- Submit button --- */
.booking-submit {
  width: 100%;
  justify-content: center;
  font-size: 1.05rem;
  padding: 16px 32px;
}

.booking-submit.btn--loading {
  color: transparent;
  pointer-events: none;
  position: relative;
}

.booking-submit.btn--loading::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  top: 50%;
  left: 50%;
  margin-top: -11px;
  margin-left: -11px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* --- Trust badges --- */
.booking-trust {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.booking-trust__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.booking-trust__item svg {
  color: var(--orange);
  flex-shrink: 0;
}

/* --- Utility --- */
.hidden {
  display: none !important;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .booking-hero {
    padding: 120px 16px 48px;
  }

  .rental-cards {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .booking-form-card {
    padding: 20px;
  }

  .booking-trust {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .calendar {
    padding: 16px;
  }

  .addon-row {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
