/* JustDivorse consultations module. Uses root design tokens from index.html. */
.jdc{max-width:1080px;margin:0 auto;padding:clamp(16px,3vw,32px) var(--gutter,20px) 96px;color:var(--text)}
.jdc-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap;margin-bottom:20px}
.jdc-kicker{font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;color:var(--violet);font-weight:600;margin:0 0 8px}
.jdc-title{font-family:var(--serif);font-weight:400;font-size:clamp(2rem,4.4vw,3rem);line-height:1.05;margin:0;letter-spacing:-.01em}
.jdc-title em{font-style:italic;color:var(--violet)}
.jdc-lead{max-width:60ch;color:var(--text-2);margin:10px 0 0;line-height:1.55}
.jdc-role{display:flex;flex-direction:column;gap:2px;padding:10px 16px;border:1px solid var(--border);border-radius:var(--r-md);background:var(--surface)}
.jdc-role span{font-size:.75rem;color:var(--muted)}
.jdc-tabs{display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid var(--border);margin-bottom:16px;scrollbar-width:thin}
.jdc-tab{white-space:nowrap;border:0;background:none;padding:10px 14px;font:inherit;font-size:.9rem;font-weight:500;color:var(--text-2);border-bottom:2px solid transparent;margin-bottom:-1px;cursor:pointer;display:inline-flex;gap:6px;align-items:center}
.jdc-tab:hover{color:var(--text)}
.jdc-tab[aria-current="page"]{color:var(--violet);border-bottom-color:var(--violet);font-weight:600}
.jdc-count{min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--pink-ink);color:var(--surface);font-size:.6875rem;display:inline-grid;place-items:center}
.jdc-ready{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;padding:10px 14px;border-radius:var(--r-md);background:var(--surface-2);font-size:.8125rem;color:var(--text-2);margin-bottom:20px}
.jdc-ready-label{font-weight:600;color:var(--text)}
.jdc-ready-item{display:inline-flex;align-items:center;gap:6px}
.jdc-ready-item i{width:8px;height:8px;border-radius:50%;background:var(--attention)}
.jdc-ready-item.is-on i{background:var(--success)}
.jdc-pending{padding:10px 14px;border-radius:var(--r-md);background:var(--t-blue);color:var(--blue-ink);font-size:.875rem;margin-bottom:12px}
.jdc-section{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:clamp(16px,2.4vw,24px);margin-bottom:16px}
.jdc-section-head{margin-bottom:14px}
.jdc-section h2,.jdc-bookform h2{font-family:var(--serif);font-weight:400;font-size:1.5rem;margin:0}
.jdc-section-head p{color:var(--muted);margin:4px 0 0;font-size:.875rem;line-height:1.5;max-width:70ch}
.jdc-section h3,.jdc-booking h3,.jdc-pro h3{font-size:1rem;margin:0;font-weight:600}
.jdc-muted{color:var(--muted);font-size:.875rem;margin:2px 0 0}
.jdc-empty{border:1px dashed var(--border-strong);border-radius:var(--r-md);padding:24px;text-align:center;color:var(--text-2);background:var(--grad-soft)}
.jdc-empty strong{display:block;margin-bottom:6px;color:var(--text)}
.jdc-empty p{margin:0 auto;max-width:56ch;font-size:.9rem;line-height:1.5}
.jdc-error{border:1px solid var(--danger);background:var(--t-danger);border-radius:var(--r-md);padding:18px;color:var(--text)}
.jdc-error p{margin:6px 0 12px}
.jdc-skel{display:grid;gap:12px}
.jdc-skel span{height:88px;border-radius:var(--r-lg);background:linear-gradient(90deg,var(--surface-2),var(--surface),var(--surface-2));background-size:200% 100%;animation:jdcShimmer 1.4s linear infinite}
@keyframes jdcShimmer{to{background-position:-200% 0}}
.jdc-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin-bottom:16px}
.jdc-stat{padding:14px 16px;border-radius:var(--r-md);background:var(--surface);border:1px solid var(--border)}
.jdc-stat strong{display:block;font-family:var(--serif);font-size:1.75rem;font-weight:400}
.jdc-stat span{font-size:.8125rem;color:var(--muted);text-transform:capitalize}
.jdc-todo{margin:0;padding-left:18px;line-height:1.7;color:var(--text-2)}
.jdc-pros{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.jdc-pro{border:1px solid var(--border);border-radius:var(--r-lg);padding:18px;display:flex;flex-direction:column;gap:10px;background:var(--surface);transition:border-color .2s var(--ease),transform .2s var(--ease)}
.jdc-pro:hover{transform:translateY(-2px)}
.jdc-pro.is-selected{border-color:var(--violet);box-shadow:0 0 0 3px var(--t-violet)}
.jdc-pro-top{display:flex;gap:12px;align-items:flex-start}
.jdc-pro-top>div:nth-child(2){flex:1}
.jdc-avatar{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--t-violet);color:var(--violet);font-weight:600;flex:none}
.jdc-pro-q{margin:0;font-size:.875rem;color:var(--text-2)}
.jdc-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.jdc-tags span{font-size:.75rem;padding:3px 10px;border-radius:999px;background:var(--surface-2);color:var(--text-2)}
.jdc-dl{display:grid;grid-template-columns:auto 1fr;gap:4px 14px;margin:6px 0 0;font-size:.875rem}
.jdc-dl dt{color:var(--muted)}
.jdc-dl dd{margin:0;color:var(--text);overflow-wrap:anywhere}
.jdc-fees{display:flex;flex-direction:column;gap:4px;font-size:.8125rem;padding:10px 12px;border-radius:var(--r-sm);background:var(--surface-2)}
.jdc-fees span{display:flex;justify-content:space-between;gap:8px}
.jdc-pill{display:inline-flex;align-items:center;font-size:.75rem;font-weight:600;padding:3px 10px;border-radius:999px;background:var(--surface-2);color:var(--text-2);white-space:nowrap;height:fit-content}
.jdc-pill.is-on,.jdc-pill.is-approved,.jdc-pill.is-active,.jdc-pill.is-confirmed,.jdc-pill.is-completed{background:var(--t-success);color:var(--success)}
.jdc-pill.is-requested,.jdc-pill.is-awaiting_payment,.jdc-pill.is-draft,.jdc-pill.is-in_progress{background:var(--t-attention);color:var(--attention)}
.jdc-pill.is-declined,.jdc-pill.is-cancelled,.jdc-pill.is-rejected,.jdc-pill.is-expired,.jdc-pill.is-inactive{background:var(--t-danger);color:var(--danger)}
.jdc-pills{display:flex;gap:6px;flex-wrap:wrap}
.jdc-form{display:flex;flex-direction:column;gap:14px}
.jdc-bookform{margin-top:16px;padding:clamp(16px,2.4vw,24px);border:1px solid var(--violet);border-radius:var(--r-lg);background:var(--surface);scroll-margin-top:80px}
.jdc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px 16px}
.jdc-field{display:flex;flex-direction:column;gap:6px;min-width:0;border:0;padding:0;margin:0}
.jdc-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
@media(max-width:520px){.jdc-grid-2{grid-template-columns:minmax(0,1fr)}}
.jdc-field label,.jdc-field legend{font-size:.8125rem;font-weight:600;color:var(--text)}
.jdc-field small{color:var(--muted);font-size:.75rem}
.jdc input:not([type=checkbox]):not([type=radio]),.jdc select,.jdc textarea{font:inherit;font-size:.9375rem;padding:10px 12px;border:1px solid var(--border);border-radius:var(--r-sm);background:var(--bg);color:var(--text);min-height:42px;width:100%;box-sizing:border-box}
.jdc input:focus-visible,.jdc select:focus-visible,.jdc textarea:focus-visible,.jdc button:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
.jdc-mono{font-family:ui-monospace,"SFMono-Regular",Menlo,monospace!important;font-size:.8125rem!important}
.jdc-radio label,.jdc-checks label,.jdc-check{display:flex;align-items:center;gap:8px;font-weight:400!important;font-size:.9rem}
.jdc-checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:6px}
.jdc-checks legend{grid-column:1/-1;margin-bottom:4px}
.jdc-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.jdc-inline{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.jdc-inline input:not([type=checkbox]){flex:1;min-width:180px}
.jdc-btn{font:inherit;font-size:.875rem;font-weight:600;min-height:40px;padding:0 16px;border-radius:999px;border:1px solid transparent;background:var(--violet);color:var(--surface);cursor:pointer;transition:transform .15s var(--ease),opacity .15s}
.jdc-btn:hover:not(:disabled){transform:translateY(-1px)}
.jdc-btn:disabled{opacity:.5;cursor:not-allowed}
.jdc-btn-ghost{background:transparent;color:var(--violet);border-color:var(--border-strong)}
.jdc-btn-danger{background:transparent;color:var(--danger);border-color:var(--danger)}
.jdc-link{border:0;background:none;color:inherit;text-decoration:underline;font:inherit;cursor:pointer;padding:0}
.jdc-fee-line{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;border-radius:var(--r-md);background:var(--t-violet);flex-wrap:wrap}
.jdc-fee-line strong{font-family:var(--serif);font-size:1.5rem;font-weight:400;color:var(--violet)}
.jdc-summary{display:grid;grid-template-columns:minmax(120px,auto) 1fr;gap:10px 20px;margin:0 0 16px;font-size:.95rem}
.jdc-summary dt{color:var(--muted)}
.jdc-summary dd{margin:0;font-weight:500;overflow-wrap:anywhere}
.jdc-note{padding:14px 16px;border-radius:var(--r-md);background:var(--t-blue);color:var(--text);margin-bottom:16px;font-size:.9rem}
.jdc-note p{margin:4px 0 0;color:var(--text-2);line-height:1.5}
.jdc-note-warn{background:var(--t-attention)}
.jdc-list{display:flex;flex-direction:column;gap:10px}
.jdc-booking,.jdc-row-card,.jdc-note-item{border:1px solid var(--border);border-radius:var(--r-md);padding:16px;background:var(--surface)}
.jdc-booking{display:flex;flex-direction:column;gap:12px}
.jdc-booking-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.jdc-ref{font-family:ui-monospace,Menlo,monospace;font-size:.75rem;color:var(--muted);margin:0 0 2px}
.jdc-row-card{display:grid;grid-template-columns:1fr auto;gap:10px 16px;align-items:start}
.jdc-row-card>form{grid-column:1/-1}
.jdc-note-item{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.jdc-note-item p{margin:4px 0;color:var(--text-2);font-size:.9rem}
.jdc-note-item small{color:var(--muted);font-size:.75rem}
.jdc-note-item.is-unread{border-left:3px solid var(--violet)}
.jdc-table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:var(--r-md)}
.jdc-table{width:100%;border-collapse:collapse;font-size:.85rem}
.jdc-table th{text-align:left;font-weight:600;color:var(--muted);font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;padding:10px 12px;background:var(--surface-2);white-space:nowrap}
.jdc-table td{padding:10px 12px;border-top:1px solid var(--border);vertical-align:top;overflow-wrap:anywhere}
.jdc-copy{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:14px}
.jdc-copy code{padding:10px 12px;border-radius:var(--r-sm);background:var(--surface-2);user-select:all;overflow-wrap:anywhere}
.jdc-filters{margin-bottom:12px}
@media (max-width:767px){
  .jdc{padding-bottom:180px}
  .jdc-row-card{grid-template-columns:1fr}
  .jdc-summary{grid-template-columns:1fr;gap:2px}
  .jdc-summary dd{margin-bottom:8px}
  .jdc-pros{grid-template-columns:1fr}
  .bottom-nav{grid-template-columns:repeat(7,minmax(0,1fr))!important}
  .bottom-nav button{font-size:.625rem!important}
}
@media (prefers-reduced-motion:reduce){.jdc *{transition:none!important;animation:none!important}}
.jdc-cityloc{display:flex;flex-direction:column;gap:8px}
.jdc-cityloc-row{display:grid;grid-template-columns:minmax(180px,240px) 1fr;gap:8px;align-items:center}
@media (max-width:767px){.jdc-cityloc-row{grid-template-columns:1fr}}
.jdc-note-msg{margin:0;color:var(--text)!important}
.jdc-limits{margin:0 0 12px}
/* ---------- customer progressive booking ---------- */
.jdc-head-customer{align-items:center}
.jdc-flow{display:flex;flex-direction:column;gap:14px}
.jdc-entry{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.jdc-step{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:clamp(16px,2.4vw,22px)}
.jdc-step.is-done{background:var(--surface-2);padding-block:12px}
.jdc-step-head{display:flex;align-items:center;gap:12px}
.jdc-step-head>div{flex:1;min-width:0}
.jdc-step.is-open .jdc-step-head{margin-bottom:14px}
.jdc-step h2{font-family:var(--serif);font-weight:400;font-size:1.35rem;margin:0}
.jdc-step.is-done h2{font-family:inherit;font-size:.8125rem;font-weight:600;color:var(--muted)}
.jdc-step-sum{margin:2px 0 0;color:var(--text);font-weight:500;font-size:.95rem}
.jdc-step.is-open .jdc-step-sum{color:var(--muted);font-weight:400;font-size:.85rem}
.jdc-step-n{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;flex:none;background:var(--t-violet);color:var(--violet);font-weight:600;font-size:.8125rem}
.jdc-step.is-done .jdc-step-n{background:var(--violet);color:var(--surface)}
.jdc-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
.jdc-choices-3{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.jdc-choice{font:inherit;text-align:left;display:flex;flex-direction:column;gap:4px;padding:14px 16px;border-radius:var(--r-md);border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;transition:border-color .2s var(--ease),transform .2s var(--ease)}
.jdc-choice strong{font-size:.98rem;font-weight:600}
.jdc-choice span{font-size:.84rem;color:var(--text-2);line-height:1.45}
.jdc-choice:hover:not(:disabled){transform:translateY(-1px);border-color:var(--border-strong)}
.jdc-choice.is-selected{border-color:var(--violet);box-shadow:0 0 0 3px var(--t-violet)}
.jdc-entry .jdc-choice:last-child{background:var(--grad-soft)}
.jdc-sub{margin-top:14px}
.jdc-sub-q{margin:0 0 8px;font-size:.875rem;font-weight:600}
.jdc-chips{display:flex;flex-wrap:wrap;gap:8px}
.jdc-chip{font:inherit;font-size:.875rem;min-height:38px;padding:0 14px;border-radius:999px;border:1px solid var(--border-strong);background:var(--surface);color:var(--text);cursor:pointer;transition:transform .15s var(--ease)}
.jdc-chip small{color:var(--muted);font-size:.78rem}
.jdc-chip:hover{transform:translateY(-1px)}
.jdc-chip.is-selected{background:var(--violet);border-color:var(--violet);color:var(--surface)}
.jdc-chip.is-selected small{color:inherit;opacity:.85}
.jdc-safety-line{margin:14px 0 0;font-size:.84rem;color:var(--muted)}
.jdc-day{margin-top:8px}
.jdc-day-label{margin:0 0 6px;font-size:.8125rem;font-weight:600;color:var(--text-2)}
.jdc-pro-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:auto;font-size:.875rem}
.jdc-pro-foot strong{font-family:var(--serif);font-size:1.15rem;font-weight:400;color:var(--violet)}
.jdc-empty-flow{padding:28px 20px}
.jdc-actions-center{justify-content:center;margin-top:14px}
.jdc-history{margin:0 0 12px}
@keyframes jdcRise{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (max-width:767px){.jdc-entry{grid-template-columns:1fr}.jdc-choices,.jdc-choices-3{grid-template-columns:1fr}}
/* ---------- history, documents, partner dashboard ---------- */
.jdc-head-side{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.jdc-kind{display:inline-block;font-size:.6875rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:2px 8px;border-radius:6px;margin:0 0 6px;background:var(--surface-2);color:var(--text-2)}
.jdc-kind.is-paid{background:var(--t-success);color:var(--success)}
.jdc-kind.is-unpaid,.jdc-kind.is-request{background:var(--t-attention);color:var(--attention)}
.jdc-kind.is-test{background:var(--t-blue);color:var(--blue-ink)}
.jdc-hist-booking{display:flex;flex-direction:column;gap:0}
.jdc-hist-booking>.jdc-booking{border-bottom-left-radius:0;border-bottom-right-radius:0}
.jdc-hist-booking>.jdc-doc,.jdc-hist-booking>.jdc-nodoc{border:1px solid var(--border);border-top:0;border-radius:0 0 var(--r-md) var(--r-md);padding:12px 16px;margin:0;background:var(--surface-2)}
.jdc-doc{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.jdc-doc p{margin:2px 0 0;font-size:.8125rem;color:var(--text-2);max-width:60ch}
.jdc-doc.is-paid strong{color:var(--success)}
.jdc-nodoc{margin:0;font-size:.8125rem;color:var(--muted)}
.jdc-session{border-left:3px solid var(--blue-ink)}
.jdc-enquiry{border-style:dashed}
.jdc-earn{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:16px;padding:18px 20px;border-radius:var(--r-lg);background:var(--t-violet);margin-bottom:16px}
.jdc-earn>div>strong{display:block;font-family:var(--serif);font-weight:400;font-size:2.25rem;color:var(--violet);line-height:1.1}
.jdc-earn-notes{margin:0;padding-left:18px;font-size:.84rem;color:var(--text-2);line-height:1.6}
.jdc-end,.jdc-count-line{text-align:center;margin-top:12px}
.jdc-history{justify-content:space-between}
@media (max-width:767px){.jdc-earn{grid-template-columns:1fr}}
