/* ============================================================
   23-heroform — appointment form inside the hero (home, every
   service + condition page). Text column left, form card right
   on desktop; stacked (text first, then form) on tablet/mobile.
   Scoped under .sec-23-heroform / .sec-23-heroform-layout.
   ============================================================ */

/* --- Interior hero layout (service + condition heroes) --- */
.sec-23-heroform-layout {
  position: relative;
  z-index: 1;
}
.sec-23-heroform-layout__text { min-width: 0; }

@media (min-width: 1024px) {
  .sec-23-heroform-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
    align-items: center;
    column-gap: clamp(2.5rem, 5vw, 4.5rem);
  }
}

/* --- Form card --- */
.sec-23-heroform {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 390px;
  margin-top: clamp(2rem, 5vw, 2.75rem);
}

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

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

.sec-23-heroform__card {
  background: linear-gradient(160deg, hsl(190 28% 13% / 0.92), hsl(190 30% 8% / 0.92));
  border: 1px solid hsl(0 0% 100% / 0.09);
  border-radius: 24px;
  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 70px hsl(var(--accent-h) 70% 40% / 0.12);
  backdrop-filter: blur(18px);
}

.sec-23-heroform__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--white);
}

.sec-23-heroform__lead {
  margin-top: 0.35rem;
  margin-bottom: 1.1rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-on-ink-dim);
}

.sec-23-heroform__form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sec-23-heroform__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sec-23-heroform__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-on-ink);
}

.sec-23-heroform__req { color: hsl(var(--accent-h) 70% 62%); }

.sec-23-heroform__input {
  width: 100%;
  background: hsl(0 0% 100% / 0.05);
  border: 1.5px solid hsl(0 0% 100% / 0.16);
  border-radius: 12px;
  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-23-heroform__input::placeholder { color: hsl(190 15% 62%); }
.sec-23-heroform__input:focus {
  outline: none;
  border-color: var(--accent);
  background: hsl(0 0% 100% / 0.08);
}
.sec-23-heroform__input.is-invalid { border-color: #ff7b6b; }
.sec-23-heroform__input--textarea {
  resize: vertical;
  min-height: 3.6rem;
}

.sec-23-heroform__error {
  font-size: 0.78rem;
  font-weight: 600;
  color: #ff7b6b;
}
.sec-23-heroform__error:empty { display: none; }

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

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

.sec-23-heroform__send-error {
  font-size: 0.8rem;
  color: #ff7b6b;
}
.sec-23-heroform__send-error a { color: inherit; }
