/* ─────────────────────────────────────────
   Animations
───────────────────────────────────────── */
@keyframes overlayShow {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.25;
  }
}

@keyframes contentShow {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ─────────────────────────────────────────
   Overlay
───────────────────────────────────────── */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background-color: #000;
  opacity: 0.25;
  pointer-events: auto;
  animation: 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards overlayShow;
}

/* ─────────────────────────────────────────
   Dialog
───────────────────────────────────────── */
.lb-dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 50;
  max-height: 85vh;
  width: 95vw;
  max-width: max-content;
  pointer-events: auto;
  outline: none;
  animation: 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards contentShow;
}

.lb-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background-color: #fff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ─────────────────────────────────────────
   Grid layout
───────────────────────────────────────── */
.lb-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 375px;
}

@media (min-width: 768px) {
  .lb-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    max-width: 940px;
  }
}

/* ─────────────────────────────────────────
   Copy column
───────────────────────────────────────── */
.lb-copy {
  order: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 32px 16px;
}

@media (min-width: 768px) {
  .lb-copy {
    order: 1;
    grid-column: span 7;
    align-items: flex-start;
    justify-content: space-between;
    padding: 40px;
  }
}

.lb-headline {
  margin-bottom: 24px;
}

.lb-headline h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
  text-wrap: balance;
  margin: 0;
}

.lb-body {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 32px;
}

.lb-form-area {
  width: 100%;
  max-width: 500px;
}

/* ─────────────────────────────────────────
   Image / Hero column
───────────────────────────────────────── */
.lb-img-col {
  order: 1;
  padding: 0;
}

@media (min-width: 768px) {
  .lb-img-col {
    order: 2;
    grid-column: span 5;
  }
}

.lb-hero {
  width: 100%;
  height: 100%;
  max-height: min(250px, 33vh);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fde68a, #f59e0b);

  /* Swap background for your image:
     background: url('your-asset.webp') center / cover no-repeat; */
}

@media (min-width: 768px) {
  .lb-hero {
    max-height: none;
    min-height: 100%;
  }
}

.lb-hero-placeholder {
  font-size: 72px;
}

.lb-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* ─────────────────────────────────────────
   Close button
───────────────────────────────────────── */
.lb-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.lb-close:hover {
  background-color: #f3f4f6;
}

.lb-close:focus {
  outline: none;
}

/* ─────────────────────────────────────────
   Preview trigger (remove in Webflow)
───────────────────────────────────────── */
.lb-preview-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #f3f4f6;
}

.lb-trigger-btn {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: #111;
  background-color: #facc15;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease;
}

.lb-trigger-btn:hover {
  background-color: #fde047;
}

/* ─── Buttons ──────────────────────────────────────────────────────────────── */

.defaultButton {
  background-color: #7638fa;
  color: #fafafb;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 450;
  line-height: 1.5;
  font-family: "Inter";
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: none;
  text-align: center;
  height: 48px;
  width: 100%;
}

.defaultButton:hover {
  background-color: #5e2bd4;
}

.defaultButton:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ─── Email capture (Step 1) ───────────────────────────────────────────────── */

.emailCapture {
  display: flex;
  width: 500px;
  padding: 4px 4px 4px 20px;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
  border: 1px solid #dedee1;
  background: #fafafb;
  box-sizing: border-box;
  margin: 0;
}

.emailCapture--error {
  border-color: #d7234a;
}

.emailCapture__input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: Inter;
  font-size: 18px;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: -0.18px;
  color: #181819;
  min-width: 0;
}

.emailCapture__input::placeholder {
  color: #6a6a6b;
}

.emailCapture__btn {
  width: auto !important;
  flex-shrink: 0;
  height: 40px;
  padding: 8px 20px;
}

/* ─── Eyebrow ──────────────────────────────────────────────────────────────── */

.above-eye-brow {
  color: #7638fa;
  text-align: center;
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: -0.16px;
  text-transform: uppercase;
}

