.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sidebar .sidebar-form button.sidebar-form__register,
.sidebar .sidebar-form button.sidebar-form__existing {
  font-family: inherit;
  cursor: pointer;
}

.sidebar .sidebar-form button.sidebar-form__register {
  border: 0;
}

.sidebar .sidebar-form button.sidebar-form__existing {
  padding: 0;
  border: 0;
  background: transparent;
}

.modal.lead-modal,
.modal.lead-success {
  box-sizing: border-box;
  padding: 3.2rem 2rem;
  background: rgba(16, 24, 12, 0.56);
  backdrop-filter: blur(0.7rem);
  z-index: 220;
}

.modal.lead-modal .lead-modal__dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(22rem, 0.78fr) minmax(34rem, 1.22fr);
  width: min(92rem, 100%);
  max-width: 92rem;
  min-height: 58rem;
  margin: max(1rem, 3vh) auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(155, 213, 86, 0.22);
  border-radius: 3rem;
  background: #fff;
  color: #1d1d1d;
  text-align: left;
  box-shadow: 0 3rem 8rem rgba(14, 24, 8, 0.24);
}

.modal.lead-modal .lead-modal__close,
.modal.lead-success .lead-modal__close {
  position: absolute;
  top: 1.8rem;
  right: 1.8rem;
  z-index: 6;
  display: grid;
  width: 4rem;
  height: 4rem;
  padding: 0;
  place-items: center;
  border: 1px solid #e1e8dc;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #44513e;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.modal.lead-modal .lead-modal__close::before,
.modal.lead-modal .lead-modal__close::after,
.modal.lead-success .lead-modal__close::before,
.modal.lead-success .lead-modal__close::after {
  display: none;
}

.modal.lead-modal .lead-modal__close:hover,
.modal.lead-modal .lead-modal__close:focus-visible,
.modal.lead-success .lead-modal__close:hover,
.modal.lead-success .lead-modal__close:focus-visible {
  border-color: #9bd556;
  color: #5f9424;
  transform: rotate(4deg);
  outline: none;
}

.lead-modal__close svg {
  width: 2rem;
  height: 2rem;
}

.lead-modal__visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 18%, rgba(206, 244, 160, 0.78), transparent 35%),
    linear-gradient(145deg, #ecf8df 0%, #dcedca 54%, #cbe5ad 100%);
}

.lead-modal__visual::before {
  content: "ParadTrade";
  position: absolute;
  top: 4.5rem;
  left: 4rem;
  z-index: 2;
  color: #21331a;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.lead-modal__visual::after {
  content: "";
  position: absolute;
  right: -12rem;
  bottom: -12rem;
  width: 34rem;
  height: 34rem;
  border: 7rem solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
}

.lead-modal__visual-grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(74, 112, 41, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 112, 41, 0.1) 1px, transparent 1px);
  background-size: 4rem 4rem;
  -webkit-mask-image: linear-gradient(to top right, #000 15%, transparent 82%);
  mask-image: linear-gradient(to top right, #000 15%, transparent 82%);
}

.lead-modal__visual svg {
  position: absolute;
  right: -1rem;
  bottom: 8rem;
  z-index: 1;
  width: 112%;
  height: auto;
  overflow: visible;
}

.lead-modal__visual-area {
  fill: rgba(255, 255, 255, 0.38);
}

.lead-modal__visual-line {
  stroke: #638f35;
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0.5rem 0.8rem rgba(72, 113, 32, 0.16));
}

.lead-modal__visual circle {
  fill: #fff;
  stroke: #638f35;
  stroke-width: 2.5;
}

.lead-form {
  position: relative;
  z-index: 2;
  align-self: center;
  width: 100%;
  padding: 6.2rem 6.4rem 5rem;
}

.lead-form__header {
  padding-right: 2.8rem;
}

.lead-form__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #5f9424;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.lead-form__eyebrow::before {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: #9bd556;
  box-shadow: 0 0 0 0.5rem rgba(155, 213, 86, 0.15);
}

