/* Lead form, thank-you page and booking embed.
   Plain CSS (no build step). Used on the main site and the /lp/* landing pages. */

.lead-form {
  --lf-brand: var(--color-brand, #2858b8);
  --lf-brand-strong: var(--color-brand-strong, #1d4492);
  --lf-text: var(--color-text, #292c33);
  --lf-muted: var(--color-text-secondary, #626772);
  --lf-border: var(--color-border, #dde1e8);
  --lf-error: #c62839;
  display: grid;
  gap: 1rem;
  scroll-margin-top: 6.5rem; /* clear the sticky header when jumping to #lead-form-... */
  text-align: start;
  color: var(--lf-text);
}

.lead-form__grid {
  display: grid;
  gap: 0.9rem 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .lead-form__grid { grid-template-columns: 1fr 1fr; }
  .lead-form__field--wide { grid-column: 1 / -1; }
}

.lead-form__field {
  display: grid;
  gap: 0.35rem;
  min-inline-size: 0;
}

.lead-form__field > span:first-child {
  font-size: 0.875rem;
  font-weight: 600;
}

.lead-form__field small { font-weight: 400; color: var(--lf-muted); }

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"],
.lead-form select,
.lead-form textarea {
  appearance: none;
  background: #fff;
  border: 1px solid var(--lf-border);
  border-radius: 0.6rem;
  color: var(--lf-text);
  font: inherit;
  font-size: 1rem; /* 16px stops iOS zooming into fields */
  inline-size: 100%;
  min-block-size: 3rem;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lead-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23626772' stroke-width='1.6'/%3E%3C/svg%3E");
  background-position: right 0.9rem center;
  background-repeat: no-repeat;
  padding-inline-end: 2.4rem;
}

.lead-form textarea { min-block-size: 5.5rem; resize: vertical; }

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--lf-brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lf-brand) 22%, transparent);
  outline: none;
}

.lead-form [aria-invalid="true"] { border-color: var(--lf-error); }

.lead-form__phone {
  align-items: stretch;
  display: flex;
}

.lead-form__prefix {
  align-items: center;
  background: var(--color-surface-secondary, #f6f7fa);
  border: 1px solid var(--lf-border);
  border-inline-end: 0;
  border-radius: 0.6rem 0 0 0.6rem;
  color: var(--lf-muted);
  display: flex;
  font-weight: 600;
  padding-inline: 0.75rem;
}

.lead-form__phone input[type="tel"] { border-radius: 0 0.6rem 0.6rem 0; }

.lead-form__error {
  color: var(--lf-error);
  font-size: 0.8125rem;
  font-weight: 600;
}

.lead-form__alert {
  background: #fdecee;
  border: 1px solid #f3b7bf;
  border-radius: 0.6rem;
  color: #8f1c2a;
  font-weight: 600;
  margin: 0;
  padding: 0.75rem 1rem;
}

.lead-form__consent {
  align-items: start;
  display: grid;
  font-size: 0.8125rem;
  gap: 0.6rem;
  grid-template-columns: auto 1fr;
  line-height: 1.5;
}

.lead-form__consent input { accent-color: var(--lf-brand); block-size: 1.15rem; inline-size: 1.15rem; margin-block-start: 0.15rem; }
.lead-form__consent .lead-form__error { grid-column: 2; }
.lead-form__consent a { color: var(--lf-brand); }

.lead-form__trap {
  block-size: 1px;
  inline-size: 1px;
  inset-inline-start: -9999px;
  overflow: hidden;
  position: absolute;
}

.lead-form__verification { min-block-size: 65px; }

.lead-form__submit {
  align-items: center;
  background: var(--lf-brand);
  border: 0;
  border-radius: 0.7rem;
  box-shadow: 0 0.35rem 0.9rem rgba(18, 63, 163, 0.18);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  gap: 0.5rem;
  inline-size: 100%;
  justify-content: center;
  min-block-size: 3.25rem;
  padding: 0.8rem 1.25rem;
}

.lead-form__submit:hover,
.lead-form__submit:focus-visible { background: var(--lf-brand-strong); }

.lead-form__note {
  color: var(--lf-muted);
  font-size: 0.8125rem;
  margin: 0;
  text-align: center;
}

/* Contact page card holds the new form */
#contact-form, #enquiry { scroll-margin-top: 6.5rem; }
.contact-form-card .lead-form { margin-block-start: 1.25rem; }
.contact-form-card__address { color: var(--lf-muted, #626772); font-style: normal; margin-block-start: 1.25rem; text-align: start; }

/* ---------- Thank-you / Book-a-call pages ---------- */
.lead-page {
  background: linear-gradient(180deg, var(--color-surface-accent, #edf2ff) 0%, var(--color-canvas, #fdfcf9) 22rem);
  padding-block: clamp(6.5rem, 12vw, 9rem) clamp(3rem, 8vw, 5rem);
}

.lead-page__inner {
  display: grid;
  gap: 1.25rem;
  margin-inline: auto;
  max-inline-size: 60rem;
  text-align: center;
}

.lead-page__eyebrow {
  color: var(--color-brand, #2858b8);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0;
}

.lead-page__title {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  margin: 0;
}

.lead-page__lead {
  color: var(--color-text-secondary, #626772);
  font-size: 1.075rem;
  margin: 0 auto;
  max-inline-size: 42rem;
}

.lead-page__backup {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.lead-page__backup p { font-weight: 600; margin: 0; }
.lead-page__backup .button { inline-size: auto; padding-inline: 1.5rem; }
.lead-page__meta { color: var(--color-text-secondary, #626772); font-size: 0.9rem; margin: 0; }

.booking-embed {
  background: #fff;
  border: 1px solid var(--color-border, #dde1e8);
  border-radius: 1rem;
  box-shadow: 0 1rem 2.5rem rgba(41, 44, 51, 0.06);
  overflow: hidden;
}

.booking-embed__frame {
  border: 0;
  block-size: 700px;
  display: block;
  inline-size: 100%;
  min-inline-size: 320px;
}

@media (max-width: 640px) {
  .booking-embed__frame { block-size: 900px; }
}

.booking-embed__pending { padding: 2rem 1.5rem; }
.booking-embed__pending p { margin: 0.25rem 0; }
