.roof-estimate { --estimate-navy: #062637; --estimate-gold: #ffb912; --estimate-cream: #f8f3ea; }
.itum-live .roof-estimate-hero { --page-hero-height: clamp(195px, 16vw, 250px); }
.roof-estimate-page-wrap { width: calc(100% - 64px); max-width: 1280px; margin-inline: auto; padding-block: 20px 44px; }
.roof-estimate-page-wrap .roof-estimate-layout { margin-top: 0; }
.roof-estimate-layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 16px; align-items: stretch; margin-top: 20px; }
.roof-estimate-form { display: grid; gap: 16px; min-width: 0; }
.roof-estimate-panel {
    min-width: 0;
    margin: 0;
    padding: 15px clamp(12px, 1.8vw, 22px) 20px;
    border: 1px solid #c9c4b9;
    border-radius: 14px;
    background: var(--estimate-cream);
}
.roof-estimate-panel legend { padding-inline: 5px; font-size: clamp(22px, 2.2vw, 31px); font-weight: 900; line-height: 1.1; }
.roof-estimate-number { display: inline-grid; vertical-align: middle; place-items: center; width: 36px; height: 36px; margin-inline-end: 4px; border-radius: 50%; background: var(--estimate-gold); color: var(--estimate-navy); font-size: 22px; line-height: 1; }
.roof-estimate-services, .roof-estimate-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.roof-estimate-service { position: relative; min-width: 0; cursor: pointer; }
.roof-estimate-service input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.roof-estimate-service-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 69px;
    height: 100%;
    padding: 9px;
    border: 1px solid var(--estimate-navy);
    border-radius: 10px;
    background: #fff9;
    color: var(--estimate-navy);
    font-size: clamp(15px, 1.55vw, 20px);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}
.roof-estimate-service-card svg { width: clamp(22px, 3vw, 37px); height: auto; flex: none; }
.roof-estimate-service input:checked + .roof-estimate-service-card { background: #fff0cb; border-color: #c48700; box-shadow: inset 0 0 0 1px #c48700; }
.roof-estimate-service input:checked + .roof-estimate-service-card::after { content: "✓"; position: absolute; inset-block-start: 3px; inset-inline-start: 4px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--estimate-gold); font-size: 11px; }
.roof-estimate-service input:focus-visible + .roof-estimate-service-card { outline: 3px solid var(--estimate-navy); outline-offset: 3px; }
.roof-estimate-fields { gap: 13px 10px; }
.roof-estimate-fields label { display: grid; align-content: start; gap: 5px; min-width: 0; font-size: 15px; font-weight: 800; line-height: 1.3; }
.roof-estimate-fields :is(input, select) { box-sizing: border-box; display: block; width: 100%; min-width: 0; min-height: 44px; padding: 7px 8px; border: 1px solid var(--estimate-navy); border-radius: 8px; background: #fff; color: var(--estimate-navy); font: inherit; font-weight: 500; }
.roof-estimate-result {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    padding: clamp(16px, 2.2vw, 25px);
    border-radius: 14px;
    background: var(--estimate-navy);
    color: #fff;
}
.roof-estimate-result-icon { margin-inline: auto; color: var(--estimate-gold); }
.roof-estimate-result-icon svg { display: block; width: 46px; height: 46px; }
.roof-estimate-result > h3 { margin: 10px 0 14px; color: #fff; font-size: clamp(24px, 2.7vw, 36px); text-align: center; }
.roof-estimate-result-copy { display: grid; gap: 12px; padding-block: 13px; margin-bottom: 13px; border-block: 1px solid #ffffff75; }
.roof-estimate .roof-estimate-total { margin: 0; color: var(--estimate-gold); font-size: clamp(26px, 3.05vw, 42px); font-weight: 900; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.roof-estimate .roof-estimate-formula { margin: 0; padding: 8px 10px; border-radius: 9px; color: var(--estimate-navy); background: #ffefd0; font-size: 15px; font-weight: 750; text-align: center; }
.roof-estimate-breakdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 10px; margin: 0; padding: 0; }
.roof-estimate-breakdown dt { color: #dbe5e9; font-size: 13px; }
.roof-estimate-breakdown dd { margin: 0; font-size: 15px; font-weight: 750; line-height: 1.35; }
.roof-estimate-notes { margin: 0; padding-inline-start: 16px; }
.roof-estimate .roof-estimate-notes li, .roof-estimate .roof-estimate-copy-status { font-size: 13px; line-height: 1.4; }
.roof-estimate-copy { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; margin-top: auto; border: 0; border-radius: 10px; padding: 8px 13px; background: var(--estimate-gold); color: var(--estimate-navy); font: inherit; font-size: clamp(17px, 1.8vw, 24px); font-weight: 900; cursor: pointer; }
.roof-estimate-copy svg { width: 25px; height: 25px; flex: none; }
.roof-estimate-copy:hover { background: #ffd264; }
.roof-estimate-copy:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.roof-estimate-copy:disabled { opacity: .6; cursor: default; }
.roof-estimate .roof-estimate-copy-status { min-height: 19px; margin: 6px 0 0; text-align: center; }

@media (max-width: 820px) {
    .roof-estimate-layout { grid-template-columns: 1fr; }
    .roof-estimate-page-wrap { width: calc(100% - 40px); }
}
@media (max-width: 620px) {
    .itum-live .roof-estimate-hero { --page-hero-fade: linear-gradient(to bottom, #052637, #052637d9 34%, #05263750 72%, transparent); }
    .itum-live .roof-estimate-hero > .live-hero-grid { min-height: clamp(180px, 54vw, 250px); padding: 24px 0; }
    .itum-live .live-page-hero.roof-estimate-hero figure { position: absolute; inset: 0; height: 100%; margin: 0; }
    .itum-live .roof-estimate-hero h1 { font-size: clamp(27px, 7.5vw, 37px); }
}
@media (max-width: 520px) {
    .roof-estimate-services, .roof-estimate-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .roof-estimate-fields label:first-child { grid-column: 1 / -1; }
    .roof-estimate-service-card { min-height: 56px; gap: 5px; }
    .roof-estimate-number { width: 30px; height: 30px; font-size: 18px; }
}
