@font-face {
    font-family: "Quick Apply Inter";
    src: url("../../fonts/automotive-repair-2/inter-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* All overrides belong to the isolated preview; shared pages keep their existing CSS. */
body.qa-preview {
    --qa-blue: #1c6899;
    --qa-ink: #102d43;
    margin: 0;
    padding: 0;
    background: #fff;
    color: var(--qa-ink);
    font-family: "Quick Apply Inter", sans-serif;
}
.qa-preview .qa-header {
    height: 88px;
    border-bottom: 1px solid #eaeaea;
    background: #fff;
}
.qa-preview .qa-header-inner {
    max-width: 1120px;
    height: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.qa-preview .qa-logo {
    display: block;
    width: 246.508px;
    height: 48px;
    object-fit: contain;
}
.qa-preview .qa-header-actions,
.qa-preview .qa-call {
    display: flex;
    align-items: center;
    gap: 25px;
}
.qa-preview .qa-header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid var(--qa-blue);
    border-radius: 8px;
    color: var(--qa-blue);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.qa-preview .qa-call {
    gap: 8px;
    color: var(--qa-blue);
    font-size: 14px;
    line-height: 24px;
    text-decoration: none;
}
.qa-preview .qa-call-icon { background: #eef6fb; }
.qa-preview .qa-main {
    position: relative;
    padding-top: 92px;
    isolation: isolate;
}
.qa-preview .qa-banner {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #1c6899;
}
.qa-preview .qa-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("images/nyc.png") center / cover no-repeat;
}
.qa-preview .qa-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(28, 104, 153, .9);
}
.qa-preview .qa-panel {
    position: relative;
    /* Keep open form menus above the positioned ratings below the panel. */
    z-index: 1;
    width: calc(100% - 48px);
    max-width: 880px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 18px rgba(16, 45, 67, .1);
}
.qa-preview .progress-container {
    display: block;
    margin: 0 0 24px;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}
.qa-preview .qa-progress-label {
    margin: 0 0 8px;
    color: #155987;
    background-color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
}
.qa-preview .qa-progress-track {
    height: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: #e4eff6;
}
.qa-preview .progress-steps {
    width: 9.090909%;
    height: 6px;
    padding: 0;
    border-radius: 3px;
    background: var(--qa-blue);
}
.qa-preview .qa-question {
    margin: 0 0 24px;
    color: var(--qa-ink);
    font-size: 34px;
    font-weight: 600;
    line-height: 42px;
    text-align: center;
}
.qa-preview .qa-question[tabindex="-1"]:focus { outline: none; }
.qa-preview .qa-choices {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.qa-preview .qa-choice {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--qa-ink);
    text-align: left;
    font: inherit;
}
.qa-preview .qa-choice .card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    min-height: 64px;
    padding: 16px 20px;
    border: 1px solid #a6c8dc;
    border-radius: 8px;
    background: #f7fbfe;
    transition: background-color .15s, border-color .15s;
}
.qa-preview .qa-choice:hover .card {
    border-color: var(--qa-blue);
    box-shadow: none;
}
.qa-preview .qa-choice .card.active {
    background: #102d43;
    border-color: #102d43;
    color: #fff;
}
.qa-preview .qa-choice .card.active img { filter: brightness(0) invert(1); }
.qa-preview .qa-choice-icon {
    display: flex;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
}
.qa-preview .qa-choice-label {
    min-width: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    overflow-wrap: break-word;
}
.qa-preview .qa-choice:focus-visible,
.qa-preview .qa-navigation .go-back-btn:focus-visible,
.qa-preview .qa-header a:focus-visible {
    outline: 3px solid var(--qa-blue);
    outline-offset: 4px;
}
.qa-preview .qa-navigation { margin-top: 24px; }
.qa-preview .qa-navigation .go-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--qa-blue);
    border-radius: 8px;
    background: #fff;
    color: var(--qa-blue);
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
}
.qa-preview .qa-navigation .go-back-btn:hover {
    background: #eef6fb;
}
.qa-preview .qa-input-navigation {
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.qa-preview .qa-input-navigation .go-back-btn { order: 0; }
.qa-preview .qa-input-navigation .continue-btn {
    order: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--qa-blue);
    border-radius: 8px;
    background: var(--qa-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
}
.qa-preview .qa-input-navigation .continue-btn:hover:not(.disabled) { background: #155987; }
.qa-preview .qa-input-navigation .continue-btn:focus-visible { outline: 3px solid var(--qa-blue); outline-offset: 4px; }
.qa-preview .qa-single-field { padding-top: 8px; }
.qa-preview .qa-single-field,
.qa-preview .qa-field-stack {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
}
.qa-preview .qa-input,
.qa-preview #industryInput,
.qa-preview #searchInput {
    display: block;
    width: 100%;
    height: 56px;
    min-height: 56px;
    margin: 0;
    padding: 16px 20px;
    border: 1px solid #a6c8dc;
    border-radius: 8px;
    background: #fff;
    color: #153e59;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    box-shadow: none;
}
.qa-preview .qa-input::placeholder,
.qa-preview #industryInput::placeholder,
.qa-preview #searchInput::placeholder { color: #58758a; opacity: 1; }
.qa-preview .qa-input:focus { outline: 2px solid var(--qa-blue); outline-offset: 2px; }
.qa-preview .qa-field-stack { display: flex; flex-direction: column; gap: 16px; }
.qa-preview .qa-field-group { display: flex; flex-direction: column; gap: 8px; }
.qa-preview .qa-field-group label { margin: 0; color: #153e59; font-size: 14px; font-weight: 500; line-height: 20px; }
.qa-preview #industryInput { padding-right: 48px; border-color: #89abc2; border-radius: 10px; text-overflow: ellipsis; }
.qa-preview .qa-industry-chevron { position: absolute; right: 20px; top: 20px; pointer-events: none; }
.qa-preview #searchBox { z-index: 10; }
.qa-preview #searchInput { border-color: #89abc2; border-radius: 10px 10px 0 0; cursor: text; }
.qa-preview #industryDropdown { max-height: min(200px, 40vh); border: 1px solid #89abc2; border-top: 0; border-radius: 0 0 8px 8px; background: #fff; }
.qa-preview #industryDropdown .dropdown-item { min-height: 44px; padding: 10px 20px; white-space: normal; overflow-wrap: anywhere; color: #153e59; font-size: 16px; line-height: 22px; }
.qa-preview #industryDropdown .dropdown-item:hover,
.qa-preview #industryDropdown .dropdown-item:focus { outline: none; background: #e4eff6; }
.qa-preview #industryDropdown .no-result { color: #58758a; font-size: 14px; line-height: 22px; }
.qa-preview .qa-consent-statements { display: flex; flex-direction: column; gap: 24px; margin-top: 24px; }
.qa-preview .qa-consent-row { display: flex; align-items: flex-start; gap: 12px; }
.qa-preview .qa-consent-control { position: relative; flex: 0 0 20px; width: 20px; height: 44px; margin: 0; }
.qa-preview .qa-consent-control input { position: absolute; top: 0; left: -12px; width: 44px; height: 44px; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.qa-preview .qa-consent-indicator { position: absolute; top: 1px; left: 0; display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1px solid var(--qa-blue); border-radius: 4px; background: #fff; }
.qa-preview .qa-consent-indicator img { visibility: hidden; }
.qa-preview .qa-consent-control input:checked + .qa-consent-indicator { background: var(--qa-blue); }
.qa-preview .qa-consent-control input:checked + .qa-consent-indicator img { visibility: visible; }
.qa-preview .qa-consent-control input:focus-visible + .qa-consent-indicator { outline: 3px solid var(--qa-blue); outline-offset: 3px; }
.qa-preview .qa-consent-text { flex: 1; min-width: 0; margin: 0; color: #153e59; font-size: 14px; font-weight: 400; line-height: 22px; }
.qa-preview .qa-consent-text a { color: var(--qa-blue); font: inherit; text-decoration: underline; }
.qa-preview .alert-danger-form { width: 100%; padding: 12px 60px 12px 16px !important; overflow-wrap: anywhere; }
.qa-preview .alert-danger-form .close { position: absolute; top: 0; right: 4px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: inherit; font-size: 24px; }
.qa-preview .alert-danger-form .close:focus-visible { outline: 3px solid var(--qa-blue); outline-offset: -3px; }
.qa-preview .alert-danger-form .qa-retry-btn { position: static; display: block; width: auto; height: auto; max-width: 100%; min-height: 44px; margin: 12px auto 0; padding: 10px 16px; border: 1px solid var(--qa-blue); border-radius: 8px; background: var(--qa-blue); color: #fff; font-size: 14px; white-space: normal; }
.qa-preview .qa-retry-btn:focus-visible { outline: 3px solid var(--qa-blue); outline-offset: 3px; }
.qa-preview .qa-ratings {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    max-width: 900px;
    margin: 40px auto 48px;
}
.qa-preview .qa-rating {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
}
.qa-preview .qa-rating + .qa-rating::before {
    content: "";
    position: absolute;
    left: 0;
    top: 23px;
    width: 1px;
    height: 56px;
    background: #d6e8f4;
}
.qa-preview .qa-rating p {
    margin: 0;
    color: #153e59;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
    text-align: center;
}
.qa-preview .qa-rating-art {
    position: relative;
    width: 120px;
    height: 56px;
    flex-shrink: 0;
    overflow: hidden;
}
.qa-preview .qa-rating-bbb { width: 120px; height: 56px; object-fit: contain; }
.qa-preview .qa-rating-logo { position: absolute; top: 0; left: 0; width: 120px; height: 30px; overflow: hidden; }
.qa-preview .qa-rating-facebook img { position: absolute; width: 129.164px; height: 48.544px; top: -10px; left: -4.58px; object-fit: cover; }
.qa-preview .qa-rating-google img { position: absolute; width: 82.657px; height: 28px; top: 1px; left: 18.67px; object-fit: cover; }
.qa-preview .qa-rating-trustpilot img { position: absolute; width: 114px; height: 27.82px; top: 1.09px; left: 3px; object-fit: cover; }
.qa-preview .qa-stars { position: absolute; left: 4px; top: 35px; }
.qa-preview .qa-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border-top: 1px solid #eaeaea;
}
.qa-preview .qa-footer p { margin: 0; color: var(--qa-blue); font-size: 14px; line-height: 22px; text-align: center; }

/* Keep tablets stacked, including landscape layouts up to 1199px. */
@media (min-width: 1200px) {
    .qa-preview #form4 .qa-choices,
    .qa-preview #form5 .qa-choices {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .qa-preview #form4 .qa-choice .card,
    .qa-preview #form5 .qa-choice .card { height: 100%; }
}
@media (max-width: 1199.98px) {
    .qa-preview .qa-header-inner { margin-inline: 24px; }
}
@media (max-width: 767.98px) {
    .qa-preview .qa-header { height: 76px; }
    .qa-preview .qa-header-inner { margin-inline: 20px; }
    .qa-preview .qa-logo { width: 175px; height: 34.028px; }
    .qa-preview .qa-header-actions { gap: 15px; }
    .qa-preview .qa-call-label { display: none; }
    .qa-preview .qa-main { padding-top: 48px; }
    .qa-preview .qa-banner { height: 220px; }
    .qa-preview .qa-banner::before { inset: auto; left: 50%; bottom: 0; width: 1440px; height: 300px; transform: translateX(-50%); }
    .qa-preview .qa-panel { width: calc(100% - 32px); padding: 24px 20px; }
    .qa-preview .qa-question { font-size: 26px; line-height: 34px; }
    .qa-preview .qa-choice .card { padding: 16px; }
    .qa-preview #form1 .qa-choice[data-value="4"] .card,
    .qa-preview #form2 .qa-choice .card { min-height: 80px; }
    .qa-preview .qa-contact-fields .qa-input::placeholder { color: transparent; }
    .qa-preview .qa-submit-navigation { flex-direction: column; gap: 35px; }
    .qa-preview .qa-submit-navigation .continue-btn { order: 0; min-height: 48px; min-width: 196px; }
    .qa-preview .qa-submit-navigation .go-back-btn { order: 1; }
    .qa-preview .qa-ratings { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; width: calc(100% - 40px); max-width: 500px; margin-block: 32px; padding-block: 4px; align-items: start; }
    .qa-preview .qa-rating { padding: 0; }
    .qa-preview .qa-rating + .qa-rating::before { display: none; }
    .qa-preview .qa-footer { min-height: 76px; padding: 15px 20px; }
}
@media (max-width: 359.98px) {
    .qa-preview .qa-header-inner { margin-inline: 16px; gap: 8px; }
    .qa-preview .qa-logo { width: 156px; height: auto; }
    .qa-preview .qa-header-actions { gap: 8px; }
    .qa-preview .qa-choice .card { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .qa-preview .qa-choice .card { transition: none; }
}
