/* ============================================================
   70-heroform — single-page appointment form that lives INSIDE
   the hero (home, every service page, every condition page).
   Shared fragment: sections/hero-form.html. Posts to the same
   Netlify "booking" form as section 12.
   Layout: copy left / form right at >=1024px; stacked (copy
   first, form under) on tablet and mobile.
   ============================================================ */

/* --- Interior hero two-column layout --- */
.sec-00-inthero .sec-00-inthero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  width: 100%;
}
.sec-00-inthero .sec-00-inthero__copy { min-width: 0; }

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

/* --- Home hero: form takes the right column --- */
@media (min-width: 1024px) {
  .sec-02-hero .sec-02-hero__inner--form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  }
}
@media (max-width: 1023px) {
  .sec-02-hero .sec-02-hero__inner--form .sec-70-heroform {
    margin-top: clamp(2rem, 5vw, 3rem);
  }
}

/* --- Card --- */
.sec-70-heroform {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  justify-self: end;
}
@media (max-width: 1023px) {
  .sec-70-heroform { max-width: 560px; justify-self: start; }
}

.sec-70-heroform .sec-70-heroform__card {
  background: var(--white);
  color: var(--text-on-bone);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
  padding: clamp(1.25rem, 2.5vw, 1.6rem);
  border-top: 4px solid var(--accent);
}

.sec-70-heroform .sec-70-heroform__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-on-bone);
  margin: 0;
}
.sec-70-heroform .sec-70-heroform__title:focus { outline: none; }

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

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

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

.sec-70-heroform .sec-70-heroform__input {
  display: block;
  width: 100%;
  padding: 0.6rem 0.8rem;
  font: inherit;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-on-bone);
  background: var(--bone);
  border: 1.5px solid var(--line-bone);
  border-radius: 10px;
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.sec-70-heroform .sec-70-heroform__input::placeholder { color: hsl(177 8% 50%); }
.sec-70-heroform .sec-70-heroform__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--white);
}
.sec-70-heroform .sec-70-heroform__input.is-invalid { border-color: #b42318; }
.sec-70-heroform .sec-70-heroform__input--textarea { resize: vertical; min-height: 4.5rem; }

.sec-70-heroform .sec-70-heroform__error {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  line-height: 1.3;
  color: #b42318;
}
.sec-70-heroform .sec-70-heroform__error:empty { display: none; }

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

.sec-70-heroform .sec-70-heroform__submit {
  width: 100%;
  margin-top: 1rem;
  padding-block: 0.8rem;
  font-size: 0.95rem;
}

.sec-70-heroform .sec-70-heroform__send-error {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: #b42318;
}
.sec-70-heroform .sec-70-heroform__send-error a { color: inherit; font-weight: 600; }

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