/* ==== MODAL ==== */
.ductam-booking-modal {
  display: none;
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.ductam-booking-modal-content {
  width: 90%;
  max-width: 420px;
  background: #fff;
  margin: 80px auto;
  padding: 25px;
  border-radius: 14px;
  position: relative;
  animation: ductamModalFadeIn 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Các ô input - 82% width và căn giữa */
.ductam-booking-modal-content input {
  width: 82% !important;
  padding: 12px 14px;
  margin: 0 auto 15px auto !important;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 14px;
  transition: border-color 0.3s;
  display: block;
}

.ductam-booking-modal-content input:focus {
  border-color: #0073e6;
  outline: none;
}

/* Nút đăng ký - 50% width và căn giữa */
.ductam-booking-btn {
  width: 50% !important;
  padding: 3px !important;
  background: #0073e6;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.3s;
  margin: 10px auto 0 auto !important;
  display: block;
}

.ductam-booking-btn:hover {
  background: #005bb5;
}

.ductam-booking-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.ductam-booking-close {
  position: absolute;
  right: 15px;
  top: 10px;
  cursor: pointer;
  font-size: 26px;
  color: #777;
  line-height: 1;
}

.ductam-booking-close:hover {
  color: #333;
}

@keyframes ductamModalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Success/Error Messages */
#ductamBookingMessage {
  width: 82% !important;
  margin: 15px auto 0 auto !important;
  display: none;
  padding: 10px;
  border-radius: 4px;
  text-align: center;
}

.ductam-booking-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.ductam-booking-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Loading state */
.ductam-booking-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Responsive cho Mobile */
@media (max-width: 480px) {
  .ductam-booking-modal-content {
    width: 95%;
    margin: 40px auto;
    padding: 20px;
  }

  /* Trên mobile, input chiếm 90% */
  .ductam-booking-modal-content input {
    width: 90% !important;
    padding: 14px 12px;
    font-size: 16px; /* Tăng kích thước font cho dễ đọc trên mobile */
  }

  /* Trên mobile, nút chiếm 70% */
  .ductam-booking-btn {
    width: 70% !important;
    padding: 14px !important;
    font-size: 16px;
  }

  #ductamBookingMessage {
    width: 90% !important;
  }
}

/* Responsive cho Tablet */
@media (min-width: 481px) and (max-width: 768px) {
  .ductam-booking-modal-content {
    width: 85%;
    max-width: 400px;
  }

  .ductam-booking-modal-content input {
    width: 85% !important;
  }

  .ductam-booking-btn {
    width: 60% !important;
  }

  #ductamBookingMessage {
    width: 85% !important;
  }
}

/* Responsive cho Desktop nhỏ */
@media (min-width: 769px) and (max-width: 1024px) {
  .ductam-booking-modal-content {
    max-width: 400px;
  }

  .ductam-booking-modal-content input {
    width: 80% !important;
  }

  .ductam-booking-btn {
    width: 50% !important;
  }
}
