/* ============================================================
   25-heroform — single-page appointment form that lives INSIDE
   the hero (home, service pages, What We Treat condition pages).
   Posts to the same Netlify "booking" form as section 12.
   Hero layout: copy left / form right on desktop; stacked
   (copy first, form below) on tablet + mobile.
   ============================================================ */

/* --- Interior hero two-column grid (service + condition heroes) --- */
.sec-00-inthero .sec-00-inthero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}
.sec-00-inthero .sec-00-inthero__copy { min-width: 0; }
.sec-00-inthero .sec-00-inthero__copy h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.9rem); }

@media (max-width: 1023px) {
  .sec-00-inthero .sec-00-inthero__grid { grid-template-columns: 1fr; }
  .sec-00-inthero .sec-00-inthero__grid .sec-25-heroform { max-width: 560px; }
}

/* --- Form card --- */
.sec-25-heroform {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
}

.sec-25-heroform__card {
  background: var(--white);
  color: var(--text-on-bone);
  border-radius: var(--radius-card);
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  box-shadow: var(--shadow-lift), 0 0 60px hsl(var(--accent-h) 70% 40% / 0.18);
  border-top: 4px solid var(--accent);
}

.sec-25-heroform__head { margin-bottom: 1rem; }

.sec-25-heroform__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
  line-height: 1.2;
  color: var(--text-on-bone);
  margin: 0;
}
.sec-25-heroform__title:focus { outline: none; }

.sec-25-heroform__sub {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-on-bone-dim);
}

.sec-25-heroform__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0.75rem;
  row-gap: 0.15rem;
}
.sec-25-heroform__field { min-width: 0; }
.sec-25-heroform__field--full { grid-column: 1 / -1; }

.sec-25-heroform__label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-on-bone);
}
.sec-25-heroform__req { color: var(--ember-strong); }

.sec-25-heroform__input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-on-bone);
  background: var(--bone);
  border: 1.5px solid var(--line-bone);
  border-radius: 12px;
  padding: 0.6rem 0.85rem;
  transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out);
}
.sec-25-heroform__input::placeholder { color: hsl(153 8% 55%); }
.sec-25-heroform__input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}
.sec-25-heroform__input.is-invalid { border-color: #d0453a; }
.sec-25-heroform__input--textarea { resize: vertical; min-height: 3.6rem; }

.sec-25-heroform__error {
  min-height: 1rem;
  margin: 0.2rem 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #c0392b;
}

.sec-25-heroform__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.25rem 0 1rem;
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--text-on-bone-dim);
  cursor: pointer;
}
/* A2P consent checkbox: name="sms-consent" must never be removed */
.sec-25-heroform__consent-box {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.sec-25-heroform__submit {
  width: 100%;
  padding-block: 0.8rem;
  font-size: 0.95rem;
}
.sec-25-heroform__submit[disabled] { opacity: 0.7; cursor: wait; }

.sec-25-heroform__send-error {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #c0392b;
}
.sec-25-heroform__send-error a { color: inherit; font-weight: 700; }


@media (max-width: 560px) {
  .sec-25-heroform__grid { grid-template-columns: 1fr; }
}

/* --- Home hero: form takes the right column --- */
.sec-02-hero .sec-02-hero__formcol { min-width: 0; margin-top: clamp(2rem, 5vw, 3rem); }
@media (min-width: 1024px) {
  .sec-02-hero .sec-02-hero__formcol {
    margin-top: 0;
    justify-self: end;
    width: min(400px, 100%);
  }
}
@media (max-width: 1023px) {
  .sec-02-hero .sec-02-hero__formcol { max-width: 560px; }
}
