.lani-bdf {
  --lani-bdf-blue: #1e7dde;
  --lani-bdf-cyan: #00c4c4;
  --lani-bdf-line: #bfeef6;
  --lani-bdf-ink: #102a3a;
  --lani-bdf-muted: #5d7080;
  --lani-bdf-night: #142338;
  --lani-bdf-gold: #c99a3a;
  color: var(--lani-bdf-ink);
  margin: 28px 0;
}

.lani-bdf * {
  box-sizing: border-box;
}

.lani-bdf__panel {
  background: linear-gradient(180deg, #ffffff 0%, #f7ffff 100%);
  border: 1px solid var(--lani-bdf-line);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(20, 35, 56, 0.14);
  overflow: hidden;
  padding: 0;
}

.lani-bdf__altar {
  background:
    linear-gradient(135deg, rgba(20, 35, 56, 0.96), rgba(25, 80, 105, 0.9)),
    var(--lani-bdf-night);
  color: #fff;
  isolation: isolate;
  padding: 26px 20px 22px;
  position: relative;
}

.lani-bdf__altar::before {
  border: 1px solid rgba(201, 154, 58, 0.34);
  border-radius: 14px;
  content: "";
  inset: 12px;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.lani-bdf__mark {
  background:
    conic-gradient(from 210deg, rgba(30, 125, 222, 0.86), rgba(0, 196, 196, 0.92), rgba(201, 154, 58, 0.78), rgba(30, 125, 222, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 999px;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.06);
  display: grid;
  height: 74px;
  margin: 0 auto 14px;
  place-items: center;
  width: 74px;
}

.lani-bdf__mark span {
  align-items: center;
  background: #fff;
  border-radius: 999px;
  color: var(--lani-bdf-night);
  display: flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.lani-bdf__eyebrow {
  color: #9cecf0;
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 10px;
  text-align: center;
}

.lani-bdf__title {
  font-size: clamp(24px, 5.8vw, 32px);
  line-height: 1.42;
  letter-spacing: 0;
  margin: 0;
  text-align: center;
}

.lani-bdf__lead,
.lani-bdf__privacy,
.lani-bdf__error {
  font-size: 15px;
  line-height: 1.9;
}

.lani-bdf .lani-bdf__lead {
  color: rgba(255, 255, 255, 0.88) !important;
  margin: 14px auto 0;
  max-width: 360px;
}

.lani-bdf__form {
  background: linear-gradient(180deg, #ffffff 0%, #f8ffff 100%);
  padding: 20px 18px 22px;
}

.lani-bdf__thread-map {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #d3f0f5;
  border-radius: 14px;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 42px 1fr;
  margin: 0 0 18px;
  padding: 14px 10px;
}

.lani-bdf__thread-person {
  background: #fff;
  border: 1px solid #d9eef2;
  border-radius: 12px;
  display: grid;
  gap: 5px;
  min-height: 74px;
  padding: 10px;
}

.lani-bdf__thread-person span {
  color: #0077a7;
  font-size: 12px;
  font-weight: 800;
}

.lani-bdf__thread-person strong {
  color: #172b3a;
  font-size: 15px;
  line-height: 1.45;
}

.lani-bdf__thread-center {
  color: var(--lani-bdf-gold);
  display: grid;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  place-items: center;
}

.lani-bdf__fields {
  display: grid;
  gap: 14px;
}

.lani-bdf__field {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.lani-bdf__field em {
  color: var(--lani-bdf-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.lani-bdf__field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #b8e4ed;
  border-radius: 12px;
  background: #fff;
  color: var(--lani-bdf-ink);
  font-size: 16px;
  padding: 10px 12px;
  box-shadow: inset 0 1px 0 rgba(20, 35, 56, 0.04);
}

.lani-bdf__ritual {
  background: #fff8ea;
  border: 1px solid #f1d79b;
  border-radius: 12px;
  color: #654716;
  display: grid;
  font-size: 13px;
  gap: 8px;
  line-height: 1.75;
  margin: 14px 0 18px;
  padding: 13px;
}

.lani-bdf__ritual strong {
  color: #80520e;
  font-weight: 900;
}

.lani-bdf__privacy {
  color: var(--lani-bdf-muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 12px 0 0;
  text-align: center;
}

.lani-bdf__submit,
.lani-bdf__cta-button {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(to right, var(--lani-bdf-blue), var(--lani-bdf-cyan));
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 18px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.lani-bdf__error {
  background: #fff6f6;
  border: 1px solid #ffd4d4;
  border-radius: 8px;
  color: #9a1f1f;
  margin: 12px 0 0;
  padding: 10px 12px;
}

.lani-bdf__modal[hidden] {
  display: none;
}

.lani-bdf__modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 99999;
}

.lani-bdf__backdrop {
  background: rgba(16, 24, 34, 0.68);
  inset: 0;
  position: absolute;
}

.lani-bdf__dialog {
  background: linear-gradient(135deg, #ffffff 0%, #f2fffd 100%);
  border: 1px solid var(--lani-bdf-line);
  border-radius: 18px;
  box-shadow: 0 18px 56px rgba(16, 24, 34, 0.28);
  max-height: min(84vh, 760px);
  max-width: 560px;
  outline: none;
  overflow: auto;
  padding: 28px 18px 20px;
  position: relative;
  width: min(100%, 560px);
}

.lani-bdf__close {
  align-items: center;
  background: #eaf9ff;
  border: 1px solid #c9edf6;
  border-radius: 999px;
  color: #22586c;
  cursor: pointer;
  display: flex;
  font-size: 22px;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  left: 14px;
  line-height: 1;
  position: sticky;
  top: 0;
  width: 42px;
  z-index: 2;
}

.lani-bdf__result {
  display: grid;
  gap: 16px;
}

.lani-bdf__loading {
  align-items: center;
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 26px 8px 18px;
  text-align: center;
}

.lani-bdf__loading-kicker {
  color: #0077a7;
  font-size: 13px;
  font-weight: 800;
}

.lani-bdf__loading-sigil {
  background:
    radial-gradient(circle at 50% 50%, #ffffff 0 28%, transparent 29%),
    conic-gradient(from 0deg, rgba(30, 125, 222, 0.16), rgba(0, 196, 196, 0.92), rgba(201, 154, 58, 0.72), rgba(30, 125, 222, 0.16));
  border: 1px solid rgba(0, 196, 196, 0.28);
  border-radius: 999px;
  box-shadow: 0 0 34px rgba(0, 196, 196, 0.25);
  display: grid;
  height: 86px;
  place-items: center;
  position: relative;
  width: 86px;
}

.lani-bdf__loading-sigil::before {
  animation: lani-bdf-spin 4.8s linear infinite;
  border: 1px solid rgba(201, 154, 58, 0.72);
  border-left-color: transparent;
  border-radius: 999px;
  content: "";
  inset: 8px;
  position: absolute;
}

.lani-bdf__loading-sigil::after {
  animation: lani-bdf-spin 8s linear infinite reverse;
  border: 1px dashed rgba(30, 125, 222, 0.5);
  border-radius: 999px;
  content: "";
  inset: 17px;
  position: absolute;
}

.lani-bdf__loading-sigil span {
  color: var(--lani-bdf-night);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.lani-bdf__loading h2 {
  font-size: clamp(22px, 5vw, 29px);
  line-height: 1.45;
  margin: 0;
}

.lani-bdf__loading p {
  color: var(--lani-bdf-muted);
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
  max-width: 420px;
}

.lani-bdf__loading-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.lani-bdf__loading-steps span {
  background: #f4fbff;
  border: 1px solid #bfeaf4;
  border-radius: 999px;
  color: #22586c;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

@keyframes lani-bdf-spin {
  to {
    transform: rotate(360deg);
  }
}

.lani-bdf__result-kicker {
  color: #0077a7;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.lani-bdf__result-title {
  font-size: clamp(24px, 6vw, 32px);
  line-height: 1.35;
  margin: 0;
  text-align: center;
}

.lani-bdf__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.lani-bdf__chip {
  background: #f4fbff;
  border: 1px solid #bfeaf4;
  border-radius: 999px;
  color: #22586c;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 11px;
}

.lani-bdf__summary,
.lani-bdf__metrics,
.lani-bdf__section,
.lani-bdf__cta {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #c9edf6;
  border-radius: 12px;
  padding: 16px;
}

.lani-bdf__summary-title,
.lani-bdf__section h3,
.lani-bdf__cta h3 {
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 10px;
}

.lani-bdf__summary p,
.lani-bdf__section p,
.lani-bdf__cta p {
  font-size: 15px;
  line-height: 1.9;
  margin: 0;
}

.lani-bdf__metrics {
  display: grid;
  gap: 12px;
}

.lani-bdf__metric-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.lani-bdf__metric-label {
  font-size: 14px;
  font-weight: 800;
}

.lani-bdf__metric-status {
  color: #22586c;
  font-size: 13px;
  font-weight: 800;
}

.lani-bdf__bar {
  background: #e8f6f8;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.lani-bdf__bar span {
  background: linear-gradient(to right, var(--lani-bdf-blue), var(--lani-bdf-cyan));
  border-radius: inherit;
  display: block;
  height: 100%;
  width: var(--value, 50%);
}

.lani-bdf__cta {
  border-color: #f2c87a;
  background: linear-gradient(135deg, #fffdf5 0%, #f2fffd 100%);
}

.lani-bdf__cta-note {
  background: #fff6e4;
  border-left: 4px solid #e0ab39;
  margin: 12px 0;
  padding: 12px 14px;
}

.lani-bdf__notice {
  color: #5d7080;
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
}

body.lani-bdf-modal-open {
  overflow: hidden;
}

@media (max-width: 520px) {
  .lani-bdf {
    margin: 22px 0;
  }

  .lani-bdf__panel {
    border-radius: 12px;
  }

  .lani-bdf__altar {
    padding: 24px 18px 20px;
  }

  .lani-bdf__form {
    padding: 18px 14px 20px;
  }

  .lani-bdf__modal {
    padding: 12px;
  }

  .lani-bdf__dialog {
    max-height: 88vh;
    padding: 20px 14px 18px;
  }
}
