/* FB ad splash lead modal — colors, type, and radii aligned with splash hero / ministry-style */
/* Fonts: Satoshi (and Chillax on splash) loaded via ministry-style.css */

/*
  Splash scales the whole page with `body { transform: scale(...) }`.
  A transformed ancestor breaks `position: fixed` (it becomes relative to that ancestor),
  so the modal can appear off-screen if the user has scrolled.
  Disable the transform while the modal is open.
*/
html.mh-fb-ad-lead-modal-open body {
  transform: none !important;
}

.fb-ad-lead-modal {
  --fb-ad-ink: #001918;
  --fb-ad-body: #1e1e1e;
  --fb-ad-teal: #055c5a;
  --fb-ad-teal-light: #168785;
  --fb-ad-gold: #ecbe09;
  --fb-ad-gold-deep: #6d5700;
  --fb-ad-gold-lt: #fccf19;
  --fb-ad-muted: #717171;
  --fb-ad-muted-soft: #505050;
  --fb-ad-border: rgba(22, 135, 133, 0.22);
  --fb-ad-green: #168785;
  --fb-ad-warm: #f4faf9;
  --fb-ad-tile-selected: #fffbeb;
  --fb-ad-hero-shadow: 0 21px 46.1px 0 rgba(22, 135, 133, 0.5);
  --fb-ad-grad-gold: linear-gradient(
    103deg,
    #6d5700 -11.41%,
    #ecbe09 93.24%
  );
  --fb-ad-grad-teal: linear-gradient(
    337deg,
    #055c5a -19.32%,
    #168785 104.47%
  );
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem;
  padding-top: 1.75rem;
  box-sizing: border-box;
  /* Scroll only inside .fb-ad-lead-modal__panel — avoids a second scrollbar stripe on mobile */
  overflow: hidden;
  overscroll-behavior: none;
}

.fb-ad-lead-modal[hidden] {
  display: none !important;
}

.fb-ad-lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 40, 38, 0.78);
  cursor: pointer;
}

.fb-ad-lead-modal__panel {
  position: relative;
  width: 100%;
  max-width: 820px;
  max-height: min(94vh, 940px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2.5rem 2.375rem 2.125rem;
  box-shadow: var(--fb-ad-hero-shadow);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  /* Mobile OS scrollbars render as a dark vertical bar; hide visually, scrolling still works */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.fb-ad-lead-modal__panel::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.fb-ad-lead-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  font-size: 2.05rem;
  line-height: 1;
  color: var(--fb-ad-muted);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}

.fb-ad-lead-modal__close:hover {
  color: var(--fb-ad-ink);
  background: rgba(22, 135, 133, 0.1);
}

.fb-ad-lead-step {
  display: none;
}

.fb-ad-lead-step.is-active {
  display: block;
}

.fb-ad-lead-modal__title {
  font-family: "Satoshi", sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--fb-ad-ink);
  line-height: 1.28;
  margin: 0 0 1.35rem;
  padding-right: 2.75rem;
}

.fb-ad-lead-modal__title--center {
  text-align: center;
  padding-right: 0;
  font-size: 1.65rem;
}

.fb-ad-lead-back {
  display: block;
  border: none;
  background: none;
  padding: 0 0 0.875rem;
  margin: 0 0 0.25rem;
  font-family: "Satoshi", sans-serif;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--fb-ad-muted-soft);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}

.fb-ad-lead-back:hover {
  color: var(--fb-ad-teal);
}

.fb-ad-lead-grid {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}

.fb-ad-lead-grid--2 {
  grid-template-columns: 1fr 1fr;
}

.fb-ad-lead-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 1rem 2.25rem 1rem 0.875rem;
  border: 2px solid var(--fb-ad-border);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  font-family: "Satoshi", sans-serif;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.fb-ad-lead-card:hover {
  border-color: rgba(22, 135, 133, 0.45);
  background: rgba(22, 135, 133, 0.04);
}

