@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@font-face {
  font-display: swap;
  font-family: 'bitum';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/bitum-regular.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'bitum';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/bitum_bold.woff2') format('woff2');
}

:root {
    --white: #fff;
    --white-light: #F7F9FC;
    --grey-light: #E0E0E0;
    --accent: #1D7BFF;
    --darck: #000;
    --gray: #626262;
}
html {
    height: 100%;
}
html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}
body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    color: var(--darck);
    background: var(--white);

    font-family: 'bitum';
    font-size: 16px;
    font-weight: normal;
}
*, *::after, *::before {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
input, button, :focus {
    outline: none;
    border: none;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}
::placeholder {
    font-weight: 400;
    font-size: 20px;
    line-height: 140%;
    text-transform: uppercase;
    color: var(--gray);
}
svg { flex-shrink: 0; }
a {
    color: inherit;
    transition: color .26s ease;
}
a:hover { color: var(--accent); }




main {
    display: grid;
    grid-template-columns: 1fr;
    height: 100vh;
    width: 100%;
}
.qwiz-fon {
    padding: 32px;
    flex-grow: 1;
    height: max-content;
    min-height: 144px;

    background: var(--gray) url('/assets/templates/partners-realtors/img/qwiz/qwiz-fon.jpg') no-repeat center / cover scroll;
}
.qwiz-fon,
.qwiz-body {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    gap: 48px;
}
@media (min-width: 600px) {
    .qwiz-fon {
        min-height: 260px;
    }
}
@media (min-width: 900px) {
    main { grid-template-columns: 32.87% auto; }
    .qwiz-fon {
        min-height: auto;
        height: 100%;
    }
}
@media (min-width: 1440px) { main { grid-template-columns: 46.25% auto; } }
@media (min-width: 1750px) { main { grid-template-columns: 57.29% auto; } }



.qwiz-fon > a,
.qwiz-fon > p {
    color: var(--white) !important;
    font-family: 'Inter';
    font-size: 12px;
    font-weight: 400;
}
.qwiz-fon > a { text-decoration: underline; }






.qwiz-body {
    padding: 40px;
}
.qwiz-body--container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.qwiz-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: min-content min-content;
    gap: 16px 10px;
}
.qwiz-top > #qwizPercent { text-align: end; }
.qwiz-seg {
    height: 8px;
    width: 100%;
    border-radius: 50px;
    background: var(--white-light);
}
.qwiz-seg.active { background: var(--accent); }





