/* Customer-facing polish (Nov 2026). Loaded last; uses the brand tokens from brand.css. */

/* Footer: keep the phone link inside its sentence */
.footer-grid .short-notice-contact a, .short-notice-contact a { display: inline; margin: 0; font-size: inherit; }

/* Checkout progress */
.flow { margin: 6px 0 22px; }
.flow-steps { display: flex; gap: 0; margin: 0 0 8px; padding: 0; list-style: none; max-width: 640px; counter-reset: none; }
.flow-steps li { flex: 1; position: relative; display: flex; align-items: center; gap: 10px; padding-right: 14px; font-weight: 650; font-size: .9rem; color: var(--muted); }
.flow-steps li + li::before { content: ""; position: absolute; left: -14px; right: calc(100% + 0px); top: 50%; }
.flow-steps li span { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #c9d1e0; background: #fff; color: var(--muted); font-size: .85rem; font-weight: 750; }
.flow-steps li::after { content: ""; flex: 1; height: 2px; background: #dfe4ee; min-width: 12px; }
.flow-steps li:last-child::after { display: none; }
.flow-steps li.done { color: var(--ink); }
.flow-steps li.done span { background: #16734a; border-color: #16734a; color: #fff; font-size: 0; }
.flow-steps li.done span::before { content: "✓"; font-size: .9rem; }
.flow-steps li.done::after { background: #16734a; }
.flow-steps li.now { color: var(--navy); }
.flow-steps li.now span { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 4px #204ce526; }
.flow-caption { margin: 0; font-size: .85rem; color: var(--muted); }
@media (max-width: 560px) { .flow-steps li { font-size: .78rem; gap: 6px; padding-right: 8px; } .flow-steps li::after { min-width: 6px; } .flow-steps li span { width: 26px; height: 26px; } }

/* Checkout form */
.lead-copy { max-width: 68ch; font-size: 1rem; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.checkout-summary { position: sticky; top: 20px; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 8px; background: #fff; padding: 20px; box-shadow: var(--shadow); }
.checkout-summary h2, .rental-page .checkout-summary h2 { font-size: 1.15rem; margin: 0 0 14px; }
.summary-line { padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-line strong { display: block; color: var(--ink); }
.summary-line span { font-size: .85rem; color: var(--muted); }
.rental-page .summary-totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 14px 0 0; font-size: .9rem; }
.rental-page .summary-totals dt { color: var(--muted); }
.rental-page .summary-totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 16px; padding-top: 12px; border-top: 2px solid var(--line); font-weight: 700; color: var(--navy); }
.summary-total strong { font-size: 1.4rem; }
.summary-note { font-size: .85rem; color: var(--muted); }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } .checkout-summary { position: static; order: -1; } }

.customer-details { max-width: 680px; }
.form-section { margin: 0 0 26px; padding: 0 0 22px; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; }
.rental-page .form-section h2 { font-size: 1.1rem; margin: 0 0 14px; text-transform: none; letter-spacing: 0; color: var(--navy); }
.section-help { font-size: .9rem; margin: -4px 0 14px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field-short { max-width: 220px; }
@media (max-width: 560px) { .field-pair { grid-template-columns: 1fr; } .field-short { max-width: none; } }
.customer-details .form-field { margin: 0 0 16px; }
.customer-details .label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.customer-details .form-field label { display: block; margin: 0 0 6px; font-weight: 650; font-size: .95rem; color: var(--ink); }
.customer-details .optional { font-size: .8rem; color: var(--muted); font-weight: 500; }
.rental-page .customer-details input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .rental-page .customer-details textarea, .rental-page .customer-details select { max-width: none; min-height: 48px; border: 1.5px solid #b8c2d6; border-radius: 6px; font-size: 1rem; }
.rental-page .customer-details textarea { min-height: 84px; }
.rental-page .customer-details input:focus, .rental-page .customer-details textarea:focus { border-color: var(--blue); outline: 3px solid #204ce533; outline-offset: 0; }
.customer-details input[readonly] { background: #f3f5fa !important; }
.customer-details .has-error input, .customer-details .has-error textarea { border-color: #b3261e !important; background: #fff8f7 !important; }
.customer-details small { margin-top: 6px; font-size: .82rem; }
.check-field { display: flex; align-items: flex-start; gap: 12px; margin: 4px 0 16px; }
.rental-page .check-field input[type=checkbox] { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.rental-page .check-field label { margin: 0; font-weight: 600; cursor: pointer; }
.check-field .errorlist { margin: 4px 0 0; padding: 0; list-style: none; }
.customer-details .errorlist { list-style: none; padding: 0; margin: 6px 0 0; font-weight: 600; font-size: .85rem; color: #b3261e; }
.error-summary strong { display: block; margin-bottom: 4px; }
.error-summary .errorlist { padding: 0; list-style: none; margin: 0; font-size: .9rem; }
.privacy-details { margin: 0 0 14px; border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; }
.privacy-details summary { cursor: pointer; font-weight: 650; }
.privacy-details .policy-text { max-height: 320px; overflow: auto; margin-top: 10px; font-size: .9rem; }
.radio-choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; margin: 0 0 8px; cursor: pointer; }
.radio-choice input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 8px; }
.action-note { font-size: .85rem; color: var(--muted); }
.button.button-big { padding: 16px 28px; font-size: 1rem; }
.rental-page .button.button-quiet, .button.button-quiet { background: #fff; color: var(--blue); border: 1.5px solid #b9c6ea; }
.button.button-quiet:hover { background: #eef2fc; }
.narrow-form { max-width: 560px; }
.narrow-form .customer-details { margin-top: 18px; }

/* Signature: a visible box to draw in */
.signature-area { position: relative; }
.rental-page .signature-area canvas, .signing-desk #signature-pad { display: block; width: 100%; max-width: 800px; aspect-ratio: 10 / 3; height: auto;
  border: 2px dashed #7f93bf !important; border-radius: 8px; background: #fbfcff; cursor: crosshair; touch-action: none; }
.sign-here { position: absolute; top: 10px; left: 14px; font: 600 .8rem/1 system-ui, sans-serif; color: #7f93bf; pointer-events: none; letter-spacing: .02em; }

/* Customer rental page */
.short-ref { font-size: 1.15rem; letter-spacing: .04em; }
.full-ref { font-size: .75rem; color: var(--muted); overflow-wrap: anywhere; }

/* Policies */
.policies-page { max-width: 820px; }
.policy-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.policy-jump a { display: inline-block; padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none !important; font-weight: 600; font-size: .9rem; }
.policy-jump a:hover { border-color: var(--blue); color: var(--blue); }
.policy-card { border: 1px solid var(--line); border-radius: 8px; padding: 22px 24px; margin: 0 0 18px; background: #fff; }
.rental-page .policy-card h2 { margin-top: 0; font-size: 1.3rem; }
.plain-list { padding-left: 20px; }
.plain-list li { margin-bottom: 6px; color: var(--ink); }
.policy-text h3 { font-size: 1.05rem; margin: 22px 0 8px; letter-spacing: 0; text-transform: none; color: var(--navy); }
.policy-text h3:first-child { margin-top: 0; }
.policy-text p, .policy-text li { font-size: .95rem; line-height: 1.65; overflow-wrap: anywhere; }
.contact-lines a { margin-right: 14px; }

/* Equipment detail: on phones show price and the booking button right after the photo */
.detail-layout { grid-template-areas: "media panel" "about panel"; }
.detail-layout > .detail-media { grid-area: media; }
.detail-layout > .booking-panel { grid-area: panel; align-self: start; position: sticky; top: 20px; }
.detail-layout > .detail-about { grid-area: about; margin-top: 0; }
@media (max-width: 900px) { .detail-layout { grid-template-areas: "media" "panel" "about"; } .detail-layout > .booking-panel { position: static; } }

/* Equipment cards: tall manufacturer photos sit on white, not pale bars */
.card-image:has(> .model-photo), .detail-image:has(> .model-photo) { background: #fff; }
.card-image > .model-photo { padding: 8px; }
.rental-page ul.policy-jump { padding-left: 0; }
.rental-page ul.plain-list { padding-left: 20px; }
