/* Layout and accessible state styling exclusively for the towing calculator. */
.towing-tool-page { background: #f6fafb; }
.towing-tool-content { padding: 54px 28px 76px; }
.towing-tool-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); gap: 30px; align-items: start; }
.towing-tool-steps { display: grid; gap: 22px; }
.towing-tool-panel, .towing-tool-summary { border: 1px solid rgba(0, 83, 104, .13); border-radius: 26px; background: #fff; box-shadow: 0 14px 35px rgba(19, 52, 59, .07); }
.towing-tool-panel { padding: 30px; }
.towing-tool-panel__heading { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 25px; }
.towing-tool-panel__heading > span { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #007ab3; color: #fff; font-weight: 900; }
.towing-tool-panel h2, .towing-tool-summary h2 { margin: 0; font-size: clamp(24px, 2.5vw, 31px); letter-spacing: -.04em; }
.towing-tool-panel__heading p { margin-top: 5px; color: #607179; }
.towing-tool-privacy { display: flex; gap: 8px; align-items: flex-start; margin: -6px 0 20px; color: #48646c; font-size: 14px; line-height: 1.5; }
.towing-tool-privacy .material-symbols-outlined { color: #007ab3; font-size: 20px; }
.towing-tool-tabs { display: flex; gap: 6px; padding: 5px; width: fit-content; margin: 0 0 22px; border-radius: 12px; background: #edf4f5; }
.towing-tool-tabs button { border: 0; border-radius: 8px; padding: 9px 14px; background: transparent; color: #476068; font: inherit; font-weight: 800; cursor: pointer; }
.towing-tool-panel .btn { cursor: pointer; }
.towing-tool-tabs button.is-active { background: #fff; color: #123c35; box-shadow: 0 2px 7px rgba(10,50,55,.12); }
.towing-tool-panel label { display: block; margin: 0 0 7px; color: #183f38; font-size: 14px; font-weight: 800; }
.towing-tool-panel input, .towing-tool-panel select { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #b9cbd0; border-radius: 11px; background: #fff; color: #1b2f33; font: inherit; }
.towing-tool-panel input:focus, .towing-tool-panel select:focus, .towing-tool-tabs button:focus-visible, .towing-tool-result:focus-visible { outline: 3px solid rgba(0,159,227,.35); outline-offset: 2px; }
.towing-tool-inline-input { display: flex; gap: 10px; }
.towing-tool-inline-input input { flex: 1; text-transform: uppercase; }
.towing-tool-inline-input .btn { flex: 0 0 auto; }
.towing-tool-fields { display: grid; gap: 18px; }
.towing-tool-fields--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.towing-tool-fields--three { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 130px; align-items: end; margin-bottom: 18px; }
.towing-tool-message { min-height: 1.4em; margin: 13px 0 0; color: #276373; font-weight: 700; }
.towing-tool-message--error { color: #b42318; }
.towing-tool-vehicle, .towing-tool-caravan-data { display: grid; gap: 4px; margin-top: 18px; padding: 15px 17px; border-left: 4px solid #007ab3; border-radius: 0 12px 12px 0; background: #edf7fa; color: #1e4d59; }
.towing-tool-results { display: grid; gap: 8px; margin-top: 18px; }
.towing-tool-vehicle[hidden], .towing-tool-results[hidden], .towing-tool-caravan-data[hidden], .towing-tool-summary__details[hidden] { display: none !important; }
.towing-tool-results p { margin: 0 0 3px; color: #365057; font-weight: 800; }
.towing-tool-result { display: block; width: 100%; padding: 13px 15px; border: 1px solid #c7dade; border-radius: 12px; background: #fff; color: #183f38; text-align: left; font: inherit; cursor: pointer; }
.towing-tool-result:hover { border-color: #007ab3; background: #f1fbfd; }
/* The shared header remains fixed and shrinks to roughly 90px while scrolling. */
.towing-tool-summary { position: sticky; top: 116px; padding: 30px; background: linear-gradient(165deg, #153e35, #1b5c66); color: #fff; }
.towing-tool-summary .eyebrow { background: rgba(255,255,255,.13); color: #fff; }
.towing-tool-summary h2 { margin: 15px 0 10px; color: #fff; }
.towing-tool-summary > p { color: rgba(255,255,255,.82); line-height: 1.55; }
.towing-tool-summary__details { display: grid; gap: 10px; margin-top: 24px; }
.towing-tool-fact { display: grid; gap: 4px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.19); }
.towing-tool-fact span { color: rgba(255,255,255,.72); font-size: 13px; font-weight: 700; }
.towing-tool-fact strong { color: #fff; font-size: 16px; }
.towing-tool-fact--success strong { color: #bff4c6; }
.towing-tool-fact--warning strong { color: #ffd88d; }
.towing-tool-fact--danger strong { color: #ffb8a9; }
.towing-tool-disclaimer { margin-top: 22px; font-size: 12px; }
.towing-tool-summary .tool-text-link { margin-top: 10px; color: #fff; }

@media (max-width: 900px) {
    /* These match the mobile horizontal gutter of the homepage hero and nav. */
    .towing-tool-content { padding: 38px 20px 56px; }
    .towing-tool-layout { gap: 20px; }
    .towing-tool-steps { gap: 18px; }
    .towing-tool-layout, .towing-tool-hero__grid { grid-template-columns: 1fr; }
    .towing-tool-summary { position: static; }
}

@media (max-width: 620px) {
    .towing-tool-panel, .towing-tool-summary { padding: 22px; border-radius: 20px; }
    .towing-tool-inline-input, .towing-tool-fields--two, .towing-tool-fields--three { grid-template-columns: 1fr; display: grid; }
    .towing-tool-inline-input .btn { width: 100%; }
}
