/* =====================================RESET===================================== */

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

html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, img, ul, li,
form, label, footer, header, section, aside, main, button, input {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

ul {
    list-style: none;
}

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

button {
    background: none;
    cursor: pointer;
    color: inherit;
}

[hidden] {
    display: none !important;
}

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

:root {
    --c-primary: #6A4FD8;
    --c-primary-hover: #5A40C4;
    --c-primary-soft: #F4F1FD;
    --c-primary-soft-2: #F6F4FF;
    --c-primary-option: #6B52D9;
    --c-text: #23212B;
    --c-text-strong: #1C1B29;
    --c-text-2: #3E3B48;
    --c-text-3: #4A4855;
    --c-muted: #6E6B78;
    --c-muted-2: #8C8997;
    --c-muted-3: #A3A0AE;
    --c-border: #E7E5EC;
    --c-border-input: #E1DFE8;
    --c-border-option: #E1E0EA;
    --c-border-hover: #CFCCD8;
    --c-divider: #ECEAF1;
    --c-bg: #F2F2F5;
    --c-bg-input: #FAFAFC;
    --c-track: #E4E2EA;
    --c-error: #E5484D;
    --c-white: #FFFFFF;
    --radius-card: 22px;
    --radius-ctrl: 13px;
    --radius-option: 14px;
    --shadow-card: 0 14px 36px rgba(35, 33, 43, 0.05);
    --font: "Manrope", sans-serif;
}

body {
    font-family: var(--font);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: normal;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1 0 auto;
}

body.loading {
    overflow: hidden;
}

a {
    color: var(--c-primary);
    text-decoration: none;
}

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

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

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

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

.loader-spinner,
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--c-track);
    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 {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header__logo img {
    width: 141px;
    height: 46px;
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--c-muted);
    font-size: 12.5px;
    font-weight: 600;
}

/* =====================================PROGRESS===================================== */

.progress {
    padding-top: 20px;
    padding-bottom: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

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

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

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

.progress__fill {
    width: 4%;
    height: 100%;
    border-radius: 99px;
    background: var(--c-primary);
    transition: width 0.35s;
}

/* =====================================FUNNEL LAYOUT===================================== */

.funnel {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding-top: 16px;
    padding-bottom: 48px;
}

.form-card {
    flex: 0 1 614px;
    min-width: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 31px;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.sidebar {
    flex: 1 1 260px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.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 {
    display: none;
    flex-direction: column;
    gap: 18px;
}

.step.active {
    display: flex;
}

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

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

.step__head--center {
    text-align: center;
}

.main__title {
    font-size: 27px;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: var(--c-text);
}

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

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

.btns__wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn__default {
    flex: 1 1 auto;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 20px;
    border-radius: var(--radius-ctrl);
    background: var(--c-primary);
    color: var(--c-white);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: background 0.2s, opacity 0.2s;
}

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

.btn__default.disabled,
.btn__default:disabled {
    opacity: 0.5;
}

.btn__icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.btn__secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: var(--radius-ctrl);
    border: 1.5px solid var(--c-border-input);
    background: var(--c-white);
    color: var(--c-muted);
    font-family: var(--font);
    transition: border-color 0.2s, color 0.2s;
}

.btn__secondary:hover {
    border-color: var(--c-border-hover);
    color: var(--c-text);
}

@keyframes hgPulse {
    0%   { box-shadow: 0 0 0 0 rgba(106, 79, 216, 0.45); }
    70%  { box-shadow: 0 0 0 12px rgba(106, 79, 216, 0); }
    100% { box-shadow: 0 0 0 0 rgba(106, 79, 216, 0); }
}

.btn-pulse {
    animation: hgPulse 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: btn-spin 0.6s linear infinite;
}

.btn-loading .btn__icon {
    display: none;
}

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

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

.group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zip__input__wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group input {
    width: 100%;
    height: 56px;
    padding: 0 18px;
    border: 1.5px solid var(--c-border-input);
    border-radius: var(--radius-ctrl);
    background: var(--c-bg-input);
    color: var(--c-text);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    outline: none;
    transition: border-color 0.16s, background 0.16s;
}

.input-group input::placeholder {
    color: var(--c-muted-3);
    font-weight: 400;
}

.input-group input:focus {
    border-color: var(--c-primary);
    background: var(--c-white);
}

.input-group.success input {
    border-color: var(--c-primary);
}

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

/* ZIP */
.input-group--zip input {
    height: 60px;
    padding: 0 52px;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.input-group--zip input::placeholder {
    letter-spacing: 0;
}

.input-group--zip.is-valid input {
    border-color: var(--c-primary);
}

.input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    border-radius: 99px;
    background: var(--c-primary) url("../images/check.svg") center / 15px 15px no-repeat;
    box-shadow: 0 4px 10px rgba(106, 79, 216, 0.3);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}

.input-group.is-valid .input-icon,
.input-group.success .input-icon {
    opacity: 1;
    transform: scale(1);
}

.input-group.error .input-icon {
    opacity: 0;
}

/* Address (leading pin icon) */
.input-group__lead {
    position: absolute;
    left: 18px;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    pointer-events: none;
}

.input-group--icon input {
    padding-left: 46px;
}

/* Phone */
.input-group--phone input {
    padding-left: 92px;
}

.phone__prefix {
    position: absolute;
    left: 16.5px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right: 10px;
    border-right: 1px solid var(--c-border-input);
    color: var(--c-text-3);
    font-size: 15px;
    font-weight: 700;
    pointer-events: none;
}

.phone__prefix img {
    width: 20px;
    height: 14px;
}

/* Errors */
.zip-error {
    display: none;
    padding-top: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--c-error);
}

span.error,
span.custom-error {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--c-error);
}

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

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

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

