.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.quote-nav .kr-btn[hidden],
.quote-step[hidden],
[hidden].quote-step,
[hidden].kr-btn {
    display: none !important;
}

.quote-section {
    padding: clamp(28px, 4vw, 48px) 0 var(--section-padding);
    background: var(--color-navy);
    color: #fff;
}

.quote-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}

.quote-intro {
    grid-column: 1;
    grid-row: 1;
}

.quote-form-col {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.quote-layout.is-success {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
}

.quote-layout.is-success .quote-intro {
    display: none;
}

.quote-layout.is-success .quote-form-col {
    grid-column: 1;
    grid-row: 1;
}

.quote-intro h1 {
    margin: 0 0 20px;
    font-size: clamp(2.8rem, 4.2vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    text-transform: none;
    letter-spacing: -0.02em;
    color: #fff;
}

.quote-intro-lead {
    margin: 0;
    max-width: 42ch;
    font-size: 1.7rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.quote-intro-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: clamp(24px, 4vw, 32px) 0 0;
    padding: 0;
}

.quote-intro-perks li {
    padding: 10px 16px;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}

.quote-help-card {
    margin-top: clamp(28px, 4vw, 40px);
    padding: clamp(20px, 3vw, 24px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 3px solid var(--primary-color);
    background: rgba(255, 255, 255, 0.04);
}

.quote-help-card__label {
    margin: 0 0 14px;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

.quote-help-card__phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(1.6rem, 2vw, 1.8rem);
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
    text-decoration: none;
    transition: color var(--animate-fast);
}

.quote-help-card__phone i {
    color: var(--primary-color);
}

.quote-help-card__phone:hover,
.quote-help-card__phone:focus {
    color: var(--primary-color);
}

.quote-shell {
    background: #fff;
    border: none;
    padding: clamp(24px, 5vw, 40px);
    scroll-margin-top: 168px;
    color: var(--color-navy);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.quote-shell.is-highlighted {
    border-color: rgba(234, 43, 31, 0.45);
    animation: quote-form-highlight 1.8s ease;
}

@keyframes quote-form-highlight {
    0% {
        box-shadow: 0 0 0 0 rgba(234, 43, 31, 0);
    }
    25% {
        box-shadow: 0 0 0 4px rgba(234, 43, 31, 0.22);
    }
    60% {
        box-shadow: 0 0 0 4px rgba(234, 43, 31, 0.14);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(234, 43, 31, 0);
    }
}

.quote-progress {
    margin-bottom: clamp(28px, 4vw, 40px);
    padding-bottom: clamp(20px, 3vw, 28px);
    border-bottom: 1px solid var(--grey-light-color);
}

.quote-progress-bar {
    height: 4px;
    margin-bottom: 16px;
    background: rgba(33, 44, 68, 0.12);
    overflow: hidden;
}

.quote-progress-bar-fill {
    height: 100%;
    width: 25%;
    background: var(--primary-color);
    transition: width 0.35s ease;
}

.quote-progress-text {
    margin: 0 0 8px;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.quote-step-title {
    margin: 0;
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    line-height: 1.25;
    font-weight: 800;
    text-transform: none;
    color: var(--color-navy);
}

.quote-step-title:focus {
    outline: none;
}

.quote-step {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#situationFields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quote-question {
    position: relative;
    margin: 0;
    padding: clamp(20px, 3.5vw, 28px);
    background: rgba(232, 236, 242, 0.35);
    border: 1px solid var(--grey-light-color);
    overflow: hidden;
}

.quote-question[data-collapsible="true"] {
    transition:
        padding 0.42s cubic-bezier(0.19, 1, 0.22, 1),
        border-color var(--animate-fast),
        background-color var(--animate-fast);
}

.quote-question::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--primary-color);
}

.quote-question__label {
    margin: 0 0 16px;
    font-size: clamp(1.45rem, 2.4vw, 1.6rem);
    font-weight: 800;
    line-height: 1.45;
    color: var(--color-navy);
    overflow-wrap: anywhere;
}

.quote-question__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 20px;
    width: 100%;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: default;
    position: relative;
    transition: margin 0.42s cubic-bezier(0.19, 1, 0.22, 1);
}

.quote-question__header .quote-question__label {
    margin: 0;
    flex: 1 1 auto;
    transition:
        font-size 0.42s cubic-bezier(0.19, 1, 0.22, 1),
        color 0.35s ease;
}

.quote-question__answer {
    flex: 0 1 52%;
    margin: 0;
    max-width: 52%;
    opacity: 1;
    overflow: hidden;
    font-size: clamp(1.35rem, 2vw, 1.5rem);
    font-weight: 700;
    line-height: 1.4;
    text-align: right;
    color: var(--primary-color);
    overflow-wrap: anywhere;
    white-space: nowrap;
    text-overflow: ellipsis;
    transform: translateY(0);
    transition:
        opacity 0.35s ease 0.08s,
        transform 0.35s ease 0.08s;
}

.quote-question:not(.is-collapsed) .quote-question__answer {
    position: absolute;
    width: 0;
    height: 0;
    max-width: 0;
    flex: 0 0 0;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    white-space: nowrap;
    pointer-events: none;
}

.quote-question.is-collapsed {
    padding: clamp(14px, 2.5vw, 18px) clamp(20px, 3.5vw, 28px);
}

.quote-question.is-collapsed:hover,
.quote-question.is-collapsed:focus-within {
    border-color: rgba(234, 43, 31, 0.35);
    background: rgba(234, 43, 31, 0.03);
}

.quote-question.is-collapsed .quote-question__header {
    margin-bottom: 0;
    cursor: pointer;
}

.quote-question.is-collapsed .quote-question__header .quote-question__label {
    font-size: clamp(1.25rem, 2vw, 1.35rem);
    font-weight: 700;
    color: rgba(33, 44, 68, 0.68);
}

.quote-question.is-collapsed .quote-question__answer {
    position: static;
    width: auto;
    height: auto;
    max-width: 52%;
    flex: 0 1 52%;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.quote-question.is-collapsed .quote-question__header:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.quote-question__body {
    display: grid;
    grid-template-rows: 1fr;
    overflow: hidden;
    transition: grid-template-rows 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}

.quote-question__body-inner {
    min-height: 0;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.32s ease;
}

.quote-question.is-collapsed .quote-question__body {
    grid-template-rows: 0fr;
}

.quote-question.is-collapsed .quote-question__body-inner {
    opacity: 0;
}

.quote-question--reveal {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    border-color: transparent;
    transform: translateY(-8px);
    pointer-events: none;
    transition:
        max-height 0.45s cubic-bezier(0.19, 1, 0.22, 1),
        opacity 0.35s ease,
        transform 0.35s ease,
        padding 0.35s ease,
        border-color 0.35s ease;
}

.quote-question--reveal.is-visible {
    max-height: 720px;
    opacity: 1;
    padding-top: clamp(20px, 3.5vw, 28px);
    padding-bottom: clamp(20px, 3.5vw, 28px);
    border-color: var(--grey-light-color);
    transform: translateY(0);
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    .quote-question--reveal {
        transition: none;
    }

    .quote-question[data-collapsible="true"],
    .quote-question__header,
    .quote-question__header .quote-question__label,
    .quote-question__answer,
    .quote-question__body,
    .quote-question__body-inner {
        transition: none;
    }
}

.quote-card-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 12px;
}

#serviceTypeCards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

#serviceTypeCards .quote-card {
    justify-content: center;
    min-height: 84px;
    padding: 20px 18px;
    font-size: clamp(1.5rem, 2.2vw, 1.8rem);
    text-align: center;
}

.quote-card {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 14px 16px;
    border: 1px solid rgba(33, 44, 68, 0.14);
    background: #fff;
    color: var(--color-navy);
    font-size: clamp(1.4rem, 2vw, 1.5rem);
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
    transition: border-color var(--animate-fast), background-color var(--animate-fast), box-shadow var(--animate-fast);
}

.quote-card span {
    display: block;
    width: 100%;
    overflow-wrap: anywhere;
}

.quote-card:hover,
.quote-card:focus-within {
    border-color: var(--primary-color);
}

.quote-card.is-selected {
    border-color: var(--primary-color);
    background: rgba(234, 43, 31, 0.07);
    color: var(--color-navy);
}

.quote-field {
    margin-bottom: 0;
}

.quote-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.35;
    color: rgba(33, 44, 68, 0.82);
}

