/* ============================================================
   SHARED MODAL & FORM STYLES
   Used across service pages for booking/enquiry modals.
   ============================================================ */

/* ── Modal Overlay & Box ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.2s;
}
.modal-overlay.active .modal-box {
  transform: translateY(0);
}

/* ── Modal Sections ── */
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}
.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
}

/* ── Form Layout ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.form-grid .col-full {
  grid-column: 1 / -1;
}

/* ── Form Fields ── */
.form-field {
  margin-bottom: 16px;
}
.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  background: #fff;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: #dbb481;
  box-shadow: 0 0 0 3px rgba(219, 180, 129, 0.15);
}

/* ── "Other" conditional fields ── */
.other-field {
  display: none;
  margin-top: 8px;
  background: #f3f4f6;
  padding: 8px;
  border-radius: 6px;
}
.other-field.visible {
  display: block;
}

/* ── Submit Button (gold) ── */
.btn-modal-submit {
  width: 100%;
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  background-color: #dbb481;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}
.btn-modal-submit:hover {
  background-color: #c49c69;
}
.btn-modal-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .modal-box {
    width: 95%;
    max-height: 95vh;
  }
  .modal-header {
    padding: 16px 20px;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-footer {
    padding: 12px 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
