/* ============================================================
   25-heroform — single-page appointment form that sits INSIDE the
   hero (home + every condition/service page). Scoped under
   .sec-25-heroform. Layout of the hero columns lives here too
   (scoped to heroes that contain the form) so all hero/form
   placement rules are in one file.
   ============================================================ */

/* --- Hero column layout: text left, form right (>=1024px);
       stacked text-then-form below that. --- */
.sec-00-inthero__layout { position: relative; z-index: 1; }

@media (min-width: 1024px) {
  .sec-00-inthero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
    align-items: center;
    column-gap: clamp(2rem, 4vw, 4rem);
  }
  .sec-00-inthero__layout h1 {
    font-size: clamp(2.4rem, 1rem + 3.2vw, 3.9rem);
  }
}

/* Home hero: the form takes the right column the figure used to hold */
@media (min-width: 1024px) {
  .sec-02-hero__inner--form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  }
}

/* Interior hero grows with the form instead of a fixed visual height */
.sec-00-inthero:has(.sec-25-heroform) { min-height: 0; }

/* --- The form card --- */
.sec-25-heroform {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  margin-top: clamp(2rem, 5vw, 2.75rem);
}
@media (min-width: 1024px) {
  .sec-25-heroform { margin-top: 0; justify-self: end; }
}
@media (max-width: 1023px) {
  .sec-25-heroform { max-width: 560px; }
}

.sec-25-heroform__card {
  background: var(--bone);
  color: var(--ink);
  border-radius: var(--radius-card);
  padding: clamp(1.25rem, 3vw, 1.6rem);
  box-shadow: 0 24px 60px -24px hsl(200 40% 4% / 0.65), 0 0 0 1px hsl(0 0% 100% / 0.08);
  font-family: var(--font-body);
}

.sec-25-heroform .sec-25-heroform__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--ink);
}
.sec-25-heroform__sub {
  margin: 0.35rem 0 1rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: hsl(200 12% 32%);
}
.sec-25-heroform__sub a { color: var(--accent-strong); font-weight: 600; }

.sec-25-heroform__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
@media (max-width: 420px) {
  .sec-25-heroform__row { grid-template-columns: 1fr; gap: 0; }
}

.sec-25-heroform__field { margin-bottom: 0.7rem; min-width: 0; }

.sec-25-heroform__label {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--ink);
}
.sec-25-heroform__req { color: #b3261e; }

.sec-25-heroform__input {
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--line-bone);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.sec-25-heroform__input::placeholder { color: hsl(200 8% 46%); }
.sec-25-heroform__input:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px hsl(var(--accent-h) var(--accent-s) 42% / 0.22);
}
.sec-25-heroform__input.is-invalid { border-color: #b3261e; }
.sec-25-heroform__input--textarea { resize: vertical; min-height: 3.6rem; }

.sec-25-heroform__error {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #b3261e;
}
.sec-25-heroform__error:empty { display: none; }

.sec-25-heroform__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.2rem 0 1rem;
  font-size: 0.7rem;
  line-height: 1.45;
  color: hsl(200 12% 32%);
  cursor: pointer;
}
/* A2P consent checkbox: name="sms-consent" must never be removed (launch check) */
.sec-25-heroform__consent-box {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  accent-color: var(--accent-strong);
}

.sec-25-heroform .sec-25-heroform__submit {
  width: 100%;
  justify-content: center;
  background: var(--accent-strong);
}

.sec-25-heroform__send-error {
  margin: 0.7rem 0 0;
  font-size: 0.8rem;
  color: #b3261e;
}
.sec-25-heroform__send-error a { color: inherit; font-weight: 600; }

.sec-25-heroform__success { padding: 0.5rem 0; }
.sec-25-heroform__success .sec-25-heroform__sub { margin-bottom: 0; }
