/* ============================================================
   00-heroform — single-page appointment form that lives INSIDE
   the hero (home .sec-02-hero + every service/condition
   .sec-00-inthero). Desktop (>=1025px): copy left, form right.
   Tablet + mobile: copy first, form stacked underneath, still
   inside the hero. Markup: sections/hero-form.html
   ============================================================ */

/* --- Interior hero two-column layout (service + condition pages) --- */
.sec-00-inthero > .sec-00-inthero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: clamp(2rem, 5vw, 2.75rem);
}
.sec-00-inthero .sec-00-inthero__text { min-width: 0; }

@media (min-width: 1025px) {
  .sec-00-inthero > .sec-00-inthero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 400px);
    align-items: center;
    column-gap: clamp(2.5rem, 5vw, 4.5rem);
  }
  .sec-00-inthero .sec-00-inthero__grid h1 {
    font-size: clamp(2.4rem, 1.2rem + 3vw, 3.75rem);
  }
}

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

/* --- The form panel --- */
.sec-00-heroform {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  min-width: 0;
}
@media (min-width: 1024px) {
  .sec-02-hero .sec-00-heroform { justify-self: end; max-width: 400px; }
}
@media (min-width: 1025px) {
  .sec-00-inthero .sec-00-heroform { justify-self: end; max-width: 400px; }
}

.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.5vw, 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);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-on-ink);
}

.sec-00-heroform__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--white);
}
.sec-00-heroform__lead {
  margin: 0.35rem 0 1rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-on-ink-dim);
}

.sec-00-heroform__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.15rem 0.75rem;
}
.sec-00-heroform__field { min-width: 0; }
.sec-00-heroform__field--full { grid-column: 1 / -1; }

@media (max-width: 480px) {
  .sec-00-heroform__grid { grid-template-columns: minmax(0, 1fr); }
}

.sec-00-heroform__label {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
}

.sec-00-heroform__input {
  width: 100%;
  background: hsl(0 0% 100% / 0.05);
  border: 1.5px solid hsl(0 0% 100% / 0.22);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  color: var(--white);
  font: inherit;
  font-size: 1rem; /* >=16px: no iOS zoom on focus */
  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:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}
.sec-00-heroform__input.is-invalid { border-color: #ff7b6b; }
.sec-00-heroform__input--textarea {
  resize: vertical;
  min-height: 4.2rem;
  font-family: var(--font-body);
}

.sec-00-heroform__error {
  min-height: 1rem;
  margin: 0.2rem 0 0.25rem;
  font-size: 0.75rem;
  line-height: 1.3;
  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;
}
/* A2P consent checkbox: name="sms-consent" must never be removed (launch check) */
.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%; }

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

.sec-00-heroform__form[hidden],
.sec-00-heroform__success[hidden] { display: none; }

.sec-00-heroform__success { text-align: center; padding-block: 1rem; }
.sec-00-heroform__success-heading {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--white);
  outline: none;
}
.sec-00-heroform__success-text {
  margin: 0.5rem 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-on-ink-dim);
}