/* ─── Step heading ─────────────────────────────────────────────────────────── */

.step-heading {
  color: #181819;
  text-align: center;
  font-family: "Inter Tight";
  font-size: 48px;
  font-style: normal;
  font-weight: 450;
  line-height: 110%;
  margin: 0 0 8px;
}

/* ─── Field labels ─────────────────────────────────────────────────────────── */

.field-label {
  color: #181819;
  font-family: Inter;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: -0.14px;
  margin-bottom: 4px;
}

.field-label-required::after {
  content: " *";
  color: #d7234a;
}

/* ─── Inputs (Steps 2 & 3) ─────────────────────────────────────────────────── */

.formInput,
.formSelect,
.formTextarea {
  display: flex;
  width: 100%;
  padding: 10px 12px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  align-self: stretch;
  border-radius: 4px;
  border: 1px solid #eaeaed;
  background: #fff;
  color: #6a6a6b;
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: -0.16px;
  box-sizing: border-box;
  appearance: none;
}

.formInput:focus,
.formSelect:focus,
.formTextarea:focus {
  outline: none;
  border-color: #7638fa;
  color: #181819;
}

.formSelect {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2716%27 height=%2716%27 viewBox=%270 0 16 16%27 fill=%27none%27%3E%3Cpath d=%27M4 6L8 10L12 6%27 stroke=%27%236A6A6B%27 stroke-width=%271.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.formTextarea {
  resize: vertical;
}

/* ─── Error state ──────────────────────────────────────────────────────────── */

.formInput--error,
.formSelect--error,
.formTextarea--error {
  border-color: #d7234a;
}

.fieldError {
  color: #d7234a;
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: -0.16px;
  margin-top: 2px;
}

/* ─── Form wrapper ─────────────────────────────────────────────────────────── */

.hsf {
  box-sizing: border-box;
  font-family: Inter, sans-serif;
}

/* ─── Full screen modal overlay (Steps 2 & 3) ─────────────────────────────── */

.hsf__overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
}

.hsf__overlay-inner {
  width: 100%;
  max-width: 600px;
  padding: 0 24px 48px;
  box-sizing: border-box;
}

.hsf__overlay-inner .hsf__progress-track {
  margin-top: 80px;
}

/* ─── Slide area ───────────────────────────────────────────────────────────── */

.hsf__slide-wrap {
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.hsf__slide {
  width: 100%;
}

/* ─── Fields stack ─────────────────────────────────────────────────────────── */

.hsf__fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hsf__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hsf__col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ─── Progress bar ─────────────────────────────────────────────────────────── */

.hsf__progress-track {
  height: 4px;
  background: #eaeaed;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 6px;
}

.hsf__progress-fill {
  height: 100%;
  background: #7638fa;
  border-radius: 99px;
}

.hsf__step-count {
  font-size: 0.8rem;
  color: #6a6a6b;
  text-align: right;
  margin: 0 0 1.5rem;
  font-family: Inter;
}

/* ─── Navigation ───────────────────────────────────────────────────────────── */

.hsf__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 12px;
}

.hsf__btn--back {
  background: transparent !important;
  color: #6a6a6b !important;
  border: 1px solid #eaeaed !important;
  width: auto !important;
}

.hsf__btn--back:hover {
  background: #f5f5f5 !important;
}

/* ─── API error ────────────────────────────────────────────────────────────── */

.hsf__api-error {
  color: #d7234a;
  font-family: Inter;
  font-size: 14px;
  text-align: center;
  margin-top: 12px;
}

/* ─── Success ──────────────────────────────────────────────────────────────── */

.hsf--success {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.hsf__success-message {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  color: #7638fa;
  font-family: Inter;
}

/* ─── Mobile ───────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .hsf__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
  }

  .step-heading {
    font-size: 32px;
  }

  .emailCapture {
    width: 100%;
    max-width: 345px;
    margin: 0 auto;
  }
}