.fb-ad-lead-card.is-selected {
  border-color: var(--fb-ad-gold);
  background: var(--fb-ad-tile-selected);
  box-shadow: 0 0 0 1px var(--fb-ad-gold), 0 4px 14px rgba(236, 190, 9, 0.2);
}

.fb-ad-lead-card__check {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  border: 2px solid transparent;
  background: transparent;
  box-sizing: border-box;
}

.fb-ad-lead-card.is-selected .fb-ad-lead-card__check {
  background: var(--fb-ad-gold);
  border-color: #fff;
  box-shadow: 0 2px 8px rgba(22, 135, 133, 0.35);
}

.fb-ad-lead-card.is-selected .fb-ad-lead-card__check::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: 0.35rem;
  height: 0.55rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

.fb-ad-lead-card__icon {
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 0.45rem;
}

.fb-ad-lead-card__label {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--fb-ad-ink);
}

.fb-ad-lead-card.is-selected .fb-ad-lead-card__label {
  color: var(--fb-ad-gold-deep);
}

.fb-ad-lead-card--tall .fb-ad-lead-card__desc {
  display: block;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--fb-ad-muted);
  margin-top: 0.4rem;
  line-height: 1.4;
}

.fb-ad-lead-btn {
  font-family: "Satoshi", sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  border-radius: 50px;
  padding: 16px 24px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.13s, box-shadow 0.2s;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  text-transform: capitalize;
}

.fb-ad-lead-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.fb-ad-lead-btn--block {
  display: block;
  width: 100%;
}

.fb-ad-lead-btn--primary {
  background: var(--fb-ad-grad-gold);
  color: #fff;
  border: 1px solid #fff;
  box-shadow: var(--fb-ad-hero-shadow);
}

.fb-ad-lead-btn--primary:hover:not(:disabled) {
  background: linear-gradient(
    103deg,
    #7d6800 -11.41%,
    #fccf19 93.24%
  );
  transform: translateY(-2px);
  box-shadow: 0 25px 50px 0 rgba(22, 135, 133, 0.6);
}

.fb-ad-lead-btn--dark {
  background: var(--fb-ad-teal);
  color: #fff;
  box-shadow: var(--fb-ad-hero-shadow);
  border: 1px solid transparent;
}

.fb-ad-lead-btn--dark:hover {
  background: #000;
  color: #fff;
  transform: translateY(-2px);
}

.fb-ad-lead-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.fb-ad-lead-field {
  margin-bottom: 1.125rem;
}

.fb-ad-lead-field label {
  display: block;
  font-family: "Satoshi", sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--fb-ad-muted-soft);
  margin-bottom: 0.35rem;
}

.fb-ad-lead-field input,
.fb-ad-lead-select {
  width: 100%;
  font-family: "Satoshi", sans-serif;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.13s, box-shadow 0.13s;
  background: #fff;
  color: var(--fb-ad-body);
  border: 2px solid var(--fb-ad-teal-light);
}

.fb-ad-lead-field input {
  padding: 16px 22px;
  font-size: 1.25rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(22, 135, 133, 0.2);
}

.fb-ad-lead-select {
  padding: 14px 20px;
  font-size: 1.125rem;
  border-radius: 14px;
}

.fb-ad-lead-field input::placeholder {
  color: var(--fb-ad-muted);
  font-weight: 400;
}

.fb-ad-lead-field input:focus,
.fb-ad-lead-select:focus {
  border-color: var(--fb-ad-teal-light);
  box-shadow: 0 0 0 4px rgba(22, 135, 133, 0.15);
  background: #fff;
}

.fb-ad-lead-select {
  cursor: pointer;
  appearance: none;
  background-color: #fff;
  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 fill='%23168785' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.25rem;
}

.fb-ad-lead-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fb-ad-lead-callout {
  font-family: "Satoshi", sans-serif;
  font-size: 1.0625rem;
  color: var(--fb-ad-gold-deep);
  line-height: 1.5;
  padding: 0.75rem 0.875rem;
  margin-bottom: 1rem;
  border-radius: 0 12px 12px 0;
  background: var(--fb-ad-tile-selected);
  border-left: 4px solid var(--fb-ad-gold);
}