.qwiz-stage--list,
.qwiz-stage--title {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.qwiz-stage--title > h1,
.qwiz-stage--title > h2,
.qwiz-stage--title > h2 > span
.qwiz-stage--title > h1 > span {
    font-size: 24px;
    font-weight: bold;
}
.qwiz-stage--title > h1 > span,
.qwiz-stage--title > h2 > span {
    color: var(--accent) !important;
}
.qwiz-stage--list > p,
.qwiz-stage--title > p {
    font-size: 18px;
    font-weight: bold;
}
.qwiz-stage--title > p.grey {
    color: #AEAEAE !important;
}





.qwiz-stage--list > ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.qwiz-stage--list > ul > li {
    position: relative;
    padding-left: 20px;
}
.qwiz-stage--list > ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: calc(50% - 4px); 
    width: 8px;
    height: 8px;
    background-image: url('data:image/svg+xml;utf8,<svg width="8" height="8" viewBox="0 0 8 8" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="8" height="8" fill="%231D7BFF"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}



.qwiz-stage--next {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.qwiz-stage--next > span {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    gap: 8px;
    color: var(--gray);
}




.qwiz-rooms {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    place-items: center;
}
.qwiz-room {
    max-width: 350px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--grey-light);
    background-color: var(--white-light);
    cursor: pointer;
    text-align: center;
    overflow: hidden;
    transition: border-color .26s ease, transform .26s ease;
}
.qwiz-room:hover input[type="radio"],
.qwiz-room:hover { border-color: color-mix(in srgb, var(--accent) 50%, white 50%); }
.qwiz-room:hover img { transform: scale(1.08); }
.qwiz-room.active { border-color: var(--accent); }
.qwiz-room.active:hover img { transform: scale(1) !important; }
.qwiz-room > img {
    max-height: 154px;
    height: 100%;
    padding: 18px;
    transition: transform .26s ease;
    pointer-events: none;
    user-select: none;
}
.qwiz-room > div {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 12px;
    gap: 10px;
    background-color: var(--white);
}
.qwiz-room input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin: 0;
  border: 1px solid var(--grey-light);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: all .15s ease;
}
.qwiz-room input[type="radio"]:checked {
  border-color: var(--accent);
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none'%3E%3Cpath fill='%23fff' d='m8.25 14.85-3.208-3.208a.9.9 0 0 0-1.284 0 .9.9 0 0 0 0 1.283l3.841 3.84a.913.913 0 0 0 1.293 0l9.716-9.707a.904.904 0 0 0-.294-1.481.9.9 0 0 0-.989.198z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px;
}
.qwiz-error { color: #dc2626; margin-bottom: 10px; }






.qwiz-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 56px;
    padding: 0 24px;
    background: var(--accent);
    color: var(--white);
    border-radius: 100px;
    font-size: 18px;
    cursor: pointer;
    transition: gap .26s ease, filter .26s ease;
}
.qwiz-btn:hover {
    gap: 24px;
    filter: brightness(1.2);
}
.qwiz-btn.messanger {
    background: #E6E9ED;
    color: var(--darck);
    margin-bottom: 8px;
}
.qwiz-btn.messanger:hover {
    filter: brightness(0.9);
}





.qwiz-input-cont > label {
    font-weight: bold;
    font-size: 16px;
}
.qwiz-input-cont > input {
    width: 100%;
    height: 56px;
    padding: 0 24px;
    border: 1px solid var(--darck);
    border-radius: 30px;
    box-sizing: border-box;
    margin: 10px 0;
    font-size: 16px;
}


.qwiz-body form > .qwiz-btn { margin-top: 20px; }


.qwiz-agree {
    display: inline-flex;
    align-items: flex-start;
    cursor: pointer;
    font-family: 'Inter';
    font-size: 12px !important;
    font-weight: 500 !important;
}
.qwiz-agree > input {
    position: absolute;
    overflow: hidden;
}
.qwiz-agree .agree-check__on {
    min-width: 16px;
    min-height: 16px;
    border: 1px solid #AEAEAE;
    margin-right: 12px;
    position: relative;
    background-color: var(--white);
    transition: border-color 0.2s ease;
}
.qwiz-agree:hover .agree-check__on { border-color: var(--accent); }
.qwiz-agree > input:checked + .agree-check__on { border-color: var(--accent); }
.qwiz-agree > input:checked + .agree-check__on::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 10px; height: 10px;
    background-image: url('data:image/svg+xml;utf8,<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="10" height="10" fill="%231D7BFF"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}
.qwiz-agree span a { text-decoration: underline; }
.qwiz-agree span a:hover { text-decoration: none; }





.qwiz-gift {
    display: flex;
    align-items: center;
    width: fit-content;
    gap: 20px;
    padding: 24px;
    background-color: var(--white-light);
    border: 1px solid var(--grey-light);
    border-radius: 8px;
}
.qwiz-gift hr {
    width: 1;
    height: 100%;
    border: none;
    border-left: 1px solid var(--grey-light);
}
.qwiz-gift p {
    font-size: 18px;
    font-weight: bold;
    margin-top: 4px;
}



@media (min-width: 768px) {
    .qwiz-fon {
        padding: 24px;
    }
    .qwiz-stage--list,
    .qwiz-stage--title {
        gap: 24px;
    }
    .qwiz-stage--title > h1,
    .qwiz-stage--title > h1 > span {
        font-size: 32px;
    }

    .qwiz-rooms {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
@media (min-width: 1024px) {
    .qwiz-body {
        padding: 70px;
    }
    .qwiz-rooms {
        gap: 20px;
    }
}
@media (min-width: 1440px) {
    .qwiz-body--container {
        gap: 48px;
    }
    .qwiz-stage--title > h1,
    .qwiz-stage--title > h1 > span {
        font-size: 48px;
    }
    .qwiz-stage--title > h2,
    .qwiz-stage--title > h2 > span {
        font-size: 36px;
    }
    .qwiz-stage--list > p,
    .qwiz-stage--title > p {
        font-size: 20px;
    }
    .qwiz-gift p {
        font-size: 20px;
    }
    .qwiz-stage--list li {
        font-size: 18px;
    }
    .qwiz-input-cont > label,
    .qwiz-input-cont > input {
        font-size: 18px;
    }
}