/* Save Now Pay Later: "Schedule a Call" or "Email Us" buttons with a short note
   underneath (replaces the old "Let's get Started" button and form). Drawn for
   the light hero and the light bottom section of the page. */

.snpl-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-family: "Manrope", Arial, sans-serif;
}

.snpl-contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Bottom call-to-action: buttons and note sit on the right edge at every screen size */
.snpl-contact--end {
  align-items: flex-end;
  align-self: flex-end;
  margin-left: auto;
  text-align: right;
}

.snpl-contact--end .snpl-contact__actions {
  justify-content: flex-end;
}

/* Where the page margin is narrower than the floating "Back to top" button
   (css/pbt-scroll-top.css), keep the right-aligned note clear of it at the end of the page. */
@media (max-width: 1599px) {
  .growth-cta .growth-content {
    padding-bottom: 64px;
  }
}

.snpl-contact__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.snpl-contact__btn:focus-visible {
  outline: 3px solid var(--snpl-focus);
  outline-offset: 3px;
}

.snpl-contact__icon {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

/* The tick shown on "Copy Email" after copying; the page script shows it for 2 seconds */
.snpl-contact__icon--success {
  display: none;
}

.snpl-contact__arrow {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

/* filled button */
.snpl-contact__btn--primary {
  background: var(--blue);
  border: 2px solid var(--blue);
  color: var(--snpl-white);
  box-shadow: 0 6px 18px rgba(11, 59, 156, 0.28);
}

.snpl-contact__btn--primary:hover {
  background: var(--snpl-blue-hover);
  border-color: var(--snpl-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(11, 59, 156, 0.36);
}

/* Schedule a Call + Copy Email, with Book a Free Consultation under them at the same width */
.snpl-contact__group {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  max-width: 100%;
}

.snpl-contact__btn--consult {
  width: 100%;
  border: 2px solid var(--snpl-teal);
  background: var(--snpl-teal);
  color: var(--snpl-white);
  box-shadow: 0 6px 18px var(--snpl-teal-shadow);
}

.snpl-contact__btn--consult:hover {
  border-color: var(--snpl-teal-hover);
  background: var(--snpl-teal-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px var(--snpl-teal-shadow);
}

.snpl-contact__btn--consult:hover .snpl-contact__arrow {
  transform: translateX(3px);
}

.snpl-contact__btn--primary:hover .snpl-contact__arrow {
  transform: translateX(4px);
}

/* outlined button */
.snpl-contact__btn--secondary {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--blue);
  color: var(--blue);
}

.snpl-contact__btn--secondary:hover {
  background: var(--blue);
  color: var(--snpl-white);
  transform: translateY(-2px);
}

/* copied state for feedback */
.snpl-contact__btn--copied {
  background: var(--snpl-success) !important;
  border-color: var(--snpl-success) !important;
  color: var(--snpl-white) !important;
  box-shadow: 0 6px 18px rgba(13, 138, 79, 0.32) !important;
  transform: scale(1.02);
}

.snpl-contact__note {
  margin: 0;
  max-width: 520px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--snpl-note);
}

.snpl-contact__note a,
.snpl-contact__note-copy {
  display: inline;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
}

.snpl-contact__note a:hover,
.snpl-contact__note-copy:hover {
  color: var(--snpl-blue-hover);
}

/* phones: compact buttons side by side (they wrap if the screen is too narrow) */
@media (max-width: 560px) {
  .snpl-contact,
  .snpl-contact__group,
  .snpl-contact__actions {
    width: 100%;
  }

  .snpl-contact {
    gap: 8px;
  }

  .snpl-contact__actions {
    gap: 8px;
  }

  .snpl-contact__btn {
    flex: 1 1 auto;
    min-height: 40px;
    padding: 0 14px;
    gap: 6px;
    font-size: 13.5px;
  }

  .snpl-contact__icon {
    width: 15px;
    height: 15px;
  }

  .snpl-contact__arrow {
    width: 14px;
    height: 14px;
  }

  .snpl-contact__note {
    font-size: 12.5px;
  }
}

@media (max-width: 400px) {
  .snpl-contact__arrow {
    display: none;
  }
}

/* The hero reserves room under its button for the hero image. The note under the
   buttons takes a little extra height, so the reserved room is trimmed to match
   and the image stays where it was. */
@media (max-width: 767px) {
  .snpl-contact.mr-bt {
    margin-bottom: 450px; /* 392px before "Book a Free Consultation" was added under the buttons */
  }
}

@media (prefers-reduced-motion: reduce) {
  .snpl-contact__btn,
  .snpl-contact__arrow,
  .snpl-toast {
    transition: none;
  }

  .snpl-contact__btn--primary:hover,
  .snpl-contact__btn--secondary:hover,
  .snpl-contact__btn--consult:hover,
  .snpl-contact__btn--primary:hover .snpl-contact__arrow,
  .snpl-contact__btn--consult:hover .snpl-contact__arrow {
    transform: none;
  }
}

/* Floating Toast Notification for copy confirmation */
.snpl-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 20px) scale(0.95);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: var(--snpl-navy-darkest);
  color: var(--snpl-white);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(5, 27, 71, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.15);
  z-index: 999999;
  font-family: "Manrope", Arial, sans-serif;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.28s ease;
}

.snpl-toast.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.snpl-toast__icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--snpl-success-bright);
  color: var(--snpl-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.snpl-toast__icon svg {
  width: 16px;
  height: 16px;
}

.snpl-toast__content {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.snpl-toast__title {
  font-size: 14px;
  font-weight: 800;
  color: var(--snpl-white);
}

.snpl-toast__desc {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--snpl-blue-light);
  letter-spacing: 0.2px;
}

@media (max-width: 560px) {
  .snpl-toast {
    bottom: 20px;
    width: min(calc(100vw - 32px), 360px);
    border-radius: 14px;
    padding: 10px 16px;
  }
}
