/* ============================================================
   24-heroform — single-page appointment form that sits INSIDE the
   hero (home, every service page, every condition page). Light card
   on the dark hero, site fonts + accent. Scoped under .sec-24-heroform.
   ============================================================ */

.sec-24-heroform {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
}

.sec-24-heroform .sec-24-heroform__card {
  background: var(--white);
  color: var(--text-on-bone);
  border-radius: var(--radius-card);
  padding: clamp(1.15rem, 2.2vw, 1.6rem);
  box-shadow: var(--shadow-lift), 0 0 60px hsl(var(--accent-h) 70% 40% / 0.18);
  border-top: 4px solid var(--accent);
}

.sec-24-heroform .sec-24-heroform__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-on-bone);
  margin: 0;
}
.sec-24-heroform .sec-24-heroform__title:focus { outline: none; }

.sec-24-heroform .sec-24-heroform__lead {
  margin: 0.3rem 0 0.9rem;
  font-size: 0.85rem;
  color: var(--text-on-bone-dim);
}

.sec-24-heroform .sec-24-heroform__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 0.65rem;
}

.sec-24-heroform .sec-24-heroform__field { min-width: 0; }

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

.sec-24-heroform .sec-24-heroform__req { color: var(--accent); }

.sec-24-heroform .sec-24-heroform__input {
  width: 100%;
  background: var(--bone);
  border: 1.5px solid hsl(267 15% 82%);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  color: var(--text-on-bone);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out);
}
.sec-24-heroform .sec-24-heroform__input::placeholder { color: hsl(267 8% 50%); }
.sec-24-heroform .sec-24-heroform__input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px hsl(var(--accent-h) 60% 50% / 0.18);
}
.sec-24-heroform .sec-24-heroform__input[aria-invalid="true"] { border-color: #c0392b; }
.sec-24-heroform .sec-24-heroform__input--textarea { resize: vertical; min-height: 3.6rem; }

.sec-24-heroform .sec-24-heroform__error {
  min-height: 0.95rem;
  margin: 0.15rem 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #b3261e;
}

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

.sec-24-heroform .sec-24-heroform__submit {
  width: 100%;
  justify-content: center;
  padding-block: 0.8rem;
  font-size: 0.95rem;
}

.sec-24-heroform .sec-24-heroform__send-error {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: #b3261e;
}
.sec-24-heroform .sec-24-heroform__send-error a { color: inherit; font-weight: 700; }

.sec-24-heroform .sec-24-heroform__success {
  text-align: center;
  padding-block: 1rem;
  color: var(--accent);
}
.sec-24-heroform .sec-24-heroform__success .sec-24-heroform__title { margin-top: 0.75rem; }
.sec-24-heroform .sec-24-heroform__success .sec-24-heroform__lead { margin-bottom: 1.2rem; }

@media (max-width: 420px) {
  .sec-24-heroform .sec-24-heroform__row { grid-template-columns: 1fr; }
}
