/* Sierra Cash For Cars — online quote screens */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sx-flowpage { background: var(--sand); }
@media (min-width: 768px) { .sx-flowpage .sx-top { position: sticky; } }
.sx-locked { overflow: hidden; }
.sx-meter { height: 4px; background: #f6e3d3; }
.sx-meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--flare), var(--neon)); transition: width .3s ease; }
.sx-flow { min-height: calc(100vh - 72px); padding: 22px 16px 72px; }
@media (min-width: 768px) { .sx-flow { padding: 48px 24px 96px; } }
.sx-boot { display: grid; place-items: center; min-height: 40vh; }
.sx-spin { width: 36px; height: 36px; border-radius: 50%; border: 4px solid rgba(23,17,46,.12); border-top-color: var(--flare); animation: sxspin .8s linear infinite; }
@keyframes sxspin { to { transform: rotate(360deg); } }
.sx-noscript { max-width: 640px; margin: 0 auto; font-size: 1.1rem; }
.sx-noscript a { font-weight: 700; text-decoration: underline; }

/* question frame: cardless on mobile, 640px card on desktop */
.sx-step, .sx-load, .sx-end { max-width: 640px; margin: 0 auto; }
@media (min-width: 768px) {
  .sx-step, .sx-load, .sx-end { background: #fff; border-radius: 24px; padding: 36px 40px 40px; box-shadow: 0 30px 60px -36px rgba(23,17,46,.4); border: 1px solid #f1e4d4; }
}
.sx-in-right { animation: sxinr .22s ease both; }
.sx-in-left { animation: sxinl .22s ease both; }
@keyframes sxinr { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes sxinl { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sx-in-right, .sx-in-left { animation: sxfade .15s ease both; } }
@keyframes sxfade { from { opacity: 0; } to { opacity: 1; } }

.sx-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px 0 0; border: 0; background: none; color: var(--muted); font-weight: 700; cursor: pointer; }
.sx-back svg { width: 18px; height: 18px; }
.sx-back:hover { color: var(--ink); }
.sx-car { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 700; letter-spacing: .02em; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
@media (min-width: 768px) { .sx-step .sx-car { background: var(--sand); border-color: #f1e4d4; } }
.sx-q { margin-top: 14px; font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 5vw, 2.15rem); line-height: 1.12; letter-spacing: -.02em; outline: none; }
.sx-help { margin-top: 8px; color: var(--muted); font-size: 1.02rem; }
.sx-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--flare); text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer; min-height: 24px; }
.sx-link:hover { color: var(--flare-deep); }

.sx-choices { margin-top: 22px; display: grid; gap: 10px; }
.sx-choice { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 60px; padding: 14px 16px 14px 18px; text-align: left; font: inherit; font-size: 1.05rem; font-weight: 600; color: var(--ink); background: #fff; border: 2px solid #e2d9ec; border-radius: 16px; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.sx-choice:hover:not(:disabled) { border-color: var(--ink); }
.sx-choice:active:not(:disabled) { transform: scale(.995); }
.sx-choice.is-on { border-color: var(--flare); background: #fff1e8; box-shadow: inset 0 0 0 1px var(--flare); }
.sx-choice__m { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.sx-choice__m svg { width: 18px; height: 18px; }
.sx-choice.is-on .sx-choice__m { background: var(--flare); color: var(--ink); }
.sx-choice:disabled { cursor: not-allowed; color: #8a84a3; background: repeating-linear-gradient(135deg, #faf8fc 0 8px, #f3eff8 8px 16px); border-style: dashed; }
.sx-choice__off { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #8a84a3; }
.sx-note { margin-top: 16px; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #eef7fb; color: #1e3a4a; border: 1px solid #cfe7f2; }
.sx-note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: #2a7ea3; }
.sx-oerr { margin-top: 14px; }
.sx-acts { margin-top: 24px; display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.sx-acts--left { justify-content: flex-start; }
.sx-acts--split { justify-content: center; }
.sx-acts .sx-btn { min-width: 180px; }
@media (max-width: 599px) { .sx-acts .sx-btn { width: 100%; } }
.sx-btn--outline { border-color: var(--ink); color: var(--ink); background: #fff; }
.sx-btn--outline:hover { background: var(--ink); color: #fff; }
.sx-btn--soft { background: var(--sand); color: var(--ink); }
.sx-btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.sx-btn.is-busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid rgba(23,17,46,.25); border-top-color: var(--ink); animation: sxspin .7s linear infinite; }
.sx-btn:disabled { cursor: not-allowed; }

/* fields inside the flow */
.sx-stack { display: grid; gap: 16px; margin-top: 22px; }
.sx-narrow { max-width: 320px; margin-top: 22px; }
.sx-zipin { font-size: 1.4rem; letter-spacing: .14em; font-weight: 700; }
.sx-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
.sx-labelrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.sx-labelrow label { font-weight: 700; font-size: .92rem; }
.sx-labelrow .sx-link { font-size: .9rem; }
.sx-field.is-ok .sx-input { border-color: #9fd3b7; }
.sx-check { margin-top: 18px; display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 600; cursor: pointer; }
.sx-check input { width: 22px; height: 22px; accent-color: var(--flare); flex: none; }
.sx-tabs { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: #f1ebf7; }
.sx-tabs button { min-height: 46px; border: 0; border-radius: 11px; background: transparent; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.sx-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(23,17,46,.12); }

/* four-corner areas */
.sx-areas { margin-top: 18px; border: 2px solid var(--ink); border-radius: 18px; padding: 16px; background: #fff; }
.sx-areas legend { padding: 0 6px; font-weight: 800; font-size: 1.02rem; }
.sx-areas legend span { display: block; font-weight: 500; font-size: .9rem; color: var(--muted); }
.sx-areas__end { text-align: center; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 6px 0; }
.sx-areas__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; }
.sx-tile { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 64px; padding: 10px; border: 2px solid #e2d9ec; border-radius: 14px; font-weight: 700; cursor: pointer; background: var(--sand); transition: border-color .15s, background .15s; }
.sx-tile input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.sx-tile.is-on { border-color: var(--flare); background: #ffe5d6; }
.sx-tile:focus-within { outline: 3px solid var(--flare); outline-offset: 2px; }

/* loading */
.sx-load { text-align: center; padding-top: 40px; }
.sx-load .sx-q { margin-top: 22px; }
.sx-load__pulse { display: inline-block; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--flare), var(--neon)); animation: sxpulse 1.4s ease-in-out infinite; }
@keyframes sxpulse { 0%, 100% { transform: scale(.85); opacity: .7; } 50% { transform: scale(1); opacity: 1; } }
.sx-load__list { list-style: none; margin: 26px auto 0; max-width: 280px; display: grid; gap: 12px; text-align: left; }
.sx-load__list li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--muted); }
.sx-load__list li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #d9d1e6; flex: none; }
.sx-load__list li.is-done { color: var(--ink); }
.sx-load__list li.is-done::before { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/14px no-repeat; }
.sx-load__slow { margin-top: 20px; color: var(--muted); }

/* terminal */
.sx-end { text-align: center; }
.sx-end p { margin-top: 10px; color: var(--muted); }
.sx-end p a, .sx-oerr a { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--flare); }
.sx-end__icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #eef7fb; color: #2a7ea3; }
.sx-end__icon svg { width: 30px; height: 30px; }
.sx-end__badge { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(135deg, var(--flare), var(--neon)); color: var(--ink); box-shadow: 0 16px 34px -14px rgba(255,61,122,.8); }
.sx-end__badge svg { width: 40px; height: 40px; }
.sx-end--win .sx-q { font-size: clamp(2rem, 6vw, 2.8rem); }
.sx-end__lead { font-size: 1.15rem; color: var(--ink) !important; }
.sx-end__card { margin: 22px auto 0; max-width: 460px; text-align: left; background: var(--ink); color: #fff; border-radius: 18px; padding: 20px 22px; }
.sx-end__card p { color: #dcd5ee; margin-top: 4px; }
.sx-end__k { font-size: .76rem !important; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sky) !important; }
.sx-end__v { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: #fff !important; }
.sx-end__fine { font-size: .9rem; }
.sx-end__h2 { margin-top: 28px; font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
.sx-end__steps { margin: 12px auto 0; max-width: 460px; text-align: left; padding-left: 1.4rem; display: grid; gap: 8px; color: var(--ink); }
.sx-end__steps li::marker { color: var(--flare-deep); font-weight: 800; }

/* ---------- Offer / Accept ---------- */
.sx-offer { max-width: 1120px; margin: 0 auto; display: grid; gap: 28px; }
@media (min-width: 1024px) { .sx-offer { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; } }
.sx-offer__main { min-width: 0; }
@media (min-width: 768px) { .sx-offer__main { background: #fff; border-radius: 24px; padding: 32px 40px 40px; border: 1px solid #f1e4d4; box-shadow: 0 30px 60px -36px rgba(23,17,46,.4); } }
.sx-offer__h { margin-top: 14px; outline: none; }
.sx-offer__k { display: block; font-size: .9rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sx-offer__amt { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 12vw, 4.6rem); line-height: 1; letter-spacing: -.03em; background: linear-gradient(90deg, var(--flare-deep), var(--neon)); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 4px 0; }
.sx-offer__lead { margin-top: 8px; color: var(--muted); font-size: 1.05rem; }
.sx-sec { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); outline: none; }
.sx-sec h2 { font-family: var(--display); font-weight: 800; font-size: 1.35rem; margin-bottom: 16px; }
.sx-opt { font-family: var(--body); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--sand); padding: 3px 10px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.sx-grid { display: grid; gap: 16px; }
.sx-sec > .sx-field + .sx-grid, .sx-sec > .sx-field + .sx-field, .sx-sec > [data-f] + .sx-grid, .sx-sec > .sx-field + [data-f] { margin-top: 16px; }
@media (min-width: 600px) { .sx-grid { grid-template-columns: 1fr 1fr; } .sx-span { grid-column: 1 / -1; } .sx-grid--zip { grid-template-columns: 180px 1fr; } }
.sx-summary { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--sand); border: 1px solid #f1e4d4; }
.sx-summary div { flex: 1; min-width: 0; }
.sx-summary strong { display: block; }
.sx-summary span { color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.sx-summary__ok { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.sx-summary__ok svg { width: 18px; height: 18px; }
.sx-disclose { margin-top: 18px; font-size: .92rem; color: var(--muted); line-height: 1.55; padding-left: 12px; border-left: 3px solid var(--sky); }
.sx-final { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.sx-final .sx-disclose { margin: 0 0 18px; }
.sx-accept { width: 100%; min-height: 62px; font-size: 1.2rem; }
.sx-pnote { margin-top: 12px; text-align: center; color: var(--muted); font-size: .95rem; }
.sx-terms { margin-top: 10px; text-align: center; color: var(--muted); font-size: .92rem; }
.sx-sum { margin-bottom: 14px; padding: 12px 16px; border-radius: 14px; background: #fff0f2; border: 1px solid #f5c2cb; color: var(--err); font-weight: 700; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between; }
.sx-sum .sx-link { color: var(--err); text-decoration-color: var(--err); }

/* rail */
.sx-rail { display: grid; gap: 18px; }
@media (min-width: 1024px) { .sx-rail { position: sticky; top: 100px; } }
@media (max-width: 1023px) { .sx-rail__card { display: none; } }
.sx-rail__card { background: var(--ink); color: #fff; border-radius: 22px; padding: 24px; position: relative; overflow: hidden; }
.sx-rail__card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -60px; border-radius: 50%; background: linear-gradient(135deg, var(--flare), var(--neon)); opacity: .35; }
.sx-rail__k { font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.sx-rail__amt { font-family: var(--display); font-weight: 800; font-size: 2.8rem; line-height: 1.1; position: relative; }
.sx-rail__car { color: #dcd5ee; }
.sx-rail__speed { margin-top: 12px; display: inline-block; font-weight: 700; font-size: .9rem; color: var(--ink); background: var(--sky); padding: 4px 12px; border-radius: 999px; }
.sx-rail__steps { background: #fff; border-radius: 22px; padding: 22px 24px; border: 1px solid #f1e4d4; }
.sx-rail__steps h2 { font-family: var(--display); font-weight: 800; font-size: 1.2rem; margin-bottom: 12px; }
.sx-rail__steps ol { list-style: none; display: grid; gap: 14px; counter-reset: sxr; }
.sx-rail__steps li { counter-increment: sxr; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; }
.sx-rail__steps li::before { content: counter(sxr); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--sand); border: 2px solid var(--flare); display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.sx-rail__steps span { color: var(--muted); font-size: .92rem; }

/* pickup picker */
.sx-pick .sx-help { margin: -8px 0 14px; }
.sx-soon { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 12px 16px; border: 2px solid #e2d9ec; border-radius: 16px; background: #fff; font: inherit; text-align: left; cursor: pointer; color: var(--ink); font-weight: 700; }
.sx-soon small { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sx-soon > span:not(.sx-win__dot) { flex: 1; }
.sx-soon em { font-style: normal; font-size: .8rem; font-weight: 800; color: var(--ok); background: #e6f6ee; padding: 3px 10px; border-radius: 999px; }
.sx-soon.is-on, .sx-win.is-on { border-color: var(--flare); background: #fff1e8; }
.sx-win__dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #bfb4d4; background: #fff; }
.is-on > .sx-win__dot { border: 7px solid var(--flare); }
.sx-more { margin-top: 12px; min-height: 44px; }
.sx-days-wrap { margin-top: 8px; }
.sx-days { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; -webkit-overflow-scrolling: touch; }
.sx-day { flex: 0 0 auto; width: 68px; min-height: 64px; scroll-snap-align: start; border: 2px solid #e2d9ec; border-radius: 14px; background: #fff; font: inherit; cursor: pointer; display: grid; place-content: center; gap: 2px; color: var(--ink); }
.sx-day span { font-size: .78rem; font-weight: 700; color: var(--muted); }
.sx-day strong { font-size: .92rem; }
.sx-day.is-wknd { background: #f6f2fa; }
.sx-day.is-on { border-color: var(--flare); background: #fff1e8; }
.sx-pager { display: none; }
@media (min-width: 768px) {
  .sx-pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 6px; font-size: .9rem; color: var(--muted); font-weight: 700; }
  .sx-pg { width: 40px; height: 40px; border-radius: 10px; border: 2px solid #e2d9ec; background: #fff; font-size: 1.3rem; cursor: pointer; }
  .sx-pg:disabled { opacity: .4; cursor: not-allowed; }
  .sx-days { display: grid; grid-template-columns: repeat(7, 1fr); overflow: visible; }
  .sx-day { width: auto; }
  .sx-day.is-off { display: none; }
}
.sx-wins { margin-top: 10px; display: grid; gap: 8px; }
.sx-wins__h { font-weight: 800; }
.sx-win { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 14px; border: 2px solid #e2d9ec; border-radius: 14px; background: #fff; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); text-align: left; }
.sx-picked { margin-top: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: #e6f6ee; color: #0f5133; }
.sx-picked svg { width: 20px; height: 20px; flex: none; }
.sx-picked span { flex: 1; }

/* dialogs: bottom sheet on mobile, centered modal on desktop */
.sx-dlg { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 768px) { .sx-dlg { align-items: center; padding: 24px; } }
.sx-dlg__scrim { position: absolute; inset: 0; background: rgba(15,11,32,.6); animation: sxfade .2s ease both; }
.sx-dlg__card { position: relative; width: 100%; max-height: 90vh; overflow-y: auto; background: #fff; border-radius: 24px 24px 0 0; padding: 28px 22px calc(24px + env(safe-area-inset-bottom)); animation: sxup .25s ease both; }
@media (min-width: 768px) { .sx-dlg__card { max-width: 520px; border-radius: 24px; padding: 32px; animation: sxfade .2s ease both; } .sx-dlg--wide .sx-dlg__card { max-width: 640px; } }
@keyframes sxup { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sx-dlg__x { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--sand); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.sx-dlg__t { font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1.15; padding-right: 40px; }
.sx-dlg__b { margin-top: 12px; color: var(--muted); display: grid; gap: 10px; }
.sx-dlg__b h3 { color: var(--ink); font-size: 1rem; margin-bottom: 6px; }
.sx-dlg__b ul { padding-left: 1.2rem; display: grid; gap: 4px; }
.sx-dlg__acts { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.sx-dlg__acts .sx-link { align-self: center; min-height: 44px; }
@media (min-width: 768px) { .sx-dlg__acts { flex-direction: row-reverse; align-items: center; justify-content: flex-start; } .sx-dlg__acts .sx-link { margin-right: auto; } }
.sx-vinsample { display: grid; gap: 4px; padding: 14px; border-radius: 14px; background: var(--sand); }
.sx-vinsample code { font-size: 1.15rem; font-weight: 800; letter-spacing: .08em; color: var(--ink); }
.sx-vincols { display: grid; gap: 14px; }
@media (min-width: 600px) { .sx-vincols { grid-template-columns: 1fr 1fr; } }
.sx-chg { margin-top: 6px; text-align: center; padding: 18px; border-radius: 18px; background: var(--ink); color: #fff; }
.sx-chg__k { font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.sx-chg__amt { font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: 1.1; }
.sx-chg__car { color: #dcd5ee; }
.sx-chg__prev { margin-top: 8px; color: #a9a2c2; font-size: .9rem; }
.sx-chg__up { color: #7fe0ae; font-weight: 800; margin-left: 6px; }
.sx-chg__held { font-size: .92rem; }
