/* =====================================TOKENS===================================== */

:root {
    --c-primary: #01af74;
    --c-primary-dark: #018a5c;
    --c-primary-hover: #019a66;
    --c-primary-soft: #e9f8f1;
    --c-deep: #01382e;
    --c-text: #1c313e;
    --c-text-2: #4a5a63;
    --c-muted: #5b6b74;
    --c-muted-2: #6a7a83;
    --c-muted-3: #8595a0;
    --c-border: #e6ecea;
    --c-border-input: #d5dfdb;
    --c-bg-soft: #f4f7f6;
    --c-white: #ffffff;
    --c-error: #e5484d;

    --radius-btn: 14px;
    --radius-input: 12px;
    --radius-card: 20px;
    --shadow-btn: 0 6px 8px rgba(1, 175, 116, 0.25);
    --shadow-card: 0 20px 30px rgba(28, 49, 62, 0.12);

    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-alt: 'Manrope', var(--font);
}

/* =====================================BASE===================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.3;
    color: var(--c-text);
    background: var(--c-white);
    -webkit-font-smoothing: antialiased;
}

body.loading {
    overflow: hidden;
}

h1, h2, p {
    margin: 0;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--c-primary-dark);
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

input,
select {
    font: inherit;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =====================================PAGE LOADER===================================== */

#page-loader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-white);
    transition: opacity 0.3s;
}

.loader-spinner,
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--c-border);
    border-top-color: var(--c-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =====================================HEADER===================================== */

.site-header {
    background: var(--c-white);
    border-bottom: 1px solid var(--c-border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 84px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.site-header__logo img {
    width: 181px;
    height: 44px;
}

.badge-free {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--c-primary-soft);
    font-size: 13px;
    font-weight: 700;
    color: var(--c-deep);
    white-space: nowrap;
}

/* =====================================MAIN===================================== */

.main {
    flex: 1 0 auto;
}

.funnel {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 24px 80px;
}

.location-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--c-primary-soft);
    font-size: 16px;
    font-weight: 500;
    color: var(--c-deep);
    text-align: center;
}

.location-banner img {
    flex-shrink: 0;
}

.location-banner strong {
    font-weight: 800;
}

/* Progress */
.progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress__labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
}

.progress__step {
    color: var(--c-muted-2);
}

.progress__percent {
    color: var(--c-primary-dark);
}

.progress__track {
    height: 6px;
    border-radius: 6px;
    background: var(--c-border);
    overflow: hidden;
}

.progress__fill {
    width: 3%;
    height: 100%;
    border-radius: 6px;
    background: var(--c-primary);
    transition: width 0.3s ease;
}

/* Form reveal */
.form-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.form-loader.hidden {
    display: none;
}

.form-steps {
    opacity: 0;
    visibility: hidden;
    height: 0;
    transition: opacity 0.3s;
}

.form-steps.loaded {
    opacity: 1;
    visibility: visible;
    height: auto;
}

/* =====================================STEP===================================== */

.step {
    display: none;
    flex-direction: column;
    gap: 18px;
}

.step.active {
    display: flex;
    animation: stepIn 0.3s ease;
}

@keyframes stepIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

.back-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text-2);
}

.back-btn:hover {
    color: var(--c-text);
}

.step__head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.step__title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.72px;
    color: var(--c-text);
    text-wrap: balance;
}

.step__subtitle {
    font-size: 16px;
    color: var(--c-muted);
}

/* =====================================OPTIONS===================================== */

.options {
    display: grid;
    grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
    gap: 12px;
    padding-top: 6px;
}

.options--3-1,
.options--3-2 { --cols: 3; }
.options--4-2 { --cols: 4; }
.options--5-3 { --cols: 5; }

.option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 12px 44px;
    border: 1px solid var(--c-border-input);
    border-radius: var(--radius-btn);
    background: var(--c-white);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--c-text);
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.options--4-2 .option,
.options--5-3 .option {
    padding-left: 14px;
    padding-right: 14px;
}

.option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

@media (hover: hover) {
    .option:hover {
        border-color: var(--c-primary);
        box-shadow: inset 0 0 0 1px var(--c-primary);
        background: var(--c-primary-soft);
        color: var(--c-deep);
    }
}

.option:has(input:focus-visible) {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
}

.option__check {
    position: absolute;
    top: 50%;
    right: 14px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--c-primary);
    transform: translateY(-50%);
}

.option:has(input:checked) {
    border-color: var(--c-primary);
    box-shadow: inset 0 0 0 1px var(--c-primary);
    background: var(--c-primary-soft);
    color: var(--c-deep);
}

