/* ============================================================
   00-heroform — single-page appointment form that sits INSIDE
   the hero (home, every service page, every condition page).
   Posts to the same Netlify "booking" form as section 12.
   Also owns the interior-hero two-column grid (text | form).
   ============================================================ */

/* --- Interior hero grid: text left, form right (stacked < 1024px) --- */
.sec-00-inthero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}
.sec-00-inthero__text { min-width: 0; }

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

/* --- Form panel --- */
.sec-00-heroform {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  min-width: 0;
}
@media (min-width: 1024px) {
  .sec-02-hero .sec-00-heroform { justify-self: end; }
}
@media (max-width: 1023px) {
  .sec-02-hero .sec-00-heroform { margin-top: 2.5rem; }
  .sec-00-heroform { max-width: 520px; }
}

.sec-00-heroform__panel {
  background: linear-gradient(160deg, hsl(190 28% 13% / 0.94), hsl(190 30% 8% / 0.94));
  border: 1px solid hsl(0 0% 100% / 0.1);
  border-radius: var(--radius-card);
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  box-shadow: var(--shadow-lift), 0 0 0 1px hsl(var(--accent-h) 70% 55% / 0.08) inset, 0 0 60px hsl(var(--accent-h) 70% 40% / 0.14);
  backdrop-filter: blur(16px);
  color: var(--text-on-ink);
}

.sec-00-heroform__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: hsl(var(--accent-h) 70% 50% / 0.16);
  color: hsl(var(--accent-h) 80% 75%);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.sec-00-heroform__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.45rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
}
.sec-00-heroform__lead {
  margin-top: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-on-ink-dim);
}

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

.sec-00-heroform__field { min-width: 0; margin-bottom: 0.35rem; }

.sec-00-heroform__label {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-on-ink);
}
.sec-00-heroform__label span { color: var(--ember); }

.sec-00-heroform__input {
  width: 100%;
  background: hsl(0 0% 100% / 0.05);
  border: 1.5px solid hsl(0 0% 100% / 0.16);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out);
}
.sec-00-heroform__input::placeholder { color: hsl(190 15% 62%); }
.sec-00-heroform__input:focus {
  outline: none;
  border-color: var(--accent);
  background: hsl(0 0% 100% / 0.08);
}
.sec-00-heroform__input.is-invalid { border-color: #ff7b6b; }
.sec-00-heroform__input--textarea { resize: vertical; min-height: 3.6rem; }

.sec-00-heroform__error {
  min-height: 1rem;
  margin-top: 0.2rem;
  font-size: 0.74rem;
  color: #ff9d90;
}

.sec-00-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-ink-dim);
  cursor: pointer;
}
.sec-00-heroform__consent-box {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.sec-00-heroform__submit { width: 100%; justify-content: center; }

.sec-00-heroform__send-error {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #ff9d90;
}
.sec-00-heroform__send-error a { color: var(--white); }