/* Email domain chips (jQuery UI autocomplete) */
.ui-autocomplete.ui-menu {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 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-block;
    padding: 7px 12px;
    border: 1.5px solid var(--c-border-input);
    border-radius: 99px;
    background: var(--c-white);
    color: var(--c-text-3);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

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

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

/* Google Places dropdown (address suggestions) */
.pac-container {
    margin-top: 6px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-ctrl);
    box-shadow: 0 12px 28px rgba(35, 33, 43, 0.08);
    font-family: var(--font);
    overflow: hidden;
}

.pac-container::after {
    display: none;
}

.pac-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    padding: 12px 15px 12px 41px;
    border-top: none;
    border-bottom: 1px solid #F1F0F4;
    color: #9A97A6;
    font-size: 12px;
    font-weight: 500;
    line-height: normal;
    cursor: pointer;
}

.pac-item:last-child {
    border-bottom: none;
}

.pac-item:hover,
.pac-item-selected {
    background: #F6F4FC;
}

.pac-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    width: 15px;
    height: 15px;
    margin: -7.5px 0 0;
}

/* Google injects its own sprite (.pac-icon / .hdpi .pac-icon / .pac-icon-marker) after our CSS */
.pac-container .pac-icon,
.pac-container.hdpi .pac-icon,
.hdpi .pac-icon {
    background-image: url("../images/pinAddress.svg") !important;
    background-position: center !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}

.pac-item-query {
    color: var(--c-text);
    font-size: 14px;
    font-weight: 700;
    padding-right: 0;
}

.pac-matched {
    font-weight: 800;
}

/* =====================================STEP 1: TRUST===================================== */

.trust-strip {
    align-self: center;
    display: flex;
    align-items: stretch;
    max-width: 100%;
    background: var(--c-bg-input);
    border: 1px solid var(--c-divider);
    border-radius: 14px;
    overflow: hidden;
}

.trust-strip__item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    color: var(--c-text-2);
    font-size: clamp(10.5px, 2.9vw, 12.5px);
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.trust-strip__item + .trust-strip__item {
    border-left: 1px solid var(--c-divider);
}

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

.trust-strip__icon img {
    width: 12px;
    height: 12px;
}

.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 {
    height: clamp(40px, 10vw, 50px);
    width: auto;
    cursor: pointer;
}

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

.reviews__divider {
    width: 1px;
    height: 30px;
    background: var(--c-divider);
}

/* =====================================STEP 2-3: CHECKBOXES===================================== */

