/* ============================================================
   23-heroform — compact single-page appointment form card that
   lives INSIDE page heroes (sections/hero-form.html). Visual
   language follows the #booking panel (12-booking.css), scaled
   down. Hero placement/grid lives in 00-interior-hero.css and
   02-hero.css. All selectors scoped under .hero-form.
   ============================================================ */

.hero-form {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
}

.hero-form .hero-form__card {
  position: relative;
  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.2vw, 1.6rem);
  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);
  text-align: left;
}

.hero-form .hero-form__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-on-ink);
}

.hero-form .hero-form__sub {
  margin-top: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-on-ink-dim);
}

.hero-form .hero-form__form {
  display: flex;
  flex-direction: column;
}

.hero-form .hero-form__field + .hero-form__field { margin-top: 0.15rem; }

.hero-form .hero-form__label {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--text-on-ink);
}

.hero-form .hero-form__req { color: var(--accent-bright); }
.hero-form .hero-form__optional { font-weight: 400; font-size: 0.85em; opacity: 0.7; }

.hero-form .hero-form__input {
  display: block;
  width: 100%;
  background: hsl(0 0% 100% / 0.05);
  border: 1.5px solid hsl(0 0% 100% / 0.16);
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  color: var(--white);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out);
}
.hero-form .hero-form__input::placeholder { color: hsl(190 15% 62%); }
.hero-form .hero-form__input:focus {
  border-color: var(--accent);
  background: hsl(0 0% 100% / 0.08);
}
/* Dark card: global accent outline fails 3:1 here, so use the bright ring */
.hero-form .hero-form__input:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 2px;
}
.hero-form .hero-form__input.is-invalid { border-color: #ff7b6b; }
.hero-form .hero-form__input.is-invalid:focus-visible { outline-color: #ff7b6b; }

.hero-form .hero-form__input--textarea {
  resize: vertical;
  min-height: 3.6rem;
  font-family: var(--font-body);
}

.hero-form .hero-form__error {
  min-height: 0.95rem;
  margin-top: 0.2rem;
  font-size: 0.74rem;
  line-height: 1.25;
  color: #ff9d90;
}

.hero-form .hero-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.2rem 0 0.9rem;
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--text-on-ink-dim);
  cursor: pointer;
}
.hero-form .hero-form__consent-box {
  flex-shrink: 0;
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.1rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.hero-form .hero-form__submit {
  width: 100%;
  justify-content: center;
  padding-block: 0.75rem;
  font-size: 0.92rem;
}
.hero-form .hero-form__submit[disabled] { opacity: 0.7; cursor: progress; }

.hero-form .hero-form__send-error {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #ff9d90;
}
.hero-form .hero-form__send-error a,
.hero-form .hero-form__success-text a {
  color: var(--accent-bright);
  font-weight: 600;
}

.hero-form .hero-form__success { padding-block: 0.5rem; }
.hero-form .hero-form__success-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-on-ink);
  outline: none;
}
.hero-form .hero-form__success-text {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-on-ink-dim);
}

@media (max-width: 899px) {
  .hero-form { max-width: none; }
}
