/* Tasqo — staged removals booking interface.
 * Shared by the Home & Office Removal page, its town variants and Student
 * Removals. Uses each page's own :root design tokens, so the booking flow
 * inherits Tasqo branding wherever it is mounted. Mobile-first.
 */

/* Secondary tokens for the booking flow.
 *
 * Brand colour NEVER appears as a literal in this file: it is read from each
 * page's own :root block (Design System v3, navy + green), so the booking flow
 * recolours automatically wherever it is mounted and a future palette change
 * does not need to touch it.
 *
 * What is declared below are the neutrals and status colours the brand palette
 * does not define: form borders, hairline rules and the error/warning/info
 * states a multi-step form cannot work without. They live here, once, rather
 * than being sprinkled through the rules as one-off hexes, which is exactly
 * what the design system's "What NOT to do" section warns against. Values are
 * the ones already in use elsewhere on the site, not new inventions.
 */
.trb,
.trb-flat-panel,
.trb-cols,
.cta-band{
  --trb-border:#D7DEE6;        /* form control border */
  --trb-border-soft:#E4E9EF;   /* card border */
  --trb-rule:#EEF2F6;          /* hairline divider */
  --trb-rule-faint:#F3F6F9;    /* divider inside a list */
  --trb-surface-faint:#FBFCFD; /* dashed upload panel */
  --trb-danger:#B3261E;
  --trb-danger-bg:#FDECEA;
  --trb-danger-border:#F3C0BA;
  --trb-danger-ink:#7A1B13;
  --trb-warn-bg:#FFF8E6;
  --trb-warn-border:#F0D38A;
  --trb-warn-ink:#5E4700;
  --trb-tag-bg:#FFF3D1;
  --trb-tag-ink:#6B4E00;
  --trb-info-bg:#F1F6FB;
  --trb-info-border:#C6D9EC;
  --trb-info-ink:#1C3D5A;
}

.trb{max-width:860px;margin:0 auto;padding:0 20px;}
.trb *{box-sizing:border-box;}

/* ---- progress ---- */
.trb-steps{display:flex;gap:6px;margin:0 0 10px;list-style:none;padding:0;}
.trb-steps li{flex:1 1 0;min-width:0;text-align:center;font-size:12px;font-weight:600;
  color:var(--color-ash);padding-bottom:8px;border-bottom:4px solid var(--trb-border-soft);line-height:1.3;}
.trb-steps li.done{color:var(--color-task-green-dark);border-bottom-color:var(--color-sprout-lime);}
.trb-steps li.current{color:var(--color-deep-forest);border-bottom-color:var(--color-task-green);}
.trb-steps .trb-stepnum{display:block;font-size:11px;font-weight:700;opacity:.7;}
@media (max-width:520px){
  .trb-steps li{font-size:0;padding-bottom:6px;}
  .trb-steps .trb-stepnum{font-size:11px;}
}

