/* ASKRE B2B Valuation funnel */
.askre-val {
  --navy: #0F1D33;
  --amber: #A9720A;
  --line: #e4e7ec;
  --muted: #667085;
  max-width: 680px;
  margin: 0 auto;
  padding: 8px;
  color: var(--navy);
  font-family: inherit;
  box-sizing: border-box;
}
.askre-val *, .askre-val *::before, .askre-val *::after { box-sizing: border-box; }

/* progress */
.av-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; }
.av-step-pip { flex: 1; font-size: 12px; color: var(--muted); text-align: center; border-top: 3px solid var(--line); padding-top: 8px; }
.av-step-pip span { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: var(--line); color: #fff; align-items: center; justify-content: center; font-size: 11px; margin-right: 4px; }
.av-step-pip.is-active { color: var(--navy); border-top-color: var(--navy); font-weight: 700; }
.av-step-pip.is-active span, .av-step-pip.is-done span { background: var(--navy); }
.av-step-pip.is-done { border-top-color: var(--navy); }

/* steps */
.av-step { display: none; animation: avfade .2s ease; }
.av-step.is-active { display: block; }
@keyframes avfade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.av-title { font-size: 20px; font-weight: 700; margin: 0 0 4px; color: var(--navy); }
.av-sub { color: var(--muted); margin: 0 0 18px; }

/* fields */
.av-field { display: block; margin-bottom: 14px; }
.av-field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.av-field > span em { color: #d92d20; font-style: normal; }
.av-field > span small { font-weight: 400; color: var(--muted); }
.av-field input, .av-field select, .av-field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 15px; color: var(--navy); background: #fff;
}
.av-field input:focus, .av-field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15,29,51,.08); }
.av-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.av-inline { display: flex; gap: 8px; }
.av-inline input { flex: 1; }
/* country-code searchable picker */
.av-tel { align-items: stretch; }
.av-cc { position: relative; flex: 0 0 auto; }
.av-cc-btn {
  height: 100%; min-height: 44px; display: flex; align-items: center; gap: 8px;
  padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-size: 15px; color: var(--navy); cursor: pointer; white-space: nowrap;
}
.av-cc-btn:hover { border-color: var(--navy); }
.av-cc-caret { color: var(--muted); font-size: 11px; }
.av-cc-pop {
  position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; width: 300px; max-width: 78vw;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(16,24,40,.16); padding: 8px; box-sizing: border-box;
}
.av-cc-search {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; margin-bottom: 6px; box-sizing: border-box;
}
.av-cc-search:focus { outline: none; border-color: var(--navy); }
.av-cc-list { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow-y: auto; }
.av-cc-list li {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px;
  cursor: pointer; font-size: 14px;
}
.av-cc-list li:hover { background: #f2f4f7; }
.av-cc-list li.is-selected { background: #5b52e0; }
.av-cc-list li.is-selected .av-cc-name { color: #fff; font-weight: 600; }
.av-cc-list li.is-selected .av-cc-dial { color: #cfd0f5; }
.av-cc-flag { font-size: 16px; }
.av-cc-name { flex: 1; color: var(--navy); }
.av-cc-dial { color: var(--muted); }
.av-cc-empty { padding: 12px; text-align: center; color: var(--muted); font-size: 13px; }
.av-hint { color: var(--muted); font-size: 12px; margin: 6px 0 0; }
.av-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 6px 0 4px; }
.av-check input { margin-top: 2px; }

/* actions / buttons */
.av-actions { display: flex; gap: 10px; margin-top: 18px; }
.av-actions-reset { justify-content: center; }

/* confirm modal */
.av-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.av-modal[hidden] { display: none; }
.av-modal-backdrop { position: absolute; inset: 0; background: rgba(15,29,51,.55); }
.av-modal-box {
  position: relative; z-index: 1; background: #fff; border-radius: 14px;
  box-shadow: 0 20px 48px rgba(16,24,40,.24); padding: 24px; width: 100%; max-width: 420px;
  animation: avfade .2s ease;
}
.av-modal-title { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: var(--navy); }
.av-modal-text { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; }
.av-modal-actions { justify-content: flex-end; }
.av-modal-actions .av-primary { margin-left: 0; }
.av-btn { padding: 11px 20px; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: .15s; }
.av-btn:disabled { opacity: .55; cursor: not-allowed; }
.av-primary { background: var(--navy); color: #fff; margin-left: auto; }
.av-primary:hover:not(:disabled) { background: #1b2f4d; }
.av-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.av-ghost:hover:not(:disabled) { border-color: var(--navy); }

/* alert */
.av-alert { background: #fef3f2; border: 1px solid #fecdca; color: #b42318; padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.av-alert.is-ok { background: #ecfdf3; border-color: #abefc6; color: #067647; }

/* estimate */
.av-est-value { font-size: 40px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.av-est-range { color: var(--muted); margin: 4px 0 16px; }
.av-est-meta { display: flex; gap: 24px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.av-est-meta div { font-size: 14px; font-weight: 600; }
.av-est-meta span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 500; }
.av-disclaimer { font-size: 12px; color: var(--muted); margin-top: 12px; }

/* option cards */
.av-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.av-card { border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; }
.av-card p { font-size: 13px; color: var(--muted); flex: 1; }
.av-card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.av-card-head h4 { margin: 0; font-size: 16px; }
.av-price { font-weight: 700; color: var(--amber); font-size: 14px; }
.av-card.is-disabled { opacity: .7; }
.av-ineligible { color: #b42318 !important; font-size: 12px; margin-top: 8px; }

/* panels */
.av-panel { margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: #fbfbfc; }
.av-quote-head { display: flex; justify-content: space-between; align-items: baseline; }
.av-quote-head h4 { margin: 0; }
.av-quote-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.av-quote-table td { padding: 6px 0; font-size: 14px; }
.av-quote-table td:last-child { text-align: right; font-weight: 600; }
.av-quote-table .av-total td { border-top: 1px solid var(--line); padding-top: 10px; font-size: 16px; font-weight: 700; }
.av-bank { background: #fff; border: 1px dashed var(--line); border-radius: 8px; padding: 12px 14px; font-size: 13px; margin-bottom: 14px; }
.av-bank h5 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.av-bank p { margin: 0; line-height: 1.7; }

/* done */
.av-done-card { text-align: center; padding: 30px 10px; }
.av-done-card .av-check { width: 56px; height: 56px; border-radius: 50%; background: #ecfdf3; color: #067647; font-size: 30px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.av-done-card h3 { margin: 0 0 8px; }
.av-done-card p { color: var(--muted); max-width: 440px; margin: 0 auto; }

.av-trust { text-align: center; font-size: 11px; color: var(--muted); margin-top: 24px; }

/* responsive */
@media (max-width: 560px) {
  .av-grid2, .av-options { grid-template-columns: 1fr; }
  .av-est-value { font-size: 32px; }
  .av-step-pip { font-size: 0; }
  .av-step-pip span { margin: 0; }
}
