.eqz-teaser,
.eqz-modal {
  font-family: var(--fb, var(--font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Arial, sans-serif));
}

.eqz-teaser {
  position: fixed;
  left: 18px;
  bottom: 22px;
  z-index: 2147483300;
  width: min(360px, calc(100vw - 36px));
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: #1c1b18;
  color: #fff;
  border: 1px solid rgba(200, 169, 110, .45);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity .28s ease, transform .28s ease;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.eqz-teaser.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.eqz-teaser-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #c8a96e 0%, #b89456 100%);
  color: #191815;
  font-size: 22px;
  font-weight: 800;
}

.eqz-teaser-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0;
}

.eqz-teaser-sub {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, .7);
}

.eqz-teaser-open,
.eqz-teaser-close,
.eqz-choice,
.eqz-back,
.eqz-next,
.eqz-submit,
.eqz-close {
  font-family: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.eqz-teaser-open {
  min-width: 86px;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: #c8a96e;
  color: #1c1b18;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.eqz-teaser-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: #111;
  color: rgba(255, 255, 255, .85);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.eqz-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.eqz-modal.is-open {
  display: flex;
}

.modal-ov.open ~ .eqz-teaser,
.modal-overlay.open ~ .eqz-teaser {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.eqz-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 14, 11, .64);
  backdrop-filter: blur(4px);
}

.eqz-panel {
  position: relative;
  width: min(640px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #faf9f7;
  color: #1c1b18;
  border: 1px solid rgba(200, 169, 110, .35);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

.eqz-head {
  padding: 22px 24px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.eqz-kicker {
  margin-bottom: 8px;
  color: #836528;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eqz-title {
  margin: 0;
  max-width: 520px;
  font-family: var(--fd, var(--font-display, Georgia, "Times New Roman", serif));
  font-size: clamp(25px, 4vw, 38px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
}

.eqz-subtitle {
  margin: 10px 0 0;
  max-width: 520px;
  color: #6b6860;
  font-size: 15px;
  line-height: 1.55;
}

.eqz-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 999px;
  background: #fff;
  color: #1c1b18;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.eqz-progress {
  height: 4px;
  background: #ebe7df;
}

.eqz-progress span {
  display: block;
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, #c8a96e 0%, #9c7434 100%);
  transition: width .24s ease;
}

.eqz-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px;
}

.eqz-step-label {
  margin-bottom: 8px;
  color: #aeaba3;
  font-size: 12px;
  font-weight: 800;
}

.eqz-question {
  margin: 0 0 16px;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0;
}

.eqz-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.eqz-choice {
  min-height: 58px;
  padding: 14px 15px;
  border: 1.5px solid rgba(0, 0, 0, .11);
  border-radius: 10px;
  background: #fff;
  color: #1c1b18;
  text-align: left;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 750;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.eqz-choice.is-selected {
  border-color: rgba(200, 169, 110, .9);
  background: rgba(200, 169, 110, .14);
  box-shadow: inset 0 0 0 1px rgba(200, 169, 110, .34);
}

.eqz-inputs {
  display: grid;
  gap: 12px;
}

.eqz-field {
  display: grid;
  gap: 6px;
}

.eqz-field label {
  color: #6b6860;
  font-size: 13px;
  font-weight: 800;
}

.eqz-field input,
.eqz-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1.5px solid rgba(0, 0, 0, .14);
  border-radius: 9px;
  background: #fff;
  color: #1c1b18;
  font: inherit;
  font-size: 16px;
  outline: none;
}

.eqz-field textarea {
  min-height: 90px;
  resize: vertical;
}

.eqz-field input:focus,
.eqz-field textarea:focus {
  border-color: rgba(200, 169, 110, .85);
  box-shadow: 0 0 0 3px rgba(200, 169, 110, .16);
}

.eqz-agree {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 2px;
  color: #6b6860;
  font-size: 12px;
  line-height: 1.45;
}

.eqz-agree input {
  margin-top: 2px;
  flex: 0 0 auto;
}

.eqz-agree a {
  color: #836528;
}

.eqz-status {
  min-height: 20px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 750;
}

.eqz-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px 22px;
  border-top: 1px solid rgba(0, 0, 0, .08);
}

.eqz-back,
.eqz-next,
.eqz-submit {
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.eqz-back {
  border: 1.5px solid rgba(0, 0, 0, .16);
  background: #fff;
  color: #1c1b18;
}

.eqz-next,
.eqz-submit {
  margin-left: auto;
  border: none;
  background: linear-gradient(135deg, #c8a96e 0%, #b89456 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(200, 169, 110, .26);
}

.eqz-next:disabled,
.eqz-submit:disabled {
  opacity: .45;
  cursor: not-allowed;
}

body.eqz-lock {
  overflow: hidden;
}

@media (max-width: 640px) {
  .eqz-teaser {
    left: 12px;
    right: 12px;
    bottom: 14px;
    width: auto;
    grid-template-columns: 40px 1fr;
    padding-right: 12px;
  }

  .eqz-teaser-open {
    grid-column: 1 / -1;
    width: 100%;
  }

  .eqz-modal {
    padding: 10px;
    align-items: flex-end;
  }

  .eqz-panel {
    max-height: min(92vh, 760px);
    border-radius: 14px 14px 10px 10px;
  }

  .eqz-head,
  .eqz-body,
  .eqz-foot {
    padding-left: 18px;
    padding-right: 18px;
  }

  .eqz-options {
    grid-template-columns: 1fr;
  }

  .eqz-foot {
    position: sticky;
    bottom: 0;
    background: #faf9f7;
  }
}
