/* css/contact-form.css */

/* ---- "Contact Us" section (bottom of About / FAQ pages) ---- */
.contact-us-section {
  text-align: center;
  padding: 56px 24px;
  border-top: 1px solid #e2e8f0;
  margin-top: 40px;
}
.contact-us-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}
.contact-us-section p {
  color: #475569;
  margin-bottom: 20px;
}
.contact-us-trigger {
  background: #2563eb;
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s;
}
.contact-us-trigger:hover {
  background: #1d4ed8;
}

/* ---- Modal overlay ---- */
.contact-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 4000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.contact-modal-overlay.open {
  display: flex;
}

.contact-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.contact-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
}
.contact-modal-close:hover {
  color: #0f172a;
}

.contact-modal h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 4px;
}
.contact-modal-subtitle {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* ---- Form fields ---- */
.cf-field, .cf-fieldset {
  margin-bottom: 18px;
}
.cf-field label, .cf-fieldset legend {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: #334155;
  margin-bottom: 6px;
  padding: 0;
}
.cf-field input[type="text"],
.cf-field input[type="email"],
.cf-field input[type="tel"],
.cf-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
  color: #0f172a;
}
.cf-field input:focus,
.cf-field textarea:focus {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
  border-color: #2563eb;
}
.cf-field textarea {
  resize: vertical;
}

.cf-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  font-size: 0.9rem;
  color: #334155;
  margin-right: 16px;
  margin-bottom: 6px;
  cursor: pointer;
}

.cf-error {
  display: block;
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: 4px;
  min-height: 1em;
}
.cf-invalid input,
.cf-invalid textarea {
  border-color: #dc2626;
}

.cf-status {
  font-size: 0.9rem;
  margin-bottom: 14px;
  min-height: 1.2em;
}
.cf-status.cf-success {
  color: #15803d;
  font-weight: 600;
}
.cf-status.cf-error {
  color: #dc2626;
  font-weight: 600;
}

.cf-submit {
  width: 100%;
  background: #2563eb;
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s;
}
.cf-submit:hover:not(:disabled) {
  background: #1d4ed8;
}
.cf-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .contact-modal {
    padding: 24px;
  }
}