/* =========================================
   CONTACT MODAL — SCOPED STYLES
   modal-email.css
   ========================================= */

/* -----------------------------------------
   MODAL CONTENT WRAPPER
   ----------------------------------------- */
.contact-modal-custom .modal-content {
  border-radius: 0.5rem;
  border: none;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

/* -----------------------------------------
   HEADER
   ----------------------------------------- */
.contact-modal-custom .modal-header {
  background-color: #2980b9;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 1.5rem;
}

.contact-modal-custom .modal-header .btn-close {
  filter: invert(1) brightness(2);
  opacity: 0.8;
  box-shadow: none !important;
  outline: none !important;
}

/* -----------------------------------------
   BODY
   ----------------------------------------- */
.contact-modal-custom .modal-body {
  background-color: #f1f5f8;
}

/* -----------------------------------------
   FORM LABELS — icon color
   ----------------------------------------- */
.contact-modal-custom .form-label i {
  color: #2980b9;
  opacity: 0.7;
}

/* -----------------------------------------
   FORM CONTROLS — inputs and select
   ----------------------------------------- */
.contact-modal-custom .modal-body .form-control,
.contact-modal-custom .modal-body .form-select {
  border-color: #cbd5e1 !important;
  background-color: #ffffff !important;
  color: #374151 !important;
  border-radius: 0.375rem !important;
  height: calc(1.5em + 0.75rem + 2px) !important;
  padding: 0.375rem 0.75rem !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

/* Textarea: auto height to respect rows attribute */
.contact-modal-custom .modal-body textarea.form-control {
  height: auto !important;
}

/* Focus state */
.contact-modal-custom .modal-body .form-control:focus,
.contact-modal-custom .modal-body .form-select:focus {
  border-color: rgba(41, 128, 185, 0.5) !important;
  box-shadow: 0 0 0 0.25rem rgba(41, 128, 185, 0.1) !important;
  outline: none !important;
}

/* -----------------------------------------
   FORM MESSAGE — status alert container
   ----------------------------------------- */
#contactFormMessage {
  min-height: 48px;
}

/* -----------------------------------------
   FOOTER
   ----------------------------------------- */
.contact-modal-custom .modal-footer {
  background-color: #ffffff;
  gap: 12px;
  border: none;
}

/* -----------------------------------------
   BUTTON — Cancel (slate blue)
   ----------------------------------------- */
.contact-modal-custom .btn-slate-secondary {
  background-color: #516377;
  border-color: #516377;
  color: #ffffff;
  font-weight: 500;
  box-shadow: 0 4px 6px rgba(81, 99, 119, 0.2);
  transition: all 0.3s ease;
  width: 140px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
}

.contact-modal-custom .btn-slate-secondary:hover {
  background-color: #3e4c5b;
  border-color: #3e4c5b;
  transform: translateY(-1px);
  box-shadow: 0 6px 8px rgba(81, 99, 119, 0.3);
}

/* -----------------------------------------
   BUTTON — Submit (primary blue)
   ----------------------------------------- */
.contact-modal-custom .btn-contact-primary {
  background-color: #2980b9;
  border-color: #2980b9;
  color: #ffffff;
  font-weight: 500;
  box-shadow: 0 4px 6px rgba(41, 128, 185, 0.2);
  transition: all 0.3s ease;
  width: 140px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
}

.contact-modal-custom .btn-contact-primary:hover {
  background-color: #1e6091;
  border-color: #1e6091;
  transform: translateY(-1px);
  box-shadow: 0 6px 8px rgba(41, 128, 185, 0.3);
}

.contact-modal-custom .btn-contact-primary:disabled {
  opacity: 0.7;
  transform: none;
}

/* -----------------------------------------
   MOBILE — full screen modal (max 576px)
   ----------------------------------------- */
@media (max-width: 576px) {
  .contact-modal-custom .modal-dialog {
    margin: 0;
    max-width: 100%;
    width: 100%;
    height: 100%;
  }

  .contact-modal-custom .modal-content {
    height: 100%;
    border-radius: 0 !important;
    overflow: hidden;
  }

  .contact-modal-custom .modal-header {
    border-radius: 0 !important;
  }

  .contact-modal-custom .modal-body {
    overflow-y: auto;
  }

  .contact-modal-custom .modal-footer {
    flex-direction: column;
    gap: 8px;
  }

  .contact-modal-custom .btn-slate-secondary,
  .contact-modal-custom .btn-contact-primary {
    width: 100%;
    min-width: unset;
  }
}
