/* file: /assets/css/booking.css */

.booking-card {
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 18px 46px rgba(6, 29, 53, 0.08);
  padding: 1.6rem;
}

.booking-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #f5f9fc;
  border-radius: 18px;
  padding: 0.35rem;
  margin-bottom: 1rem;
}

.booking-tab {
  border: 0;
  border-radius: 14px;
  padding: 0.8rem;
  font-weight: 800;
  background: transparent;
  color: #0b3765;
}

.booking-tab.active {
  background: #0b3765;
  color: #ffffff;
}

#booking .section-title {
  margin-bottom: 0;
}

#booking .form-label {
  margin-bottom: 0.45rem;
  color: #0b3765;
  font-size: 0.92rem;
  font-weight: 800;
}

#booking .form-control,
#booking .form-select {
  min-height: 54px;
  border: 1px solid #d8e3ee;
  border-radius: 16px;
  background: #ffffff;
  color: #1d2b38;
  font-weight: 600;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#booking textarea.form-control {
  min-height: 132px;
  padding-top: 0.95rem;
  resize: vertical;
}

#booking .form-control::placeholder,
#booking .form-select,
#booking textarea.form-control::placeholder {
  color: #7a8897;
  font-weight: 500;
}

#booking .form-control:focus,
#booking .form-select:focus {
  border-color: #0b3765;
  box-shadow: 0 0 0 0.2rem rgba(11, 55, 101, 0.12);
}

#pickup_datetime_display,
#dropoff_datetime_display {
  cursor: pointer;
  background-color: #ffffff;
}

#pickup_datetime_display[readonly],
#dropoff_datetime_display[readonly] {
  opacity: 1;
}

#booking .alert {
  border: 0;
  border-radius: 18px;
  font-weight: 600;
}

#booking .btn {
  min-height: 52px;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 800;
}

#booking .btn-outline-mg,
#booking .btn-mg {
  min-width: 160px;
}

.mg-success-modal .modal-dialog {
  max-width: 680px;
}

.mg-success-modal .modal-content {
  border-radius: 28px;
  overflow: hidden;
}

.mg-success-modal__content {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 24px 70px rgba(11, 55, 101, 0.18);
}

.mg-success-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  opacity: 0.75;
}

.mg-success-modal__close:hover {
  opacity: 1;
}

.mg-success-modal__body {
  padding: 42px 32px 30px;
}

.mg-success-modal__icon-wrap {
  margin-bottom: 18px;
}

.mg-success-modal__icon-circle {
  width: 94px;
  height: 94px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #eaf8ef 0%, #dff4e7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 8px rgba(33, 136, 90, 0.06);
}

.mg-success-modal__icon {
  font-size: 3rem;
  line-height: 1;
  color: #1f8a55;
}

.mg-success-modal__eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #198754;
  margin-bottom: 10px;
}

.mg-success-modal__title {
  font-size: clamp(1.75rem, 2vw, 2.2rem);
  font-weight: 800;
  color: #0b3765;
  margin-bottom: 14px;
}

.mg-success-modal__text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #55606d;
  max-width: 560px;
  margin: 0 auto 18px;
}

.mg-success-modal__reference {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef5fb;
  color: #0b3765;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.mg-success-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.mg-success-modal__btn {
  min-width: 140px;
  border-radius: 999px;
  font-weight: 700;
  padding: 12px 18px;
}

@media (max-width: 767.98px) {
  .booking-card {
    padding: 1.1rem;
    border-radius: 22px;
  }

  #booking .form-label {
    font-size: 0.88rem;
  }

  #booking .form-control,
  #booking .form-select {
    min-height: 50px;
    border-radius: 14px;
    font-size: 0.96rem;
  }

  #booking textarea.form-control {
    min-height: 120px;
  }

  #booking .btn-outline-mg,
  #booking .btn-mg {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (max-width: 575.98px) {
  .booking-card {
    padding: 1rem;
  }

  #booking .btn {
    width: 100%;
  }

  .mg-success-modal__body {
    padding: 34px 20px 24px;
  }

  .mg-success-modal__title {
    font-size: 1.5rem;
  }

  .mg-success-modal__text {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .mg-success-modal__actions {
    flex-direction: column;
  }

  .mg-success-modal__btn {
    width: 100%;
  }
}