html {
  scroll-behavior: smooth;
}

body {
  padding-bottom: 92px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1300;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 8px;
  background: #111111;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.lead-capture {
  padding: 42px 0 62px;
  background: #ffffff;
}

.lead-capture__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 36px;
  align-items: center;
  padding: 34px;
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 224, 0, 0.18), rgba(255, 255, 255, 0.96) 46%),
    #f6f7f8;
  box-shadow: 0 18px 44px rgba(18, 24, 38, 0.10);
}

.lead-capture__eyebrow {
  margin-bottom: 12px;
  color: #5f6b7a;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead-capture__copy h2 {
  max-width: 720px;
  margin: 0 0 14px;
  color: var(--dark, #111111);
  font-size: 2.25rem;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.lead-capture__copy p {
  max-width: 620px;
  margin: 0;
  color: var(--text-secondary, #5f6b7a);
  font-size: 1.05rem;
  line-height: 1.65;
}

.lead-capture__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.lead-capture__points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 8px;
  background: #ffffff;
  color: #20232a;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.08);
}

.lead-capture__form-wrap,
.lead-modal__panel {
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(18, 24, 38, 0.12);
}

.lead-capture__form-wrap {
  padding: 22px;
}

.lead-form {
  display: grid;
  gap: 14px;
}

.lead-form[hidden],
.lead-success[hidden] {
  display: none;
}

.lead-form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lead-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lead-form__field {
  display: grid;
  gap: 7px;
  color: #222222;
  font-size: 0.9rem;
  font-weight: 700;
}

.lead-form__field input,
.lead-form__field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: #111111;
  font: inherit;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lead-form__field input:focus,
.lead-form__field select:focus {
  border-color: #111111;
  box-shadow: 0 0 0 4px rgba(255, 224, 0, 0.28);
}

.lead-form__consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #4f5966;
  font-size: 0.86rem;
  line-height: 1.4;
}

.lead-form__consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--primary, #ffe000);
}

.lead-form__consent a {
  color: #111111;
  font-weight: 800;
}

.lead-form__error {
  display: none;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff2f0;
  color: #9f1d1d;
  font-size: 0.9rem;
  font-weight: 700;
}

.lead-form__error.is-visible {
  display: block;
}

.lead-form__submit[disabled] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.lead-success {
  display: grid;
  gap: 12px;
}

.lead-success strong {
  color: #111111;
  font-size: 1.35rem;
  line-height: 1.2;
}

.lead-success span {
  color: #4f5966;
  line-height: 1.55;
}

.lead-success--inline {
  min-height: 316px;
  align-content: center;
}

.lead-sticky {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 1100;
  display: flex;
  width: min(760px, calc(100% - 32px));
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px 12px 20px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 50px rgba(18, 24, 38, 0.18);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.lead-sticky__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.lead-sticky__text strong {
  color: #111111;
  font-size: 1rem;
}

.lead-sticky__text span {
  color: #5f6b7a;
  font-size: 0.9rem;
}

.lead-sticky .btn {
  flex: 0 0 auto;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: none;
}

.lead-modal.active {
  display: block;
}

.lead-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
}

.lead-modal__panel {
  position: relative;
  width: min(440px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  margin: 24px auto;
  overflow: auto;
  padding: 28px;
  animation: leadModalIn 0.22s ease both;
}

.lead-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: #f0f2f4;
  color: #111111;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lead-modal__close:hover {
  background: #e4e7eb;
  transform: scale(1.04);
}

.lead-modal__eyebrow {
  margin-bottom: 9px;
  color: #687383;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead-modal__panel h2 {
  margin: 0 42px 10px 0;
  color: #111111;
  font-size: 1.65rem;
  line-height: 1.16;
  letter-spacing: 0;
}

.lead-modal__panel p {
  margin: 0 0 18px;
  color: #5f6b7a;
  line-height: 1.55;
}

.lead-modal-open {
  overflow: hidden;
}

.legal-page {
  max-width: 860px;
  padding: 118px 20px 80px;
}

.legal-page h1 {
  margin: 0 0 18px;
  color: var(--dark, #111111);
  font-size: 2.5rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.legal-page h2 {
  margin: 34px 0 12px;
  color: var(--dark, #111111);
  font-size: 1.28rem;
  letter-spacing: 0;
}

.legal-page p,
.legal-page li {
  color: var(--text-secondary, #4f5966);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-page ul {
  margin: 0 0 0 20px;
  padding: 0;
}

.legal-page__muted {
  color: #7b8490;
  font-size: 0.95rem;
}

@keyframes leadModalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: 126px;
  }

  .lead-capture {
    padding: 28px 0 48px;
  }

  .lead-capture__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }

  .lead-capture__copy h2 {
    font-size: 1.8rem;
  }

  .legal-page h1 {
    font-size: 2rem;
  }

  .lead-form__row {
    grid-template-columns: 1fr;
  }

  .lead-sticky {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
  }

  .lead-sticky .btn {
    width: 100%;
  }

  .lead-sticky__text {
    text-align: center;
  }
}

@media (max-width: 520px) {
  .lead-capture__inner,
  .lead-capture__form-wrap,
  .lead-modal__panel {
    padding: 20px;
  }

  .lead-modal__panel {
    margin-top: 16px;
  }

  .lead-capture__points span {
    width: 100%;
  }
}
