/* Lead magnet opt-in pages: extends the existing Saint VIII slide system. */

.lead-slide {
  min-height: 100%;
}

.lead-slide .slide-inner {
  align-items: center;
  padding-top: 48px;
}

.lead-slide .slide-content {
  max-width: min(1360px, calc(100vw - 48px));
}

.lead-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, clamp(320px, 34vw, 420px));
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  text-align: left;
}

.lead-copy {
  min-width: 0;
}

.lead-layout--stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(34px, 5vw, 52px);
  max-width: 960px;
  text-align: center;
}

.lead-layout--stacked .lead-copy {
  width: 100%;
  max-width: 960px;
}

.lead-layout--stacked .lead-copy .slide-brand {
  justify-content: center;
}

.lead-layout--stacked .lead-copy .pre-headline,
.lead-layout--stacked .lead-copy .headline,
.lead-layout--stacked .lead-copy .subheadline {
  text-align: center;
}

.lead-layout--stacked .lead-copy .headline {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}

.lead-layout--stacked .lead-copy .subheadline {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

.lead-layout--stacked .lead-form-panel {
  width: 100%;
  max-width: 620px;
}

.lead-copy .slide-brand {
  justify-content: flex-start;
  margin-bottom: 28px;
}

.lead-copy .pre-headline,
.lead-copy .headline,
.lead-copy .subheadline {
  text-align: left;
}

.lead-copy .headline {
  max-width: 920px;
  margin-bottom: 22px;
}

.lead-layout:not(.lead-layout--stacked) .lead-copy .headline {
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  line-height: 1.06;
}

.lead-copy .subheadline {
  max-width: 760px;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
}

.lead-form-panel {
  position: relative;
  padding: clamp(28px, 4vw, 38px);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0)),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.lead-form-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

.lead-form-title {
  margin: 0 0 6px;
  color: var(--text-primary);
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.lead-form-subtitle {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.lead-form .tf-field {
  margin-bottom: 22px;
}

.lead-form .tf-field-label {
  color: var(--text-secondary);
}

.lead-form .tf-next--submit {
  margin-top: 6px;
}

.lead-form-panel .iti__search-input {
  box-sizing: border-box;
  width: calc(100% - 16px);
  min-height: 52px;
  margin: 8px;
  padding: 13px 15px;
  font-family: 'Archivo', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: none;
}

.lead-form-panel .iti__dropdown-content {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 46px -12px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}

.lead-form-panel .iti__country-list {
  background: var(--bg-card);
  border: 0;
  box-shadow: none;
}

.lead-form-panel .iti__country {
  padding: 12px 14px;
}

.lead-form-panel .iti__search-input::placeholder {
  color: var(--text-muted);
}

.lead-form-panel .iti__search-input:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(196, 208, 230, 0.10);
}

.lead-consent {
  margin: 16px 0 0;
  color: var(--text-disclaimer);
  font-size: 0.68rem;
  line-height: 1.5;
  text-align: center;
}

.lead-footer {
  margin-top: 52px;
}

@media (min-width: 761px) and (max-width: 980px) {
  .lead-layout:not(.lead-layout--stacked) {
    gap: 28px;
    align-items: start;
  }

  .lead-layout:not(.lead-layout--stacked) .lead-copy .slide-brand {
    margin-bottom: 22px;
  }

  .lead-layout:not(.lead-layout--stacked) .lead-copy .slide-brand img {
    height: 72px;
  }

  .lead-layout:not(.lead-layout--stacked) .lead-copy .pre-headline {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
  }

  .lead-layout:not(.lead-layout--stacked) .lead-copy .headline {
    max-width: 560px;
    font-size: clamp(2.05rem, 4.4vw, 2.65rem);
  }

  .lead-layout:not(.lead-layout--stacked) .lead-copy .subheadline {
    max-width: 520px;
    font-size: 1.02rem;
  }

  .lead-layout:not(.lead-layout--stacked) .lead-form-panel {
    padding: 28px 24px;
  }
}

@media (max-width: 760px) {
  .lead-slide .slide-inner {
    padding-top: 32px;
  }

  .lead-layout:not(.lead-layout--stacked) {
    grid-template-columns: 1fr;
    gap: 34px;
    max-width: 680px;
  }

  .lead-copy .slide-brand {
    justify-content: center;
  }

  .lead-copy .pre-headline,
  .lead-copy .headline,
  .lead-copy .subheadline {
    text-align: center;
  }

  .lead-copy .subheadline {
    margin-left: auto;
    margin-right: auto;
  }

  .lead-layout:not(.lead-layout--stacked) .lead-copy .headline {
    font-size: clamp(1.9rem, 8vw, 2.45rem);
  }
}

@media (max-width: 520px) {
  .lead-form-panel {
    padding: 26px 20px;
  }

}
