/* ============================================================
   00-hero-form — shared single-page appointment form that lives
   INSIDE the home hero and every condition/service hero
   (sections/hero-form.html). Card styling mirrors the booking
   panel (12-booking) so the brand reads the same.
   Layout: text left, form right from 768px up; stacked below.
   ============================================================ */

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

.sec-00-heroform .sec-00-heroform__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, 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(18px);
  -webkit-backdrop-filter: blur(18px);
  text-align: left;
}
.sec-00-heroform .sec-00-heroform__card.has-error { animation: sec-00-heroform-shake 420ms var(--ease-out); }
@keyframes sec-00-heroform-shake {
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}
html.reduced-motion .sec-00-heroform .sec-00-heroform__card.has-error { animation: none; }

.sec-00-heroform .sec-00-heroform__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-on-ink);
  outline: none;
}

.sec-00-heroform .sec-00-heroform__lead {
  margin-top: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-on-ink-dim);
}
.sec-00-heroform .sec-00-heroform__lead a,
.sec-00-heroform .sec-00-heroform__send-error a {
  color: hsl(var(--accent-h) 75% 70%);
  font-weight: 600;
}

/* --- Fields --- */
.sec-00-heroform .sec-00-heroform__form {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sec-00-heroform .sec-00-heroform__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.65rem;
}

.sec-00-heroform .sec-00-heroform__field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sec-00-heroform .sec-00-heroform__label {
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-on-ink);
}
.sec-00-heroform .sec-00-heroform__req { color: hsl(var(--accent-h) 75% 70%); }

.sec-00-heroform .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.6rem 0.8rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem; /* 16px: stops iOS zoom-on-focus */
  transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out);
}
.sec-00-heroform .sec-00-heroform__input::placeholder { color: hsl(190 15% 62%); }
.sec-00-heroform .sec-00-heroform__input:focus {
  outline: none;
  border-color: var(--accent);
  background: hsl(0 0% 100% / 0.08);
}
.sec-00-heroform .sec-00-heroform__input:focus-visible {
  outline: 2px solid hsl(var(--accent-h) 75% 70%);
  outline-offset: 2px;
}
.sec-00-heroform .sec-00-heroform__input.is-invalid { border-color: #ff7b6b; }
.sec-00-heroform .sec-00-heroform__input--textarea {
  resize: vertical;
  min-height: 3.6rem;
}

.sec-00-heroform .sec-00-heroform__error {
  min-height: 0.95rem;
  margin-top: 0.15rem;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.25;
  color: #ff7b6b;
}

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

/* A2P consent checkbox: name="sms-consent" must never be removed (launch check) */
.sec-00-heroform .sec-00-heroform__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.2rem 0 0.9rem;
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--text-on-ink-dim);
  cursor: pointer;
}
.sec-00-heroform .sec-00-heroform__consent-box {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.sec-00-heroform .sec-00-heroform__submit {
  width: 100%;
  padding-block: 0.8rem;
  font-size: 0.95rem;
}

.sec-00-heroform .sec-00-heroform__send-error {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #ff9d90;
}

.sec-00-heroform .sec-00-heroform__success .sec-00-heroform__lead { margin-bottom: 0; }

/* --- Interior heroes (condition + service): form is the FIRST element of
   the hero content in the markup; from 768px up it is placed in the right
   column with the heading copy on the left. --- */
.sec-00-inthero .sec-00-inthero__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .sec-00-inthero .sec-00-inthero__split {
    grid-template-columns: minmax(0, 1fr) minmax(0, clamp(300px, 36vw, 400px));
    align-items: center;
    column-gap: clamp(1.5rem, 4vw, 3.5rem);
  }
  .sec-00-inthero .sec-00-inthero__split > .sec-00-heroform { grid-column: 2; grid-row: 1; }
  .sec-00-inthero .sec-00-inthero__split > .sec-00-inthero__text { grid-column: 1; grid-row: 1; }
}

@media (max-width: 767px) {
  .sec-00-inthero .sec-00-heroform { max-width: none; justify-self: stretch; }
}

/* --- Home hero: copy left, form right (replaces the decorative figure) --- */
@media (min-width: 768px) {
  .sec-02-hero .sec-02-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, clamp(300px, 34vw, 400px));
    align-items: center;
    column-gap: clamp(1.5rem, 4vw, 4rem);
  }
}
@media (max-width: 767px) {
  .sec-02-hero .sec-00-heroform { max-width: none; margin-top: 2.5rem; }
}

@media (max-width: 380px) {
  .sec-00-heroform .sec-00-heroform__row { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
