/* onboarding.qwikfix.pro: styled to match theqwikfix.com and the QwikQuote platform. */
:root {
  --ink: #1F2A37;
  --ink-2: #33475B;
  --muted: #5B6B7B;
  --navy: #1B3A52;
  --cyan: #5BB8E5;
  --cyan-dark: #3E9FD2;
  --link: #2F8FC4;
  --cyan-wash: #E8F5FC;
  --page: #0E1620;
  --grid: rgba(255, 255, 255, .045);
  --card: #F3F5F8;
  --panel: #FFFFFF;
  --rule: #DCE3EA;
  --rule-2: #C6D2DC;
  --caution: #9A5B00;
  --caution-wash: #FFF4E0;
  --error: #C62828;
  --error-wash: #FDECEA;
  --success: #E9F8EE;
  --radius: 12px;
  --radius-field: 8px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: var(--font);
  --paper: var(--card);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--page);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 160px 160px;
}
a { color: var(--link); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* Top strip and header, mirroring theqwikfix.com */
.topstrip {
  display: flex; justify-content: space-between; align-items: center;
  padding: .45rem clamp(1rem, 3vw, 2rem);
  background: #fff; color: var(--muted); font-size: .9rem;
  border-bottom: 1px solid #EEF2F5;
}
.topstrip a { color: var(--ink); font-weight: 600; text-decoration: none; }
.masthead {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: .9rem clamp(1rem, 3vw, 2rem);
  background: #fff;
  box-shadow: 0 1px 0 #E6EBF0;
}
.brand { display: flex; flex-direction: column; gap: .15rem; text-decoration: none; color: var(--ink); }
.brand-logo { height: 44px; width: auto; display: block; }
.brand-wordmark { font-weight: 800; font-size: 1.7rem; letter-spacing: -.02em; line-height: 1; }
.brand-wordmark .q { color: var(--cyan-dark); }
.brand-wordmark .f { color: var(--navy); }
.brand-tagline { font-size: .8rem; color: var(--ink-2); }
.masthead-nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
.masthead-nav a { color: var(--link); text-decoration: none; font-weight: 500; font-size: 1.05rem; }
.masthead-nav a:hover { color: var(--navy); }

/* Stage and card */
.stage { padding: clamp(2rem, 5vw, 4rem) clamp(.75rem, 3vw, 2rem) 4rem; }
.card {
  max-width: 1180px; margin: 0 auto;
  background: var(--card); border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.75rem) clamp(1rem, 3vw, 2.75rem);
}
.eyebrow {
  margin: 0 0 .75rem; text-align: center;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #AEB6C1;
}
.intro { text-align: center; max-width: 60ch; margin: 0 auto 1.5rem; }
.intro h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; margin: 0 0 .6rem; letter-spacing: -.01em; }
.intro p { margin: 0; color: var(--ink-2); }

/* Step rail: horizontal, a true sequence */
.steps { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 0 auto 1.75rem; padding: .85rem 0; }
.steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.6rem; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 2rem; color: var(--muted); font-size: .95rem; line-height: 1.6rem; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: .8rem;
  border: 2px solid var(--rule-2); background: #fff; color: var(--muted);
}
.steps li.is-done { color: var(--ink); }
.steps li.is-done::before { background: var(--navy); border-color: var(--navy); color: #fff; content: "\2713"; }
.steps li.is-current { color: var(--ink); font-weight: 600; }
.steps li.is-current::before { border-color: var(--cyan); background: var(--cyan); color: #fff; }
.steps button { all: unset; cursor: pointer; }
.steps button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

.card-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.5rem; align-items: start; }
.sheet { background: var(--panel); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); min-width: 0; box-shadow: 0 1px 2px rgba(15, 30, 45, .06); }
.step-head h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 .4rem; letter-spacing: -.01em; }
.step-head p { margin: 0 0 1.5rem; color: var(--muted); max-width: 62ch; }

/* Groups */
.group { border: 0; padding: 0; margin: 0 0 2rem; min-width: 0; }
.group > legend { font-weight: 700; font-size: 1.1rem; padding: 0; margin-bottom: .35rem; color: var(--ink); }
.group-help { margin: 0 0 .75rem; color: var(--muted); font-size: .93rem; max-width: 62ch; }
.group-links { margin: -.25rem 0 .9rem; font-size: .93rem; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.req-block { border-left: 3px solid var(--cyan); padding: .1rem 0 .1rem 1rem; }
.req-block.is-na { border-left-color: var(--caution); }

.field { margin-bottom: 1rem; }
.field label, .field .label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 1rem; }

input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=date], select, .money input {
  width: 100%; font: inherit; color: var(--ink);
  padding: .65rem .85rem; min-height: 48px;
  border: 1.5px solid var(--rule-2); border-radius: var(--radius-field); background: #fff;
}
input::placeholder { color: #9AA6B2; }
input:focus, select:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px var(--cyan-wash); }
.money { position: relative; }
.money::before { content: "$"; position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.money input { padding-left: 1.7rem; }

.file { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.file input[type=file] { font: inherit; font-size: .92rem; max-width: 100%; }
.file .file-name { font-size: .88rem; color: var(--link); font-weight: 500; }

/* Checks and radios */
.check, .radio { display: flex; gap: .65rem; align-items: flex-start; margin: .35rem 0; font-weight: 400; cursor: pointer; }
.check input, .radio input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--cyan-dark); flex: none; }
.choice-row { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.grid-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .1rem 1rem; }
.state-filter { margin-bottom: .75rem; }