.fb-ad-lead-hint {
  font-family: "Satoshi", sans-serif;
  font-size: 1.125rem;
  color: var(--fb-ad-muted-soft);
  margin: -0.25rem 0 1.125rem;
}

.fb-ad-lead-label-required {
  color: var(--fb-ad-gold-deep);
  font-weight: 700;
  margin-left: 0.12em;
}

.fb-ad-lead-field-hint {
  font-family: "Satoshi", sans-serif;
  font-size: 0.875rem;
  color: var(--fb-ad-muted);
  margin: 0.45rem 0 0;
  line-height: 1.45;
}

.fb-ad-lead-footnote {
  font-family: "Satoshi", sans-serif;
  font-size: 0.9375rem;
  color: var(--fb-ad-muted);
  text-align: center;
  margin: 0 0 0.35rem;
}

.fb-ad-lead-path-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.fb-ad-lead-path-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.125rem;
  padding: 1.125rem 1rem;
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  font-family: "Satoshi", sans-serif;
  transition: border-color 0.13s, background 0.13s, transform 0.13s;
  position: relative;
  border: 2px solid var(--fb-ad-border);
  background: #fff;
}

.fb-ad-lead-path-card--primary {
  background: var(--fb-ad-grad-teal);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: var(--fb-ad-hero-shadow);
}

.fb-ad-lead-path-card--primary:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.fb-ad-lead-path-card--secondary:hover {
  border-color: var(--fb-ad-teal-light);
  background: rgba(22, 135, 133, 0.04);
}

.fb-ad-lead-path-card__title {
  display: block;
  font-weight: 600;
  font-size: 1.1875rem;
  color: var(--fb-ad-ink);
}

.fb-ad-lead-path-card--primary .fb-ad-lead-path-card__title {
  color: #fff;
}

.fb-ad-lead-path-card__sub {
  display: block;
  font-size: 0.9375rem;
  margin-top: 0.2rem;
  color: var(--fb-ad-muted);
}

.fb-ad-lead-path-card--primary .fb-ad-lead-path-card__sub {
  color: rgba(255, 255, 255, 0.75);
}

.fb-ad-lead-path-card__glyph {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.fb-ad-lead-path-card--primary .fb-ad-lead-path-card__glyph {
  color: var(--fb-ad-gold);
}

.fb-ad-lead-path-card--secondary .fb-ad-lead-path-card__glyph {
  color: var(--fb-ad-teal);
}

.fb-ad-lead-progress {
  padding: 0.65rem 0 0;
}

.fb-ad-lead-spinner {
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto 1rem;
  border: 3px solid rgba(22, 135, 133, 0.2);
  border-top-color: var(--fb-ad-teal-light);
  border-radius: 50%;
  animation: fb-ad-spin 0.8s linear infinite;
}

@keyframes fb-ad-spin {
  to {
    transform: rotate(360deg);
  }
}

.fb-ad-lead-progress-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  font-family: "Satoshi", sans-serif;
  font-size: 1.0625rem;
}

.fb-ad-lead-progress-list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--fb-ad-border);
  color: var(--fb-ad-muted);
  opacity: 0.35;
  transition: opacity 0.25s;
}

.fb-ad-lead-progress-list li.is-active,
.fb-ad-lead-progress-list li.is-done {
  opacity: 1;
}

.fb-ad-lead-progress-list li.is-done {
  color: var(--fb-ad-green);
}

.fb-ad-lead-progress-list li.is-active {
  color: var(--fb-ad-teal);
  font-weight: 600;
}

