.quoteModal{
    position: fixed;
    inset: 0;
    background: rgba(32, 31, 27, 0.62);
    display: grid;
    place-items: center;
    z-index: 2147483646;
    padding: 26px;
    overscroll-behavior: contain;
    backdrop-filter: blur(6px);
}
.quoteModal[hidden]{
    display: none;
}
.quoteModalDialog{
    position: relative;
    width: min(580px, 96vw);
    max-height: 88vh;
    background: #fff;
    border: 1px solid rgba(37, 35, 29, 0.1);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 34px 90px rgba(37, 35, 29, 0.28);
}
.quoteModalDialog.is-iframe-active{
    width: min(1100px, 96vw);
    height: min(820px, 88vh);
}
.quoteModalHeader{
    padding: 28px 78px 18px 28px;
    background: #fff;
    border-bottom: 1px solid rgba(37, 35, 29, 0.1);
}
.quoteModalTitle{
    margin: 0;
    color: #25231d;
    font-family: "Roboto", sans-serif;
    font-size: clamp(1.55rem, 2.2vw, 2.05rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.05;
}
.quoteModalStep{
    padding: 26px 28px 30px;
    background: linear-gradient(180deg, #fff 0%, #faf9f7 100%);
}
.quoteModalStepFrame{
    padding: 0;
    height: calc(min(820px, 88vh) - 78px);
    background: #fff;
}
.quoteModalForm{
    display: grid;
    gap: 18px;
    color: #25231d;
    font-family: "Roboto", sans-serif;
}
.quoteModalFieldset{
    border: 0;
    border-radius: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.quoteModalFieldset legend{
    grid-column: 1 / -1;
    width: 100%;
    padding: 0;
    margin: 0 0 2px;
    color: #25231d;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}
.quoteModalRadio{
    position: relative;
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 13px 14px;
    border: 1px solid rgba(37, 35, 29, 0.16);
    border-radius: 14px;
    background: #fff;
    color: #25231d;
    font-size: 0.98rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(37, 35, 29, 0.045);
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.quoteModalRadio:hover{
    border-color: rgba(211, 38, 25, 0.42);
    box-shadow: 0 12px 28px rgba(37, 35, 29, 0.08);
    transform: translateY(-1px);
}
.quoteModalRadio:active{
    transform: translateY(0) scale(0.99);
}
.quoteModalRadio input{
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    margin: 0;
    accent-color: var(--color1, #d32619);
}
.quoteModalRadio span{
    display: block;
    line-height: 1.1;
}
.quoteModalRadio:has(input:checked){
    border-color: var(--color1, #d32619);
    background: #fff4f2;
    color: #b92218;
    box-shadow: inset 0 0 0 1px var(--color1, #d32619), 0 14px 34px rgba(211, 38, 25, 0.16);
}
.quoteModalRadio:has(input:focus-visible){
    outline: 3px solid rgba(211, 38, 25, 0.22);
    outline-offset: 3px;
}
.quoteModalRow{
    display: grid;
    gap: 8px;
}
.quoteModalLabel{
    font-size: 0.82rem;
    font-weight: 900;
    color: #25231d;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}
.quoteModalSelect{
    width: 100%;
    height: 54px;
    border-radius: 14px;
    border: 1px solid rgba(37, 35, 29, 0.16);
    background: #fff;
    color: #25231d;
    padding: 0 44px 0 14px;
    font-family: "Roboto", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(37, 35, 29, 0.045);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}
.quoteModalSelect:focus{
    border-color: var(--color1, #d32619);
    box-shadow: 0 0 0 4px rgba(211, 38, 25, 0.14), 0 10px 26px rgba(37, 35, 29, 0.08);
    outline: 0;
}
.quoteModalSelect option{
    color: #25231d;
}
.quoteModalAlert{
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(211, 38, 25, 0.2);
    background: #fff4f2;
    color: #b92218;
    font-size: 0.93rem;
    font-weight: 800;
}
.quoteModalNext{
    width: 100%;
    min-height: 54px;
    border-radius: 14px;
    border: 0;
    background: var(--color1, #d32619);
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0;
    box-shadow: 0 16px 32px rgba(211, 38, 25, 0.24);
    transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, opacity 180ms ease;
}
.quoteModalNext:hover:not([disabled]){
    background: #bd2419;
    box-shadow: 0 18px 38px rgba(211, 38, 25, 0.3);
    transform: translateY(-1px);
}
.quoteModalNext:active:not([disabled]){
    transform: translateY(0) scale(0.99);
}
.quoteModalNext[disabled]{
    opacity: 0.48;
    cursor: not-allowed;
    animation: none;
    box-shadow: none;
}
.quoteModalFrame{
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}
.quoteModalClose{
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(37, 35, 29, 0.12);
    background: #f4f2ef;
    color: #25231d;
    font-size: 1.8rem;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 1;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.quoteModalClose:hover{
    background: var(--color1, #d32619);
    color: #fff;
}
.quoteModalClose:active{
    transform: scale(0.96);
}
.quoteModalClose:focus-visible{
    outline: 3px solid rgba(211, 38, 25, 0.24);
    outline-offset: 3px;
}

@media (max-width: 768px){
    .quoteModal{
        padding: 14px;
        align-items: end;
    }
    .quoteModalDialog{
        width: 100%;
        max-height: 92vh;
        border-radius: 22px 22px 0 0;
    }
    .quoteModalDialog.is-iframe-active{
        width: 100%;
        height: 92vh;
    }
    .quoteModalHeader{
        padding: 22px 68px 16px 20px;
    }
    .quoteModalStep{
        padding: 20px;
    }
    .quoteModalStepFrame{
        height: calc(92vh - 70px);
    }
    .quoteModalFieldset{
        grid-template-columns: 1fr;
    }
    .quoteModalClose{
        top: 12px;
        right: 12px;
    }
}
