/* Cleaning job profitability estimator. Shared by the homepage section and any dedicated page. */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.est { background: var(--navy); color: #e6e9f0; position: relative; overflow: hidden; }
.est::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(180deg, transparent 0 39px, rgba(255, 255, 255, .04) 39px 40px); pointer-events: none; }
.est > .wrap { position: relative; }
.est .section-head h2 { color: var(--white); }
.est .section-head .lead { color: #d3d9e4; }
.est .label { color: var(--terra-light); }
.est .label::after { background: var(--terra-light); }
.est :focus-visible { outline-color: var(--terra-light); }
.est-card :focus-visible, .est-results :focus-visible { outline-color: var(--terra); }

.est-grid { display: grid; grid-template-columns: minmax(0, 13fr) minmax(0, 11fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
.est-card { background: var(--paper); color: var(--ink); border-radius: 16px; border-top: 4px solid var(--terra); padding: clamp(20px, 3vw, 32px); }
.est-results { background: var(--white); color: var(--ink); border-radius: 16px; border-top: 4px solid var(--terra); padding: clamp(18px, 2.6vw, 28px); position: sticky; top: 92px; }
.est-results-title { font-size: 1.25rem; margin: 0 0 14px; }
@media (max-width: 980px) { .est-grid { grid-template-columns: minmax(0, 1fr); } .est-results { position: static; } }

/* toolbar */
.est-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin: 0 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.est-status { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; color: var(--navy); }
.est-status::before { content: "Your numbers"; display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--paper-2); color: var(--navy); font-size: .8rem; font-weight: 800; letter-spacing: .01em; }
.est-status.is-example::before { content: "Example"; background: var(--terra-btn); color: var(--white); }
.est-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.est-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 14px; border-radius: 10px; border: 1.5px solid var(--navy); background: transparent; color: var(--navy); font: 700 .95rem/1.2 var(--font); cursor: pointer; }
.est-btn:hover { background: var(--navy); color: var(--white); }

/* fields */
.est fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.est legend { width: 100%; padding: 0 0 8px; margin: 0 0 16px; border-bottom: 2px solid var(--navy); color: var(--navy); font-weight: 800; font-size: 1.08rem; letter-spacing: -.01em; }
.est-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.est-field.wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .est-fields { grid-template-columns: minmax(0, 1fr); } }
.est-field label { display: block; margin: 0 0 6px; font-weight: 700; font-size: .98rem; line-height: 1.3; color: var(--ink); }
.est-field .opt { font-weight: 500; color: var(--muted); }
.est-input { position: relative; }
.est-input input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--field-line); border-radius: 10px; background: var(--white); color: var(--ink); font: 600 1.05rem/1.2 var(--font); font-variant-numeric: tabular-nums lining-nums; }
.est-input.pre input { padding-left: 28px; }
.est-input.suf input { padding-right: 36px; }
.est-input .adorn { position: absolute; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; pointer-events: none; }
.est-input.pre .adorn { left: 12px; }
.est-input.suf .adorn { right: 13px; }
.est-input input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(192, 96, 61, .4); }
.est-input input[aria-invalid="true"] { border-color: var(--loss); background: #fdf4f2; }
.est-input input:disabled { background: var(--paper-2); color: var(--muted); }
.est-help { display: block; margin-top: 6px; font-size: .88rem; line-height: 1.45; color: var(--muted); }
.est-err { display: block; margin-top: 5px; font-size: .9rem; font-weight: 700; color: var(--loss); }
.est-err:empty { display: none; }
.est-note { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; background: var(--wash); font-size: .95rem; line-height: 1.5; }
.est-note svg { width: 22px; height: 22px; color: var(--terra-text); margin-top: 1px; }
.est-note p { margin: 0; }

/* labor cost mode */
.est-mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.est-mode legend { border: 0; font-size: .98rem; font-weight: 700; color: var(--ink); padding: 0; margin: 0 0 8px; }
.est-choice { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; line-height: 1.35; }
.est-choice input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy); }
.est-choice strong { display: block; font-size: .97rem; color: var(--navy); }
.est-choice span span { display: block; font-size: .86rem; color: var(--muted); margin-top: 2px; }
.est-choice:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.est-choice:has(input:disabled) { cursor: not-allowed; opacity: .6; }
@media (max-width: 560px) { .est-mode { grid-template-columns: minmax(0, 1fr); } }
.est-jump { display: none; margin-top: 4px; }
@media (max-width: 980px) { .est-jump { display: inline-flex; } }
.est-privacy { margin: 0; font-size: .88rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.est-privacy svg { width: 18px; height: 18px; flex: none; color: var(--navy); margin-top: 2px; }

/* results */
.est-empty { padding: 22px; border: 1.5px dashed var(--field-line); border-radius: 12px; background: var(--paper); }
.est-empty p { margin: 0; color: var(--muted); }
.est-empty .est-empty-h { font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.est-head { padding: 18px 20px 20px; border-radius: 12px; background: var(--navy); color: #e6e9f0; }
.est-head p { margin: 0; }
.est-head-label { font-weight: 700; font-size: .95rem; color: var(--terra-light); }
.est-head-value { font-size: clamp(2.2rem, 5vw, 3.1rem); line-height: 1.05; font-weight: 800; color: var(--white); letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; margin: 6px 0 8px !important; overflow-wrap: anywhere; }
.est-head-verdict { font-weight: 600; color: var(--white); }
.est-head-note { margin-top: 10px !important; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .88rem; color: #d3d9e4; }
.est-head.is-loss { background: var(--loss); }
.est-head.is-loss .est-head-label { color: #fde3dc; }
.est-head.is-loss .est-head-note { color: #fde3dc; }
.est-warn { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #fdf4f2; border-left: 4px solid var(--loss); color: var(--ink); font-size: .92rem; font-weight: 600; }
.est-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 18px 0 0; border-top: 2px solid var(--navy); }
.est-figs > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.est-figs > div:nth-child(odd) { padding-right: 14px; }
.est-figs > div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line-soft); }
.est-figs dt { font-size: .85rem; font-weight: 600; color: var(--muted); line-height: 1.3; }
.est-figs dd { margin: 4px 0 0; font-weight: 800; font-size: 1.15rem; color: var(--navy); font-variant-numeric: tabular-nums lining-nums; overflow-wrap: anywhere; }
.est-figs .neg dd { color: var(--loss); }
.est-figs .na dd { font-weight: 600; font-size: .95rem; color: var(--muted); }
.est-table-wrap { margin-top: 22px; overflow-x: auto; }
.est-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.est-table caption { text-align: left; font-weight: 800; color: var(--navy); font-size: 1.02rem; padding: 0 0 8px; }
.est-table thead th { text-align: right; font-size: .8rem; font-weight: 700; color: var(--muted); padding: 6px 0 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.est-table thead th:first-child { text-align: left; padding-left: 0; }
.est-table tbody th { text-align: left; font-weight: 600; color: var(--ink); padding: 10px 0; border-bottom: 1px solid var(--line-soft); line-height: 1.3; }
.est-table tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.est-table td { text-align: right; padding: 10px 0 10px 10px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; vertical-align: top; }
.est-table tr.subtotal th, .est-table tr.subtotal td { font-weight: 700; color: var(--navy); border-top: 1px solid var(--navy); }
.est-table tr.total th, .est-table tr.total td { font-weight: 800; color: var(--navy); border-top: 2px solid var(--navy); }
.est-table tr.neg td { color: var(--loss); }
.est-table tr.na td { color: var(--muted); white-space: normal; }
@media (max-width: 480px) { .est-table { font-size: .86rem; } .est-table td { padding-left: 6px; } .est-table thead th { padding-left: 6px; } }
.est-hint { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }

/* target price */
.est-target { margin-top: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 22px clamp(24px, 4vw, 48px); align-items: start; }
.est-target h3 { font-size: 1.3rem; margin: 0 0 8px; }
.est-target > div > p { color: var(--muted); }
@media (max-width: 860px) { .est-target { grid-template-columns: minmax(0, 1fr); } }
.est-basis { display: grid; gap: 10px; margin: 16px 0 0; }
.est-basis-note { font-size: .88rem; color: var(--muted); margin: 0; }
.est-basis-note:empty { display: none; }
.est-target-result { padding: 18px 20px; border-radius: 12px; background: var(--white); border-left: 4px solid var(--terra); }
.est-target-result p { margin: 0; }
.est-target-label { font-weight: 700; color: var(--muted); font-size: .95rem; }
.est-target-value { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; color: var(--navy); letter-spacing: -.02em; line-height: 1.1; margin: 4px 0 6px !important; font-variant-numeric: tabular-nums lining-nums; }
.est-target-cmp { font-weight: 600; }
.est-target-math { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.est-target-math li { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: .94rem; line-height: 1.5; font-variant-numeric: tabular-nums lining-nums; }

/* next step */
.est-next { margin-top: clamp(28px, 4vw, 44px); padding-top: clamp(24px, 3vw, 32px); border-top: 1px solid rgba(255, 255, 255, .18); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.est-next-line { margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.3; font-weight: 800; color: var(--white); letter-spacing: -.015em; max-width: 30em; }
.btn-terra { background: var(--terra-btn); border-color: var(--terra-btn); color: var(--white); }
.btn-terra:hover { background: var(--terra-btn-hover); border-color: var(--terra-btn-hover); color: var(--white); }
.est-fine { margin: 18px 0 0; font-size: .9rem; line-height: 1.55; color: #c9d0dd; max-width: 60em; }
.est noscript p { padding: 16px; border-radius: 12px; background: var(--paper); color: var(--ink); }
