/* =============================================================
   Ben's Gunsmithing — Contact page
   Phone/text CTA first (primary action), 2-sentence About Ben,
   appointment-only notice, Google Maps region embed,
   Turnstile-protected form as the secondary path.
   Loaded after site.css.
   ============================================================= */

/* -------------------------------------------------------------
   1. Top row — phone CTA + appointment notice
   ------------------------------------------------------------- */
.contact-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-2xl);
  align-items: stretch;
}

.phone-cta {
  background-color: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--r-sm);
  padding: var(--s-2xl);
}
.phone-cta__label { display: block; color: var(--gray); margin-bottom: var(--s-xs); }
.phone-cta__num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 2.625rem);
  line-height: 1.1;
  color: var(--green);
  text-decoration: none;
}
.phone-cta__num:hover { color: var(--green-dark); }
.phone-cta__sub {
  margin-top: var(--s-sm);
  color: var(--charcoal-light);
  max-width: 46ch;
}
.phone-cta__btns {
  display: flex;
  gap: var(--s-md);
  flex-wrap: wrap;
  margin-top: var(--s-lg);
}

.appt-notice {
  background-color: var(--brown-dark);
  color: var(--cream);
  border-radius: var(--r-sm);
  padding: var(--s-2xl);
}
.appt-notice h2 { color: var(--tan-light); font-size: var(--fs-title); }
.appt-notice p { margin-top: var(--s-sm); color: var(--cream); font-size: var(--fs-small); }
.appt-notice p + p { margin-top: var(--s-sm); }

/* -------------------------------------------------------------
   2. About Ben — short, two columns with one photo
   ------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--s-2xl);
  align-items: center;
}
.about__photo { margin: 0; }
.about__photo img { width: 100%; height: auto; border-radius: var(--r-sm); }
.about__body p { margin-top: var(--s-md); max-width: 60ch; }
.about__body p:first-child { margin-top: 0; }

/* -------------------------------------------------------------
   3. Region map — Google Maps embed, centered on the town of
      Noxon (not the shop address, per the non-precise policy)
   ------------------------------------------------------------- */
.region__frame {
  margin: var(--s-lg) 0 0;
  border: 1px solid var(--cream-dark);
  border-radius: var(--r-sm);
  background-color: var(--cream);
  overflow: hidden;
}
.region__frame iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 460;
  display: block;
}
.region__note {
  margin-top: var(--s-sm);
  font-size: var(--fs-small);
  color: var(--charcoal-light);
}

/* -------------------------------------------------------------
   4. Contact form (secondary path) — DESIGN.md §5 Inputs
   ------------------------------------------------------------- */
.contact-form {
  background-color: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--r-sm);
  padding: var(--s-2xl);
  /* Capped and centered so the single-column form doesn't read as a
     half-finished two-column layout at desktop widths. */
  max-width: 800px;
  margin-inline: auto;
}
.form-field { margin-bottom: var(--s-lg); }
.form-field__label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--brown-dark);
  margin-bottom: var(--s-xs);
}
.form-field__input,
.form-field__textarea {
  width: 100%;
  background-color: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--charcoal);
}
.form-field__textarea { min-height: 140px; resize: vertical; }
.form-field__input:focus,
.form-field__textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(74, 107, 42, 0.15); /* functional focus ring, per DESIGN §5 */
}

.form-alert {
  padding: var(--s-md) var(--s-lg);
  border-radius: var(--r-sm);
  margin-bottom: var(--s-lg);
  font-size: var(--fs-small);
}
.form-alert--error {
  background-color: rgba(155, 44, 44, 0.07);
  border: 1px solid var(--red-error);
  color: var(--red-error);
}
.form-alert--error p + p { margin-top: var(--s-xs); }
.form-alert--success {
  background-color: rgba(74, 107, 42, 0.10);
  border: 1px solid var(--green);
  color: var(--green-dark);
}

.form-note {
  margin-top: var(--s-md);
  font-size: var(--fs-small);
  color: var(--charcoal-light);
}
.cf-turnstile { margin: var(--s-lg) 0; }

/* -------------------------------------------------------------
   5. Responsive
   ------------------------------------------------------------- */
@media (max-width: 768px) {
  .contact-top { grid-template-columns: 1fr; gap: var(--s-lg); }
  .about { grid-template-columns: 1fr; gap: var(--s-lg); }
}
