/* ── LiftRev Forms ─────────────────────────────────────── */
.liftrev-form-wrap,
.liftrev-form-wrap * { box-sizing: border-box; }

.liftrev-form-wrap {
  --liftrev-accent: #2d6a4f;
  --liftrev-border: rgba(15, 23, 42, 0.10);
  --liftrev-shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
  --liftrev-muted: #64748b;
  color: #0f172a;
}

.liftrev-form-shell {
  background: #fff;
  border: 1px solid var(--liftrev-border);
  border-radius: 18px;
  box-shadow: var(--liftrev-shadow);
  padding: 22px;
}

/* ── Fields ──────────────────────────────────────────────── */
.liftrev-field { margin-bottom: 14px; }
.liftrev-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #1f2937;
}
.liftrev-req { color: #b91c1c; }
.liftrev-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8dee8;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.4;
  font-family: inherit;
  background: #fff;
  color: #0f172a;
  transition: border-color .15s, box-shadow .15s, background .15s;
  appearance: none;
}
.liftrev-input:focus {
  outline: none;
  border-color: var(--liftrev-accent);
  box-shadow: 0 0 0 4px rgba(45, 106, 79, .12);
}
.liftrev-input.liftrev-invalid,
.liftrev-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, .08) !important;
}
textarea.liftrev-input { min-height: 96px; resize: vertical; }
select.liftrev-input { cursor: pointer; }
.liftrev-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  color: #1f2937;
}
.liftrev-checkbox-label input {
  margin-top: 2px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* ── Button ──────────────────────────────────────────────── */
.liftrev-btn {
  display: block;
  width: 100%;
  background: var(--liftrev-accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 16px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: opacity .15s, transform .1s, box-shadow .15s;
  margin-top: 6px;
  box-shadow: 0 10px 20px rgba(45, 106, 79, .18);
}
.liftrev-btn:hover  { opacity: .94; transform: translateY(-1px); }
.liftrev-btn:active { transform: translateY(0); }
.liftrev-btn:disabled {
  opacity: .7;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

/* ── Message ─────────────────────────────────────────────── */
.liftrev-message {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  min-height: 1.25em;
  display: block;
}
.liftrev-success { color: #166534; font-weight: 700; }
.liftrev-error   { color: #b91c1c; font-weight: 600; }

/* ── Heading / Subheading ────────────────────────────────── */
.liftrev-heading {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.2;
}
.liftrev-subheading {
  font-size: 14px;
  color: var(--liftrev-muted);
  margin: 0 0 16px;
  line-height: 1.55;
}

/* ── Inline form ─────────────────────────────────────────── */
.liftrev-mode-inline {
  width: min(100%, 520px);
  max-width: 100%;
}
.liftrev-mode-inline .liftrev-form-shell {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
}

/* ── Overlay base (popup + exit-intent) ──────────────────── */
.liftrev-mode-popup,
.liftrev-mode-exit_intent,
.liftrev-mode-slide_in {
  z-index: 999990;
}

.liftrev-mode-popup,
.liftrev-mode-exit_intent {
  display: none;
  position: fixed;
  inset: 0;
}
.liftrev-mode-popup.liftrev-active,
.liftrev-mode-exit_intent.liftrev-active { display: block; }

.liftrev-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, .56);
  backdrop-filter: blur(3px);
}

.liftrev-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(540px, calc(100vw - 24px));
  max-height: min(90vh, 920px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 20px;
  animation: liftrev-modal-in .22s ease;
}
@keyframes liftrev-modal-in {
  from { opacity: 0; transform: translate(-50%, -48%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* ── Slide-in ────────────────────────────────────────────── */
.liftrev-mode-slide_in {
  display: block;
  position: fixed;
  inset: auto 0 0 auto;
  pointer-events: none;
}

.liftrev-slidein {
  position: fixed;
  right: 18px;
  bottom: calc(-100% - 40px);
  width: min(390px, calc(100vw - 18px));
  transition: bottom .35s cubic-bezier(.34,1.56,.64,1);
  pointer-events: auto;
}
.liftrev-mode-slide_in.liftrev-active .liftrev-slidein {
  bottom: max(0px, env(safe-area-inset-bottom));
}

/* ── Close button ────────────────────────────────────────── */
.liftrev-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.08);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: #475569;
  cursor: pointer;
  padding: 0;
  border-radius: 999px;
  transition: color .15s, background .15s, transform .1s;
}
.liftrev-close:hover {
  color: #0f172a;
  background: #fff;
  transform: translateY(-1px);
}

/* ── States ──────────────────────────────────────────────── */
body.liftrev-overlay-open { overflow: hidden; }
.liftrev-form.liftrev-is-submitting .liftrev-input,
.liftrev-form.liftrev-is-submitting .liftrev-checkbox-label {
  opacity: .88;
}
.liftrev-has-success .liftrev-form-shell {
  border-color: rgba(34, 197, 94, .28);
  box-shadow: 0 18px 50px rgba(22, 101, 52, .12);
}

/* ── Utility ─────────────────────────────────────────────── */
.liftrev-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.liftrev-form { position: relative; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .liftrev-form-shell { padding: 18px 16px; border-radius: 16px; }
  .liftrev-modal {
    width: calc(100vw - 14px);
    max-height: calc(100vh - 14px);
  }
  .liftrev-slidein {
    right: 0;
    width: 100vw;
  }
  .liftrev-mode-slide_in.liftrev-active .liftrev-slidein {
    bottom: 0;
  }
}