.quote-optional {
    font-weight: 400;
    color: rgba(33, 44, 68, 0.55);
}

.quote-input {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(33, 44, 68, 0.14);
    background: #fff;
    color: var(--color-navy);
    font-family: var(--font-body);
    font-size: 1.6rem;
    line-height: 1.4;
    border-radius: 0;
    box-shadow: 0 1px 2px rgba(33, 44, 68, 0.04);
}

.quote-input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 1px;
    border-color: var(--primary-color);
}

.quote-input.just-validate-error-field,
.has-error .quote-input,
.has-error .quote-card-group {
    border-color: var(--primary-color);
}

textarea.quote-input {
    resize: vertical;
    min-height: 96px;
}

.quote-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.quote-field--wide {
    grid-column: 1 / -1;
}

.quote-help,
.quote-counter {
    margin: 8px 0 0;
    font-size: 1.3rem;
    color: rgba(33, 44, 68, 0.72);
}

.quote-error {
    margin: 8px 0 0;
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 700;
}

.has-error .quote-checkbox {
    color: var(--primary-color);
}

.quote-field--checkbox {
    position: relative;
    padding: clamp(16px, 3vw, 20px);
    background: rgba(232, 236, 242, 0.22);
    border: 1px solid var(--grey-light-color);
    overflow: hidden;
}

