/* ===================================================================
   #3 Moving Weight & Trailer Size — page-specific styles.
   Inherits tokens + nav/footer/buttons/modal from site-wide /styles.css.
   Layout: checklist (left) + sticky rail with totals → results → CTA.
   =================================================================== */

/* header strip */
.calc-head { background: var(--nt-green); border-bottom: none; }
.calc-head__inner { max-width: var(--maxw); margin: 0 auto; padding: 2rem 1.25rem 2.2rem; }
.crumbs { font-size: .82rem; color: rgba(255,255,255,.85); margin-bottom: .6rem; }
.crumbs a { color: #fff; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.calc-head__title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; color: #fff; }
.calc-head__sub { margin: .5rem 0 0; color: rgba(255,255,255,.92); max-width: 640px; font-size: 1.02rem; }

/* layout */
.calc { max-width: var(--maxw); margin: 0 auto; padding: 2.5rem 1.25rem 3.5rem; }
.calc__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.5rem; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }

/* checklist */
.checklist { padding: 1.25rem 1.5rem; }
.group { border: none; margin: 0 0 1.25rem; padding: 0; }
.group:last-child { margin-bottom: 0; }
.group__title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--nt-green); padding: 0 0 .5rem; margin-bottom: .3rem; border-bottom: 1px solid var(--line); width: 100%; }
.item { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: none; }
.item__check { display: flex; align-items: center; gap: .6rem; font-size: .92rem; cursor: pointer; flex: 1; }
.item__check input { width: 18px; height: 18px; accent-color: var(--nt-green); cursor: pointer; flex: none; }
.item__name { font-size: .92rem; flex: 1; }
.item__note { color: var(--nt-green); cursor: help; font-size: .8rem; }
.item__qty { width: 76px; text-align: center; font-family: var(--font); font-size: .95rem; border: 1px solid var(--line); border-radius: 8px; padding: .45rem .4rem; }
.item__variant { font-family: var(--font); font-size: .88rem; border: 1px solid var(--line); border-radius: 8px; padding: .4rem 1.6rem .4rem .6rem; background: #fff; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235A625A' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .55rem center; }
.item__qty:focus, .item__variant:focus { outline: none; border-color: var(--nt-green); box-shadow: 0 0 0 3px rgba(45,140,60,.15); }

/* right rail */
.rail { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 1.25rem; }

/* totals card */
.totals { background: var(--nt-green); background: linear-gradient(135deg, var(--nt-green-dark), var(--nt-green)); color: #fff; border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.totals__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .35rem 0; }
.totals__row span { opacity: .9; font-size: .9rem; }
.totals__row strong { font-weight: 700; }
.totals__row--hero strong { font-size: 1.5rem; letter-spacing: -0.02em; }
.totals__row--sub { padding-top: .1rem; }
.totals__row--sub span:first-child { font-size: .82rem; }
.totals__row--sub .muted { color: #fff; opacity: .85; font-size: .82rem; }
.totals .warn { margin-top: .6rem; color: #fff; background: rgba(0,0,0,.22); border: none; }

/* warn (shared) */
.warn { font-size: .82rem; border-radius: var(--radius-sm); padding: .55rem .75rem; }

/* results */
.results__empty { text-align: center; color: var(--ink-soft); padding: 1rem .5rem 1.5rem; }
.results__empty-icon { font-size: 2rem; margin-bottom: .5rem; }
.results__eyebrow { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-bottom: .6rem; }
.rec { background: var(--bg-muted); border-radius: var(--radius-sm); padding: 1rem; text-align: center; }
.rec__trailer { font-weight: 800; font-size: 1.3rem; color: var(--nt-green); }
.rec__why { font-size: .84rem; color: var(--ink-soft); margin-top: .4rem; line-height: 1.4; }

/* fill meter */
.fill { margin: 1rem 0 .25rem; }
.fill__bar { height: 8px; background: var(--bg-muted); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.fill__bar span { display: block; height: 100%; background: var(--nt-green); border-radius: 999px; transition: width .25s ease; }
.fill__label { font-size: .78rem; color: var(--ink-soft); margin-top: .4rem; text-align: center; }

/* tips */
.tips { background: #F0F7F1; border: 1px solid #CDE6D2; border-radius: var(--radius-sm); padding: 1rem 1.1rem; margin-top: 1.25rem; }
.tips__title { font-weight: 700; font-size: .92rem; margin-bottom: .5rem; color: var(--nt-green-dark); }
.tips__list { list-style: none; margin: 0; padding: 0; }
.tips__list li { position: relative; padding: .3rem 0 .3rem 1.6rem; font-size: .84rem; line-height: 1.4; }
.tips__list li::before { content: "✓"; position: absolute; left: 0; top: .3rem; color: var(--nt-green); font-weight: 800; }

/* CTA */
.rent { margin-top: 1.25rem; text-align: center; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.rent__copy { font-size: .84rem; color: var(--ink-soft); margin: .7rem 0 0; }
.rent__loc { display: block; margin-top: .5rem; font-size: .85rem; }
.muted { color: var(--ink-soft); }

/* modal manual entry */
.modal__manual { display: flex; gap: .5rem; }
.modal__manual input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: .6rem .8rem; font-family: var(--font); font-size: .95rem; }

/* responsive */
@media (max-width: 860px) {
  .calc__grid { grid-template-columns: 1fr; }
  .rail { position: static; }
  /* sticky running-total on mobile so it stays visible while checking items */
  .totals { position: sticky; top: 66px; z-index: 20; box-shadow: 0 4px 12px rgba(16,24,16,.12); }
}
