/* Shared styles for the public pages: Fleet Share, Trade-In, Contact, Track Order.
   Same language as Browse Cars and the login pages. */
.sp {
    --ink: #111316;
    --ink-2: #33373d;
    --muted: #6b7079;
    --faint: #9aa0a8;
    --line: rgba(17, 19, 22, 0.08);
    --line-2: rgba(17, 19, 22, 0.14);
    --surface: #ffffff;
    --canvas: #f5f5f4;
    --accent: #d31122;
    --pos: #15803d;
    --pos-soft: #e9f6ee;
    --warn: #b45309;
    --warn-soft: #fdf3e3;
    --danger: #c81e1e;
    --danger-soft: #fdeeee;
    --radius: 22px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --shadow: 0 1px 2px rgba(17, 19, 22, 0.04), 0 8px 24px -12px rgba(17, 19, 22, 0.12);
    --shadow-hover: 0 2px 4px rgba(17, 19, 22, 0.04), 0 28px 48px -22px rgba(17, 19, 22, 0.28);

    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 24px 120px;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}
.sp--narrow { max-width: 1080px; }
:where(.sp) *, :where(.sp) *::before, :where(.sp) *::after { box-sizing: border-box; }
.sp :where(svg) { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sp :where(h1, h2, h3, p) { margin: 0; }
.sp :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
.sp :where(a) { text-decoration: none; }
.sp :where(fieldset) { border: 0; margin: 0; padding: 0; min-width: 0; }

/* Hero */
.sp-hero { max-width: 680px; margin: 0 auto; text-align: center; padding: 24px 0 44px; }
.sp-hero--left { margin: 0; text-align: left; }
.sp-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.sp-title { font-family: var(--font-family--heading, inherit); font-size: clamp(38px, 5.6vw, 60px); line-height: 1.03; letter-spacing: -0.035em; font-weight: 600; color: var(--ink); }
.sp-lede { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* Cards */
.sp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.sp-card--pad { padding: 32px; }
.sp-section-title { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 20px; }
.sp-step-no { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: #fff; background: var(--ink); flex-shrink: 0; }
.sp-divider { height: 1px; background: var(--line); margin: 32px 0; border: 0; }

/* Segmented chip rail */
.sp-chips { display: flex; justify-content: center; margin: 0 auto 40px; max-width: 100%; }
.sp-chips__track { display: flex; gap: 4px; padding: 5px; max-width: 100%; background: var(--canvas); border: 1px solid var(--line); border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.sp-chips__track::-webkit-scrollbar { display: none; }
.sp-chip { flex-shrink: 0; padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 500; line-height: 1.2; white-space: nowrap; color: var(--muted); transition: color 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.sp-chip:hover { color: var(--ink); background: rgba(255, 255, 255, 0.7); }
.sp-chip.is-active { color: var(--ink); background: var(--surface); box-shadow: 0 1px 2px rgba(17, 19, 22, 0.06), 0 4px 12px -4px rgba(17, 19, 22, 0.14); }
.sp-chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Badges */
.sp-badge {
    height: 26px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; color: var(--ink); border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 2px 8px -2px rgba(17, 19, 22, 0.12);
}
.sp-badge--dark { color: #fff; background: rgba(17, 19, 22, 0.72); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.sp-pill { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--canvas); }
.sp-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.9; }
.sp-pill--pos { color: var(--pos); background: var(--pos-soft); }
.sp-pill--warn { color: var(--warn); background: var(--warn-soft); }
.sp-pill--info { color: #1d4ed8; background: #ebf1fe; }

/* Fields. The site-wide form styles use !important, so these do too. */
.sp-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; min-width: 0; }
.sp-field:last-child { margin-bottom: 0; }
.sp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.sp-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.sp-label small { font-size: 12px; font-weight: 400; color: var(--faint); }
.sp .sp-input, .sp .sp-field input:not([type=file]):not([type=radio]):not([type=checkbox]):not([type=range]), .sp .sp-field select, .sp .sp-field textarea {
    width: 100% !important; height: 48px; margin: 0 !important; padding: 0 14px !important;
    font: inherit !important; font-size: 15px !important; color: var(--ink) !important;
    background: var(--surface) !important; border: 1px solid #e3e4e7 !important; border-radius: 12px !important;
    box-shadow: 0 1px 2px rgba(17, 19, 22, 0.04) !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none; appearance: none;
}
.sp .sp-field textarea { height: auto; min-height: 120px; padding: 12px 14px !important; line-height: 1.5; resize: vertical; }
.sp .sp-field textarea[rows="2"] { min-height: 76px; }
.sp .sp-field select { padding-right: 40px !important; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7079' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 14px center !important; background-size: 16px !important; }
.sp .sp-field input::placeholder, .sp .sp-field textarea::placeholder, .sp .sp-input::placeholder { color: var(--faint); }
.sp .sp-field input:hover, .sp .sp-field select:hover, .sp .sp-field textarea:hover { border-color: #d3d5d9 !important; }
.sp .sp-input:focus, .sp .sp-field input:focus, .sp .sp-field select:focus, .sp .sp-field textarea:focus { outline: none; border-color: var(--ink) !important; box-shadow: 0 0 0 4px rgba(17, 19, 22, 0.07) !important; background: var(--surface) !important; }
.sp .sp-field input[type=number]::-webkit-inner-spin-button, .sp .sp-field input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sp .sp-field input[type=number] { -moz-appearance: textfield; }
.sp .sp-field.has-error input, .sp .sp-field.has-error select, .sp .sp-field.has-error textarea { border-color: var(--danger) !important; }
.sp-error { font-size: 13px; line-height: 1.4; color: var(--danger); }
.sp-error ul { margin: 0; padding: 0; list-style: none; }
.sp-hint { font-size: 12.5px; line-height: 1.45; color: var(--faint); }
.sp-link-btn { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
.sp-link-btn svg { width: 14px; height: 14px; }
.sp-link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.sp-link-btn:disabled { color: var(--muted); cursor: default; text-decoration: none; }

/* Buttons */
.sp-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 48px; padding: 0 22px; margin: 0; border: 0; border-radius: 12px;
    font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -0.005em; color: #fff; text-decoration: none;
    background: var(--ink); cursor: pointer;
    box-shadow: 0 1px 2px rgba(17, 19, 22, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: background-color 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s;
}
.sp-btn:hover { background: #24272c; color: #fff; }
.sp-btn:active { transform: scale(0.985); }
.sp-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sp-btn--block { width: 100%; }
.sp-btn--ghost { color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 1px 2px rgba(17, 19, 22, 0.04); }
.sp-btn--ghost:hover { color: var(--ink); background: #fafafa; }
.sp-btn svg { width: 16px; height: 16px; stroke-width: 2; transition: transform 0.25s var(--ease); }
.sp-btn:hover svg.sp-go { transform: translateX(2px); }
.sp-btn.is-loading { pointer-events: none; color: transparent; }
.sp-btn.is-loading > * { visibility: hidden; }
.sp-btn.is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: sp-spin 0.7s linear infinite; }
@keyframes sp-spin { to { transform: rotate(360deg); } }

/* Notices */
.sp-notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.sp-notice svg { margin-top: 1px; }
.sp-notice--error { color: #8f1616; background: var(--danger-soft); box-shadow: inset 0 0 0 1px #f6d4d4; }
.sp-notice--warn { color: #7a3d06; background: var(--warn-soft); box-shadow: inset 0 0 0 1px #f5dfbd; }
.sp-notice strong { display: block; font-weight: 600; margin-bottom: 2px; }

/* Steps list (how it works) */
.sp-steps { display: grid; gap: 20px; }
.sp-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.sp-steps .sp-step-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--canvas); color: var(--ink); }
.sp-steps .sp-step-icon svg { width: 18px; height: 18px; }
.sp-steps strong { display: block; font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.sp-steps p { font-size: 14px; line-height: 1.5; color: var(--muted); }

.sp-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 72px 24px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.sp-empty__icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 6px; border-radius: 50%; background: var(--canvas); color: var(--muted); }
.sp-empty h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.sp-empty p { font-size: 15px; color: var(--muted); }

@media (max-width: 767px) {
    .sp { padding: 8px 20px 96px; }
    .sp-hero { padding: 16px 0 32px; }
    .sp-lede { font-size: 16px; }
    .sp-card--pad { padding: 22px 20px; }
    .sp-row { grid-template-columns: 1fr; }
    .sp-chips { justify-content: flex-start; margin: 0 -20px 28px; padding: 0 20px; }
    .sp-chip { padding: 9px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .sp *, .sp *::before, .sp *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
