/* Lead form on the booking page (Wix Forms). Uses the colour tokens from styles.css. */
:root {
  --danger: #ff7b7b;
  --danger-soft: rgba(255, 123, 123, 0.1);
  --input-bg: #12151b;
}

.book-panel { display: grid; gap: 20px; min-width: 0; }
.lead-box {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(22px, 4vw, 34px); display: grid; gap: 22px; min-width: 0;
}
.panel-head { display: grid; gap: 6px; }
.panel-step { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.panel-head h3 { font-size: 22px; }
.cal-head { padding: 24px 26px 8px; }
.calendly-box { scroll-margin-top: 90px; }

.lead-form { display: grid; gap: 18px; min-width: 0; }
.field { display: grid; gap: 7px; min-width: 0; }
.field-label { font-size: 14px; font-weight: 600; color: var(--fg); }
.req { color: var(--accent); margin-left: 3px; }
.input {
  width: 100%; min-width: 0; font: inherit; font-size: 16px; line-height: 1.4; color: var(--fg);
  background: var(--input-bg); border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input::placeholder { color: var(--muted); opacity: .6; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input[aria-invalid="true"] { border-color: var(--danger); }
textarea.input { min-height: 110px; resize: vertical; }
.field-help { font-size: 13px; color: var(--muted); }
.field-error { font-size: 13px; color: var(--danger); }
.field-error:empty { display: none; }

.choice-group { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.choice-group legend { padding: 0; margin-bottom: 4px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.check input[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 2px; }

.form-error {
  display: grid; gap: 10px; justify-items: start; font-size: 14px; color: var(--danger);
  background: var(--danger-soft); border: 1px solid rgba(255, 123, 123, .35); border-radius: 10px; padding: 12px 14px;
}
.form-error .btn { color: var(--fg); }
.lead-submit { width: 100%; white-space: normal; }
.lead-submit[disabled] { opacity: .7; cursor: progress; transform: none; box-shadow: none; }
.privacy-note { font-size: 13px; color: var(--muted); text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Loading placeholder while the form is fetched */
.skeleton { display: grid; gap: 10px; }
.skel {
  display: block; height: 48px; border-radius: 10px;
  background: linear-gradient(90deg, var(--surface) 0%, var(--line) 50%, var(--surface) 100%);
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite;
}
.skel.short { height: 12px; width: 35%; margin-top: 8px; }
.skel.button { height: 54px; margin-top: 12px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }