.avpm-lead-widget-root {
  width: 100%;
}

.avpm-la-shell {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.12);
  padding: 34px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.avpm-la-shell-modal {
  max-width: 860px;
}

.avpm-la-main {
  width: 100%;
}

.avpm-la-header {
  text-align: center;
  margin-bottom: 24px;
}

.avpm-la-header h1 {
  font-size: 42px;
  line-height: 1.1;
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.avpm-la-header p {
  margin: 0;
  font-size: 20px;
  color: #6b7280;
}

.avpm-la-badge {
  display: inline-block;
  margin-bottom: 14px;
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.avpm-la-loading {
  text-align: center;
  font-size: 18px;
  padding: 24px 0 8px;
  color: #6b7280;
}

.avpm-la-progress-wrap {
  margin-bottom: 24px;
}

.avpm-la-progress {
  width: 100%;
  height: 10px;
  background: #ececec;
  border-radius: 999px;
  overflow: hidden;
}

.avpm-la-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.avpm-la-progress-copy {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  font-weight: 600;
}

.avpm-la-panel {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.avpm-la-q-title {
  display: block;
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 8px;
  font-weight: 700;
}

.avpm-la-hint {
  margin: 0 0 16px;
  font-size: 15px;
  color: #6b7280;
}

.avpm-la-input {
  width: 100%;
  min-height: 56px;
  border-radius: 16px;
  border: 2px solid #e5e7eb;
  padding: 14px 16px;
  font-size: 18px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 14px;
}

.avpm-la-input:focus {
  border-color: #111827;
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.08);
}

.avpm-la-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.avpm-la-actions button,
.avpm-la-open-modal-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 16px;
  min-height: 56px;
  padding: 14px 22px;
  font-size: 17px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.avpm-la-actions button:hover,
.avpm-la-open-modal-btn:hover {
  transform: translateY(-1px);
}

.avpm-la-actions .primary,
.avpm-la-open-modal-btn {
  color: #fff;
  background: #111827;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  flex: 1;
}

.avpm-la-actions .secondary {
  background: #f3f4f6;
  color: #111827;
  border: 1px solid #e5e7eb;
  flex: 1;
}

.avpm-la-footer {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: #6b7280;
}

.avpm-la-results {
  display: grid;
  gap: 18px;
}

.avpm-la-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.avpm-la-result-card {
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  border: 1px solid #ececec;
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

.avpm-la-result-card span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  font-weight: 700;
  margin-bottom: 8px;
}

.avpm-la-result-card strong {
  display: block;
  font-size: 28px;
  line-height: 1.15;
}

.avpm-la-breakdown h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 22px;
}

.avpm-la-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 16px;
}

.avpm-la-row:last-child {
  border-bottom: 0;
}

.avpm-la-hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.avpm-la-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.avpm-la-modal.is-open {
  display: block;
}

.avpm-la-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(4px);
}

.avpm-la-modal-dialog {
  position: relative;
  z-index: 2;
  width: min(960px, calc(100vw - 32px));
  margin: 40px auto;
  max-height: calc(100vh - 80px);
  overflow: auto;
  border-radius: 28px;
}

.avpm-la-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 5;
  border: 0;
  background: rgba(255,255,255,0.92);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.avpm-la-modal-open {
  overflow: hidden;
}

.avpm-la-modal-launcher-wrap {
  text-align: center;
}

@media (max-width: 900px) {
  .avpm-la-shell {
    padding: 24px;
    border-radius: 20px;
  }

  .avpm-la-header h1 {
    font-size: 34px;
  }

  .avpm-la-header p {
    font-size: 18px;
  }

  .avpm-la-q-title {
    font-size: 24px;
  }

  .avpm-la-result-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .avpm-la-shell {
    padding: 18px;
    border-radius: 18px;
  }

  .avpm-la-header h1 {
    font-size: 28px;
  }

  .avpm-la-header p {
    font-size: 16px;
  }

  .avpm-la-panel {
    padding: 18px;
    border-radius: 16px;
  }

  .avpm-la-q-title {
    font-size: 22px;
  }

  .avpm-la-actions {
    flex-direction: column;
  }

  .avpm-la-actions button,
  .avpm-la-open-modal-btn {
    width: 100%;
  }

  .avpm-la-modal-dialog {
    width: calc(100vw - 16px);
    margin: 8px auto;
    max-height: calc(100vh - 16px);
  }
}
/* ============================================================
   DARK THEME — matches the rental qualifier widget
   The analyzer shipped with a light default palette that no
   longer matches the site. These rules restate it in the A-V
   dark language: same card surface, red accent, and pill
   controls used by the qualifier on the listings page.
   ============================================================ */
.avpm-la-shell {
  --la-bg: linear-gradient(180deg, rgba(34, 37, 43, 0.98), rgba(21, 23, 27, 0.99));
  --la-border: rgba(255, 255, 255, 0.12);
  --la-text: #f5f7fa;
  --la-muted: #9aa1ab;
  --la-primary: #d72638;
  --la-primary-deep: #8f1621;
  --la-primary-soft: rgba(215, 38, 56, 0.16);

  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 26px;
  border: 1px solid var(--la-border);
  border-radius: 22px;
  background: var(--la-bg);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
  color: var(--la-text);
  font-family: Arial, sans-serif;
  overflow: hidden;
}

.avpm-la-shell::before {
  content: "";
  position: absolute;
  inset: -22% auto auto -18%;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(215, 38, 56, 0.20) 0%, rgba(215, 38, 56, 0) 70%);
  pointer-events: none;
}

.avpm-la-shell > * {
  position: relative;
  z-index: 1;
}

.avpm-la-badge {
  display: inline-block;
  margin: 0 0 8px;
  color: #ff4b5c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.avpm-la-header h2,
.avpm-la-header h3,
.avpm-la-q-title {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.avpm-la-header p,
.avpm-la-hint,
.avpm-la-footer,
.avpm-la-progress-copy {
  color: var(--la-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 12px;
  text-wrap: pretty;
}

.avpm-la-question-num {
  color: var(--la-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* progress */
.avpm-la-progress-wrap,
.avpm-la-progress {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin: 0 0 18px;
}

.avpm-la-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--la-primary), #ff6b78);
  transition: width 0.3s ease;
}

/* inputs */
.avpm-la-input,
.avpm-la-shell input[type="text"],
.avpm-la-shell input[type="email"],
.avpm-la-shell input[type="tel"],
.avpm-la-shell input[type="number"],
.avpm-la-shell select,
.avpm-la-shell textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 15px;
  margin: 0 0 12px;
  border-radius: 13px;
  border: 1px solid var(--la-border);
  background: rgba(0, 0, 0, 0.32);
  color: var(--la-text);
  font-family: inherit;
  font-size: 15px;
}

.avpm-la-shell input::placeholder,
.avpm-la-shell textarea::placeholder {
  color: rgba(154, 161, 171, 0.75);
}

.avpm-la-shell input:focus,
.avpm-la-shell select:focus,
.avpm-la-shell textarea:focus {
  outline: none;
  border-color: rgba(215, 38, 56, 0.6);
  box-shadow: 0 0 0 3px rgba(215, 38, 56, 0.16);
}

/* buttons */
.avpm-la-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}

.avpm-la-next,
.avpm-la-open-modal-btn,
.avpm-la-shell button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--la-primary), var(--la-primary-deep));
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.avpm-la-next:hover,
.avpm-la-open-modal-btn:hover,
.avpm-la-shell button[type="submit"]:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.avpm-la-prev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--la-border);
  background: transparent;
  color: var(--la-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.avpm-la-prev:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* results */
.avpm-la-results,
.avpm-la-result-card {
  border: 1px solid var(--la-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  padding: 18px;
  margin: 0 0 12px;
  color: var(--la-text);
}

.avpm-la-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.avpm-la-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14.5px;
}

.avpm-la-row:last-child {
  border-bottom: 0;
}

.avpm-la-row strong,
.avpm-la-breakdown strong {
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.avpm-la-loading {
  color: var(--la-muted);
  font-size: 14px;
}

/* honeypot stays hidden */
.avpm-la-hp {
  position: absolute !important;
  left: -9999px !important;
}

/* modal */
.avpm-la-modal {
  position: fixed;
  inset: 0;
  z-index: 2147482000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.avpm-la-modal.avpm-la-modal-open,
.avpm-la-modal[aria-hidden="false"] {
  display: flex;
}

.avpm-la-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 9, 0.78);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.avpm-la-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
}

.avpm-la-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--la-border, rgba(255, 255, 255, 0.12));
  background: rgba(18, 20, 24, 0.8);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.avpm-la-modal-close:hover {
  background: rgba(215, 38, 56, 0.9);
}

.avpm-la-modal-launcher-wrap {
  display: flex;
  justify-content: center;
  margin: 18px 0;
}

@media (max-width: 600px) {
  .avpm-la-shell {
    padding: 20px 18px;
    border-radius: 18px;
  }
  .avpm-la-header h2,
  .avpm-la-q-title {
    font-size: 19px;
  }
  .avpm-la-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .avpm-la-next,
  .avpm-la-prev {
    width: 100%;
  }
}

/* The widget writes background/color as inline styles from its saved settings,
   which outrank the stylesheet. Assert the themed surface so the analyzer stays
   on-brand even if an older light colour is still stored in the options row. */
.avpm-la-shell[style] {
  background: linear-gradient(180deg, rgba(34, 37, 43, 0.98), rgba(21, 23, 27, 0.99)) !important;
  color: var(--la-text, #f5f7fa) !important;
}

.avpm-la-badge[style] {
  background: var(--la-primary, #d72638) !important;
  color: #fff !important;
}

.avpm-la-next[style],
.avpm-la-shell button[type="submit"][style] {
  background: linear-gradient(180deg, var(--la-primary, #d72638), var(--la-primary-deep, #8f1621)) !important;
  color: #fff !important;
}

.avpm-la-progress-fill[style] {
  background: linear-gradient(90deg, var(--la-primary, #d72638), #ff6b78) !important;
}

/* Keep the step controls a sensible width: Back on the left, Next on the
   right, neither stretching to fill the row. */
.avpm-la-actions {
  justify-content: space-between;
}

.avpm-la-actions .avpm-la-prev,
.avpm-la-actions .avpm-la-next {
  flex: 0 0 auto;
  min-width: 118px;
}

.avpm-la-actions .avpm-la-next:only-child {
  margin-left: auto;
}

.avpm-la-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
}
