:root {
  --royal-blue: #003399;
  --metallic-gold: #D4AF37;
  --white: #FFFFFF;
  --charcoal-black: #1A1A1A;
  --light-gray: #f5f7fa;
}

/* Enquiry Button */
.enquiry-button {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: var(--royal-blue);
  color: var(--metallic-gold);
  font-weight: bold;
  padding: 18px 10px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  border-radius: 8px 0 0 8px;
  text-align: center;
  z-index: 1050;
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px; 
}

.enquiry-button:hover {
  background: #002266;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.enquiry-button:active {
  transform: translateY(-50%) scale(0.98);
}

.enquiry-button .button-text {
  margin-bottom: 8px;
}

.enquiry-button i {
  font-size: 1.4rem;
  transform: rotate(90deg);
  margin-top: 8px;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1060;
  backdrop-filter: blur(3px);
  padding: 20px;
  overflow-y: auto;
  /* ✅ enables scroll if zoomed */
}

.modal-overlay.show {
  display: flex;
  opacity: 1;
}

/* Modal Content */
.modal-content {
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  /* ✅ restrict total height */
  background: var(--white);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  position: relative;
  animation: fadeInUp 0.4s ease forwards;
}

/* Scrollable modal body */
.modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  /* ✅ inner scroll for form */
  padding: 25px 25px 10px 25px;
  background: var(--white);
  scroll-behavior: smooth;
}

/* Fade-in Animation */
@keyframes fadeInUp {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Modal Header */
.modal-header-custom {
  background: var(--royal-blue);
  color: var(--white);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.modal-header-custom .modal-title {
  font-weight: 600;
  font-size: 1.25rem; 
  margin: 0;
}

.modal-header-custom .btn-close {
  background: none;
  border: none;
  color: var(--metallic-gold);
  font-size: 1.6rem;
  cursor: pointer;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.modal-header-custom .btn-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

/* Form Elements */
.form-label {
  font-weight: 600;
  color: var(--charcoal-black);
  margin-bottom: 6px;
  display: block;
}

.form-control {
  border-radius: 8px;
  padding: 12px 15px;
  border: 1px solid var(--light-gray);
  width: 100%;
  margin-bottom: 1rem;
  background: var(--white);
}

.form-control:focus {
  border-color: var(--metallic-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.35);
  outline: none;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Modal Footer */
.modal-footer-custom {
  flex-shrink: 0;
  border-top: 1px solid var(--light-gray);
  padding: 15px 20px;
  background: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  position: sticky;
  bottom: 0;
  z-index: 5;
  box-shadow: 0 -3px 8px rgba(0, 0, 0, 0.05);
}

/* Submit Button */
.submit-btn {
  background: var(--royal-blue);
  color: var(--metallic-gold);
  border: none;
  padding: 12px 35px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 51, 153, 0.25);
  cursor: pointer;
  font-size: 1rem;
  width: 100%;
  max-width: 200px;
}

.submit-btn:hover {
  background: var(--metallic-gold);
  color: var(--charcoal-black);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Success Message */
.success-message {
  background: var(--light-gray);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  font-weight: 600;
  color: var(--charcoal-black);
}

.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 85vh;
  }

  .modal-body {
    padding: 20px 15px;
  }

  .submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
  }

  .enquiry-button {
    padding: 14px 8px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .modal-header-custom {
    padding: 15px;
  }

  .modal-title {
    font-size: 1.1rem;
  }

  .form-control {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .submit-btn {
    font-size: 0.95rem;
    padding: 12px;
  }
}