/* ============================================================
   drbillmorgan.com — Contact page
   Loads after about.css (navy page hero + page body)
============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(0, 560px);
  justify-content: space-between;
  column-gap: 80px;
  row-gap: 48px;
  align-items: start;
}

/* ---------- Left column ---------- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.contact-section {
  font-size: 18px;
  line-height: 1.7;
}
.contact-section h2 {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}
.contact-section p + p { margin-top: 16px; }

/* Phone, email and offices: stacked, divided by rules */
.contact-offices { margin-top: 28px; }
.contact-offices hr {
  margin: 24px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.contact-office {
  font-size: 16px;
  line-height: 1.6;
}
.contact-office__name {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--slate);
}
.contact-office .text-link { display: inline-block; font-size: 16px; }
.contact-office p + .text-link { margin-top: 8px; font-size: 15px; }

/* ---------- Form card ---------- */
.form-card {
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(34, 50, 74, .06);
  scroll-margin-top: 112px;
}
.form-card .eyebrow { margin-bottom: 8px; }
.form-card__title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}
.form-card__sub {
  margin: 10px 0 28px;
  font-size: 15px;
  line-height: 1.6;
}

.form-notice {
  margin-bottom: 24px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.5;
}
.form-notice--success { background: #e7f4ec; border: 1px solid #9fcfb1; color: #1d5b36; }
.form-notice--error   { background: #fbecec; border: 1px solid #e3a5a5; color: #8a2424; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row--two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
}
.form-required { color: var(--orange); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid #c3d4e0;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 16px;   /* 16px prevents iOS zoom on focus */
  line-height: 1.4;
  color: var(--navy);
  transition: border-color .2s, box-shadow .2s;
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235f7288' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(168, 83, 10, .15);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-required-note { font-size: 13px; }
.form-submit { align-self: flex-start; font-size: 15px; padding-inline: 32px; }

.form-privacy {
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.5;
}

.crisis-note {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--bg-alt);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.55;
}
.crisis-note strong { color: var(--navy); }
.crisis-note a { color: var(--navy); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-card { max-width: 640px; }
}

@media (max-width: 860px) {
  .contact-section { font-size: 17px; }
  .contact-section h2 { font-size: 22px; }
}

@media (max-width: 480px) {
  .form-card { padding: 28px 20px; }
  .form-row--two { grid-template-columns: 1fr; }
  .form-submit { align-self: stretch; }
}
