/* Join investors promo bar - Fixed Sticky bottom bar on Desktop & Mobile */

body {
  padding-bottom: 140px !important;
}

.pricing-promo {
  background: var(--grey-pure-white);
  box-shadow: 0px -6px 28px rgba(0, 0, 0, 0.16);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  padding: 14px 0;
  border-top: 1px solid rgba(0, 89, 154, 0.14);
}

.pricing-promo__phone.is-invalid {
  border-color: #e53e3e !important;
  box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.2) !important;
}

.pricing-promo__inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.pricing-promo__left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

.pricing-promo__heading h2 {
  font-size: 24px;
  font-weight: 500;
  color: var(--grey-dark-charcoal);
}

.pricing-promo__heading p {
  font-size: 16px;
  color: var(--grey-medium-dark-grey);
  margin-top: 4px;
}

.pricing-promo__badges {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pricing-promo__badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-promo__badge span:last-child {
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-darkest-grey);
  line-height: 1.25;
  white-space: nowrap;
}

.pricing-promo__badge-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background-color: var(--primary-blue);
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center;
}

.pricing-promo__badge-icon--trusted {
  mask-image: url("../assets/icons/pricing-page/badge-trusted.png");
}

.pricing-promo__badge-icon--quickeasy {
  mask-image: url("../assets/icons/pricing-page/badge-quickeasy.png");
}

.pricing-promo__badge-icon--secure {
  mask-image: url("../assets/icons/pricing-page/badge-secure.png");
}

.pricing-promo__badge-icon--privacy {
  width: 16px;
  height: 16px;
  mask-image: url("../assets/icons/pricing-page/badge-privacy.png");
}

.pricing-promo__divider {
  width: 1px;
  height: 32px;
  background: var(--grey-lightest-grey);
}

.pricing-promo__vdivider {
  width: 1px;
  align-self: stretch;
  background: var(--grey-lightest-grey);
  flex-shrink: 0;
}

.pricing-promo__right {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pricing-promo__form {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.pricing-promo__phone {
  flex: 1 1 240px;
  min-width: 180px;
  max-width: 280px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--grey-pure-white);
  border: 1px solid var(--grey-light-grey);
  box-shadow: 0px 0px 5.75px 0px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 14px 19px;
  height: 52px;
  box-sizing: border-box;
}

.pricing-promo__phone span {
  font-size: 16px;
  font-weight: 500;
  color: var(--grey-dark-charcoal);
}

.pricing-promo__phone input {
  flex: 1 1 0;
  min-width: 0;
  border: none;
  background: none;
  font-family: var(--font-base);
  font-size: 16px;
  color: var(--grey-medium-dark-grey);
}

.pricing-promo__form .g-recaptcha,
.pricing-promo__form > div.my-3 {
  flex-shrink: 0;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 !important;
}

.pricing-promo__submit {
  flex-shrink: 0;
  white-space: nowrap;
  background: var(--primary-blue);
  border: 1px solid #004c84;
  border-radius: 12px;
  padding: 14px 24px;
  font-family: var(--font-base);
  font-size: 16px;
  font-weight: 500;
  color: var(--grey-pure-white);
  height: 52px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.pricing-promo__submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 8px 20px rgba(0, 89, 154, 0.28);
}

.pricing-promo__submit:active {
  transform: translateY(0);
  filter: brightness(0.92);
  box-shadow: none;
}

.pricing-promo__submit:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

.pricing-promo__privacy {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-promo__privacy span:last-child {
  font-size: 14px;
  color: var(--grey-medium-dark-grey);
}

@media (max-width: 1180px) {
  .pricing-promo__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .pricing-promo__vdivider {
    display: none;
  }

  .pricing-promo__left {
    align-items: center;
    text-align: center;
  }

  .pricing-promo__badges {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 1023px) {
  body {
    padding-bottom: 300px !important;
  }

  .pricing-promo {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 999999 !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    overflow: visible !important;
    background: #ffffff !important;
    box-shadow: 0px -8px 30px rgba(0, 0, 0, 0.25) !important;
    border-top: 1px solid rgba(0, 89, 154, 0.2) !important;
    border-top-left-radius: 16px !important;
    border-top-right-radius: 16px !important;
    padding: 16px 14px !important;
  }

  .pricing-promo__inner {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .pricing-promo__left {
    align-items: center;
    text-align: center;
    gap: 10px;
    width: 100%;
  }

  .pricing-promo__heading h2 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--grey-dark-charcoal);
  }

  /* Subtitle and trust badges hidden on mobile to save space in the sticky
     bar - there isn't room for them alongside the phone field, reCAPTCHA,
     and submit button on a small screen. */
  .pricing-promo__heading p {
    display: none !important;
  }

  .pricing-promo__badges {
    display: none !important;
  }

  .pricing-promo__badge {
    display: flex;
    align-items: center;
    text-align: center;
  }

  .pricing-promo__badge span:last-child {
    font-size: 12px;
    font-weight: 500;
    color: var(--grey-darkest-grey);
    line-height: 1.3;
  }

  .pricing-promo__divider {
    display: block !important;
    height: 14px;
    width: 1px;
    background: var(--grey-lightest-grey);
  }

  .pricing-promo__vdivider {
    display: none !important;
  }

  .pricing-promo__right {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .pricing-promo__form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  /* Natural Form Order on Mobile: 1. Phone, 2. reCAPTCHA, 3. Button */
  .pricing-promo__phone {
    order: 1 !important;
    width: 100% !important;
    min-width: 100% !important;
    flex: none !important;
    padding: 8px 14px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
  }

  .pricing-promo__phone span,
  .pricing-promo__phone input {
    font-size: 14px !important;
    line-height: 1.2 !important;
  }

  /* Rendered at its normal, undistorted size - no scaling/resizing. With
     the subtitle and badges hidden above, the bar has enough width for the
     native 304px box to just sit centered without needing any shrinking. */
  .pricing-promo__form > div.my-3,
  .pricing-promo__form > div.flex {
    order: 2 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 4px auto !important;
    width: 100% !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 9999999 !important;
  }

  .pricing-promo__form .g-recaptcha {
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: fit-content !important;
    max-width: 100% !important;
    overflow: hidden !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 9999999 !important;
  }

  .pricing-promo__form .g-recaptcha iframe[title="reCAPTCHA"],
  .pricing-promo__form .g-recaptcha iframe[src*="anchor"] {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 9999999 !important;
    display: block !important;
  }

  .pricing-promo__form .g-recaptcha iframe[style*="display: none"],
  .pricing-promo__form .g-recaptcha iframe:not([title="reCAPTCHA"]) {
    display: none !important;
  }

  /* Ensure Google reCAPTCHA challenge popup overlays render above sticky bar without altering native iframe coordinates */
  body > div[style*="z-index: 2000000000"],
  body > div[style*="2000000000"],
  div[style*="position: absolute"][style*="z-index: 2000000000"] {
    z-index: 2147483647 !important;
  }

  .pricing-promo__submit {
    order: 3 !important;
    width: 100% !important;
    min-width: 100% !important;
    flex: none !important;
    padding: 10px 20px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-align: center !important;
    height: 44px !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
  }

  .pricing-promo__privacy {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    font-size: 13px;
    color: var(--grey-medium-dark-grey);
  }
}