/* ============================================================
   12-heroform — compact single-page appointment form that lives
   INSIDE the page hero (home, services, conditions). Visual
   language matches the 12-booking panel (ink glass, accent focus).
   All selectors scoped under .sec-12-heroform.
   ============================================================ */

.sec-12-heroform {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  justify-self: end;
}

.sec-12-heroform .sec-12-heroform__panel {
  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: var(--radius-card);
  padding: clamp(1.25rem, 2.2vw, 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.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.sec-12-heroform .sec-12-heroform__panel.has-error {
  animation: sec-12-heroform-shake 420ms var(--ease-out);
}
@keyframes sec-12-heroform-shake {
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

.sec-12-heroform .sec-12-heroform__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
  letter-spacing: -0.01em;
  color: var(--white);
  outline: none;
}

.sec-12-heroform .sec-12-heroform__lead {
  margin-top: 0.3rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-on-ink-dim);
}

.sec-12-heroform .sec-12-heroform__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0.75rem;
  row-gap: 0.15rem;
}

.sec-12-heroform .sec-12-heroform__field { min-width: 0; }
.sec-12-heroform .sec-12-heroform__field--full { grid-column: 1 / -1; }

.sec-12-heroform .sec-12-heroform__hp { position: absolute; left: -9999px; }

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

.sec-12-heroform .sec-12-heroform__req { color: hsl(var(--accent-h) 70% 65%); }

.sec-12-heroform .sec-12-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.8rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem; /* 16px keeps iOS from zooming on focus */
  transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out);
}
.sec-12-heroform .sec-12-heroform__input::placeholder { color: hsl(190 15% 62%); }
.sec-12-heroform .sec-12-heroform__input:focus {
  outline: none;
  border-color: var(--accent);
  background: hsl(0 0% 100% / 0.08);
}
.sec-12-heroform .sec-12-heroform__input:focus-visible {
  box-shadow: 0 0 0 3px hsl(var(--accent-h) 70% 55% / 0.35);
}
.sec-12-heroform .sec-12-heroform__input.is-invalid { border-color: #ff7b6b; }
.sec-12-heroform .sec-12-heroform__input--textarea { resize: vertical; min-height: 4.25rem; }

.sec-12-heroform .sec-12-heroform__error {
  min-height: 1rem;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  color: #ff7b6b;
}

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

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

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

.sec-12-heroform .sec-12-heroform__call { margin-top: 0.5rem; }

html.reduced-motion .sec-12-heroform .sec-12-heroform__panel.has-error { animation: none; }

/* Narrow phones: stack every field */
@media (max-width: 420px) {
  .sec-12-heroform .sec-12-heroform__form { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   Hero layouts that host the form: text left, form right from
   768px up; stacked (text, then form) below. The hero grows to
   fit — nothing overlaps or escapes the hero boundaries.
   ------------------------------------------------------------ */

/* Interior heroes (services + conditions) */
.sec-00-inthero .sec-00-inthero__layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.sec-00-inthero .sec-00-inthero__layout .sec-00-inthero__text { min-width: 0; }
.sec-00-inthero .sec-00-inthero__layout h1 {
  font-size: clamp(2.1rem, 1.2rem + 3.2vw, 3.75rem);
}

@media (min-width: 768px) {
  .sec-00-inthero .sec-00-inthero__layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
    column-gap: clamp(1.75rem, 4vw, 4rem);
  }
}

@media (max-width: 767.98px) {
  .sec-12-heroform { max-width: none; justify-self: stretch; }
}

/* Home hero */
.sec-02-hero .sec-02-hero__inner--form .sec-12-heroform { margin-top: 2.25rem; }

@media (min-width: 768px) {
  .sec-02-hero .sec-02-hero__inner--form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
    align-items: center;
    column-gap: clamp(1.75rem, 4vw, 4rem);
  }
  .sec-02-hero .sec-02-hero__inner--form .sec-12-heroform { margin-top: 0; }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .sec-02-hero .sec-02-hero__inner--form .sec-02-hero__headline {
    font-size: clamp(2.5rem, 1rem + 4.6vw, 3.6rem);
  }
}
