/* =========================================================================
   Contact page (templates/template-contact.php)
   Hero reassurance copy + the sitewide contact form (this is the only page
   that renders <form id="ms-contact-form">).
   ========================================================================= */

.ms-contact-hero .ms-h2 { margin-top: 16px; }

/* This block now follows the h1 directly (the intro copy, price block and
   numbered reassurance list that used to sit between them were removed), so it
   carries a slightly wider top margin than a mid-section divider would. */
.ms-contact-hero__nationwide {
  margin-top: clamp(32px, 4vw, 52px); padding-top: clamp(22px, 2.6vw, 32px);
  border-top: 1px solid var(--ms-hairline-light);
  display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 64px);
}
.ms-contact-hero__nationwide > div { flex: 1 1 min(100%, 300px); max-width: 520px; }
.ms-contact-hero__nationwide .ms-lead { margin-top: 14px; }
.ms-contact-hero__nationwide-display {
  flex: 0 1 auto; align-self: center;
  font-family: var(--ms-font-display); font-weight: 900; line-height: 1.06; letter-spacing: -.045em;
  font-size: clamp(22px, 3vw, 42px);
}
.ms-contact-hero__nationwide-display strong { color: var(--ms-accent); }

.ms-contact-hero > [data-container] > .ms-note:last-child { margin-top: 20px; }

/* ---- Form ---- */
.ms-contact-form-wrap { max-width: 720px; }

.ms-contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.4vw, 30px);
  position: relative; /* honeypot is absolutely positioned within this */
}
.ms-field { display: flex; flex-direction: column; gap: 10px; }
.ms-field--wide, .ms-contact-form__consent, .ms-contact-form__submit, .ms-contact-form__status {
  grid-column: 1 / -1;
}

.ms-field__label {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; color: var(--ms-text);
}
.ms-field__badge {
  font-size: 10.5px; font-weight: 600; letter-spacing: .08em;
  padding: 3px 8px; border-radius: var(--ms-radius);
  background: rgba(17,17,17,.1); color: var(--ms-note);
}
.ms-field__badge--required { background: var(--ms-accent); color: #F5F4F0; }

.ms-field__input {
  width: 100%; min-height: 52px; padding: 14px 16px;
  background: #FFF; border: 1px solid var(--ms-hairline-light); border-radius: var(--ms-radius);
  font: inherit; font-size: 15px; color: var(--ms-text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ms-field__input::placeholder { color: var(--ms-note); }
.ms-field__input:focus {
  outline: none; border-color: var(--ms-accent);
  box-shadow: 0 0 0 3px rgba(232,67,31,.14);
}
.ms-field__input--textarea { min-height: 150px; resize: vertical; }
.ms-field__input:invalid[aria-invalid="true"] { border-color: var(--ms-accent); }

.ms-contact-form__consent {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 13px; line-height: 1.9; color: var(--ms-lead);
}
.ms-contact-form__consent input[type="checkbox"] {
  width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto;
  accent-color: var(--ms-accent);
}

.ms-contact-form__submit { justify-self: start; }

.ms-contact-form__status { min-height: 1.2em; font-size: 13.5px; line-height: 1.9; }
.ms-contact-form__status[data-state="success"] { color: var(--ms-text); }
.ms-contact-form__status[data-state="error"] { color: var(--ms-accent); font-weight: 600; }

.ms-contact-form__foot { margin-top: clamp(24px, 3vw, 36px); max-width: 44em; }
.ms-contact-form__foot a { color: var(--ms-lead); text-decoration: underline; }
.ms-contact-form__foot a:hover { color: var(--ms-accent); }

/* Google requires either the reCAPTCHA badge or an equivalent text notice to
   stay visible — we hide the floating badge and show the text note above
   (.ms-contact-form__foot) instead. */
.grecaptcha-badge { visibility: hidden; }

@media (max-width: 767px) {
  .ms-contact-form { grid-template-columns: 1fr; }
  .ms-field__input { min-height: 56px; }
  .ms-contact-form__submit { justify-self: stretch; }
}

@media (max-width: 1024px) {
  .ms-contact-hero__nationwide-display { align-self: flex-start; }
}
