/* /dumpster-rental/calculator. Page-specific layout only: tables, FAQ and the booking block reuse
   city-service.css, construction-dumpster-rental.css and their component sheets.
   Phone rules (owner, 11 Nov 2026): first field in the first screen, 48 px fields, 16 px text, one column,
   sticky result bar. */
.calc-hero-section { padding: 36px 0 48px; background: #f7f7f7; }
.calc-hero-section .main-container { text-align: left; }
.calc-title { margin: 0 0 8px; }
.calc-lede { margin: 0 0 20px; max-width: 860px; }

.calc-box {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.calc-form, .calc-result {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 20px;
    min-width: 0;
}
.calc-result { border-left: 4px solid var(--primary-green, #00B96B); position: sticky; top: 110px; }

/* Job types: chip row, scrolls sideways on a phone, never wraps into a cut-off tab bar */
.calc-jobs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.calc-chip, .calc-seg-btn {
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid #cfcfcf;
    border-radius: 24px;
    background: #fff;
    font: inherit;
    font-size: 16px;
    line-height: 1.2;
    color: #222;
    cursor: pointer;
}
.calc-chip[aria-checked="true"], .calc-seg-btn[aria-checked="true"] {
    background: #0b6b45; /* white on #0b6b45 = 6.5:1 (QA F5, 12 Nov 2026: brand green with white text was under 4.5:1) */
    border-color: #0b6b45;
    color: #fff;
    font-weight: 600;
}
.calc-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-seg-btn { border-radius: 10px; flex: 1 1 auto; }

.calc-fields { display: grid; gap: 14px; margin-bottom: 16px; }
.calc-mode { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.calc-mode[hidden] { display: none; }
.calc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.calc-label { font-size: 16px; font-weight: 600; color: #222; }
.calc-inwrap { position: relative; display: block; }
.calc-input {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #bdbdbd;
    border-radius: 10px;
    font: inherit;
    font-size: 16px;
    background: #fff;
    box-sizing: border-box;
}
.calc-inwrap .calc-input { padding-right: 70px; }
.calc-unit-tag { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #666; font-size: 15px; pointer-events: none; }
.calc-input[aria-invalid="true"] { border-color: #b42318; }
.calc-err { color: #b42318; font-size: 15px; min-height: 0; }
.calc-err:empty { display: none; }
.calc-check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; min-height: 48px; padding-top: 6px; }
.calc-check input { width: 22px; height: 22px; margin-top: 1px; flex: 0 0 auto; }
.calc-place { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; }

/* Result card */
.calc-rec { font-size: 22px; font-weight: 700; margin: 0 0 10px; color: #111; }
.calc-lines { margin: 0 0 12px; }
.calc-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 16px; }
.calc-line dt { color: #444; }
.calc-line dd { margin: 0; text-align: right; font-weight: 600; }
.calc-total dt, .calc-total dd { font-size: 18px; font-weight: 700; color: #111; }
.calc-sub { display: block; font-weight: 400; color: #555; font-size: 14px; }
.calc-vw, .calc-heavy, .calc-note-line { margin: 0 0 8px; }
.calc-heavy { background: #fff7e6; border-radius: 8px; padding: 8px 10px; }
.calc-book { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 8px; }
.calc-book a { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.calc-error { color: #b42318; }

.calc-compare { margin-top: 24px; }
.calc-compare h2 { margin: 0 0 10px; }
.calc-table td, .calc-table th { text-align: left; }
.calc-tag { display: inline-block; font-size: 12px; font-weight: 600; background: #dff3e8; color: #0a7a4b; border-radius: 10px; padding: 2px 8px; white-space: nowrap; }
.calc-how { margin-top: 16px; background: #fff; border: 1px solid #e6e6e6; border-radius: 12px; padding: 14px 18px; }
.calc-how summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.calc-how-steps { margin: 10px 0 0; padding-left: 20px; }
.calc-how-steps li { margin-bottom: 6px; }

/* Sticky bar: phones only, once there is a result */
.calc-sticky { display: none; }

/* Page copy sections */
.calc-steps { max-width: 860px; margin: 12px auto 20px; padding-left: 22px; text-align: left; }
.calc-steps li { margin-bottom: 10px; }
.calc-how-section .body-2,
.calc-sizes-section .body-2 { max-width: 860px; margin-left: auto; margin-right: auto; text-align: left; }
.calc-roof-section .cdr-lede,
.calc-inert-section .cdr-lede,
.calc-weights-section .cdr-lede,
.calc-sizes-section .cdr-lede { text-align: left; margin-left: auto; margin-right: auto; }
.calc-h3 { max-width: 860px; margin: 28px auto 8px; text-align: left; }
.calc-how-section a, .calc-roof-section a, .calc-inert-section a, .calc-sizes-section p a {
    color: var(--primary-green, #00B96B);
    font-weight: 600;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .calc-box { grid-template-columns: 1fr; }
    .calc-result { position: static; }
}
@media (max-width: 767px) {
    .calc-hero-section { padding: 12px 0 32px; }
    .calc-title { font-size: 30px; line-height: 1.15; }
    .calc-lede { font-size: 16px; margin-bottom: 14px; }
    .calc-form, .calc-result { padding: 14px; }
    .calc-place { grid-template-columns: 1fr; }
    .calc-book a { width: 100%; box-sizing: border-box; }
    .calc-sticky:not([hidden]) {
        display: flex;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 900;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
        background: #fff;
        box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
    }
    .calc-sticky-text { font-weight: 600; font-size: 16px; min-width: 0; }
    .calc-sticky-book { min-height: 48px; display: inline-flex; align-items: center; flex: 0 0 auto; }
    body.calc-page { padding-bottom: 76px; }
}
@media (max-width: 767px) {
    /* room for the sticky bar at the end of the page */
    .ready-to-book-section { padding-bottom: 110px; }
}

/* Mixed heavy load (owner, 12 Nov 2026): multi-select materials, one block per material */
.calc-multi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.calc-seg-btn[aria-pressed="true"] {
    background: #0b6b45;
    border-color: #0b6b45;
    color: #fff;
    font-weight: 600;
}
.calc-mblocks { display: grid; gap: 14px; }
.calc-mblock { border: 1px solid #ececec; border-radius: 10px; padding: 12px 14px 14px; display: grid; gap: 12px; min-width: 0; }
.calc-mblock-title { font-size: 18px; font-weight: 700; line-height: 1.3; color: #222; margin: 0; }
.calc-mixed-tag { display: inline-block; margin: 0 0 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #8a5a00; background: #fff4dc; border-radius: 10px; padding: 3px 10px; }

/* All numeric fields look the same: no browser spinner arrows (the number pad still opens on phones) */
.calc-input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.calc-input[type="number"]::-webkit-outer-spin-button,
.calc-input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

@media (max-width: 767px) {
    .calc-multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .calc-mblock .calc-mode { grid-template-columns: 1fr; }
}

/* Job type cards (owner 12 Nov): a question, two labelled groups (inert vs general debris),
   equal cards with an icon and a hint, a check on the selected card, a one-line note. */
.calc-jobs { display: block; margin-bottom: 18px; }
.calc-jobs-q { margin: 0 0 2px; font-size: 18px; font-weight: 600; color: #222; }
.calc-jobs-help { margin: 0 0 10px; font-size: 15px; color: #555; }
.calc-jobs-group { margin: 14px 0 8px; font-size: 14px; font-weight: 600; color: #555; }
.calc-jobs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.calc-chip.calc-job {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 64px;
    padding: 10px 34px 10px 12px;
    border-radius: 10px;
    text-align: left;
    font-weight: 400;
}
.calc-job-wide { grid-column: 1 / -1; }
.calc-job-ico { flex: 0 0 24px; color: #666; margin-top: 1px; }
.calc-job-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.calc-job-title { font-size: 16px; font-weight: 600; color: #222; }
.calc-job-hint { font-size: 14px; color: #666; line-height: 1.3; }
.calc-chip.calc-job:hover { border-color: #999; }
.calc-chip.calc-job[aria-checked="true"] {
    background: #eaf8f1;
    border: 2px solid var(--primary-green, #00B96B);
    padding: 9px 33px 9px 11px;
    color: #0b6b45;
    font-weight: 400;
}
.calc-chip.calc-job[aria-checked="true"] .calc-job-ico,
.calc-chip.calc-job[aria-checked="true"] .calc-job-title { color: #0b6b45; }
.calc-chip.calc-job[aria-checked="true"]::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-green, #00B96B) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.calc-chip.calc-job:focus-visible { outline: 3px solid #0b6b45; outline-offset: 2px; }
.calc-job-note { margin: 12px 0 0; padding: 8px 12px; border-radius: 8px; background: #eaf8f1; color: #0b6b45; font-size: 15px; }
/* Small cards: icon on top so the title gets the full card width */
.calc-chip.calc-job:not(.calc-job-wide) { flex-direction: column; gap: 6px; padding: 10px 12px; }
.calc-chip.calc-job[aria-checked="true"]:not(.calc-job-wide) { padding: 9px 11px; }
@media (max-width: 767px) {
    .calc-jobs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .calc-job-hint { font-size: 13px; }
}

/* Compare sizes (owner 12 Nov): compact table on desktop, one short row per size on a phone, never scrolls sideways */
.calc-cmp { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid #e6e6e6; border-radius: 12px; overflow: hidden; font-size: 16px; }
.calc-cmp th, .calc-cmp td { padding: 10px 14px; text-align: left; vertical-align: top; border-top: 1px solid #eee; }
.calc-cmp thead th { border-top: 0; font-size: 14px; font-weight: 600; color: #555; background: #fafafa; }
.calc-cmp-size { font-weight: 400; }
.calc-cmp-name { display: block; font-weight: 600; color: #222; }
.calc-cmp-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.calc-cmp-sub { display: block; font-size: 13px; color: #666; }
.calc-cmp-total { font-weight: 600; }
.calc-cmp .calc-row-rec > * { background: #eefaf3; }
.calc-cmp .calc-row-rec > .calc-cmp-size { box-shadow: inset 4px 0 0 var(--primary-green, #00B96B); }
@media (max-width: 600px) {
    .calc-cmp, .calc-cmp tbody, .calc-cmp tr, .calc-cmp th, .calc-cmp td { display: block; }
    .calc-cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .calc-cmp tbody tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 8px; padding: 10px 12px; border-top: 1px solid #eee; }
    .calc-cmp tbody tr:first-child { border-top: 0; }
    .calc-cmp-2 tbody tr { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; }
    .calc-cmp th, .calc-cmp td { padding: 0; border: 0; background: none; }
    .calc-cmp .calc-row-rec { background: #eefaf3; box-shadow: inset 4px 0 0 var(--primary-green, #00B96B); }
    .calc-cmp .calc-row-rec > * { background: none; }
    .calc-cmp .calc-row-rec > .calc-cmp-size { box-shadow: none; }
    .calc-cmp-size { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
    .calc-cmp-size .calc-cmp-name { display: inline; }
    .calc-cmp-size .calc-cmp-tags { margin-top: 0; }
    .calc-cmp td { font-size: 15px; }
    .calc-cmp td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: #666; }
}
