.erg-estimate {
    --erg-ink: #171a20;
    --erg-muted: #525965;
    --erg-red: #FF0101;
    --erg-red-ink: #b90000;
    --erg-border: #cbd0d7;
    box-sizing: border-box;
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 740px;
    margin: 24px auto;
    padding: clamp(22px, 5vw, 46px);
    border: 1px solid #e0e3e8;
    border-top: 5px solid var(--erg-red);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 50px #161a2422;
    color: var(--erg-ink);
    font: 400 16px/1.5 "Inter", system-ui, sans-serif;
    text-align: left;
    scroll-margin-top: 100px;
}
.erg-estimate *, .erg-estimate *::before, .erg-estimate *::after { box-sizing: border-box; }
.erg-estimate .erg-estimate__header h2 {
    margin: 0 0 8px;
    color: var(--erg-ink);
    font: 800 clamp(28px, 5vw, 44px)/1.1 "Inter", system-ui, sans-serif;
    letter-spacing: -.045em;
    text-transform: none;
}
.erg-estimate .erg-estimate__header p { margin: 0 0 25px; color: var(--erg-muted); }
.erg-estimate .erg-estimate__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.erg-estimate label, .erg-estimate legend { color: var(--erg-ink); line-height: 1.45; font-size: 14px; font-weight: 650; }
.erg-estimate .erg-estimate__grid > label, .erg-estimate .erg-estimate__details { display: block; min-width: 0; }
.erg-estimate .erg-estimate__optional { color: var(--erg-muted); font-weight: 400; }
.erg-estimate .erg-estimate__required { color: var(--erg-red-ink); }
.erg-estimate .erg-estimate__grid input, .erg-estimate select, .erg-estimate textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 49px;
    height: auto;
    margin: 6px 0 0;
    padding: 10px 13px;
    border: 1px solid var(--erg-border);
    border-radius: 11px;
    background: #fff;
    box-shadow: none;
    color: var(--erg-ink);
    font: 400 16px/1.4 "Inter", system-ui, sans-serif;
}
.erg-estimate select { appearance: auto; }
.erg-estimate textarea { resize: vertical; }
.erg-estimate :is(input, select, textarea, button, a):focus-visible,
.erg-estimate .erg-estimate__choices input:focus-visible + span {
    outline: 2px solid var(--erg-red);
    outline-offset: 3px;
}
.erg-estimate .erg-estimate__timing { min-width: 0; margin: 20px 0; padding: 0; border: 0; }
.erg-estimate .erg-estimate__timing legend { margin: 0 0 8px; padding: 0; }
.erg-estimate .erg-estimate__choices { display: flex; flex-wrap: wrap; gap: 8px; }
.erg-estimate .erg-estimate__choices label { position: relative; margin: 0; cursor: pointer; }
.erg-estimate .erg-estimate__choices input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.erg-estimate .erg-estimate__choices span {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 13px;
    border: 1px solid var(--erg-border);
    border-radius: 100px;
    background: #fff;
}
.erg-estimate .erg-estimate__choices input:checked + span { color: #fff; background: var(--erg-ink); border-color: var(--erg-ink); }
.erg-estimate .erg-estimate__consent { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; font-weight: 400; color: var(--erg-muted); }
.erg-estimate .erg-estimate__consent input { flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--erg-red); appearance: auto; }
.erg-estimate .erg-estimate__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    padding: 12px 16px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: var(--erg-red);
    font: 750 19px/1.3 "Inter", system-ui, sans-serif;
    text-transform: none;
    cursor: pointer;
}
.erg-estimate .erg-estimate__submit:hover { color: #fff; background: var(--erg-red-ink); }
.erg-estimate .erg-estimate__contact { margin: 15px 0 0; text-align: center; color: var(--erg-muted); font-size: 14px; }
.erg-estimate .erg-estimate__contact a { color: var(--erg-red-ink); font-weight: 750; text-decoration: underline; white-space: nowrap; }
.erg-estimate .erg-estimate__message { padding: 12px 14px; border-radius: 9px; }
.erg-estimate [data-estimate-feedback] { margin: 0; padding: 0; }
.erg-estimate [data-estimate-feedback]:is(.is-success, .is-error) {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 12px 14px;
}
.erg-estimate [data-estimate-feedback].is-success {
    background: #fff4f4;
    color: var(--erg-ink);
    border: 1px solid #ffd2d2;
    animation: erg-confirm-in .3s ease-out both;
}
.erg-estimate .erg-estimate__check { display: none; }
.erg-estimate [data-estimate-feedback].is-success .erg-estimate__check {
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--erg-red);
    animation: erg-check-in .4s cubic-bezier(.2, .8, .3, 1.35) both;
}
.erg-estimate .erg-estimate__check::after {
    content: "";
    width: 8px;
    height: 15px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translateY(-2px) rotate(45deg);
}
.erg-estimate .erg-estimate__submit.is-submitting::before {
    content: "";
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    border: 2px solid #ffffff66;
    border-top-color: #fff;
    border-radius: 50%;
    animation: erg-spinner .75s linear infinite;
}
@keyframes erg-spinner { to { transform: rotate(360deg); } }
@keyframes erg-confirm-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes erg-check-in {
    from { transform: scale(.65); }
    to { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .erg-estimate [data-estimate-feedback].is-success,
    .erg-estimate [data-estimate-feedback].is-success .erg-estimate__check,
    .erg-estimate .erg-estimate__submit.is-submitting::before { animation: none; }
}
.erg-estimate .erg-estimate__submit:disabled { cursor: wait; opacity: .85; }
.erg-estimate .is-success { background: #eaf6ee; color: #205632; }
.erg-estimate .is-error { background: #fcecec; color: #8d1f27; }
@media (max-width: 540px) {
    .erg-estimate .erg-estimate__grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
}