.option:has(input:checked) .option__check {
    display: flex;
}

.options--4-2 .option:has(input:checked) .option__check,
.options--5-3 .option:has(input:checked) .option__check {
    display: none;
}

.error.radio-error {
    display: block;
    margin-top: -6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-error);
    text-align: center;
}

/* =====================================BUTTONS===================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    height: 60px;
    margin-top: 4px;
    padding: 0 20px;
    border-radius: var(--radius-btn);
    background: var(--c-primary);
    box-shadow: var(--shadow-btn);
    font-size: 18px;
    font-weight: 800;
    color: var(--c-white);
    text-decoration: none;
    transition: background-color 0.15s, opacity 0.15s;
}

.btn:hover {
    background: var(--c-primary-hover);
}

.btn:disabled {
    opacity: 0.45;
    cursor: default;
}

@keyframes aqsPulse {
    0%   { box-shadow: 0 0 0 0 rgba(1, 175, 116, 0.45); }
    70%  { box-shadow: 0 0 0 12px rgba(1, 175, 116, 0); }
    100% { box-shadow: 0 0 0 0 rgba(1, 175, 116, 0); }
}

.btn-pulse {
    animation: aqsPulse 1.8s ease-out infinite;
}

.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.6s linear infinite;
}

/* =====================================INPUTS===================================== */

.fields {
    display: flex;
    gap: 12px;
}

.fields > .zip__input__wrapper {
    flex: 1 1 0;
    min-width: 0;
}

.fields > .zip__input__wrapper--wide {
    flex: 0 0 calc(66.5% - 6px);
}

.zip__input__wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text-2);
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    height: 58px;
    border: 1px solid var(--c-border-input);
    border-radius: var(--radius-input);
    background: var(--c-white);
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.input-group:focus-within {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(1, 175, 116, 0.15);
}

.input-group.error,
.zip__input__wrapper.error .input-group {
    border-color: var(--c-error);
    box-shadow: none;
}

.zip__input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 0 16px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 17px;
    font-weight: 500;
    color: var(--c-text);
}

.zip__input::placeholder {
    color: var(--c-muted-3);
    font-weight: 500;
}

.zip__input--zip {
    letter-spacing: 0.68px;
}

.zip-error,
span.error:not(.radio-error) {
    display: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-error);
}

.zip-error:not(:empty) {
    display: block;
}

/* Phone */
.phone__prefix {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 0 14px 0 16px;
    border-right: 1px solid var(--c-border);
    font-size: 17px;
    font-weight: 600;
    color: var(--c-text);
    white-space: nowrap;
}

.phone__prefix img {
    border-radius: 2px;
}

/* Year built */
.year-field {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.zip__input--year {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-align: center;
}

.field__hint {
    font-size: 13px;
    font-weight: 500;
    color: var(--c-muted-2);
    text-align: center;
}

/* Date of birth */
.dob {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 10px;
}

.dob__select {
    width: 100%;
    height: 58px;
    padding: 0 32px 0 16px;
    border: 1px solid var(--c-border-input);
    border-radius: var(--radius-input);
    background: var(--c-white) url("../images/chevron-down.svg") no-repeat right 12px center / 14px 14px;
    font-size: 16px;
    font-weight: 600;
    color: var(--c-text);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: 0;
}

.dob__select:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(1, 175, 116, 0.15);
}

.dob__select.error {
    border-color: var(--c-error);
}

/* Info note */
.note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--radius-input);
    background: var(--c-bg-soft);
    font-size: 14px;
    line-height: 1.55;
    color: var(--c-text-2);
}

.note img {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Secure note */
.secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--c-muted);
    text-align: center;
}

.secure-note img {
    flex-shrink: 0;
}

/* TCPA */
.tcpa {
    display: block;
    font-size: 12px;
    line-height: 1.6;
    color: var(--c-muted-2);
}

.tcpa a {
    color: var(--c-primary-dark);
}

/* Email suggestion ("Did you mean…") */
#email-suggestion {
    display: none;
    font-size: 13px;
    color: var(--c-muted);
}

.suggestion_email {
    font-weight: 700;
    color: var(--c-text);
}

.suggestion_link {
    color: var(--c-primary-dark);
    font-weight: 700;
}

/* Email domain chips (jQuery UI autocomplete) */
.ui-autocomplete.ui-menu {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0 0;
    margin: 0;
    list-style: none;
    background: transparent;
    border: none;
    box-shadow: none;
    position: static !important;
    width: auto !important;
    z-index: auto;
}

.ui-autocomplete:empty {
    padding: 0;
}

