/* Cash For Cars Memphis: quote questions, cash offer page and acceptance */
@font-face { font-family: arsurt_bold; src: url(../fonts/ATSurt-Bold.ttf); font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.m9-flowpage { margin: 0; background: #f8f5fd; color: var(--m9-ink); font: 400 16px/1.5 var(--m9-font); }
body.m9-locked { overflow: hidden; }
.m9-flowpage h1, .m9-flowpage h2, .m9-flowpage h3 { color: var(--m9-ink); }
.m9-flowpage a { color: var(--m9-violet-deep); }
.m9-flowpage button { font-family: inherit; }
.m9-flowpage :focus-visible { outline: 3px solid rgba(102,0,255,.45); outline-offset: 2px; }
.m9-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header: logo only */
.m9-flowhead { background: #fff; border-bottom: 4px solid var(--m9-orange); padding: 14px 20px; }
.m9-flowhead__logo { display: inline-block; max-width: 1040px; }
.m9-flowhead__logo img { display: block; height: 40px; width: auto; }
@media (min-width: 768px) { .m9-flowhead { padding: 16px max(24px, calc((100% - 1040px) / 2)); } .m9-flowhead__logo img { height: 44px; } }

/* footer (same look as the rest of the site) */
.memphis-footer-section { background: #0b1016; padding: 34px 16px 20px; }
.memphis-footer-section .container { max-width: 1170px; margin: 0 auto; }
.memphis-footer-text p { font: 500 15px/1.5 var(--m9-font); color: #8a929b; margin: 0 0 10px; }

/* stage */
.m9-flow { min-height: 70vh; padding: 28px 16px 64px; }
.m9-panel { max-width: 640px; margin: 0 auto; }
.m9-panel--boot { display: flex; justify-content: center; padding-top: 80px; }
.m9-in-fwd { animation: m9fwd .22s ease-out; }
.m9-in-back { animation: m9back .22s ease-out; }
@keyframes m9fwd { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes m9back { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

/* question card */
.m9-q { background: #fff; border-radius: 20px; padding: 26px 32px 30px; box-shadow: 0 1px 0 rgba(27,16,53,.04), 0 18px 48px rgba(27,16,53,.08); }
.m9-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; min-height: 44px; }
.m9-back { background: none; border: 0; padding: 10px 4px; margin-left: -4px; color: var(--m9-violet-deep); font-weight: 600; font-size: 15px; cursor: pointer; min-height: 44px; }
.m9-back:hover { text-decoration: underline; }
.m9-top__car { color: var(--m9-muted); font-size: 14px; font-weight: 500; text-align: right; }
.m9-meter { height: 6px; background: #ece6f7; border-radius: 99px; overflow: hidden; margin-bottom: 26px; }
.m9-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--m9-violet), #8f4dff); border-radius: 99px; transition: width .3s ease; }
.m9-q h1 { font: 700 26px/1.25 var(--m9-font); margin: 0 0 8px; letter-spacing: -.01em; }
.m9-q h1:focus { outline: none; }
.m9-q__hint { color: var(--m9-muted); margin: 0 0 18px; font-size: 15px; }
.m9-info { background: var(--m9-violet-tint); border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; font-size: 15px; color: #3a2a63; }
.m9-alert { background: #fff4f0; border: 1px solid #f6c3ad; border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; font-size: 15px; color: #7a2a0b; }
.m9-q__err { color: var(--m9-bad); font-weight: 500; margin: 12px 0 0; }
.m9-q__err::before { content: '! '; font-weight: 700; }
.m9-q__foot { display: flex; justify-content: flex-end; margin-top: 20px; }

.m9-choices { display: grid; gap: 10px; margin-top: 18px; }
.m9-choice {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 14px 16px; text-align: left;
  background: #fff; border: 2px solid var(--m9-line); border-radius: 14px; color: var(--m9-ink); font-size: 16px; font-weight: 500; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.m9-choice:hover { border-color: #b69cf0; background: #fcfaff; }
.m9-choice:active { transform: scale(.995); }
.m9-choice__n { flex: none; width: 26px; height: 26px; border-radius: 8px; background: #f1edf8; color: var(--m9-muted); font-size: 13px; font-weight: 600; display: grid; place-items: center; }
.m9-choice__t { flex: 1; }
.m9-choice__t em { display: block; font-style: normal; font-size: 13px; color: var(--m9-muted); font-weight: 400; }
.m9-choice__go { flex: none; width: 9px; height: 9px; border-right: 2px solid #9a90b0; border-top: 2px solid #9a90b0; transform: rotate(45deg); margin-right: 4px; }
.m9-choice.is-on { border-color: var(--m9-violet); background: var(--m9-violet-tint); }
.m9-choice.is-on .m9-choice__n { background: var(--m9-violet); color: #fff; }
.m9-choice.is-on .m9-choice__go { width: 14px; height: 8px; border: 0; border-left: 2.5px solid var(--m9-violet); border-bottom: 2.5px solid var(--m9-violet); transform: rotate(-45deg); margin: -4px 2px 0 0; }
.m9-choice.is-off { border-style: dashed; background: #faf9fc; color: #8a8399; cursor: not-allowed; }
.m9-choice.is-off .m9-choice__go { display: none; }

.m9-areas { border: 0; margin: 18px 0 0; padding: 18px; background: #faf8fe; border-radius: 16px; }
.m9-areas legend { font: 600 16px/1.3 var(--m9-font); margin: 0 0 4px; padding: 0; float: left; width: 100%; }
.m9-areas legend span { display: block; font-weight: 400; font-size: 14px; color: var(--m9-muted); }
.m9-areas__end { clear: both; text-align: center; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--m9-muted); margin: 10px 0 6px; }
.m9-areas__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m9-tile { position: relative; display: block; margin: 0; cursor: pointer; }
.m9-tile input { position: absolute; opacity: 0; inset: 0; }
.m9-tile span { display: flex; align-items: center; justify-content: center; min-height: 60px; padding: 10px; text-align: center; background: #fff; border: 2px solid var(--m9-line); border-radius: 12px; font-weight: 500; }
.m9-tile input:checked + span { border-color: var(--m9-violet); background: var(--m9-violet-tint); color: var(--m9-violet-deep); }
.m9-tile input:checked + span::before { content: '\2713'; margin-right: 6px; font-weight: 700; }
.m9-tile input:focus-visible + span { outline: 3px solid rgba(102,0,255,.45); outline-offset: 2px; }

.m9-next { min-height: 50px; padding: 12px 28px; border-radius: 12px; border: 2px solid var(--m9-violet); background: #fff; color: var(--m9-violet-deep); font-weight: 600; font-size: 16px; cursor: pointer; }
.m9-next:hover { background: var(--m9-violet-tint); }
.m9-next--solid { background: var(--m9-violet); color: #fff; }
.m9-next--solid:hover { background: var(--m9-violet-deep); }
.m9-next:disabled { opacity: .6; cursor: progress; }

.m9-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 0; font-weight: 500; cursor: pointer; min-height: 44px; padding-top: 8px; }
.m9-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--m9-violet); flex: none; }
.m9-field--zip .m9-input { max-width: 220px; font-size: 20px; letter-spacing: .08em; }

.m9-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: #f1edf8; border-radius: 14px; margin: 18px 0 20px; }
.m9-seg button { min-height: 46px; border: 0; border-radius: 10px; background: transparent; color: var(--m9-muted); font-weight: 600; font-size: 15px; cursor: pointer; }
.m9-seg button[aria-pressed=true] { background: #fff; color: var(--m9-violet-deep); box-shadow: 0 2px 8px rgba(27,16,53,.12); }
.m9-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.m9-label-row label { font: 600 14px/1.3 var(--m9-font); margin: 0 0 6px; }
.m9-vin { position: relative; }
.m9-input--mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; padding-right: 64px; }
.m9-vin__count { position: absolute; right: 14px; top: 41px; font-size: 13px; color: var(--m9-muted); }
.m9-match { min-height: 8px; }
.m9-match p { margin: 6px 0 0; font-size: 15px; }
.m9-match__ok { color: var(--m9-good); font-weight: 600; }
.m9-match__wait { color: var(--m9-muted); }
.m9-match__no { color: var(--m9-bad); }

.m9-linkbtn { background: none; border: 0; padding: 0; color: var(--m9-violet-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }
.m9-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 24px; border-radius: 12px; border: 2px solid var(--m9-violet); background: #fff; color: var(--m9-violet-deep); font-weight: 600; text-decoration: none; cursor: pointer; }
.m9-ghost:hover { background: var(--m9-violet-tint); text-decoration: none; }
.m9-iconbtn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--m9-line); background: #fff; font-size: 22px; cursor: pointer; }
.m9-iconbtn:disabled { opacity: .4; cursor: default; }

.m9-spin { display: inline-block; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; margin-right: 10px; vertical-align: -3px; animation: m9spin .7s linear infinite; }
.m9-spin--dark { border-color: #e2dbef; border-top-color: var(--m9-violet); }

/* loading */
.m9-busy, .m9-end { background: #fff; border-radius: 20px; padding: 40px 32px; text-align: center; box-shadow: 0 18px 48px rgba(27,16,53,.08); }
.m9-busy__spin { width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%; border: 5px solid #ece6f7; border-top-color: var(--m9-violet); animation: m9spin .9s linear infinite; }
.m9-busy h1, .m9-end h1 { font: 700 26px/1.25 var(--m9-font); margin: 0 0 8px; }
.m9-busy h1:focus, .m9-end h1:focus, .m9-deal h1:focus { outline: none; }
.m9-busy__car { color: var(--m9-muted); margin: 0 0 18px; }
.m9-busy__list { list-style: none; padding: 0; margin: 0 auto; max-width: 260px; text-align: left; }
.m9-busy__list li { position: relative; padding: 8px 0 8px 34px; color: var(--m9-muted); transition: color .2s ease; }
.m9-busy__list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #ddd5ea; }
.m9-busy__list li.is-done { color: var(--m9-ink); font-weight: 500; }
.m9-busy__list li.is-done::before { background: var(--m9-good); border-color: var(--m9-good); }
.m9-busy__list li.is-done::after { content: ''; position: absolute; left: 7px; top: 15px; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.m9-busy__slow { margin: 18px 0 0; color: var(--m9-muted); font-size: 15px; }

/* terminal */
.m9-end__lead { font-size: 17px; color: #3b3450; max-width: 520px; margin: 0 auto 22px; }
.m9-end__acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 18px; }
.m9-end__call { color: var(--m9-muted); margin: 8px 0 0; }
.m9-end__badge { width: 64px; height: 64px; border-radius: 50%; background: var(--m9-good); color: #fff; font-size: 34px; line-height: 64px; margin: 0 auto 16px; }
.m9-end__card { text-align: left; border: 1px solid var(--m9-line); border-radius: 16px; padding: 18px 20px; margin: 0 auto 22px; max-width: 460px; }
.m9-end__card p { margin: 0 0 4px; }
.m9-end__card--hi { background: var(--m9-orange-tint); border-color: #f8c9ab; font-weight: 500; }
.m9-end__label { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--m9-muted); }
.m9-end__big { font-size: 20px; font-weight: 700; }
.m9-end__fine { color: var(--m9-muted); font-size: 14px; margin-top: 8px !important; }
.m9-end__steps { text-align: left; max-width: 460px; margin: 0 auto 26px; }
.m9-end__steps h2 { font-size: 18px; margin: 0 0 10px; }

/* steps list (rail + success) */
.m9-steps { list-style: none; counter-reset: m9s; padding: 0; margin: 0; }
.m9-steps li { counter-increment: m9s; position: relative; padding: 0 0 14px 40px; font-size: 15px; line-height: 1.45; }
.m9-steps li::before { content: counter(m9s); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; background: var(--m9-orange-tint); color: #a3400f; font-weight: 700; font-size: 14px; display: grid; place-items: center; }

/* ---------- offer page ---------- */
.m9-panel--wide { max-width: 1040px; }
.m9-deal { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.m9-deal__main > h1 { font: 700 30px/1.2 var(--m9-font); margin: 2px 0 6px; letter-spacing: -.01em; }
.m9-deal__main > h1 .m9-amt { color: var(--m9-violet); font-family: arsurt_bold, var(--m9-font); white-space: nowrap; }
.m9-deal__sub { color: var(--m9-muted); margin: 0 0 18px; }
.m9-note-changed { background: var(--m9-orange-tint); border: 1px solid #f8c9ab; border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; }

.m9-box { background: #fff; border: 1px solid #ebe5f4; border-radius: 18px; padding: 22px 24px 18px; margin-bottom: 16px; }
.m9-box h2 { font: 600 19px/1.3 var(--m9-font); margin: 0 0 16px; }
.m9-box h2:focus { outline: none; }
.m9-box h2 span { font-weight: 400; color: var(--m9-muted); font-size: 15px; }
.m9-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.m9-field--wide { grid-column: 1 / -1; }
.m9-disclose { font-size: 14px; line-height: 1.5; color: #4a4360; background: #faf8fe; border-left: 3px solid var(--m9-violet); border-radius: 0 10px 10px 0; padding: 10px 12px; margin: 4px 0 16px; }
.m9-primary {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: 12px 20px;
  border: 0; border-radius: 12px; background: var(--m9-violet); color: #fff; font-size: 17px; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 18px rgba(102,0,255,.25); transition: background .15s ease;
}
.m9-primary:hover { background: var(--m9-violet-deep); }
.m9-primary:disabled { opacity: .75; cursor: progress; }
.m9-primary .m9-amt { margin: 0 .3em; }
.m9-nextline { font-size: 14px; color: var(--m9-muted); margin: 10px 0 2px; text-align: center; }
.m9-opfail { color: var(--m9-bad); font-weight: 500; margin: 10px 0 0; }
.m9-sum { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #f4fbf7; border: 1px solid #c8e8d8; margin-bottom: 14px; }
.m9-sum__tick { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--m9-good); color: #fff; display: grid; place-items: center; font-weight: 700; }
.m9-sum__txt { flex: 1; min-width: 0; }
.m9-sum__txt span { display: block; color: var(--m9-muted); font-size: 14px; overflow-wrap: anywhere; }
.m9-sum__saved { font-size: 13px; color: var(--m9-good); font-weight: 600; white-space: nowrap; }

.m9-when__wait { color: var(--m9-muted); margin: 0; }
.m9-slot { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 12px 14px; margin: 0 0 8px; text-align: left; background: #fff; border: 2px solid var(--m9-line); border-radius: 12px; font-size: 16px; color: var(--m9-ink); cursor: pointer; }
.m9-slot:hover { border-color: #b69cf0; }
.m9-slot__dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #b2a8c6; }
.m9-slot.is-on { border-color: var(--m9-violet); background: var(--m9-violet-tint); }
.m9-slot.is-on .m9-slot__dot { border: 6px solid var(--m9-violet); }
.m9-when__more { margin: 4px 0 6px; min-height: 44px; }
.m9-days { margin-top: 6px; }
.m9-days__nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.m9-days__strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; margin-bottom: 8px; }
.m9-days__strip.is-paged { display: grid; grid-template-columns: repeat(7, 1fr); overflow: visible; }
.m9-day { flex: 0 0 66px; scroll-snap-align: start; min-height: 60px; padding: 8px 4px; border: 2px solid var(--m9-line); border-radius: 12px; background: #fff; cursor: pointer; text-align: center; color: var(--m9-ink); }
.m9-day span { display: block; font-size: 12px; color: var(--m9-muted); }
.m9-day strong { display: block; font-size: 14px; }
.m9-day.is-weekend { background: #fff7f1; }
.m9-day.is-on { border-color: var(--m9-violet); background: var(--m9-violet-tint); }
.m9-wins { margin-top: 4px; }
.m9-when__hint { color: var(--m9-muted); font-size: 14px; margin: 6px 0 0; }
.m9-picked { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #f4fbf7; color: #0b5c39; font-size: 15px; }

.m9-finish { padding: 6px 0 0; }
.m9-sumerr { background: #fff1f3; border: 1px solid #f3b8c3; border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; color: var(--m9-bad); }
.m9-finish__note { text-align: center; color: var(--m9-muted); font-size: 15px; margin: 10px 0 0; }
.m9-legal { text-align: center; font-size: 14px; color: var(--m9-muted); margin: 8px 0 0; }

.m9-deal__rail { position: sticky; top: 24px; }
.m9-rail { background: #fff; border: 1px solid #ebe5f4; border-radius: 18px; padding: 20px 22px; margin-bottom: 14px; }
.m9-rail__label { margin: 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--m9-muted); }
.m9-rail__amt { margin: 2px 0 0; font: 400 42px/1.1 arsurt_bold, var(--m9-font); color: var(--m9-violet); }
.m9-rail__car { margin: 4px 0 0; font-weight: 500; }
.m9-speed { margin: 12px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--m9-orange-tint); color: #8a3409; font-weight: 600; font-size: 14px; }
.m9-rail--steps h2 { font: 600 16px/1.3 var(--m9-font); margin: 0 0 14px; }

/* ---------- dialogs ---------- */
#m9-layer { position: fixed; inset: 0; z-index: 100; }
#m9-layer[hidden] { display: none; }
.m9-scrim { position: absolute; inset: 0; background: rgba(20,12,40,.55); animation: m9fade .18s ease-out; }
.m9-dialog { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, calc(100% - 32px)); max-height: calc(100% - 40px); overflow-y: auto;
  background: #fff; border-radius: 20px; padding: 28px 28px 24px; box-shadow: 0 30px 80px rgba(20,12,40,.35); animation: m9pop .2s ease-out; }
.m9-dialog h2 { font: 700 22px/1.3 var(--m9-font); margin: 0 0 10px; }
.m9-dialog p { margin: 0 0 12px; color: #3b3450; }
.m9-dialog h3 { font-size: 15px; margin: 0 0 6px; }
.m9-dialog ul { margin: 0 0 14px; padding-left: 18px; font-size: 15px; }
.m9-dialog .m9-primary { margin-top: 8px; }
.m9-dialog__acts { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 8px; }
.m9-dialog__acts .m9-linkbtn { min-height: 44px; }
.m9-dialog__fine { font-size: 14px; color: var(--m9-muted) !important; }
.m9-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.m9-vinex { background: #f6f3fb; border-radius: 12px; padding: 12px; text-align: center; }
.m9-vinex code { display: block; font-size: 19px; letter-spacing: .1em; color: var(--m9-ink); background: none; padding: 0; }
.m9-vinex span { display: block; font-size: 13px; color: var(--m9-muted); margin-top: 2px; }
.m9-newamt { text-align: center; padding: 14px; border-radius: 14px; background: #faf8fe; margin: 6px 0 14px; }
.m9-newamt span { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--m9-muted); }
.m9-newamt strong { display: block; font: 400 44px/1.15 arsurt_bold, var(--m9-font); color: var(--m9-violet); }
.m9-newamt small { display: block; font-size: 14px; color: #7a7290; }
@keyframes m9fade { from { opacity: 0; } }
@keyframes m9pop { from { opacity: 0; transform: translate(-50%, -46%); } }
@keyframes m9sheet { from { transform: translateY(40px); opacity: 0; } }

/* ---------- small screens ---------- */
@media (max-width: 1023px) {
  .m9-deal { grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; }
}
@media (max-width: 767px) {
  .m9-flow { padding: 14px 16px 48px; }
  .m9-q, .m9-busy, .m9-end { background: transparent; box-shadow: none; padding: 4px 0 0; border-radius: 0; }
  .m9-q h1 { font-size: 23px; }
  .m9-choice__n { display: none; }
  .m9-q__foot .m9-next { width: 100%; }
  .m9-deal { display: block; }
  .m9-deal__main > h1 { font-size: 25px; }
  .m9-deal__rail { position: static; margin-top: 18px; }
  .m9-deal__rail .m9-rail:first-child { display: none; }
  .m9-box { padding: 18px 16px 12px; border-radius: 16px; }
  .m9-grid { grid-template-columns: 1fr; }
  .m9-cols { grid-template-columns: 1fr; gap: 0; }
  .m9-dialog { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%; max-height: 88%; border-radius: 20px 20px 0 0; padding: 24px 20px 28px; animation: m9sheet .22s ease-out; }
}
@media (prefers-reduced-motion: reduce) {
  .m9-in-fwd, .m9-in-back, .m9-dialog, .m9-scrim { animation: none; }
  .m9-meter span, .m9-choice { transition: none; }
}
