/* Docket Entry onboarding. Loaded after site.css. Every value is a token from site.css :root. */

/* utilities */
.vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* confirmation card: the case-number line takes no room when no case number was passed to the page */
.dk-no:empty{display:none}

/* ---------- start page layout ---------- */
.start{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"intro card" "side card" ". card";grid-template-rows:auto auto 1fr;column-gap:64px;row-gap:24px;align-items:start;padding-block:44px 64px}
.start-intro{grid-area:intro}
.start-card{grid-area:card}
.start-side{grid-area:side}
/* the path switch: the checked radio decides which blocks show. No script needed. Without :has() support both paths simply show. */
.start:has(#path-founding:checked) [data-path-show="firm"]{display:none !important}
.start:not(:has(#path-founding:checked)) [data-path-show="founding"]{display:none !important}

/* ---------- the first choice: two option cards, one radio group ---------- */
fieldset.choice{border:0;margin:0;padding:0;min-width:0;display:flex;flex-direction:column;gap:10px}
.choice legend{padding:0;margin:0 0 10px;font-size:15px;font-weight:600;color:var(--text)}
.choice-opt{display:block;position:relative;cursor:pointer}
.choice-opt input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.choice-body{display:flex;gap:14px;align-items:flex-start;padding:16px 18px;min-height:64px;background:var(--white);border:1.5px solid var(--border-input);border-radius:12px;transition:border-color .15s,background-color .15s}
.choice-opt:hover .choice-body{border-color:var(--olive-700)}
.choice-mark{flex:none;width:22px;height:22px;margin-top:1px;border-radius:999px;border:1.5px solid var(--border-input);background:var(--white);position:relative}
.choice-mark::after{content:"";position:absolute;inset:4px;border-radius:999px;background:var(--lime);transform:scale(0);transition:transform .15s}
.choice-opt input:checked + .choice-body{border-color:var(--navy-900);background:var(--sage-soft);box-shadow:inset 0 0 0 1px var(--navy-900)}
.choice-opt input:checked + .choice-body .choice-mark{background:var(--navy-900);border-color:var(--navy-900)}
.choice-opt input:checked + .choice-body .choice-mark::after{transform:scale(1)}
.choice-opt input:focus-visible + .choice-body{outline:3px solid var(--olive-700);outline-offset:3px}
.choice-t{display:block;font-size:17px;font-weight:700;letter-spacing:-.01em;line-height:1.3;color:var(--text)}
.choice-d{display:block;margin-top:2px;font-size:14px;line-height:1.45;color:var(--text-3)}

/* ---------- the form under the choice ---------- */
.path-form{display:flex;flex-direction:column;gap:20px;padding-top:24px;border-top:1px solid var(--border-subtle)}
.field input,.field select,.field textarea,.err-summary{scroll-margin-top:110px}
.field textarea{font:400 17px/1.45 var(--sans);color:var(--text);background:var(--white);border:1.5px solid var(--border-input);border-radius:8px;padding:13px 14px;min-height:112px;width:100%;resize:vertical}
.field textarea:focus{outline:none;border-color:var(--navy-900);box-shadow:0 0 0 3px rgba(198,236,124,.7)}
.field select{-webkit-appearance:none;appearance:none;padding-right:44px;text-overflow:ellipsis;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23151D35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:18px}
.field select:required:invalid{color:var(--text-4)}
.field select option{color:var(--text)}
.field input::placeholder,.field textarea::placeholder{color:var(--text-4);opacity:1}
.field-check{display:flex;flex-direction:column;gap:6px}

/* what the firm receives, and how fast */
.spec{margin:0;display:flex;flex-direction:column;gap:10px;background:var(--sage);border-radius:12px;padding:16px 18px}
.spec-row{display:grid;grid-template-columns:104px minmax(0,1fr);gap:14px;align-items:baseline}
.spec dt{font-family:var(--mono);font-size:11px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--olive-700)}
.spec dd{margin:0;font-size:15px;line-height:1.45;color:var(--olive-900)}

/* error states: rust border, a line of text with an icon, a summary at the top of the form. Never colour alone. */
.err{display:flex;gap:8px;align-items:flex-start;font-size:14px;line-height:1.4;font-weight:500;color:var(--their-move)}
.err[hidden]{display:none}
.err svg{flex:none;margin-top:2px}
.field.has-error input,.field.has-error select,.field.has-error textarea{border-color:var(--their-move)}
.field-check.has-error .check{outline:1.5px solid var(--their-move);outline-offset:6px;border-radius:6px}
.err-summary{display:flex;gap:12px;align-items:flex-start;background:var(--white);border:1.5px solid var(--their-move);border-radius:12px;padding:14px 16px}
.err-summary[hidden]{display:none}
.err-summary svg{flex:none;margin-top:3px}
.err-summary:focus{outline:3px solid var(--olive-700);outline-offset:3px}
.err-summary-t{margin:0 0 6px;font-size:15px;font-weight:700;color:var(--text)}
.err-list{margin:0;padding-left:18px;font-size:14px;line-height:1.55;color:var(--their-move)}
.err-list a{color:var(--their-move);font-weight:600}
.err-list a:hover{color:var(--text)}

/* form button: let a long label wrap instead of running out of the card on a phone */
.form-card .btn-lg{white-space:normal;text-align:center;line-height:1.2}

/* confirmation: a second note line in the docket card */
.dk-note.first{padding-bottom:6px}

@media (prefers-reduced-motion: reduce){.choice-body,.choice-mark::after{transition:none}}
@media (forced-colors: active){.choice-opt input:checked + .choice-body{outline:2px solid Highlight}}

@media (max-width:999px){
  .start{grid-template-columns:minmax(0,1fr);grid-template-areas:"intro" "card" "side";grid-template-rows:auto;row-gap:24px}
}
@media (max-width:860px){
  .start{padding-block:32px 44px}
}
@media (max-width:640px){
  .spec-row{grid-template-columns:minmax(0,1fr);gap:2px}
  .choice-body{padding:14px 14px}
  /* button row: let a long label wrap instead of running past the screen edge on a phone */
  .cta-row .btn-lg{white-space:normal;text-align:center;line-height:1.2}
}