.ui-autocomplete .ui-menu-item {
    margin: 0;
    list-style: none;
}

.ui-autocomplete .ui-menu-item-wrapper {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--c-primary);
    border-radius: 999px;
    background: var(--c-white);
    font-size: 14px;
    font-weight: 600;
    color: var(--c-deep);
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s;
}

.ui-autocomplete .ui-menu-item-wrapper:hover,
.ui-autocomplete .ui-menu-item-wrapper.ui-state-active {
    background: var(--c-primary-soft);
}

.ui-helper-hidden-accessible {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
}

/* =====================================SQUARE FEET===================================== */

.sqft {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 28px 28px 24px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-card);
    background: linear-gradient(to bottom, #f7fcfa, var(--c-white) 60%);
}

.sqft__display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.sqft__step {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: 1px solid var(--c-border-input);
    border-radius: 50%;
    background: var(--c-white);
    transition: border-color 0.15s;
}

.sqft__step:hover {
    border-color: var(--c-primary);
}

.sqft__value-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 180px;
}

.sqft__value-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
}

.sqft__value {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.44px;
    color: var(--c-deep);
}

.sqft__unit {
    font-size: 17px;
    font-weight: 700;
    color: var(--c-muted);
}

.sqft__tag {
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--c-primary-soft);
    font-size: 13px;
    font-weight: 700;
    color: var(--c-primary-dark);
    white-space: nowrap;
}

.sqft__slider {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.range {
    --fill: 33.3%;
    width: 100%;
    height: 32px;
    margin: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.range:focus {
    outline: none;
}

.range::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 8px;
    background: linear-gradient(to right, var(--c-primary) 0, var(--c-primary) var(--fill), var(--c-border) var(--fill), var(--c-border) 100%);
}

.range::-moz-range-track {
    height: 8px;
    border-radius: 8px;
    background: linear-gradient(to right, var(--c-primary) 0, var(--c-primary) var(--fill), var(--c-border) var(--fill), var(--c-border) 100%);
}

.range::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
    margin-top: -10px;
    border: 3px solid var(--c-primary);
    border-radius: 50%;
    background: var(--c-white);
    box-shadow: 0 4px 12px rgba(1, 56, 46, 0.2);
    -webkit-appearance: none;
}

.range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border: 3px solid var(--c-primary);
    border-radius: 50%;
    background: var(--c-white);
    box-shadow: 0 4px 12px rgba(1, 56, 46, 0.2);
}

.range:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px rgba(1, 175, 116, 0.25);
}

.sqft__ticks {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-muted-3);
}

.sqft__presets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.preset {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 6px 14px;
    border: 1px solid var(--c-border-input);
    border-radius: var(--radius-input);
    background: var(--c-white);
    text-align: center;
    transition: border-color 0.15s, background-color 0.15s;
}

@media (hover: hover) {
    .preset:hover {
        border-color: var(--c-primary);
        box-shadow: inset 0 0 0 1px var(--c-primary);
        background: var(--c-primary-soft);
    }
}

.preset.is-selected {
    border-color: var(--c-primary);
    box-shadow: inset 0 0 0 1px var(--c-primary);
    background: var(--c-primary-soft);
}

.preset__value {
    font-size: 16px;
    font-weight: 800;
    color: var(--c-deep);
}

.preset__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--c-muted-2);
}

/* =====================================TRUST (STEP 1)===================================== */

.trust {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding-top: 10px;
}

.trust-strip {
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid #eceaf1;
    border-radius: 14px;
    background: #fafafc;
    overflow: hidden;
}

.trust-strip__item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    font-family: var(--font-alt);
    font-size: clamp(10.5px, 3vw, 12.5px);
    font-weight: 700;
    color: #3e3b48;
    white-space: nowrap;
}

.trust-strip__item + .trust-strip__item {
    border-left: 1px solid #eceaf1;
}

.trust-strip__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 6px;
}

.trust-strip__icon--purple { background: #eeeafb; }
.trust-strip__icon--green  { background: #e6f4ec; }
.trust-strip__icon--orange { background: #fdf1e1; }

.reviews__wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding-top: 4px;
}

.reviews__img--google img {
    width: auto;
    height: clamp(40px, 11vw, 50px);
    cursor: pointer;
}

.reviews__divider {
    width: 1px;
    height: 30px;
    background: #eceaf1;
}

.reviews__img--bbb {
    margin: -10px 0;
}

.reviews__img--bbb img {
    width: auto;
    height: clamp(58px, 16vw, 74px);
}

/* =====================================FOOTER===================================== */

.footer {
    flex-shrink: 0;
    border-top: 1px solid var(--c-border);
    background: var(--c-bg-soft);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 100px;
    text-align: center;
}

.footer__logo img {
    width: 181px;
    height: 44px;
}

.footer__text {
    max-width: 900px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--c-muted);
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
}

.footer__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-primary-dark);
}

