/* A quiet, call-first invitation using the shared inquiry form. */
.idle-popup {
  position: fixed;
  inset: 0;
  z-index: 340;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: rgba(10, 12, 10, .74);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  overscroll-behavior: contain;
}
.idle-popup[hidden] { display: none; }
.idle-popup-panel {
  width: min(100%, 620px);
  max-height: min(90vh, 960px);
  max-height: min(90dvh, 960px);
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(228, 212, 180, .72);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 32px 100px rgba(0, 0, 0, .4);
  animation: idlePopupIn .28s var(--ease) both;
}
.idle-popup-top {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 4px 12px 4px 30px;
  border-bottom: 1px solid var(--line-light);
  background: var(--ivory);
}
.idle-popup-brand {
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.idle-popup-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: background-color .2s, border-color .2s;
}
.idle-popup-close:hover { background: var(--paper); border-color: var(--line-light); }
.idle-popup-close:focus-visible { outline-color: var(--gold-deep); outline-offset: 1px; }
.idle-popup-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--paper);
  scroll-padding-block: 20px;
}
.idle-popup .form-card { padding: 24px 30px 26px; border: 0; border-radius: 0; box-shadow: none; }
.idle-popup .form-head { margin-bottom: 18px; }
.idle-popup .form-head .eyebrow { margin: 0 0 9px; font-size: .62rem; }
.idle-popup .form-head h3 { font-size: clamp(1.9rem, 1.65rem + 1vw, 2.35rem); }
.idle-popup .form-head p { margin-top: 8px; font-size: .9rem; }
.idle-popup .form-head .form-call { margin-top: 15px; }
.idle-popup .form-call .btn { --h: 50px; }
.idle-popup .assurances { margin-top: 10px; gap: 4px 12px; font-size: .72rem; }
.idle-popup .rating-badge { margin-top: 8px; font-size: .77rem; }
.idle-popup .lf-progress { margin-bottom: 15px; }
.idle-popup .lf-step { scroll-margin-top: 16px; }
.idle-popup .lf-step legend { margin-bottom: 13px; font-size: 1.35rem; }
.idle-popup .lf-field { margin-bottom: 14px; }
.idle-popup .lf-label { margin-bottom: 6px; }
.idle-popup .chip-group { gap: 6px; }
.idle-popup .chip span { padding: 8px 12px; font-size: .82rem; }
.idle-popup .check { min-height: 24px; margin-bottom: 12px; }
.idle-popup .lf-note { margin-top: 10px; font-size: .78rem; }
.idle-popup .lf-recap { margin-bottom: 13px; }
.idle-popup textarea.lf-input { min-height: 82px; }
@keyframes idlePopupIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 600px) {
  .idle-popup {
    padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  }
  .idle-popup-panel { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  .idle-popup-top { min-height: 52px; padding-inline: 20px 8px; }
  .idle-popup .form-card { padding: 21px 20px 24px; }
  .idle-popup .form-head .eyebrow { font-size: .58rem; letter-spacing: .12em; }
  .idle-popup .form-head h3 { font-size: 2rem; }
  .idle-popup .form-head p { font-size: .87rem; }
  .idle-popup .chip span { padding-inline: 10px; }
  .idle-popup .lf-row { gap: 0 12px; }
}
@media (max-width: 380px) {
  .idle-popup .form-card { padding-inline: 16px; }
  .idle-popup .lf-row { grid-template-columns: 1fr; }
  .idle-popup .form-head h3 { font-size: 1.8rem; }
  .idle-popup .btn { padding-inline: 12px; font-size: .65rem; letter-spacing: .06em; }
}
@media (prefers-reduced-motion: reduce) {
  .idle-popup-panel { animation: none; }
  .idle-popup-close { transition: none; }
}
