/* ===== BOOKING SECTION ===== */
.booking-section {
  background: var(--dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.booking-section::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.booking-section .section-label {
  justify-content: center;
}

.booking-section .section-label::before {
  display: none;
}

.booking-section .section-title {
  margin-bottom: 16px;
}

.booking-section p {
  color: var(--white-dim);
  font-weight: 300;
  max-width: 500px;
  margin: 0 auto 40px;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(6px);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--dark);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 32px 32px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
}

.modal-subtitle {
  font-family: var(--font-condensed);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white-faint);
  border: 1px solid var(--border);
  color: var(--white-dim);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
  line-height: 1;
}

.modal-close:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.modal-body {
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-condensed);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.form-input,
.form-select {
  width: 100%;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
  min-height: 52px;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a84c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.form-select option {
  background: var(--dark-2);
  color: var(--white);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--gold);
}

.form-input::placeholder {
  color: rgba(245, 240, 232, 0.3);
}

.modal-footer {
  padding: 24px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-footer .btn {
  width: 100%;
  justify-content: center;
}

/* Confirmation state */
.booking-confirmation {
  display: none;
  padding: 32px;
  text-align: center;
}

.booking-confirmation.show {
  display: block;
}

.confirmation-icon {
  width: 72px;
  height: 72px;
  background: rgba(201, 168, 76, 0.1);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
}

.confirmation-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.confirmation-details {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 24px 0;
  text-align: left;
}

.confirmation-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
}

.confirmation-row:last-child {
  border-bottom: none;
}

.confirmation-row span:first-child {
  color: var(--white-dim);
  font-weight: 300;
}

.confirmation-row span:last-child {
  color: var(--white);
  font-weight: 500;
}

.confirmation-notice {
  font-size: 0.85rem;
  color: var(--white-dim);
  font-weight: 300;
  margin-bottom: 24px;
  line-height: 1.6;
}

.confirmation-notice strong {
  color: var(--gold);
}

/* ─── PUBLIC TIME SLOTS ─── */
.pub-slot {
  padding: 9px 4px;
  text-align: center;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-condensed);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white-dim);
  transition: all 0.2s;
  min-height: 40px;
}

.pub-slot:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}

.pub-slot-selected {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: var(--black) !important;
}

.pub-slot-taken {
  opacity: 0.25;
  cursor: not-allowed;
  text-decoration: line-through;
}

.pub-slot-taken:hover {
  border-color: var(--border);
  color: var(--white-dim);
  background: var(--dark-3);
}

.slots-all-taken {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 300;
  color: #e88;
  padding: 14px 10px;
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.25);
  border-radius: var(--radius);
  line-height: 1.5;
}

/* scrollbar inside slot grid */
#booking-slots-grid::-webkit-scrollbar {
  width: 3px;
}

#booking-slots-grid::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 3px;
}

/* ─── RESPONSIVE MOBILE ─── */
@media (max-width: 600px) {
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal {
    border-radius: 16px 16px 0 0;
    max-height: 92vh;
  }

  .modal-header {
    padding: 20px 18px 16px;
  }

  .modal-body {
    padding: 16px 18px;
  }

  .modal-footer {
    padding: 0 18px 24px;
    flex-direction: column;
    gap: 10px;
  }

  .modal-footer .btn {
    width: 100%;
    min-height: 52px;
  }

  /* Slot grid: 3 colunas no mobile */
  #booking-slots-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    max-height: 180px !important;
    gap: 6px !important;
  }

  .booking-confirmation {
    padding: 20px 0;
  }

  .confirmation-details {
    margin: 16px 0;
  }
}

@media (max-width: 380px) {
  #booking-slots-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ════════════════════════════════════
   BOOKING STEPPER
════════════════════════════════════ */

.booking-modal-stepper {
  max-height: 92vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* ─── Progress bar ─── */
.booking-progress {
  display: flex;
  align-items: center;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  gap: 0;
}

.booking-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.bsi-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(245, 240, 232, 0.35);
  transition: all 0.3s ease;
  background: transparent;
}

.bsi-label {
  font-family: var(--font-condensed);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.3);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.booking-step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 8px;
  margin-bottom: 24px;
  transition: background 0.3s ease;
}

