/* Dealer sign-up page. Builds on base.css, site.css and sell.css. */

.hero-dealer { background: linear-gradient(180deg, #f2f5ff 0%, var(--bg) 100%); }
.hero-dealer .blob.b1 { background: #a9c3ff; }
.hero-dealer .blob.b2 { background: #ffd58a; }
.hero-dealer .blob.b3 { background: #8fe0bb; }
.hero-dealer h1 { font-size: clamp(2.5rem, 8vw, 4.3rem); }

/* A phone showing a WhatsApp-style request, played as a short loop */
.phone {
  width: 100%; max-width: 360px; margin: 0 auto; border-radius: 36px; padding: 14px; background: #0f1f19;
  box-shadow: 0 30px 60px rgba(23, 27, 74, .25), inset 0 0 0 2px rgba(255, 255, 255, .06);
}
.phone-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px 14px; color: #fff; font-weight: 700; }
.phone-dot { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-500), var(--brand-900)); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .15); }
.chat { display: grid; gap: 10px; align-content: start; min-height: 300px; padding: 14px; border-radius: 26px; background: #e9efe6; background-image: radial-gradient(rgba(15, 94, 65, .08) 1px, transparent 1px); background-size: 18px 18px; }
.msg { position: relative; display: grid; gap: 4px; max-width: 86%; padding: 10px 12px; border-radius: 14px; font-size: .9rem; line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); opacity: 0; animation: msgIn 12s ease infinite; }
.msg.in { justify-self: start; background: #fff; border-top-left-radius: 4px; }
.msg.out { justify-self: end; background: #d9fdd3; border-top-right-radius: 4px; display: flex; align-items: flex-end; gap: 8px; font-weight: 600; }
.msg b { color: var(--brand-700); }
.msg-item { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.msg-meta { color: var(--muted); font-size: .82rem; }
.ticks { color: #34b7f1; font-size: .75rem; letter-spacing: -2px; }
.msg.win { display: flex; gap: 8px; align-items: center; background: var(--brand-700); color: #fff; font-weight: 700; }
.msg.win .icon { flex: none; }
.m1 { animation-delay: .6s; } .m2 { animation-delay: 2.2s; } .m3 { animation-delay: 4.2s; } .m5 { animation-delay: 5.4s; }
@keyframes msgIn {
  0% { opacity: 0; transform: translateY(12px) scale(.96); }
  4%, 86% { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: translateY(-6px); }
}
.typing { justify-self: start; display: flex; gap: 4px; padding: 10px 12px; border-radius: 14px; background: #fff; opacity: 0; animation: typing 12s ease infinite; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: #9aa7a0; animation: dot 1s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 30% { opacity: 0; } 32%, 36% { opacity: 1; } 38%, 100% { opacity: 0; height: 0; padding: 0; } }
@keyframes dot { 0%, 80%, 100% { transform: scale(.6); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }

/* "What do you sell?" picker */
.picker { display: grid; gap: 8px; margin-top: 8px; }
.pick-group { border: 1.5px solid var(--line-2); border-radius: var(--r-md); background: #fff; transition: border-color .2s; }
.pick-group[open] { border-color: var(--brand-200); }
.pick-group.has { border-color: var(--brand-500); }
.pick-group summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 14px; cursor: pointer; font-weight: 700; border-radius: var(--r-md); }
.pick-group summary::-webkit-details-marker { display: none; }
.pick-group summary .icon { color: var(--brand-700); }
.pick-group summary .chev { margin-left: auto; color: var(--muted); transition: transform .3s var(--ease-spring); }
.pick-group[open] summary .chev { transform: rotate(180deg); }
.pick-count { padding: 2px 10px; border-radius: var(--r-pill); background: var(--brand-700); color: #fff; font-size: .78rem; font-weight: 800; }
.pick-body { display: grid; gap: 10px; padding: 0 14px 14px; animation: stepIn .35s var(--ease-out); }
.pick-tools { display: flex; gap: 8px; }
.pick-tools button { min-height: 34px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--brand-50); color: var(--brand-800); font-weight: 700; font-size: .85rem; cursor: pointer; }
.pick-items { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-chip { position: relative; }
.pick-chip input { position: absolute; opacity: 0; pointer-events: none; }
.pick-chip span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-pill); background: #fff; font-weight: 600; font-size: .9rem; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.pick-chip span:hover { border-color: var(--brand-500); background: var(--brand-50); }
.pick-chip input:checked + span { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.pick-chip input:focus-visible + span { outline: 3px solid var(--sun-500); outline-offset: 2px; }
.pick-total { min-height: 1.3em; color: var(--brand-700); font-weight: 700; font-size: .92rem; }
#sells-set.invalid { border: 1.5px solid var(--danger); border-radius: var(--r-md); padding: 8px; }

@media (prefers-reduced-motion: reduce) {
  .msg, .typing { animation: none !important; opacity: 1 !important; }
  .typing { display: none; }
}

/* ---- Vehicle showrooms: "Which brand do you sell?" ---- */
.brand-box { display: grid; gap: 14px; }
.brand-set { margin: 0; padding: 14px; border: 1.5px dashed #e2d3b2; border-radius: 16px; background: #fffaf0; }
.brand-set.done { border-style: solid; border-color: #cfe5d6; background: #f5fbf7; }
.brand-set legend { font-weight: 800; padding: 0 4px; }
.brand-set .hint { margin: 2px 0 10px; }
.bp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .bp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .bp-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.bp-card { position: relative; display: grid; justify-items: center; align-content: start; gap: 4px; min-height: 88px; padding: 10px 6px 8px;
  border: 1.5px solid #ebe3d3; border-radius: 14px; background: #fff; color: var(--ink, #171b4a); font: inherit; cursor: pointer;
  transition: transform .25s ease, border-color .2s, box-shadow .25s; }
.bp-card:hover { transform: translateY(-2px); border-color: #b8913a; }
.bp-card:focus-visible { outline: 3px solid #b8913a; outline-offset: 2px; }
.bp-card b { font-size: .84rem; line-height: 1.2; text-align: center; }
.bp-card small { font-size: .7rem; line-height: 1.25; color: var(--muted, #6b6f86); text-align: center; }
.bp-card.on { border-color: #171b4a; box-shadow: 0 0 0 2px #171b4a inset; background: #f6f7ff; }
.bp-card.on::after { content: "✓"; position: absolute; top: 5px; right: 7px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: #171b4a; color: #e3c47a; font-size: .72rem; font-weight: 900; }
.bp-all { grid-column: span 2; }
.bp-logo { display: grid; place-items: center; width: 76px; height: 40px; overflow: hidden; }
.bp-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bp-badge { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(150deg, #20265d, #0a0d2d); color: #e3c47a; font-weight: 900; font-size: .9rem; }
.bp-multi .icon { width: 20px; height: 20px; }
.bp-summary { margin: 10px 0 0; font-size: .88rem; font-weight: 700; color: #1f6b3a; }
.bp-summary:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .bp-card { transition: none; } .bp-card:hover { transform: none; } }

/* ---- WhatsApp example: looks like the real app ---- */
.phone-wrap { display: grid; gap: 12px; justify-items: center; }
.phone-cap { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid #e8dcc2; color: #171b4a; font-weight: 700; font-size: .88rem; box-shadow: 0 4px 12px rgba(23, 27, 74, .08); }
.phone-cap .icon { width: 18px; height: 18px; color: #b8913a; }
.phone { border: 2px solid #c9a24a; }
.phone-top { padding: 6px 10px 12px; }
.phone-logo { width: 36px; height: 36px; flex: none; }
.phone-id { display: grid; line-height: 1.2; }
.phone-id small { font-weight: 500; font-size: .76rem; color: #8fd9b6; }
.chat-day { justify-self: center; padding: 3px 10px; border-radius: 8px; background: rgba(255, 255, 255, .85); color: #54656f; font-size: .72rem; font-weight: 700; }
.msg-time { justify-self: end; color: #667781; font-size: .7rem; font-weight: 500; white-space: nowrap; }
.msg.out .msg-time { align-self: flex-end; }
.msg.out .ticks { margin-left: 2px; }
.msg.contact { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: 86%; }
.ct-ava { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #e7f5ee; color: #1b7a55; }
.ct-ava .icon { width: 20px; height: 20px; }
.ct-txt { display: grid; line-height: 1.25; }
.ct-txt b { color: #171b4a; font-size: .86rem; }
.ct-txt span { color: #54656f; font-size: .84rem; letter-spacing: .02em; }
.ct-call { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 999px; background: #1b9a6b; color: #fff; font-weight: 800; font-size: .82rem; }
.ct-call .icon { width: 15px; height: 15px; }

/* ---- How customers reach you: 4 picture steps ---- */
#how .section-head .lead { margin-top: 6px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); counter-reset: f; }
@media (min-width: 620px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.flow-step { position: relative; display: grid; align-content: start; gap: 6px; padding: 16px 16px 18px; border-radius: 20px; background: #fff; border: 1.5px solid #ecdfc4; box-shadow: 0 6px 18px rgba(23, 27, 74, .06); }
.flow-step h3 { margin: 6px 0 0; font-size: 1.15rem; font-weight: 800; color: #171b4a; }
.flow-step p { margin: 0; color: #5b5f78; font-size: .93rem; line-height: 1.5; }
.flow-num { position: absolute; top: -12px; left: 16px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #171b4a; color: #e3c47a; font-weight: 900; font-size: .9rem; box-shadow: 0 0 0 3px #fff; }
.flow-pic { display: grid; place-items: center; min-height: 132px; padding: 14px; border-radius: 14px; }
.fs1 .flow-pic { background: linear-gradient(135deg, #fde7d6, #fbd0b0); }
.fs2 .flow-pic { background: linear-gradient(135deg, #d9f5e6, #b5e8cf); }
.fs3 .flow-pic { background: linear-gradient(135deg, #e3e7ff, #c9d1fb); }
.fs4 .flow-pic { background: linear-gradient(135deg, #fff1c9, #f7dc8e); }
.mini { display: grid; gap: 5px; width: 100%; max-width: 230px; padding: 10px 12px; border-radius: 12px; background: #fff; box-shadow: 0 4px 12px rgba(23, 27, 74, .12); font-size: .82rem; color: #3f4360; }
.mini b { color: #171b4a; font-size: .9rem; line-height: 1.3; }
.mini .icon { width: 15px; height: 15px; }
.mini-who, .mini-wa-top, .mini-ok { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .76rem; }
.mini-who { color: #9a3412; }
.mini-wa-top { color: #1b7a55; }
.mini-ok { color: #1b7a55; }
.mini-btn { justify-self: start; display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; padding: 5px 12px; border-radius: 999px; background: #171b4a; color: #fff; font-weight: 800; font-size: .76rem; }
.mini-btn.call { background: #1b9a6b; }
.mini-wa { border-left: 4px solid #25d366; }
.mp-row { display: flex; justify-content: space-between; padding: 5px 8px; border-radius: 8px; background: #f5f6fb; }
.mp-row.you { background: #171b4a; color: #e3c47a; }
.mp-row.you b { color: #fff; }
.mp-row b { font-size: .82rem; }
.flow-note { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; padding: 12px 16px; border-radius: 14px; background: #f3efe6; color: #3f4360; font-size: .93rem; }
.flow-note .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: #b8913a; }
.flow-cta { margin-top: 18px; text-align: center; }
/* "Pick what you offer": compact cards on phone (icon beside the name) */
@media (max-width: 619px) {
  .who-grid { gap: 10px; }
  .who-card { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; row-gap: 8px; padding: 14px 40px 14px 14px; }
  .who-card .who-ex { grid-column: 1 / -1; display: flex; gap: 8px; align-items: baseline; padding: 7px 10px; }
  .who-card .who-ex em { flex: none; white-space: nowrap; letter-spacing: .06em; }
  .who-card .who-ex span { min-width: 0; }
  .who-go { top: 50%; margin-top: -9px; }
  .who-card.on::after { top: 10px; right: 10px; }
  .flow { gap: 22px; }
}
/* ---- Pictures ---- */
.hero-visual { display: grid; justify-items: center; }
.hero-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; border: 3px solid #c9a24a; box-shadow: 0 24px 50px -20px rgba(23, 27, 74, .45); }
.hero-visual .phone-wrap { position: relative; width: min(330px, 88%); margin-top: -70px; }
.hero-visual .phone-cap { order: 2; }
.hero-visual .phone { max-width: none; }
@media (min-width: 900px) {
  .hero-visual { justify-items: end; }
  .hero-photo { width: 92%; justify-self: start; }
  .hero-visual .phone-wrap { width: 320px; margin-top: -190px; margin-right: -10px; }
}
/* Provider cards: photo instead of the icon tile */
.who-pic { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; border-radius: 14px; background: #efe6d4; }
@media (max-width: 619px) {
  .who-pic { width: 64px; height: 64px; aspect-ratio: 1; border-radius: 14px; object-position: 50% 25%; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #e3c47a; }
}
.type-pic { flex: none; width: 52px; height: 52px; border-radius: 14px; object-fit: cover; object-position: 50% 25%; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #e3c47a; }
.join-photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 35%; margin-top: 18px; border-radius: 18px; border: 3px solid #c9a24a; }
@media (max-width: 899px) { .join-photo { aspect-ratio: 16 / 8; } }
.who-pic, .hero-photo, .join-photo { height: auto; }
@media (min-width: 620px) {
  .who-go { z-index: 2; top: 26px; right: 26px; width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(23, 27, 74, .2); }
}