.footer__copyright {
    font-size: 13px;
    color: var(--c-muted-3);
}

/* =====================================EXIT POPUP===================================== */

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(28, 49, 62, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 100;
}

.overlay.active,
.exit__popup.active {
    opacity: 1;
    visibility: visible;
}

.exit__popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 28px);
    max-width: 447px;
    display: flex;
    flex-direction: column;
    padding: 20px 24px 24px;
    border-radius: var(--radius-card);
    background: var(--c-white);
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    z-index: 101;
    transition: 0.3s;
}

.close__btn {
    align-self: flex-end;
    width: 24px;
    height: 24px;
    color: var(--c-muted-2);
}

.exit__popup__header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 4px 0 22px;
}

.popup__title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.22;
    color: var(--c-text);
}

.popup__descr {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--c-muted);
}

.popup__btns {
    display: flex;
    gap: 10px;
}

.popup__btns .btn,
.popup__btns .btn-outline {
    flex: 1 1 50%;
    height: 52px;
    margin: 0;
    font-size: 15px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--c-border-input);
    border-radius: var(--radius-btn);
    background: var(--c-white);
    font-weight: 800;
    color: var(--c-text);
}

.btn-outline:hover {
    border-color: var(--c-primary);
}

/* =====================================REVIEWS MODAL===================================== */

.reviews-modal {
    display: none;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(28, 49, 62, 0.5);
    z-index: 100;
    overflow-y: auto;
}

.reviews-modal--open {
    display: flex;
}

.reviews-modal__card {
    position: relative;
    width: 100%;
    max-width: 706px;
    padding: 24px;
    border-radius: var(--radius-card);
    background: var(--c-white);
}

.reviews-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.reviews-modal__brand {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.reviews-modal__brand-top {
    display: flex;
    align-items: center;
    gap: 9px;
}

.reviews-modal__brand-name {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--c-text);
}

.reviews-modal__brand-subtitle,
.reviews-modal__rating-max,
.reviews-modal__rating-count,
.reviews-modal__item-date {
    color: var(--c-muted-2);
}

.reviews-modal__brand-subtitle {
    font-size: 16px;
    font-weight: 500;
}

.reviews-modal__rating {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reviews-modal__rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviews-modal__rating-score {
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    color: var(--c-text);
}

.reviews-modal__rating-stars {
    display: flex;
    align-items: center;
    gap: 3px;
}

.reviews-modal__rating-max {
    font-size: 18px;
    font-weight: 600;
}

.reviews-modal__rating-count {
    font-size: 15px;
    font-weight: 600;
}

.reviews-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    color: var(--c-muted-2);
}

.reviews-modal__list {
    display: flex;
    flex-direction: column;
}

.reviews-modal__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--c-border);
}

.reviews-modal__item:first-child {
    border-top: 1px solid var(--c-border);
}

.reviews-modal__item:last-child {
    border-bottom: none;
    padding-bottom: 4px;
}

.reviews-modal__item-avatar {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--c-border);
    overflow: hidden;
}

.reviews-modal__item-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.reviews-modal__item-body {
    flex: 1;
    min-width: 0;
}

.reviews-modal__item-name {
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 700;
    color: var(--c-text);
}

.reviews-modal__item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.reviews-modal__item-stars-img {
    height: 16px;
}

.reviews-modal__item-date {
    font-size: 13px;
    font-weight: 500;
}

.reviews-modal__item-text {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--c-text-2);
}

/* =====================================THANK YOU PAGES===================================== */

.typ {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 32px 24px 120px;
}

.typ--narrow {
    max-width: 720px;
}

.typ__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.typ__check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--c-primary);
}

.typ__title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.76px;
    color: var(--c-text);
    text-wrap: balance;
}

.typ__subtitle {
    font-size: 18px;
    font-weight: 600;
    color: var(--c-text-2);
}

.typ__lead {
    max-width: 760px;
    font-family: var(--font-alt);
    font-size: 25px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.5px;
    color: #23212b;
}

.typ__lead span {
    color: var(--c-primary-dark);
}

.typ__spinner {
    width: 42px;
    height: 42px;
    border-width: 4px;
    border-color: var(--c-primary-soft);
    border-top-color: var(--c-primary);
}