.quote-field--checkbox::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: rgba(33, 44, 68, 0.25);
}

.quote-field--checkbox .quote-error {
    margin-left: 28px;
}

.quote-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-top: 24px;
}

.quote-nav:has(#quotePrevBtn[hidden]) {
    justify-content: flex-end;
}

.quote-nav .kr-btn:not([hidden]) {
    min-width: 160px;
}

.quote-alert,
.quote-success {
    margin-bottom: 20px;
    padding: 14px 16px;
    font-size: 1.5rem;
    line-height: 1.5;
}

.quote-alert--danger,
.quote-alert--warning {
    border: 1px solid rgba(234, 43, 31, 0.25);
    background: rgba(234, 43, 31, 0.06);
    color: var(--color-navy);
}

.quote-success {
    border: 1px solid rgba(33, 44, 68, 0.15);
    background: rgba(33, 44, 68, 0.04);
    color: var(--color-navy);
}

.quote-success--page {
    margin-bottom: 0;
    padding: clamp(28px, 4vw, 40px);
}

.quote-success__title {
    margin: 0 0 16px;
    font-size: clamp(2.4rem, 3.6vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-navy);
}

.quote-success--page p {
    margin: 0 0 14px;
}

.quote-success--page a:not(.kr-btn) {
    color: var(--color-navy);
    font-weight: 600;
}

.quote-success__actions {
    margin-top: 24px;
}

.quote-summary-wrap {
    margin: 0;
    padding: clamp(20px, 3vw, 28px);
    background: rgba(33, 44, 68, 0.04);
    border: 1px solid rgba(33, 44, 68, 0.08);
    border-left: 3px solid var(--color-navy);
}

.quote-summary-title {
    margin: 0 0 16px;
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-navy);
}

.quote-summary-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(33, 44, 68, 0.08);
}

.quote-summary-item p {
    margin: 4px 0 0;
    font-size: 1.5rem;
    line-height: 1.5;
}

.quote-edit-btn {
    flex-shrink: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--primary-color);
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.quote-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.5rem;
    line-height: 1.5;
    cursor: pointer;
}

.quote-checkbox input {
    margin-top: 4px;
}

.quote-checkbox a {
    color: var(--primary-color);
    text-decoration: underline;
}

.quote-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.quote-summary-list {
    margin: 0;
}

.quote-summary-list div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(33, 44, 68, 0.08);
}

.quote-summary-list dt {
    margin: 0;
    font-weight: 800;
    color: var(--color-navy);
}

.quote-summary-list dd {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.5;
}

@media (min-width: 992px) {
    .quote-shell {
        position: sticky;
        top: calc(var(--header-height) + 24px);
    }
}

@media (max-width: 991.98px) {
    .quote-layout {
        grid-template-columns: 1fr;
    }

    .quote-form-col {
        grid-column: 1;
        grid-row: 2;
    }

    .quote-intro h1 {
        font-size: clamp(2.4rem, 7vw, 3.2rem);
    }

    .quote-intro-lead {
        max-width: none;
        font-size: 1.6rem;
    }
}

@media (max-width: 744px) {
    .quote-shell {
        padding: 20px 16px;
    }

    .quote-question {
        padding: 18px 16px;
    }

    .quote-grid {
        grid-template-columns: 1fr;
    }

    .quote-card-group,
    #serviceTypeCards {
        grid-template-columns: 1fr;
    }

    #serviceTypeCards .quote-card {
        min-height: 64px;
        font-size: 1.5rem;
    }

    .quote-summary-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .quote-nav {
        flex-direction: column-reverse;
    }

    .quote-nav .kr-btn {
        width: 100%;
    }
}
