/* ============================================================
   24-heroform — appointment form INSIDE the hero (home, service
   and condition pages). Scoped under .sec-24-heroform, plus the
   two-column hero grid it needs (.sec-00-inthero__grid on interior
   heroes; the home hero already has a two-column grid).
   Desktop (>=1024px): text left, form right.
   Tablet + mobile: text first, form stacked underneath.
   ============================================================ */

/* --- Interior hero grid (service + condition heroes) --- */
.sec-00-inthero .sec-00-inthero__grid {
  position: relative;
  z-index: 1;
  width: min(var(--container), 100% - 2.5rem);
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}
.sec-00-inthero .sec-00-inthero__text { min-width: 0; }

@media (min-width: 1024px) {
  .sec-00-inthero .sec-00-inthero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    column-gap: clamp(2.5rem, 4vw, 4rem);
  }
}

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

/* --- Card --- */
.sec-24-heroform {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
}
@media (min-width: 1024px) {
  .sec-24-heroform { max-width: 400px; }
}

.sec-24-heroform__card {
  background: var(--white);
  color: var(--text-on-bone);
  border-radius: var(--radius-card);
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow-lift), 0 0 0 1px hsl(0 0% 100% / 0.06);
  padding: clamp(1.25rem, 1rem + 1vw, 1.6rem);
  font-family: var(--font-body);
}

.sec-24-heroform__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.45rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
}

.sec-24-heroform__lead {
  margin-top: 0.3rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: var(--text-on-bone-dim);
}

.sec-24-heroform__form { display: grid; gap: 0.7rem; }

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

.sec-24-heroform__field { min-width: 0; }

.sec-24-heroform__label {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--text-on-bone);
}
.sec-24-heroform__req { color: var(--accent-strong); }

.sec-24-heroform__input {
  width: 100%;
  background: var(--bone);
  border: 1.5px solid var(--line-bone);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  color: var(--text-on-bone);
  font-family: var(--font-body);
  font-size: 1rem; /* 16px: stops iOS zoom-on-focus */
  line-height: 1.35;
  transition: border-color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.sec-24-heroform__input::placeholder { color: hsl(200 10% 48%); }
.sec-24-heroform__input:focus {
  border-color: var(--accent-strong);
  background: var(--white);
}
.sec-24-heroform__input.is-invalid { border-color: #b42318; }
.sec-24-heroform__input--textarea { resize: vertical; min-height: 4.2rem; }

.sec-24-heroform__error {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #b42318;
}
.sec-24-heroform__error:empty { display: none; }

.sec-24-heroform__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-on-bone-dim);
  cursor: pointer;
}
.sec-24-heroform__consent-box {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  accent-color: var(--accent-strong);
  cursor: pointer;
}

.sec-24-heroform__submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.2rem;
}

.sec-24-heroform__send-error {
  font-size: 0.82rem;
  color: #b42318;
}
.sec-24-heroform__send-error a { color: inherit; font-weight: 700; }

.sec-24-heroform__success { text-align: center; padding-block: 1rem; }
.sec-24-heroform__success-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
}
.sec-24-heroform__success-text {
  margin: 0.5rem 0 1.25rem;
  font-size: 0.92rem;
  color: var(--text-on-bone-dim);
}
