/* ============================================================
   00-hero-form — appointment form inside service + condition heroes.
   The hero section carries .sec-00-inthero--form; its .container wraps
   the existing copy in .sec-00-inthero__copy and the form card beside it.
   Desktop (>=1024px): copy left, form right. Below: form stacks under
   the copy. Card + fields mirror the 12-booking panel styling.
   ============================================================ */

.sec-00-inthero--form > .container {
  position: relative; /* above the ::before glow */
  /* No width here: the shared .container width (min(1200px, 100% - 2.5rem))
     must apply, or the hero content runs edge to edge. */
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 1024px) {
  .sec-00-inthero--form > .container {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    gap: clamp(2.5rem, 4vw, 4.5rem);
  }
  .sec-00-inthero.sec-00-inthero--form h1 {
    font-size: clamp(2.4rem, 1.2rem + 3.2vw, 4rem);
  }
}

.sec-00-inthero--form .sec-00-inthero__copy { min-width: 0; }

.sec-00-heroform {
  width: 100%;
  max-width: 560px;
}
@media (min-width: 1024px) {
  .sec-00-heroform { max-width: none; }
}

.sec-00-heroform__card {
  position: relative;
  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-lg);
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  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);
  -webkit-backdrop-filter: blur(18px);
}

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

.sec-00-heroform__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.7rem);
  line-height: 1.15;
  color: var(--text-on-ink);
}
.sec-00-heroform__title:focus { outline: none; }

.sec-00-heroform__intro {
  margin-top: 0.45rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-on-ink-dim);
}

.sec-00-heroform__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 0.85rem;
}
@media (max-width: 480px) {
  .sec-00-heroform__row { grid-template-columns: 1fr; }
}

.sec-00-heroform__field { min-width: 0; }

.sec-00-heroform__label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-on-ink);
}
.sec-00-heroform__opt { font-weight: 400; color: var(--text-on-ink-dim); }

.sec-00-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.75rem 0.95rem;
  color: var(--white);
  font-family: var(--font-body);
  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);
  box-shadow: 0 0 0 3px hsl(var(--accent-h) 70% 60% / 0.35);
}
.sec-00-heroform__input.is-invalid { border-color: #ff7b6b; }

.sec-00-heroform__error {
  min-height: 1.05rem;
  margin-top: 0.25rem;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ff7b6b;
}

.sec-00-heroform__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0.9rem;
  margin-bottom: 1.15rem;
  font-size: 0.74rem;
  line-height: 1.5;
  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: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.sec-00-heroform__submit { width: 100%; }
.sec-00-heroform__submit[disabled] { opacity: 0.7; cursor: progress; }

.sec-00-heroform__send-error {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: #ff9d90;
}
.sec-00-heroform__send-error a { color: var(--text-on-ink); font-weight: 600; }

.sec-00-heroform__success[hidden],
.sec-00-heroform__form[hidden] { display: none; }
.sec-00-heroform__call { margin-top: 0.5rem; color: var(--text-on-ink); }

/* --- Homepage hero (02-hero): the form takes the right grid column at
   >=1024px (02-hero.css already defines the 58/42 grid); below that it
   stacks under the copy. --- */
.sec-02-hero .sec-00-heroform {
  position: relative;
  z-index: 1;
  margin-top: clamp(2rem, 6vw, 3rem);
}
@media (min-width: 1024px) {
  .sec-02-hero .sec-00-heroform {
    margin-top: 0;
    max-width: 440px;
    justify-self: end;
  }
}
