/* =============================================================
   MODAL.CSS — Schedule A Call contact form
============================================================= */

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop.modal--open {
  display: flex;
}

.modal {
  background: var(--white);
  width: 100%;
  max-width: 480px;
  padding: 48px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--mid);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.modal-close:hover {
  color: var(--dark);
}

.modal h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--dark);
  margin-bottom: 8px;
}

.modal-sub {
  font-size: 12px;
  color: var(--mid);
  margin-bottom: 32px;
  line-height: 1.7;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.modal-field label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mid);
}

.modal-field input,
.modal-field textarea {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--dark);
  border: 1px solid var(--light-gray);
  border-radius: 0;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
  width: 100%;
}

.modal-field input:focus,
.modal-field textarea:focus {
  border-color: var(--gold);
}

.modal-field textarea {
  resize: vertical;
  min-height: 90px;
}

.modal-submit {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .modal {
    padding: 36px 24px;
  }
}