.checkbox__list__wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.btn__checkbox {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px 18px;
    background: var(--c-white);
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius-option);
    cursor: pointer;
    user-select: none;
    transition: border-color 0.16s, background 0.16s;
}

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

.btn__checkbox--selected {
    background: var(--c-primary-soft);
    border-color: var(--c-primary);
}

.checkbox__real {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.checkbox__box {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border: 1.5px solid var(--c-border);
    border-radius: 7px;
    background: var(--c-white) center / 13px 13px no-repeat;
    transition: background-color 0.16s, border-color 0.16s;
}

.btn__checkbox--selected .checkbox__box {
    background-color: var(--c-primary);
    background-image: url("../images/check.svg");
    border-color: var(--c-primary);
}

.checkbox__real:focus-visible ~ .checkbox__box {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
}

.btn__checkbox__label {
    flex: 1 1 auto;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--c-text);
}

/* Step 3 grid cards */
.btn__checkbox--grid {
    align-items: flex-start;
    min-height: 84px;
    padding: 15px 8px 15px 17px;
    gap: 14px;
    border: 1px solid var(--c-border-option);
    box-shadow: inset 0 0 0 0 var(--c-primary-option);
}

.btn__checkbox--grid.btn__checkbox--selected {
    background: var(--c-primary-soft-2);
    border-color: var(--c-primary-option);
    box-shadow: inset 0 0 0 1px var(--c-primary-option);
}

.btn__checkbox--grid .checkbox__box {
    width: 24px;
    height: 24px;
    border-width: 1px;
    border-color: #C9C8D4;
    background-size: 14px 14px;
}

.btn__checkbox--grid.btn__checkbox--selected .checkbox__box {
    background-color: var(--c-primary-option);
    border-color: var(--c-primary-option);
    background-image: url("../images/check-box.svg");
}

.btn__checkbox--grid .btn__checkbox__label {
    font-size: 16px;
    font-weight: 600;
    line-height: 21.6px;
    color: var(--c-text-strong);
}

/* =====================================STEP 4-7: RADIO LIST===================================== */

.list__select__wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.btn__list {
    position: relative;
    display: block;
    cursor: pointer;
    user-select: none;
}

.btn__list input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.btn__list span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    padding: 18px 20px;
    background: var(--c-white);
    border: 1px solid var(--c-border-option);
    border-radius: var(--radius-option);
    color: var(--c-text-strong);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.16s, background 0.16s, box-shadow 0.16s;
}

.btn__list:hover span {
    border-color: var(--c-primary-option);
}

.btn__list input[type="radio"]:checked + span {
    background: var(--c-primary-soft-2);
    border-color: var(--c-primary-option);
    box-shadow: inset 0 0 0 1px var(--c-primary-option);
}

.btn__list input[type="radio"]:focus-visible + span {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
}

/* =====================================STEP 8: CONSENT===================================== */

.checkbox__group label {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    cursor: pointer;
    user-select: none;
}

.checkbox__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.checkbox__custom {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    flex-shrink: 0;
    border: 1.5px solid var(--c-border-hover);
    border-radius: 6px;
    background: var(--c-white) center / 12px 12px no-repeat;
    transition: background-color 0.16s, border-color 0.16s;
}

.checkbox__input:checked + .checkbox__custom {
    background-color: var(--c-primary);
    background-image: url("../images/check-consent.svg");
    border-color: var(--c-primary);
}

.checkbox__input:focus-visible + .checkbox__custom {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
}

.checkbox__text {
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--c-text-3);
}

/* =====================================STEP 8-10: SECURE NOTE===================================== */

.secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
}

.secure-note img {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.secure-note p {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--c-muted);
}

/* =====================================STEP 11: TCPA===================================== */

.step__text {
    display: block;
    font-size: 10.5px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--c-muted-2);
}

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

.tcpa__group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.tcpa__group .step__text {
    cursor: default;
}

.tcpa__checkbox {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    border: 1.5px solid var(--c-border-hover);
    border-radius: 6px;
    background: var(--c-white) center / 12px 12px no-repeat;
    cursor: pointer;
    transition: background-color 0.16s, border-color 0.16s;
}

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

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