.lead-form__title {
  margin-top: 1.6rem;
  color: #1d1d1d;
  font-size: clamp(2.8rem, 3vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-align: left;
}

.lead-form__description {
  max-width: 47rem;
  margin-top: 1.4rem;
  color: #65705f;
  font-size: 1.55rem;
  line-height: 1.55;
}

.lead-form .lead-form__fields {
  display: grid;
  gap: 1.5rem;
  margin: 3rem 0 0;
  padding: 0;
  border: 0;
}

.lead-form__field {
  display: grid;
  gap: 0.65rem;
  width: 100%;
  color: #3e493a;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
}

.lead-form__field > span {
  margin-left: 0.4rem;
}

.lead-form__field input[type="text"],
.lead-form__field input[type="email"],
.lead-form__field input[type="tel"] {
  box-sizing: border-box;
  width: 100%;
  height: 5.2rem;
  margin: 0;
  padding: 0 1.6rem;
  border: 1px solid #dfe6da;
  border-radius: 1.4rem;
  outline: none;
  background: #f8faf6;
  color: #1d1d1d;
  font-family: inherit;
  font-size: 1.5rem;
  line-height: 1;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.lead-form__field input::placeholder {
  color: #98a292;
  opacity: 1;
}

.lead-form__field input:focus {
  border-color: #8ec84c;
  background: #fff;
  box-shadow: 0 0 0 0.4rem rgba(155, 213, 86, 0.14);
}

.lead-form__field input[aria-invalid="true"] {
  border-color: #db6b5e;
  box-shadow: 0 0 0 0.4rem rgba(219, 107, 94, 0.1);
}

.lead-form__field--phone .iti {
  width: 100%;
  margin: 0;
}

.lead-form__field--phone .iti--separate-dial-code .iti__selected-flag {
  border-radius: 1.4rem 0 0 1.4rem;
  background: rgba(230, 238, 224, 0.72) !important;
}

.lead-form__field--phone .iti--separate-dial-code input[type="tel"] {
  padding-left: 9.2rem !important;
}

.lead-form__field--phone .iti__country-list {
  top: auto;
  bottom: calc(100% + 0.6rem);
  z-index: 230;
  width: min(40rem, calc(100vw - 4rem));
  max-width: min(40rem, calc(100vw - 4rem));
  max-height: 22rem;
  margin: 0;
  border: 1px solid #dfe6da;
  border-radius: 1.2rem;
  overflow-x: hidden;
  box-shadow: 0 1.6rem 4rem rgba(22, 34, 17, 0.16);
}

/* Keep the original sprite dimensions: image CDNs resize the unusually wide
 * PNG and break intl-tel-input's background-position coordinates. */
.lead-form__field--phone .iti__flag {
  background-image: url("../flags.sprite?v=2") !important;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .lead-form__field--phone .iti__flag {
    background-image: url("../flags@2x.sprite?v=2") !important;
    background-size: 5762px 15px;
  }
}

.lead-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.8rem;
  color: #6c7667;
  font-size: 1.25rem;
  line-height: 1.45;
  cursor: pointer;
}

.lead-form__consent input {
  flex: 0 0 auto;
  width: 1.8rem;
  height: 1.8rem;
  margin: 0.05rem 0 0;
  accent-color: #78ad3b;
}

.lead-form__consent a {
  color: #4f7d21;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.lead-form .lead-form__submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  min-height: 5.2rem;
  margin: 2rem 0 0;
  padding: 1.2rem 2rem;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #9bd556;
  color: #1d1d1d;
  font-family: inherit;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
  cursor: pointer;
  box-shadow: 0 1rem 2.5rem rgba(95, 148, 36, 0.18);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lead-form .lead-form__submit:hover,
.lead-form .lead-form__submit:focus-visible {
  background: #a9e364;
  box-shadow: 0 1.2rem 3rem rgba(95, 148, 36, 0.25);
  transform: translateY(-0.1rem);
  outline: none;
}

.lead-form__submit > svg {
  width: 2rem;
  height: 2rem;
}

.lead-form__spinner {
  display: none;
  width: 2rem;
  height: 2rem;
  border: 0.2rem solid rgba(29, 29, 29, 0.24);
  border-top-color: #1d1d1d;
  border-radius: 50%;
  animation: lead-form-spin 0.75s linear infinite;
}

.lead-form__submit.loading .lead-form__spinner {
  display: block;
}

.lead-form__submit.loading .lead-form__submit-label,
.lead-form__submit.loading > svg {
  display: none;
}

.lead-form__note {
  margin-top: 1rem;
  color: #8a9385;
  font-size: 1.15rem;
  line-height: 1.4;
  text-align: center;
}

.lead-form__errors {
  display: none;
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(207, 80, 66, 0.22);
  border-radius: 1rem;
  background: #fff4f2;
  color: #a43e33;
  font-size: 1.25rem;
  line-height: 1.4;
  text-align: center;
}

.modal.lead-success .lead-success__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(52rem, 100%);
  max-width: 52rem;
  margin: min(12vh, 10rem) auto;
  padding: 5.5rem 5rem 4.5rem;
  border: 1px solid rgba(155, 213, 86, 0.28);
  border-radius: 2.8rem;
  background: #fff;
  color: #1d1d1d;
  text-align: center;
  box-shadow: 0 3rem 8rem rgba(14, 24, 8, 0.24);
}

.lead-success__icon {
  display: grid;
  width: 7.2rem;
  height: 7.2rem;
  margin-bottom: 2.4rem;
  place-items: center;
  border-radius: 50%;
  background: #e9f7dc;
  color: #6d9f38;
  box-shadow: 0 0 0 1rem rgba(155, 213, 86, 0.1);
}

.lead-success__icon svg {
  width: 4rem;
  height: 4rem;
}

.lead-success__title {
  margin-top: 1.6rem;
  color: #1d1d1d;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-transform: none;
}

.lead-success__text {
  max-width: 40rem;
  margin-top: 1.4rem;
  color: #687263;
  font-size: 1.5rem;
  line-height: 1.55;
}

.modal.lead-success .lead-success__continue {
  position: static;
  width: auto;
  height: auto;
  margin-top: 2.6rem;
  padding: 1.2rem 2.4rem;
  border: 0;
  border-radius: 999px;
  background: #9bd556;
  color: #1d1d1d;
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
}

.modal.lead-success .lead-success__continue::before,
.modal.lead-success .lead-success__continue::after {
  display: none;
}

@keyframes lead-form-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  .modal.lead-modal,
  .modal.lead-success {
    padding: 1.2rem;
  }

  .modal.lead-modal .lead-modal__dialog {
    display: block;
    width: 100%;
    min-height: 0;
    margin: 0 auto;
    border-radius: 2.2rem;
  }

  .lead-modal__visual {
    min-height: 10rem;
  }

  .lead-modal__visual::before {
    top: 3rem;
    left: 2.4rem;
    font-size: 1.9rem;
  }

  .lead-modal__visual svg {
    right: -4rem;
    bottom: -5rem;
    width: 64%;
  }

  .lead-form {
    padding: 3rem 2.2rem 2.4rem;
  }

  .lead-form__title {
    font-size: 3rem;
  }

  .lead-form .lead-form__fields {
    gap: 1.2rem;
    margin-top: 2.2rem;
  }

  .modal.lead-success .lead-success__dialog {
    margin: 8vh auto;
    padding: 4.8rem 2.4rem 3.2rem;
    border-radius: 2.2rem;
  }

  .lead-success__title {
    font-size: 2.5rem;
  }
}

@media (max-height: 760px) and (min-width: 761px) {
  .modal.lead-modal {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .modal.lead-modal .lead-modal__dialog {
    min-height: 0;
    margin: 0 auto;
  }

  .lead-form {
    padding-top: 4rem;
    padding-bottom: 3.5rem;
  }

  .lead-form .lead-form__fields {
    margin-top: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lead-form__spinner {
    animation-duration: 1.5s;
  }

  .lead-form .lead-form__submit,
  .lead-modal__close {
    transition: none !important;
  }
}