/* ---- panels ---- */
.trb-panel{display:none;}
.trb-panel.active{display:block;}
.trb-card{background:#fff;border:2px solid var(--trb-border-soft);border-radius:16px;padding:20px;margin:0 0 16px;}
.trb-card h3{margin:0 0 4px;font-size:19px;color:var(--color-deep-forest);line-height:1.3;}
.trb-card .trb-hint{margin:0 0 14px;font-size:14px;color:var(--color-ash);line-height:1.5;}
.trb-q{margin:0 0 18px;}
.trb-q:last-child{margin-bottom:0;}
.trb-q > label,.trb-label{display:block;font-weight:600;font-size:15px;margin:0 0 6px;
  color:var(--color-deep-forest);}
.trb-sub{font-size:13px;color:var(--color-ash);margin:-2px 0 8px;line-height:1.5;}

/* ---- inputs ---- */
.trb input[type=text],.trb input[type=tel],.trb input[type=email],.trb input[type=date],
.trb input[type=number],.trb select,.trb textarea{
  display:block;width:100%;min-width:0;padding:12px 14px;font:inherit;font-size:16px;
  border:2px solid var(--trb-border);border-radius:10px;background:#fff;color:var(--color-ink);}
.trb textarea{resize:vertical;}
.trb input:focus,.trb select:focus,.trb textarea:focus{outline:none;border-color:var(--color-task-green);
  box-shadow:0 0 0 3px rgba(123,177,53,.22);}
.trb-row{display:flex;flex-wrap:wrap;gap:12px;}
.trb-row > *{flex:1 1 180px;min-width:0;}
.trb-err{display:none;color:var(--trb-danger);font-size:13px;font-weight:600;margin:6px 0 0;}
.trb-err.show{display:block;}
.trb input.invalid,.trb select.invalid,.trb textarea.invalid{border-color:var(--trb-danger);}

/* ---- choice chips / cards ---- */
.trb-choices{display:flex;flex-wrap:wrap;gap:10px;}
.trb-choice{display:block;flex:1 1 150px;min-width:0;text-align:left;cursor:pointer;
  background:#fff;border:2px solid var(--trb-border);border-radius:12px;padding:13px 15px;font:inherit;
  font-size:15px;font-weight:600;color:var(--color-deep-forest);line-height:1.35;}
.trb-choice:hover{border-color:var(--color-sprout-lime);background:var(--color-meadow-light);}
.trb-choice[aria-pressed=true]{border-color:var(--color-task-green);background:var(--color-meadow-light);
  box-shadow:0 2px 0 var(--color-task-green-dark);}
.trb-choice .trb-choice-note{display:block;font-weight:400;font-size:13px;color:var(--color-ash);
  margin-top:3px;}
.trb-choice:focus-visible{outline:3px solid var(--color-brass);outline-offset:2px;}

/* ---- survey cards ---- */
.trb-survey{display:flex;flex-wrap:wrap;gap:14px;}
.trb-survey .trb-choice{flex:1 1 240px;padding:16px;}
.trb-badge{display:inline-block;background:var(--color-task-green);color:#fff;font-size:11px;
  font-weight:700;letter-spacing:.04em;text-transform:uppercase;border-radius:999px;
  padding:3px 10px;margin:0 0 8px;}

/* ---- inventory ---- */
.trb-search{position:relative;margin:0 0 14px;}
.trb-results{list-style:none;margin:10px 0 0;padding:0;max-height:300px;overflow-y:auto;
  border:2px solid var(--trb-border-soft);border-radius:12px;}
.trb-results:empty{display:none;}
.trb-results li{border-bottom:1px solid var(--trb-rule);}
.trb-results li:last-child{border-bottom:none;}
.trb-cat{border:2px solid var(--trb-border-soft);border-radius:12px;margin:0 0 10px;overflow:hidden;}
.trb-cat > button{display:flex;align-items:center;justify-content:space-between;gap:10px;
  width:100%;text-align:left;background:#fff;border:none;cursor:pointer;font:inherit;
  font-size:16px;font-weight:600;color:var(--color-deep-forest);padding:14px 16px;}
.trb-cat > button:hover{background:var(--color-meadow-light);}
.trb-cat > button .trb-count{font-size:13px;font-weight:500;color:var(--color-ash);}
.trb-cat-body{display:none;border-top:1px solid var(--trb-rule);}
.trb-cat.open .trb-cat-body{display:block;}
.trb-item{display:flex;align-items:center;gap:12px;padding:11px 16px;}
.trb-item + .trb-item{border-top:1px solid var(--trb-rule-faint);}
.trb-item-main{flex:1 1 auto;min-width:0;}
.trb-item-name{font-size:15px;font-weight:600;color:var(--color-deep-forest);line-height:1.3;}
.trb-item-meta{font-size:12.5px;color:var(--color-ash);margin-top:2px;line-height:1.4;}
.trb-item .trb-add{flex:0 0 auto;}
.trb-tag{display:inline-block;font-size:11px;font-weight:700;border-radius:999px;
  padding:2px 8px;margin-left:6px;vertical-align:1px;}
.trb-tag-spec{background:var(--trb-tag-bg);color:var(--trb-tag-ink);}

/* ---- selected lines ---- */
.trb-lines{list-style:none;margin:0;padding:0;}
.trb-line{border:2px solid var(--trb-border-soft);border-radius:12px;padding:12px 14px;margin:0 0 10px;
  background:#fff;}
.trb-line-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.trb-line-name{flex:1 1 140px;min-width:0;font-size:15px;font-weight:600;
  color:var(--color-deep-forest);line-height:1.3;}
.trb-qty{display:flex;align-items:center;gap:4px;flex:0 0 auto;}
.trb-qty button{width:36px;height:36px;border-radius:9px;border:2px solid var(--trb-border);background:#fff;
  font:inherit;font-size:19px;font-weight:700;line-height:1;cursor:pointer;color:var(--color-deep-forest);}
.trb-qty button:hover{border-color:var(--color-task-green);background:var(--color-meadow-light);}
.trb-qty input{width:52px;text-align:center;padding:7px 4px !important;font-size:15px !important;}
.trb-remove{flex:0 0 auto;background:none;border:none;cursor:pointer;font:inherit;font-size:13px;
  font-weight:600;color:var(--trb-danger);text-decoration:underline;padding:6px;}
.trb-line-meta{font-size:12.5px;color:var(--color-ash);margin:7px 0 0;line-height:1.5;}
.trb-disclose{background:none;border:none;padding:6px 0 0;cursor:pointer;font:inherit;font-size:13px;
  font-weight:600;color:var(--color-task-green-dark);text-decoration:underline;}
.trb-detail{display:none;margin:12px 0 0;padding:12px 0 0;border-top:1px dashed var(--trb-border);}
.trb-detail.open{display:block;}
.trb-detail .trb-row > *{flex:1 1 100px;}
.trb-check{display:flex;align-items:flex-start;gap:9px;font-size:14px;font-weight:500;
  color:var(--color-ink);line-height:1.45;cursor:pointer;margin:0 0 9px;}
.trb-check input{flex:0 0 auto;width:19px;height:19px;margin:1px 0 0;}
.trb-check:last-child{margin-bottom:0;}

/* ---- live totals ---- */
.trb-totals{background:var(--color-meadow-light);border:2px solid var(--color-sprout-lime);
  border-radius:12px;padding:14px 16px;margin:0 0 16px;font-size:14px;line-height:1.6;
  color:var(--color-deep-forest);}
.trb-totals strong{font-weight:700;}
.trb-totals .trb-totals-row{display:flex;flex-wrap:wrap;gap:4px 18px;}

/* ---- notices ---- */
.trb-note{border-radius:12px;padding:13px 16px;margin:0 0 14px;font-size:14px;line-height:1.6;}
.trb-note p{margin:0 0 8px;}
.trb-note p:last-child{margin-bottom:0;}
.trb-note-info{background:var(--trb-info-bg);border:2px solid var(--trb-info-border);color:var(--trb-info-ink);}
.trb-note-warn{background:var(--trb-warn-bg);border:2px solid var(--trb-warn-border);color:var(--trb-warn-ink);}
.trb-note-ok{background:var(--color-meadow-light);border:2px solid var(--color-sprout-lime);
  color:var(--color-deep-forest);}
.trb-note-bad{background:var(--trb-danger-bg);border:2px solid var(--trb-danger-border);color:var(--trb-danger-ink);}
.trb-note a{color:inherit;font-weight:700;}

/* ---- estimate ---- */
.trb-estimate{background:var(--color-deep-forest);color:#fff;border-radius:16px;padding:22px;
  margin:0 0 16px;}
.trb-estimate .trb-est-head{font-size:24px;font-weight:700;line-height:1.3;margin:0 0 8px;}
.trb-estimate .trb-est-detail{font-size:14.5px;line-height:1.6;margin:0;opacity:.92;}
.trb-estimate ul{margin:12px 0 0;padding:0 0 0 18px;font-size:14px;line-height:1.7;opacity:.92;}

/* ---- review summary ---- */
.trb-summary{list-style:none;margin:0;padding:0;}
.trb-summary > li{display:flex;flex-wrap:wrap;gap:4px 12px;padding:11px 0;
  border-bottom:1px solid var(--trb-rule);font-size:14.5px;line-height:1.55;}
.trb-summary > li:last-child{border-bottom:none;}
.trb-summary .trb-sk{flex:0 0 150px;font-weight:600;color:var(--color-ash);}
.trb-summary .trb-sv{flex:1 1 200px;min-width:0;color:var(--color-ink);}
.trb-summary .trb-edit{background:none;border:none;padding:0;cursor:pointer;font:inherit;
  font-size:13px;font-weight:600;color:var(--color-task-green-dark);text-decoration:underline;}

/* ---- photos ---- */
.trb-photo{display:block;border:2px dashed var(--trb-border);border-radius:12px;padding:16px;
  text-align:center;background:var(--trb-surface-faint);}
.trb-photo input[type=file]{display:block;width:100%;margin:0 auto;font-size:14px;}
.trb-thumbs{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0;}
.trb-thumbs img{width:72px;height:72px;object-fit:cover;border-radius:9px;border:2px solid var(--trb-border-soft);}

/* ---- nav ---- */
.trb-nav{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:18px 0 0;}
.trb-nav .trb-spacer{flex:1 1 auto;}
.trb-nav .btn{flex:0 0 auto;}
@media (max-width:480px){
  .trb-nav{flex-direction:column-reverse;align-items:stretch;}
  .trb-nav .btn{width:100%;text-align:center;}
  .trb-nav .trb-spacer{display:none;}
}
.trb-busy{font-size:14px;font-weight:600;color:var(--color-ash);}

/* ---- map ---- */
.trb-map{height:260px;border-radius:12px;overflow:hidden;margin:12px 0 0;background:var(--trb-rule);}
.trb-map-fallback{font-size:13.5px;color:var(--color-ash);margin:10px 0 0;line-height:1.5;}

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

/* Four-across variant of the page's existing .steps grid, used by the
   "how we quote" strip on the removals pages. */
.steps.steps-4{grid-template-columns:repeat(4,1fr);}
@media (max-width:900px){.steps.steps-4{grid-template-columns:repeat(2,1fr);}}
@media (max-width:560px){.steps.steps-4{grid-template-columns:1fr;}}

/* Plain-language panel that replaced the mileage rate table. */
.trb-flat-panel{background:rgba(255,255,255,0.08);border-radius:12px;padding:20px 22px;}
.trb-flat-panel h3{color:#fff;font-size:18px;margin:0 0 10px;line-height:1.3;}
.trb-flat-panel p{color:rgba(250,247,240,0.88);font-size:14.5px;line-height:1.65;margin:0 0 10px;}
.trb-flat-panel p:last-child{margin-bottom:0;}

/* Two-column "what's included" layout reused across the removals pages. */
.trb-cols{max-width:var(--max-width);margin:0 auto;display:grid;
  grid-template-columns:repeat(2,1fr);gap:24px;}
@media (max-width:760px){.trb-cols{grid-template-columns:1fr;}}
.trb-col{background:var(--color-paper);border:1px solid rgba(31,75,63,0.12);
  border-radius:var(--radius,16px);padding:24px;}
.trb-col h3{margin:0 0 12px;font-size:20px;color:var(--color-deep-forest);line-height:1.3;}
.trb-col p{font-size:15px;line-height:1.7;color:var(--color-graphite);margin:0 0 12px;}
.trb-col p:last-child{margin-bottom:0;}

/* Long call-to-action labels must wrap rather than push the page wider than
   the viewport on a 320px phone. The site's .btn sets white-space:nowrap. */
@media (max-width:420px){
  .cta-band .btn{white-space:normal;max-width:100%;}
}
