/* Dealer join form: 4 short steps + live "how customers will see you" card. Loaded after theme.css. */

.join-sec { position: relative; overflow: hidden; background: linear-gradient(180deg, #f7f1e6 0%, #fbf7ef 60%, #f4ecdc 100%); }
.join-bg .jb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.join-bg .jb1 { width: 420px; height: 420px; left: -120px; top: 40px; background: radial-gradient(circle, #fcd9a8, transparent 70%); }
.join-bg .jb2 { width: 480px; height: 480px; right: -160px; bottom: -80px; background: radial-gradient(circle, #c9d3ff, transparent 70%); }
@media (prefers-reduced-motion: no-preference) {
  .join-bg .jb1 { animation: jb-float 14s ease-in-out infinite alternate; }
  .join-bg .jb2 { animation: jb-float 18s ease-in-out infinite alternate-reverse; }
}
@keyframes jb-float { to { transform: translate(40px, 30px) scale(1.08); } }

.join-grid { position: relative; display: grid; gap: 22px; align-items: start; }
@media (min-width: 960px) { .join-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; } }

/* ---- Left side ---- */
.join-side .eyebrow { background: var(--brand-100, #eef0ff); border-color: transparent; }
.join-h { margin-top: 12px; font-size: clamp(1.9rem, 5.2vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.join-h .accent { color: #8a1f3d; }
.join-lead { margin-top: 10px; }
.pv-cap { display: none; margin: 26px 0 10px; font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8a6a2a; align-items: center; gap: 8px; }
.pv-cap .icon { width: 16px; height: 16px; }
#pv-side { display: none; }
.join-points { list-style: none; margin: 22px 0 0; padding: 0; display: none; gap: 10px; }
.join-points li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink, #171b4a); }
.join-points .icon { width: 20px; height: 20px; color: #1f8a5b; }
@media (min-width: 960px) {
  .join-side { position: sticky; top: 92px; }
  .pv-cap { display: flex; }
  #pv-side { display: block; }
  .join-points { display: grid; }
  .pv-mobile { display: none; }
}

/* ---- Preview card ---- */
.pv { position: relative; overflow: hidden; display: grid; gap: 12px; padding: 16px; border-radius: 22px; background: #fff; border: 1px solid #ece3d1;
  box-shadow: 0 24px 50px -30px rgba(23, 27, 74, .45); }
.pv::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, #8a1f3d, #d4a24c, #1f8a5b); }
.pv-top { display: flex; align-items: center; gap: 12px; }
.pv-top .gloss { flex: none; width: 46px; height: 46px; border-radius: 14px; }
.pv-top .gloss .icon { position: relative; z-index: 1; width: 22px; height: 22px; }
.pv-who { min-width: 0; display: grid; gap: 2px; }
.pv-who b { font-family: 'Playfair Display', Georgia, serif; font-size: 1.15rem; line-height: 1.2; overflow-wrap: anywhere; }
.pv-who b.pv-ph { color: #a8a39a; }
.pv-who small { display: flex; align-items: center; gap: 4px; color: var(--muted, #6b6f86); font-size: .82rem; }
.pv-who small .icon { width: 14px; height: 14px; }
.pv-badge { margin-left: auto; flex: none; padding: 4px 9px; border-radius: 999px; background: #e7f6ee; color: #1f6b3a; font-size: .72rem; font-weight: 800; }
.pv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pv-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #f4efe4; color: var(--ink, #171b4a); font-size: .8rem; font-weight: 700; }
.pv-chip.pv-soft { background: #eef0ff; color: #2b3170; }
.pv-chip.pv-ghost { background: transparent; border: 1.5px dashed #ddd0b4; color: #a8a39a; font-weight: 600; }
.pv-brand { background: #fff; border: 1px solid #ece3d1; }
.pv-logo { display: grid; place-items: center; width: 34px; height: 18px; overflow: hidden; }
.pv-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pv-logo.bp-badge { width: 18px; height: 18px; font-size: .55rem; }
.pv-msg { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: #e9f7ef; border: 1px solid #cdebd9; }
.pv-msg em { font-style: normal; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #1f6b3a; }
.pv-msg b { font-size: .92rem; }
.pv-reply { font-size: .8rem; font-weight: 700; color: #8a6a2a; }
@media (prefers-reduced-motion: no-preference) {
  .pv-msg { animation: pv-pop .6s cubic-bezier(.2, .9, .3, 1.3) both; }
}
@keyframes pv-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.pv-mobile { margin-top: 4px; }
.pv-mobile::before { content: "How people will see you"; display: block; margin-bottom: 8px; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8a6a2a; }

/* ---- The card with the steps ---- */
.join-card { position: relative; background: #fff; border: 1px solid var(--line, #ece3d1); border-radius: 28px; box-shadow: 0 30px 70px -40px rgba(23, 27, 74, .55); padding: 20px 18px 22px; scroll-margin-top: 84px; }
@media (min-width: 600px) { .join-card { padding: 26px 28px 28px; } }

.jsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.jsteps li { display: grid; justify-items: center; gap: 6px; text-align: center; color: #a8a39a; font-size: .74rem; font-weight: 700; }
.jdot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #f4efe4; color: #8f887a; font-weight: 900; transition: background .3s, color .3s, transform .3s; }
.jsteps li.active { color: var(--ink, #171b4a); }
.jsteps li.active .jdot { background: #171b4a; color: #e3c47a; transform: scale(1.1); box-shadow: 0 8px 18px -8px rgba(23, 27, 74, .7); }
.jsteps li.done .jdot, .jsteps.all-done .jdot { background: #1f8a5b; color: #fff; font-size: 0; }
.jsteps li.done .jdot::after, .jsteps.all-done .jdot::after { content: "✓"; font-size: .9rem; }
.jsteps li.done { color: #1f6b3a; }
@media (max-width: 380px) { .jlbl { font-size: .66rem; } }
.jbar { height: 4px; margin: 12px 14px 20px; border-radius: 4px; background: #f1ebde; overflow: hidden; }
.jbar span { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #d4a24c, #1f8a5b); transition: width .5s cubic-bezier(.2, .8, .2, 1); }

.jstep[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .jstep.in { animation: jstep-in .45s cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes jstep-in { from { opacity: 0; transform: translateX(18px); } }
.jh { margin: 0; font-size: clamp(1.35rem, 4vw, 1.7rem); font-weight: 800; letter-spacing: -.02em; outline: none; }
.jp { margin: 6px 0 16px; color: var(--muted, #6b6f86); }

/* Step 1: business type cards */
.type-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .type-grid { grid-template-columns: repeat(2, 1fr); } }
.type-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid #ece3d1; border-radius: 18px; background: #fff;
  font: inherit; text-align: left; color: var(--ink, #171b4a); cursor: pointer; transition: transform .25s ease, border-color .2s, box-shadow .25s; }
.type-card:hover { transform: translateY(-2px); border-color: #d4a24c; box-shadow: 0 14px 28px -20px rgba(23, 27, 74, .6); }
.type-card:focus-visible { outline: 3px solid #d4a24c; outline-offset: 2px; }
.type-card.on { border-color: #171b4a; box-shadow: 0 0 0 2px #171b4a inset; }
.type-card .gloss { flex: none; width: 46px; height: 46px; border-radius: 14px; }
.type-card .gloss .icon { position: relative; z-index: 1; width: 22px; height: 22px; }
.type-text { display: grid; gap: 2px; min-width: 0; }
.type-text b { font-size: .98rem; }
.type-text small { font-size: .78rem; color: var(--muted, #6b6f86); line-height: 1.3; }
.type-go { margin-left: auto; flex: none; width: 18px; height: 18px; color: #b8913a; transition: transform .25s; }
.type-card:hover .type-go { transform: translateX(3px); }

/* Step 2: chosen type tag */
.jtype { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 6px 6px 6px 6px; border-radius: 999px; background: #f7f2e7; border: 1px solid #ece3d1; }
.jtype .gloss { width: 32px; height: 32px; border-radius: 50%; }
.jtype .gloss::after { display: none; }
.jtype .gloss .icon { width: 16px; height: 16px; position: relative; z-index: 1; }
.jtype b { font-size: .9rem; }
.jtype-change { margin-left: 4px; padding: 6px 12px; border: 0; border-radius: 999px; background: #fff; color: #171b4a; font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer; }
.jtype-change:hover { background: #171b4a; color: #fff; }

/* Step 2: photo cards */
.oc-tools { display: flex; justify-content: flex-end; margin: -6px 0 8px; }
.oc-all { padding: 6px 12px; border: 1.5px solid #ece3d1; border-radius: 999px; background: #fff; color: #171b4a; font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; }
.oc-all:hover { border-color: #171b4a; }
.oc-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .oc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.oc-grid-sm { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .oc-grid-sm { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.oc { position: relative; display: grid; gap: 0; padding: 0; overflow: hidden; border: 1.5px solid #ece3d1; border-radius: 16px; background: #fff;
  font: inherit; color: var(--ink, #171b4a); text-align: left; cursor: pointer; transition: transform .25s ease, border-color .2s, box-shadow .25s; }
.oc:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -20px rgba(23, 27, 74, .6); }
.oc:focus-visible { outline: 3px solid #d4a24c; outline-offset: 2px; }
.oc-pic { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #f4efe4; overflow: hidden; }
.oc-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.oc:hover .oc-pic img { transform: scale(1.06); }
.oc-pic .icon { width: 28px; height: 28px; color: #b8913a; }
.oc b { padding: 8px 10px 10px; font-size: .86rem; line-height: 1.25; }
.oc-sm b { padding: 6px 8px 8px; font-size: .76rem; }
.oc-tick { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); border: 1.5px solid #ddd0b4; color: transparent; font-size: .8rem; font-weight: 900; transition: background .2s, color .2s, transform .25s; }
.oc.on { border-color: #171b4a; box-shadow: 0 0 0 2px #171b4a inset; }
.oc.on .oc-tick { background: #171b4a; border-color: #171b4a; color: #e3c47a; transform: scale(1.08); }
.oc.on b { background: #f6f7ff; }
.oc-count { margin: 10px 0 0; font-size: .86rem; font-weight: 700; color: #1f6b3a; }
.invalid.oc-grid, #offer-box.invalid { border-radius: 16px; box-shadow: 0 0 0 2px #c0392b; }

/* Step 2: questions (new/used, also sell) */
.jq { margin-bottom: 16px; }
.jq-l { margin: 0 0 8px; font-weight: 800; }
.jq-row { display: flex; flex-wrap: wrap; gap: 8px; }
.jq-pill { padding: 10px 16px; border: 1.5px solid #ece3d1; border-radius: 999px; background: #fff; color: var(--ink, #171b4a); font: inherit; font-weight: 700; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.jq-pill:hover { border-color: #171b4a; }
.jq-pill.on { background: #171b4a; border-color: #171b4a; color: #fff; }
.jq-also .oc-grid-sm { grid-template-columns: repeat(2, minmax(0, 160px)); }

/* Step 2: "Something else" folded groups */
.og { margin-bottom: 8px; border: 1.5px solid #ece3d1; border-radius: 16px; background: #fff; }
.og summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-weight: 800; cursor: pointer; list-style: none; }
.og summary::-webkit-details-marker { display: none; }
.og summary .icon { width: 18px; height: 18px; }
.og summary .chev { margin-left: auto; transition: transform .25s; }
.og[open] summary .chev { transform: rotate(180deg); }
.og .oc-grid { padding: 0 12px 12px; }

#brand-box, #extra-box { margin-top: 16px; }
.extra-set { display: grid; gap: 12px; margin: 0; padding: 14px; border: 1.5px solid #ece3d1; border-radius: 16px; background: #fffaf0; }
.extra-set legend { font-weight: 800; padding: 0 4px; }

/* Step 4: optional extra taluks */
.serve-more { border: 1.5px dashed #e2d3b2; border-radius: 16px; background: #fffaf0; padding: 0 14px; }
.serve-more summary { display: flex; align-items: center; gap: 8px; padding: 12px 0; font-weight: 700; cursor: pointer; list-style: none; }
.serve-more summary::-webkit-details-marker { display: none; }
.serve-more summary small { color: var(--muted, #6b6f86); font-weight: 600; }
.serve-more summary .icon { width: 18px; height: 18px; }
.serve-more summary .chev { margin-left: auto; transition: transform .25s; }
.serve-more[open] summary .chev { transform: rotate(180deg); }
.serve-more[open] { padding-bottom: 14px; }
.serve-more .hint { display: block; margin-bottom: 10px; }

/* Buttons */
.jnav { display: flex; gap: 10px; margin-top: 22px; }
.jnav .jnext { margin-left: auto; min-width: 150px; justify-content: center; }
.jnav [hidden] { display: none; }
#d-error { margin-top: 14px; }

/* Done */
.next-list { list-style: none; margin: 18px auto 20px; padding: 0; display: grid; gap: 10px; max-width: 380px; text-align: left; counter-reset: n; }
.next-list li { position: relative; display: grid; gap: 2px; padding: 10px 12px 10px 48px; border-radius: 14px; background: #f7f2e7; counter-increment: n; }
.next-list li::before { content: counter(n); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #171b4a; color: #e3c47a; font-weight: 900; font-size: .8rem; }
.next-list b { font-size: .9rem; }
.next-list span { font-size: .84rem; color: var(--muted, #6b6f86); }

@media (prefers-reduced-motion: reduce) {
  .type-card, .oc, .oc-pic img, .jbar span, .jdot { transition: none; }
  .type-card:hover, .oc:hover { transform: none; }
  .oc:hover .oc-pic img { transform: none; }
}

/* Step 3: shop login */
.acct-box { display: grid; gap: 12px; padding: 14px; border-radius: 16px; background: #f6f7ff; border: 1px solid #dfe2f7; }
.acct-box-h { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 800; color: #171b4a; }
.acct-box-h .icon { width: 18px; height: 18px; }
.acct-box input[type=password], .acct-box select { width: 100%; }
.sq-set { margin: 0; padding: 12px; border: 1.5px dashed #d9c79f; border-radius: 14px; background: #fffaf0; display: grid; gap: 10px; }
.sq-set legend { font-weight: 800; padding: 0 4px; }
.acct-box select { min-height: 46px; padding: 8px 12px; border: 1.5px solid var(--line, #e2d6bd); border-radius: 12px; background: #fff; font: inherit; }
