/* Page form — /book and /contact (layout ref: den-tora.framer.website/contact-v1 — "Contact form"):
   eyebrow + headline on the left under a hairline, the form in a tinted panel on the right
   (filled fields, 2-column grid) with a full-width submit bar closing the panel. */
.pform__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 48px clamp(40px, 6vw, 112px);
  align-items: start;
}
.pform__intro {
  position: sticky;
  top: 112px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.pform__intro .rd-h2 { max-width: 12ch; }

/* what happens next / other ways to reach us */
.pform__steps { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: step; }
.pform__steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  counter-increment: step;
}
.pform__steps li::before {
  content: "0" counter(step);
  grid-row: span 2;
  font: 300 22px/1.2 var(--font-display);
  color: var(--gold-deep);
}
.pform__steps strong { font-size: 16px; font-weight: 600; color: var(--ink-strong); }
.pform__steps span { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

.pform__panel {
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--sand);
}
.pform__form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; padding: clamp(24px, 3vw, 40px); }
.pform__head { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.pform__title { margin: 0; font: 500 var(--fs-h3)/1.25 var(--font); letter-spacing: var(--track-h3); color: var(--ink-strong); }
.pform__head p { margin: 0; max-width: 52ch; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

.pfield { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.pfield--full { grid-column: 1 / -1; }
.pfield__label { padding: 0; font: 500 14px/20px var(--font); color: var(--ink-strong); }
.pfield__label small { font-weight: 400; color: var(--ink-faint); }
.pfield input,
.pfield select,
.pfield textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(11, 41, 93, .1);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .75);
  color: var(--ink-strong);
  font: 16px/1.5 var(--font);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.pfield textarea { min-height: 132px; padding: 14px 16px; resize: vertical; }
.pfield select {
  appearance: none;
  padding-right: 44px;
  background: rgba(255, 255, 255, .75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%230B295D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 18px center;
}
.pfield ::placeholder { color: var(--ink-faint); }
.pfield input:focus-visible,
.pfield select:focus-visible,
.pfield textarea:focus-visible {
  outline: none;
  border-color: var(--gold-ink);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(206, 158, 69, .22);
}
.pfield input:user-invalid,
.pfield select:user-invalid { border-color: #B4462F; }

/* radio choices as pills (clinic, time of day) */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(11, 41, 93, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  color: var(--ink-strong);
  font: 400 15px/1.3 var(--font);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(206, 158, 69, .35); }
@media (hover: hover) { .choice input:not(:checked):hover + span { border-color: rgba(11, 41, 93, .32); } }

.pform__note { grid-column: 1 / -1; margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-faint); }
.pform__status { grid-column: 1 / -1; margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-strong); }
.pform__status:empty { display: none; }

/* the panel's closing bar: the primary gold button, full width */
.gold-pill.pform__submit {
  width: 100%;
  min-height: 64px;
  justify-content: center;
  border-radius: 0;
  font-size: 16px;
  box-shadow: none;
}
.gold-pill.pform__submit:active { transform: none; filter: brightness(.97); }
.gold-pill.pform__submit:focus-visible { outline: 2px solid var(--navy); outline-offset: -6px; }

@media (max-width: 1023.98px) {
  .pform__grid { grid-template-columns: 1fr; }
  .pform__intro { position: static; }
}
@media (max-width: 599.98px) {
  .pform__form { grid-template-columns: 1fr; gap: 20px; }
}