.offer {
    display: flex;
    align-items: stretch;
    border: 1px solid #e7e5ec;
    border-radius: 24px;
    background: var(--c-white);
    box-shadow: 0 14px 36px rgba(35, 33, 43, 0.05);
    overflow: hidden;
}

.offer__body {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    padding: 36px;
    font-family: var(--font-alt);
}

.offer__title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.52px;
    color: #23212b;
}

.offer__descr {
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.55;
    color: #6e6b78;
}

.offer__facts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.offer__fact {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #4a4855;
}

.offer__fact strong {
    font-weight: 800;
    color: #23212b;
}

.offer__fact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--c-primary-soft);
}

.offer__cta {
    height: 54px;
    margin-top: 4px;
    border-radius: 13px;
    box-shadow: none;
    font-family: var(--font-alt);
    font-size: 15.5px;
    letter-spacing: 0.155px;
}

.offer__photo {
    position: relative;
    display: flex;
    flex: 1 1 0;
    align-items: flex-end;
    min-width: 0;
    min-height: 240px;
    padding: 16px;
    background: #dcd8e6;
    overflow: hidden;
}

.offer__photo > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer__photo--car > img {
    object-position: 100% 62%;
}

.offer__caption {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    font-family: var(--font-alt);
    font-size: 13.5px;
    font-weight: 700;
    color: #23212b;
}

.offer__caption img {
    flex-shrink: 0;
}

.typ__sources {
    margin-top: -2px;
    font-family: var(--font-alt);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.5;
    color: #9a97a6;
    text-align: center;
}

.stats {
    display: flex;
    gap: clamp(8px, 2vw, 14px);
}

.stat {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    padding: 22px 8px;
    border: 1px solid #e7e5ec;
    border-radius: 18px;
    background: var(--c-white);
    font-family: var(--font-alt);
    text-align: center;
}

.stat__value {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 28px;
    font-weight: 800;
    color: var(--c-primary);
}

.stat__value--dark {
    color: #23212b;
}

.stat__label {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: #6e6b78;
}

.typ-state[hidden] {
    display: none;
}

/* =====================================MEDIA===================================== */

@media (max-width: 900px) {
    .footer__inner {
        padding-left: 40px;
        padding-right: 40px;
    }

    .offer {
        flex-direction: column;
    }

    .offer__photo {
        flex: 0 0 auto;
        min-height: 260px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 24px;
    }

    .site-header__inner {
        min-height: 71px;
    }

    .site-header__logo img {
        width: 134px;
        height: 33px;
    }

    .badge-free {
        padding: 8px 12px;
        font-size: 12px;
    }

    .location-banner strong {
        display: block;
    }

    .options--2-1,
    .options--3-1 { --cols: 1; }
    .options--3-2,
    .options--4-2 { --cols: 2; }
    .options--5-3 { --cols: 3; }

    .fields {
        flex-direction: column;
    }

    .fields > .zip__input__wrapper--wide {
        flex: 1 1 auto;
    }

    .sqft {
        padding: 20px 16px;
    }

    .sqft__display {
        gap: 12px;
    }

    .sqft__value-wrap {
        min-width: 0;
    }

    .sqft__value {
        font-size: 40px;
    }

    .sqft__presets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .secure-note {
        align-items: flex-start;
        text-align: left;
    }

    .footer__inner {
        gap: 22px;
        padding: 40px 23px;
    }

    .footer__logo img {
        width: 160px;
        height: 39px;
    }

    .trust-strip__item {
        gap: 5px;
        padding: 9px 8px;
    }

    .trust-strip__icon {
        width: 18px;
        height: 18px;
    }

    .reviews__wrapper {
        gap: 20px;
    }

    .typ {
        padding-top: 24px;
        padding-bottom: 60px;
    }

    .typ__title {
        font-size: 30px;
    }

    .typ__subtitle {
        font-size: 16px;
    }

    .typ__lead {
        font-size: 20px;
    }

    .offer__body {
        padding: 24px 20px;
    }

    .offer__title {
        font-size: 22px;
    }

    .stat__value {
        font-size: 22px;
    }

    .stat__label {
        font-size: 12px;
    }

    .reviews-modal {
        padding: 14px;
    }

    .reviews-modal__card {
        padding: 18px;
    }

    .reviews-modal__rating-score {
        font-size: 34px;
    }
}

@media (max-width: 374px) {
    .container,
    .funnel {
        padding-left: 16px;
        padding-right: 16px;
    }

    .step__title {
        font-size: 30px;
    }

    .badge-free span {
        display: none;
    }

    .options--5-3 .option {
        padding-left: 8px;
        padding-right: 8px;
    }
}
