/* ============================================================
   24-heroform — appointment form card inside the hero.
   Desktop (>=1024px): copy left, form right (grid lives on the
   hero inner: .sec-02-hero__inner / .sec-00-inthero__grid).
   Tablet/mobile: copy first, form stacked underneath, still
   inside the hero section.
   ============================================================ */

.sec-24-heroform {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  margin-top: 2.5rem;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

@media (min-width: 1024px) {
  .sec-24-heroform {
    margin-top: 0;
    justify-self: end;
  }
}

@media (max-width: 1023px) {
  .sec-24-heroform { max-width: 560px; }
}

.sec-24-heroform__card {
  background: hsl(195 30% 10% / 0.78);
  border: 1px solid hsl(0 0% 100% / 0.14);
  border-radius: var(--radius-card);
  padding: clamp(1.25rem, 1rem + 1vw, 1.6rem);
  box-shadow: 0 24px 60px hsl(200 40% 3% / 0.45);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--text-on-ink);
}

.sec-24-heroform__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin: 0;
}

.sec-24-heroform__intro {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-on-ink-dim);
}

.sec-24-heroform__form { margin-top: 0.9rem; }
.sec-24-heroform__hp { display: none; }

.sec-24-heroform__req-note {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  color: var(--text-on-ink-dim);
}

.sec-24-heroform__field { margin-bottom: 0.35rem; }

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

.sec-24-heroform__req { color: hsl(var(--accent-h) 85% 68%); }

.sec-24-heroform__input {
  width: 100%;
  min-height: 44px;
  background: hsl(0 0% 100% / 0.05);
  border: 1.5px solid hsl(0 0% 100% / 0.18);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  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-24-heroform__input::placeholder { color: hsl(190 15% 62%); }
.sec-24-heroform__input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
  background: hsl(0 0% 100% / 0.08);
}
.sec-24-heroform__input[aria-invalid="true"] { border-color: #ff7b6b; }
.sec-24-heroform__input--textarea {
  resize: vertical;
  min-height: 3.6rem;
}

.sec-24-heroform__error {
  margin: 0.25rem 0 0;
  min-height: 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ff7b6b;
}
.sec-24-heroform__error:not(:empty)::before { content: "\26A0\FE0E  "; }

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

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

.sec-24-heroform__send-error {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: #ff9c8f;
}
.sec-24-heroform__send-error a,
.sec-24-heroform__success a { color: var(--white); text-decoration: underline; }

.sec-24-heroform__success {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--text-on-ink-dim);
}
.sec-24-heroform__success-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
  margin: 0 0 0.4rem;
}

/* --- Hero layout hooks (form sits inside the hero's own container) --- */

/* Interior heroes (service + condition pages) */
.sec-00-inthero__text { min-width: 0; }
@media (min-width: 1024px) {
  .sec-00-inthero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    align-items: center;
    column-gap: clamp(2rem, 4vw, 4rem);
  }
}
.sec-00-inthero:has(.sec-24-heroform) { min-height: 0; }