.tcpa__checkbox:checked {
    background-color: var(--c-primary);
    background-image: url("../images/check-consent.svg");
    border-color: var(--c-primary);
}

/* Only the required boxes that are still unchecked (the consent gate marks them
   with aria-invalid="true"). The optional SMS opt-in is never highlighted. */
.tcpa__wrapper.error .tcpa__checkbox[aria-invalid="true"] {
    border-color: var(--c-error);
}

.tcpa-error {
    display: none;
    padding-top: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--c-error);
}

.tcpa__wrapper.error .tcpa-error {
    display: block;
}

/* =====================================SIDEBAR===================================== */

.side-card {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: 18px;
    overflow: hidden;
}

.rating-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
}

.rating-card__top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-card__score {
    font-size: 28px;
    font-weight: 800;
    color: var(--c-text);
}

.rating-card__meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.rating-card__stars {
    display: flex;
    gap: 1.5px;
}

.rating-card__stars img {
    width: 14px;
    height: 14px;
}

.rating-card__caption,
.rating-card__fact-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--c-muted-2);
}

.rating-card__facts {
    display: flex;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid #F1F0F4;
}

.rating-card__facts li {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
}

.rating-card__fact-value {
    font-size: 19px;
    font-weight: 800;
    color: var(--c-primary);
}

.privacy-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
}

.privacy-card__icon {
    width: 22px;
    height: 22px;
    margin-top: 1px;
    flex-shrink: 0;
}

.privacy-card__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.privacy-card__title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--c-text);
}

.privacy-card__descr {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--c-muted-2);
}

.match-card {
    background: #F1EEFB;
    border-color: #E2DCF7;
}

.match-card__photo {
    height: 150px;
}

.match-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-card__body {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px 18px;
}

.match-card__pin {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--c-white);
}

.match-card__pin img {
    width: 18px;
    height: 18px;
}

.match-card__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.match-card__title {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--c-text);
}

.match-card__descr {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    color: #5E5A6B;
}

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

.footer {
    background: var(--c-white);
    border-top: 1px solid var(--c-border);
}

.footer__wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 28px;
    padding-bottom: 34px;
}

.footer__logo img {
    width: 110px;
    height: 36px;
    opacity: 0.6;
}

.footer__text {
    max-width: 840px;
    font-size: 10.5px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--c-muted-2);
}

.footer__links__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

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

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

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

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

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(35, 33, 43, 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__secondary,
.popup__btns .btn__default {
    flex: 1 1 50%;
    width: auto;
    height: 52px;
    font-size: 15px;
    font-weight: 800;
}

.popup__btns .btn__secondary {
    color: var(--c-text);
}

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

.reviews-modal {
    display: none;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(35, 33, 43, 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;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--c-track);
    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 {
    display: flex;
    gap: 2px;
}

.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-3);
}

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

@media (max-width: 900px) {
    .funnel {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .form-card {
        flex: 0 0 auto;
    }

    .sidebar {
        flex: 0 0 auto;
    }
}

@media (max-width: 600px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .site-header__logo img {
        width: 123px;
        height: 40px;
    }

    .progress {
        padding-top: 12px;
    }

    .funnel {
        padding-top: 10px;
    }

    .form-card {
        padding: 17px;
        border-radius: 20px;
    }

    .step {
        gap: 12px;
    }

    .main__title {
        font-size: 22px;
        letter-spacing: -0.4px;
    }

    .step-1 .main__title {
        font-size: 20px;
    }

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

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

    .trust-strip__icon img {
        width: 10px;
        height: 10px;
    }

    .reviews__wrapper {
        gap: 19.5px;
    }

    .checkbox__grid__wrapper {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .btn__checkbox--grid {
        align-items: center;
        min-height: 56px;
    }

    .btn__list span {
        min-height: 56px;
        padding: 15px 16px;
    }

    .list__select__wrapper {
        gap: 10px;
    }

    .reviews-modal {
        padding: 14px;
    }

    .reviews-modal__card {
        padding: 18px;
    }

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

    .reviews-modal__rating-stars img {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 360px) {
    .secure-badge span {
        display: none;
    }

    .btn__default {
        font-size: 15px;
    }
}