/* Active step */
.bsi-active .bsi-circle {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.bsi-active .bsi-label {
  color: var(--gold);
}

/* Done step */
.bsi-done .bsi-circle {
  border-color: var(--gold);
  color: var(--black);
  background: var(--gold);
}

.bsi-done .bsi-label {
  color: rgba(245, 240, 232, 0.6);
}

/* ─── Step title ─── */
.booking-step-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

/* ─── Inputs grandes (etapa 1) ─── */
.form-input-lg {
  min-height: 56px;
  font-size: 1.05rem;
  padding: 16px 18px;
}

/* ─── Slots grid ─── */
.booking-slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  max-height: 164px;
  overflow-y: auto;
  padding: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) transparent;
}

.booking-slots-grid::-webkit-scrollbar {
  width: 3px;
}

.booking-slots-grid::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 3px;
}

.pub-slot {
  padding: 9px 4px;
  text-align: center;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-condensed);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white-dim);
  transition: all 0.2s;
  min-height: 40px;
}

.pub-slot:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}

.pub-slot-selected {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: var(--black) !important;
}

.pub-slot-taken {
  opacity: 0.25;
  cursor: not-allowed;
  text-decoration: line-through;
}

.pub-slot-taken:hover {
  border-color: var(--border);
  color: var(--white-dim);
  background: var(--dark-3);
}

.slots-loading {
  grid-column: 1 / -1;
  text-align: center;
  font-size: .82rem;
  color: rgba(245, 240, 232, 0.35);
  padding: 14px;
}

.slots-full {
  grid-column: 1 / -1;
  text-align: center;
  font-size: .82rem;
  color: #e88;
  padding: 12px 8px;
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.25);
  border-radius: var(--radius);
  line-height: 1.5;
}

/* ─── Footer 2 botões ─── */
.booking-footer-2 {
  display: flex;
  gap: 10px;
}

.booking-footer-2 .btn-outline {
  flex-shrink: 0;
}

.booking-footer-2 .btn-primary {
  flex: 1;
}

/* ─── Review card (etapa 3) ─── */
.booking-review {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}

.booking-review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.booking-review-row:last-child {
  border-bottom: none;
}

.booking-review-price {
  background: rgba(201, 168, 76, 0.04);
}

.review-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--white-dim);
  flex-shrink: 0;
}

.review-label svg {
  color: var(--gold);
  opacity: 0.7;
  flex-shrink: 0;
}

.review-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  text-align: right;
}

.review-price-val {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
}

/* ─── Payment notice ─── */
.booking-payment-notice {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.6;
  text-align: center;
}

.booking-payment-notice strong {
  color: var(--white);
}

/* ─── Success screen ─── */
.success-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(39, 174, 96, 0.12);
  border: 2px solid rgba(39, 174, 96, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: #7dea9a;
  animation: successPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes successPop {
  from {
    transform: scale(0.5);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ─── Mobile ─── */
@media (max-width: 600px) {
  .booking-progress {
    padding: 12px 16px;
  }

  .bsi-label {
    display: none;
  }

  .booking-step-line {
    margin-bottom: 0;
  }

  .bsi-circle {
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
  }

  .booking-slots-grid {
    grid-template-columns: repeat(3, 1fr);
    max-height: 150px;
  }

  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal {
    border-radius: 16px 16px 0 0;
    max-height: 94vh;
  }

  .booking-modal-stepper .modal-body {
    padding: 16px 18px;
  }

  .booking-modal-stepper .modal-footer,
  .booking-footer-2 {
    padding: 0 18px 24px;
  }

  .form-input-lg {
    min-height: 52px;
    font-size: 1rem;
  }
}