.fb-ad-lead-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.fb-ad-lead-success-ring {
  width: 3.75rem;
  height: 3.75rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(22, 135, 133, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fb-ad-lead-success-ring svg {
  display: block;
}

.fb-ad-lead-subcenter {
  text-align: center;
  font-family: "Satoshi", sans-serif;
  font-size: 1.0625rem;
  color: var(--fb-ad-muted-soft);
  margin: 0 0 1rem;
  line-height: 1.6;
  max-width: 26rem;
  margin-left: auto;
  margin-right: auto;
}

.fb-ad-lead-summary {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 1rem 1.125rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(22, 135, 133, 0.2);
  box-shadow: 0 10px 30px rgba(22, 135, 133, 0.12);
  text-align: left;
}

.fb-ad-lead-summary__row {
  font-family: "Satoshi", sans-serif;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--fb-ad-ink);
  margin: 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fb-ad-lead-divider {
  border: none;
  border-top: 1px solid rgba(22, 135, 133, 0.15);
  margin: 1.125rem 0;
}

.fb-ad-lead-booking-profile {
  text-align: center;
  margin-bottom: 0.65rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--fb-ad-border);
}

.fb-ad-lead-avatar {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  background: var(--fb-ad-teal);
  color: var(--fb-ad-gold);
  font-family: "Satoshi", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--fb-ad-gold);
}

.fb-ad-lead-booking-name {
  font-family: "Satoshi", sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--fb-ad-ink);
  margin: 0;
}

.fb-ad-lead-booking-meta {
  font-family: "Satoshi", sans-serif;
  font-size: 0.9375rem;
  color: var(--fb-ad-muted);
  margin: 0.2rem 0 0;
}

.fb-ad-meetings-embed {
  margin-top: 1rem;
}

/* HubSpot injects an iframe inside this container */
.fb-ad-meetings-embed .meetings-iframe-container {
  width: 100%;
  min-height: 560px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(22, 135, 133, 0.15);
  box-shadow: 0 10px 30px rgba(22, 135, 133, 0.12);
}

.fb-ad-meetings-embed .meetings-iframe-container iframe {
  width: 100% !important;
  min-height: 560px !important;
  border: 0 !important;
}

.fb-ad-lead-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  max-height: 11rem;
  overflow-y: auto;
  margin-bottom: 1rem;
  padding-right: 0.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.fb-ad-lead-slots::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.fb-ad-lead-slot {
  font-family: "Satoshi", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 0.625rem;
  border-radius: 12px;
  border: 2px solid var(--fb-ad-border);
  background: #fff;
  color: var(--fb-ad-ink);
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}

.fb-ad-lead-slot:hover:not(:disabled) {
  background: var(--fb-ad-teal);
  border-color: var(--fb-ad-teal);
  color: #fff;
}

.fb-ad-lead-slot.is-selected {
  border-color: var(--fb-ad-teal);
  background: var(--fb-ad-teal);
  color: #fff;
}

.fb-ad-lead-slot.is-disabled,
.fb-ad-lead-slot:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .fb-ad-lead-modal {
    padding: 0;
    padding-top: 0;
    align-items: stretch;
  }

  .fb-ad-lead-modal__panel {
    max-width: none;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: none;
    border-radius: 0;
    padding: max(env(safe-area-inset-top), 1.25rem)
      max(env(safe-area-inset-right), 1.25rem)
      max(env(safe-area-inset-bottom), 1.25rem)
      max(env(safe-area-inset-left), 1.25rem);
    box-shadow: none;
    border: none;
  }

  .fb-ad-lead-modal__close {
    top: max(env(safe-area-inset-top), 0.75rem);
    right: max(env(safe-area-inset-right), 0.75rem);
  }

  .fb-ad-meetings-embed .meetings-iframe-container,
  .fb-ad-meetings-embed .meetings-iframe-container iframe {
    min-height: 70vh !important;
  }

  .fb-ad-lead-grid--2 {
    grid-template-columns: 1fr;
  }

  .fb-ad-lead-form-row {
    grid-template-columns: 1fr;
  }

  .fb-ad-lead-modal__title {
    font-size: 1.55rem;
    padding-right: 2.5rem;
  }

  .fb-ad-lead-modal__title--center {
    font-size: 1.35rem;
  }
}