.locality-panel { margin: .5rem 0 1.25rem; padding: .9rem 1rem; background: var(--card); border-radius: var(--radius-field); }
.locality-panel h3 { font-size: 1rem; margin: 0 0 .4rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.tag { background: var(--cyan-wash); color: var(--ink); border-radius: 6px; padding: .2rem .55rem; font-size: .9rem; }
.tag button { all: unset; cursor: pointer; margin-left: .35rem; font-weight: 700; }
.inline-add { display: flex; gap: .5rem; margin-top: .6rem; }
.inline-add input { flex: 1; }

.na { margin: 0 0 .9rem; padding: .6rem .8rem; background: var(--caution-wash); border-radius: var(--radius-field); }

/* Buttons: platform cyan, uppercase */
.actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.actions .btn { margin-left: auto; }
.btn, .btn-quiet, .btn-small {
  font: inherit; font-weight: 600; cursor: pointer; border-radius: var(--radius-field); min-height: 52px; padding: .65rem 1.6rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
}
.btn { background: var(--cyan); color: #fff; border: 2px solid var(--cyan); text-transform: uppercase; letter-spacing: .04em; font-size: .95rem; }
.btn:hover { background: var(--cyan-dark); border-color: var(--cyan-dark); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn svg { width: 1.15rem; height: 1.15rem; }
.btn-quiet { background: #fff; color: var(--ink-2); border: 1.5px solid var(--rule-2); }
.btn-quiet:hover { border-color: var(--ink-2); }
.btn-small { min-height: 46px; padding: .4rem 1rem; background: #fff; border: 1.5px solid var(--cyan-dark); color: var(--cyan-dark); }

/* Errors and notes */
.field.has-error input, .field.has-error select { border-color: var(--error); }
.field-error { color: var(--error); font-size: .88rem; margin-top: .3rem; }
.form-errors { background: var(--error-wash); color: var(--error); border-radius: var(--radius-field); padding: .8rem 1rem; margin-top: 1rem; }
.form-errors ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.note { background: var(--cyan-wash); border-radius: var(--radius-field); padding: .8rem 1rem; margin-bottom: 1.25rem; }
.warn-list { background: var(--caution-wash); color: var(--caution); border-radius: var(--radius-field); padding: .8rem 1rem; }

.summary dl { display: grid; grid-template-columns: 11rem 1fr; gap: .4rem 1rem; margin: 0 0 1.5rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; }

/* Punch list: white panel with a cyan accent, fills in as documents attach */
.punch details { position: sticky; top: 1.25rem; background: var(--panel); border-radius: var(--radius); padding: 1.1rem 1.2rem 1.25rem; border-top: 4px solid var(--cyan); box-shadow: 0 1px 2px rgba(15, 30, 45, .06); }
.punch summary { list-style: none; cursor: default; display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .5rem; }
.punch summary::-webkit-details-marker { display: none; }
.punch-title { font-weight: 700; font-size: 1.1rem; }
.punch-count { color: var(--cyan-dark); font-size: .9rem; font-weight: 600; }
.punch-empty { color: var(--muted); font-size: .92rem; margin: 0; }
#punchList { list-style: none; margin: 0; padding: 0; max-height: 70vh; overflow: auto; }
#punchList li { display: grid; grid-template-columns: 1.3rem 1fr; gap: .6rem; padding: .5rem 0; border-top: 1px solid var(--rule); font-size: .9rem; line-height: 1.35; color: var(--ink-2); }
#punchList li::before { content: ""; width: 1.05rem; height: 1.05rem; margin-top: .1rem; border: 2px solid var(--rule-2); border-radius: 4px; background: #fff; }
#punchList li.is-have { color: var(--muted); }
#punchList li.is-have::before { background: var(--cyan); border-color: var(--cyan); box-shadow: inset 0 0 0 2px #fff; }

.done { text-align: center; padding: 1rem 0; }
.done h2 { font-size: 1.7rem; margin: 0 0 .75rem; }
.done p { max-width: 60ch; margin: 0 auto .8rem; }
.done code { background: var(--card); padding: .15rem .45rem; border-radius: 4px; }

.card-foot { margin: 1.5rem auto 0; max-width: 80ch; text-align: center; color: var(--muted); font-size: .85rem; }

@media (max-width: 900px) {
  .card-body { grid-template-columns: minmax(0, 1fr); }
  .punch details { position: static; }
  .punch summary { cursor: pointer; }
  .masthead-nav { display: none; }
}
@media (max-width: 640px) {
  .topstrip { font-size: .82rem; }
  .steps li:not(.is-current) { display: none; }
  .summary dl { grid-template-columns: 1fr; }
  .summary dt { margin-top: .5rem; }
  .actions { flex-direction: column-reverse; }
  .actions .btn, .actions .btn-quiet { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

[hidden] { display: none !important; }
