/* css\booking.css */

/* ========================================
   BOOKING POPUP
======================================== */

.booking-modal[hidden] {
  display: none;
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s var(--ease),
    visibility 0.3s;
}

.booking-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.booking-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

.booking-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: calc(100vh - 60px);
  max-height: calc(100dvh - 60px);
  overflow-y: auto;
  background: var(--black-2);
  border: 1px solid var(--line);
  padding: 48px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.booking-modal__dialog::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.booking-modal__close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--white);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.25s,
    color 0.25s,
    background 0.25s;
}

.booking-modal__close:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(201, 162, 39, 0.08);
}

.booking-modal__header {
  margin-bottom: 34px;
  padding-right: 42px;
}

.booking-modal__header .eyebrow {
  display: block;
  margin-bottom: 12px;
}

.booking-modal__header h2 {
  font-size: clamp(28px, 5vw, 42px);
}

.booking-modal__header p {
  max-width: 560px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* Progress indicator */
.booking-progress {
  margin-top: 24px;
}

.booking-progress__text {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.booking-progress__bar {
  width: 100%;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.booking-progress__bar span {
  display: block;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
  transition: width 0.4s var(--ease);
}

/* Form */
.booking-form {
  width: 100%;
}

.booking-step[hidden] {
  display: none;
}

.booking-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.booking-field {
  min-width: 0;
  margin-bottom: 20px;
}

.booking-field label {
  display: block;
  margin-bottom: 9px;
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.booking-field .optional {
  color: var(--muted);
  font-weight: 400;
}

.booking-field input,
.booking-field select,
.booking-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  outline: none;
  transition:
    border-color 0.25s,
    background 0.25s;
}

.booking-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.booking-field input:focus,
.booking-field select:focus,
.booking-field textarea:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.055);
}

.booking-field input[type="file"] {
  padding: 11px;
  color: var(--muted);
}

.booking-field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 9px 13px;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid var(--line-gold);
  color: var(--gold-light);
  font-family: inherit;
  cursor: pointer;
}

.booking-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.booking-next {
  min-width: 150px;
}

/* Lock page while popup is open */
body.booking-open {
  overflow: hidden;
}

/* Mobile */
@media (max-width: 640px) {
  .booking-modal {
    align-items: flex-end;
    padding: 0;
  }

  .booking-modal__dialog {
    width: 100%;
    max-height: 94vh;
    max-height: 94dvh;
    padding: 34px 22px 28px;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }

  .booking-modal__close {
    top: 14px;
    right: 16px;
  }

  .booking-modal__header {
    padding-right: 40px;
    margin-bottom: 28px;
  }

  .booking-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .booking-actions {
    justify-content: stretch;
  }

  .booking-next {
    width: 100%;
  }
}

#bookingDate::-webkit-calendar-picker-indicator,
#bookingTime::-webkit-calendar-picker-indicator {
  filter: brightness(0) invert(1);
  opacity: 0.85;
  cursor: pointer;
}

/* next step */

/* ========================================
   BOOKING STEP 2 + PRICE ESTIMATE
======================================== */

.booking-step-two {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 32px;
  align-items: start;
}

.booking-service-details {
  min-width: 0;
}

.booking-service-details .eyebrow {
  display: block;
  margin-bottom: 12px;
}

.booking-service-details h3,
.booking-estimate h3 {
  font-family: "Manrope", sans-serif;
  font-size: 24px;
  margin-bottom: 10px;
}

.booking-step-description {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* Dynamically generated fields */
.booking-dynamic-fields {
  width: 100%;
}

.booking-option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.booking-option {
  position: relative;
}

.booking-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.booking-option label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition:
    border-color 0.25s,
    background 0.25s,
    color 0.25s;
}

.booking-option label strong {
  margin-left: 12px;
  color: var(--gold-light);
  white-space: nowrap;
}

.booking-option input:checked + label {
  background: rgba(201, 162, 39, 0.1);
  border-color: var(--gold);
  color: var(--white);
}

.booking-option label:hover {
  border-color: var(--line-gold);
}

/* Checkbox add-ons */
.booking-addon-list {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.booking-addon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.booking-addon__choice {
  display: flex;
  align-items: center;
  gap: 10px;
}

.booking-addon input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

.booking-addon label {
  margin: 0;
  color: var(--white);
  font-size: 13px;
  cursor: pointer;
}

.booking-addon strong {
  color: var(--gold-light);
  font-size: 13px;
  white-space: nowrap;
}

/* Estimate panel */
.booking-estimate {
  position: sticky;
  top: 0;
  min-width: 0;
  padding: 26px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-gold);
}

.booking-estimate__header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.booking-estimate__header .eyebrow {
  display: block;
  margin-bottom: 10px;
}

.booking-estimate__details {
  width: 100%;
}

.booking-estimate__row,
.booking-estimate__total {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.booking-estimate__row {
  padding: 10px 0;
  color: var(--muted);
  font-size: 12.5px;
}

.booking-estimate__row strong {
  max-width: 58%;
  color: var(--white);
  text-align: right;
  font-weight: 500;
  line-height: 1.4;
}

.booking-estimate__items {
  padding: 4px 0;
}

.booking-estimate__item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  color: var(--muted);
  font-size: 12px;
}

.booking-estimate__item strong {
  color: var(--gold-light);
  white-space: nowrap;
}

.booking-estimate__divider {
  height: 1px;
  margin: 17px 0;
  background: var(--line);
}

.booking-estimate__total {
  align-items: center;
  color: var(--white);
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.booking-estimate__total strong {
  color: var(--gold-light);
  font-size: 27px;
  text-align: right;
}

.booking-estimate__notice {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.booking-estimate__notice.is-quote {
  color: var(--gold-light);
}

/* Step 2 buttons */
.booking-actions--step-two {
  justify-content: space-between;
  gap: 14px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.booking-back,
.booking-submit {
  min-width: 150px;
}

/* Tablet */
@media (max-width: 820px) {
  .booking-step-two {
    grid-template-columns: 1fr;
  }

  .booking-estimate {
    position: static;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .booking-option-grid {
    grid-template-columns: 1fr;
  }

  .booking-estimate {
    padding: 22px 18px;
  }

  .booking-estimate__total strong {
    font-size: 23px;
  }

  .booking-actions--step-two {
    flex-direction: column-reverse;
  }

  .booking-back,
  .booking-submit {
    width: 100%;
  }
}
