/* ============================================================
   Квиз-попап Thai Traditions
   Префикс .tqz- чтобы не конфликтовать со стилями Aspro Max
   ============================================================ */
:root {
    --tqz-pink: #e5077e;
    --tqz-pink-dark: #b8005f;
    --tqz-dark: #1a1a1a;
    --tqz-gray: #6b6b6b;
    --tqz-bg-soft: #fbe9f2;
    --tqz-border: #e5077e;
    --tqz-radius: 16px;
}

/* ---------- Триггер (иконка в углу) ---------- */
.tqz-trigger {
    position: fixed;
    left: 24px;
    bottom: 24px;
    width: 84px;
    height: 84px;
    border: none;
    border-radius: 50%;
    background: var(--tqz-bg-soft);
    box-shadow: 0 6px 22px rgba(229, 7, 126, .35);
    cursor: pointer;
    z-index: 99990;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: tqz-bob 2.4s ease-in-out infinite;
}
.tqz-trigger__img {
    width: 54px;
    height: auto;
    display: block;
    animation: tqz-wiggle 2.4s ease-in-out infinite;
    transform-origin: 50% 80%;
}
.tqz-trigger__pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(229, 7, 126, .5);
    animation: tqz-pulse 2.2s ease-out infinite;
}
.tqz-trigger:hover { transform: scale(1.06); }
.tqz-trigger.is-hidden { display: none; }

@keyframes tqz-bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
@keyframes tqz-wiggle { 0%,88%,100%{transform:rotate(0)} 92%{transform:rotate(-9deg)} 96%{transform:rotate(9deg)} }
@keyframes tqz-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(229,7,126,.5); }
    70%  { box-shadow: 0 0 0 18px rgba(229,7,126,0); }
    100% { box-shadow: 0 0 0 0 rgba(229,7,126,0); }
}

/* ---------- Оверлей и модалка ---------- */
.tqz-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 10, 20, .55);
    z-index: 99991;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}
.tqz-overlay.is-open { display: block; }

.tqz-modal {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: #fff;
    border-radius: var(--tqz-radius);
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
    animation: tqz-in .3s ease;
    margin: auto;
    min-height: 725px;
}
@keyframes tqz-in { from{opacity:0; transform:translateY(20px)} to{opacity:1; transform:none} }

.tqz-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    color: var(--tqz-gray);
    cursor: pointer;
    z-index: 3;
}
.tqz-close:hover { color: var(--tqz-pink); }

/* ---------- Прогресс-бар ---------- */
.tqz-progress {
    text-align: center; margin-bottom:0;
    display: inline-block;
    width: 63%;
    padding: 0 82px;
}
.tqz-progress.is-hidden { display: none; }
.tqz-progress__label {
    color: var(--tqz-gray);
    font-size: 15px;
    margin: 8px 5px 2px;
}
.tqz-progress__bar {
    height: 20px;
    background: #eee5e9;
    border-radius: 20px;
    overflow: hidden;
}
.tqz-progress__fill {
    height: 100%;
    width: 20%;
    background: var(--tqz-pink);
    border-radius: 20px;
    transition: width .4s ease;
}
.tqz-progress__percent { color: var(--tqz-gray); font-size: 14px; margin-top: 2px; }

/* ---------- Экраны ---------- */
.tqz-screen { display: none; }
.tqz-screen.is-active { display: block; animation: tqz-fade .3s ease; }
.tqz-col.tqz-col--info {
    width: 60%;
    padding: 30px;
}
.mq-screen-2 .tqz-col.tqz-col--info {
    width: 50%;
}
.tqz-col.tqz-col--photo {
    width: calc(42% - 30px);
}
@keyframes tqz-fade { from{opacity:0} to{opacity:1} }

.tqz-cols { display: flex; gap: 30px; align-items: start; }
.tqz-col {  min-width: 0; }
.tqz-col--photo { text-align: center; }
.tqz-photo {
    max-width: 100%;
    height: auto;
    max-height: 660px;
    position: absolute;
    bottom: 0;
    left: 0;
}
.mq-screen-5 .tqz-cols {
    align-items: center;
}
.tqz-envelope { max-width: 100%; height: auto; max-height: 360px; }

.tqz-logo {
    max-width: 198px;
    height: auto;
    margin-bottom: 0px;
    padding: 25px 20px;
    display: inline-block;
    vertical-align: top;
}

.tqz-col--question {
    width:40%;
    margin-top: 50px;
    margin-bottom: 25px;
}
.mq-screen-3 {
    padding: 50px 25px;
}
.mq-screen-4 .tqz-consent__text {
    color: #000;
    font-weight: 400;
}
/* ---------- Типографика ---------- */
.mq-screen-5 .tqz-col h2.tqz-title {
    font-size: 74px;
    color: var(--tqz-pink);
}
.tqz-col h2.tqz-title {
    font-family: 'Bebas-Neue-Cyrillic';
    font-size: 53px;
    font-weight: 400;
    line-height: 48px;
    color: var(--tqz-dark);
    text-transform: uppercase;
    margin: 24px 0 16px;
}
.mq-screen-2 .tqz-col h2.tqz-title {
    font-size: 85px;
    line-height: 77px;
}

.tqz-title--wide {
    font-family: 'Bebas-Neue-Cyrillic';
    font-size: 85px;
    line-height: 77px;
    margin-bottom: 26px;
}
.tqz-title .tqz-accent, .tqz-accent { color: var(--tqz-pink); }
.tqz-dark { color: var(--tqz-dark); }
.tqz-title--split span { display: block; }
.tqz-text {
    font-family: 'Montserrat';
    font-size: 19px;
    line-height: 1.2;
    color: #333;
    margin: 0 0 14px;
}

.tqz-q-title {
    font-family: 'Bebas-Neue-Cyrillic';
    font-size: 36px;
    color: #000;
    font-weight: 400;
    line-height: 38px;
    margin-bottom: 0;
    text-transform: uppercase;
}
.tqz-q-sub { font-size: 17px; color: var(--tqz-gray); margin: 0 0 18px; }

/* ---------- Баннер-подарок ---------- */
.tqz-gift-banner {
    max-width: 85%;
    height: auto;
    margin: 24px 0 20px 0;
    margin-left: auto;
    margin-right: 0;
    border-radius: 14px;
    display: block;
}
.tqz-gift-banner--center { display: block; margin: 0 auto 22px; max-width: 520px; }

/* ---------- Кнопки ---------- */
.tqz-block-btn {
    text-align: center;
}
.tqz-modal .tqz-btn {
    display: inline-block;
    background: var(--tqz-pink);
    color: #fff;
    font-size: 19px;
    font-weight: 400;
    border: none;
    border-radius: 12px;
    padding: 20px 80px;
    cursor: pointer;
    transition: background .2s, transform .1s;
    text-decoration: none;
    text-align: center;

    margin-top: 12px;
}
.mq-screen-1 .tqz-btn {
    margin-left: 70px;
    padding: 20px 53px;
}
.tqz-btn:hover { color: #fff; }
.tqz-btn:active { transform: translateY(1px); }
.tqz-btn[disabled] { opacity: .6; cursor: default; }
.tqz-btn--link { display: block; margin-top: 14px; }
.tqz-btn__ico { margin-right: 8px; }

.tqz-actions { text-align: center; margin-top: 26px; }
.tqz-modal .tqz-hint { color: #bdbdbd; font-size: 15px; margin-top: 14px; }

/* ---------- Варианты ответов ---------- */
.tqz-options {
    display: grid;
    gap: 16px;
    margin-top: 6px;
}
.mq-screen-3 .tqz-options {
    max-width: 735px;
    margin: 45px auto;
}
.mq-screen-3 .tqz-dark,
.mq-screen-4 .tqz-dark {
    display:block;
}
.mq-screen-3 .tqz-option {
    padding: 7px 20px;
    min-height: 60px;
}
.mq-screen-4 {
    padding:30px;
}
.mq-screen-4  .tqz-title--wide {
    font-size: 74px;
    margin-top: 20px;
    line-height: 69px;
}
.mq-screen-4  .tqz-gift-banner--center {
    margin: 0 auto 15px;
}
.mq-screen-5  .tqz-col.tqz-col--photo {
    width: 48%;
}
.mq-screen-5  .tqz-col.tqz-col--info {
    text-align: center;
    width: 42%;
}
.tqz-options--1col { grid-template-columns: 1fr; }
.tqz-options--2col { grid-template-columns: 1fr 1fr; }

.tqz-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 2px solid var(--tqz-border);
    border-radius: 5px;
    padding: 16px 20px;
    cursor: pointer;
    transition: background .15s, box-shadow .15s;
}
.tqz-option:hover { background: var(--tqz-bg-soft); }
.tqz-option input { position: absolute; opacity: 0; pointer-events: none; }
.tqz-option__text { line-height: 18px; font-size: 17px; color: #222;     font-weight: 400;}
.tqz-option__mark {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border: 2px solid var(--tqz-pink);
    border-radius: 50%;
    position: relative;
}
.tqz-option input:checked ~ .tqz-option__mark::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--tqz-pink);
}
.tqz-option input:checked ~ .tqz-option__mark {
    box-shadow: 0 0 0 3px rgba(229, 7, 126, .18);
}
.tqz-option.is-selected { background: var(--tqz-bg-soft); }

@keyframes tqz-shake {
    0%,100% { transform: translateX(0); }
    25%     { transform: translateX(-6px); }
    75%     { transform: translateX(6px); }
}

/* ---------- Поле email ---------- */
.tqz-field { max-width: 470px; margin: 0 auto; }
.tqz-field__label {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: var(--tqz-dark);
    margin-bottom: 5px;
}
.tqz-input-wrap { position: relative; }
.tqz-input-icon {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: var(--tqz-pink); font-size: 20px;
}
.tqz-field .tqz-input {
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    padding: 16px 16px 16px 48px;
    font-size: 17px;
    border: 1.5px solid #9a9a9a;
    border-radius: 12px;
    outline: none;
}
.tqz-input:focus { border-color: var(--tqz-pink); }

.tqz-consent {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 470px;
    margin: 18px auto 0;
    cursor: pointer;
    font-size: 16px;
    color: #c7c7c7;
}
.tqz-consent input { position: absolute; opacity: 0; pointer-events: none; }
.tqz-consent__box {
    flex: 0 0 auto;
    width: 24px; height: 24px;
    border: 1.5px solid #9a9a9a;
    border-radius: 6px;
    position: relative;
}
.tqz-consent input:checked ~ .tqz-consent__box {
    background: var(--tqz-pink);
    border-color: var(--tqz-pink);
}
.tqz-consent input:checked ~ .tqz-consent__box::after {
    content: "";
    position: absolute;
    left: 7px; top: 3px;
    width: 6px; height: 11px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}
.tqz-error { color: #d10000; text-align: center; font-size: 15px; margin: 12px 0 0; min-height: 18px; }

.tqz-divider { border: none; border-top: 2px solid var(--tqz-pink); max-width: 320px; margin: 16px 0; }

/* ---------- Адаптив ---------- */
@media (max-width: 1200px) {
    .tqz-photo {

        max-height: 526px;
    }
}
@media (max-width: 768px) {
    .tqz-progress__bar {
        height: 15px;
    }
    .tqz-progress {

        width: 100%;
        padding: 0;
    }
    .tqz-gift-banner {
        max-width: 100%;
    }
    .mq-screen-1 .tqz-btn {
        margin-left: 0px;
    }
    .tqz-col h2.tqz-title {
        font-size: 32px;
        line-height: 30px;
        margin: 10px 0 16px;
    }
    .tqz-col.tqz-col--info {
        width: 100%;
        padding: 0;
    }
    .mq-screen-2 .tqz-col.tqz-col--info {
        width: 100%;
    }
    .mq-screen-2 .tqz-col h2.tqz-title {
        font-size: 42px;
        line-height: 42px;
    }
    .tqz-col--question {
        width: 100%;
        margin-top: 0px;
    }
    .tqz-q-sub {
        font-size: 13px;
        line-height: 13px;
    }
    .tqz-option {

        padding: 10px 20px;
    }
    .tqz-option__text {
        line-height: 15px;
        font-size: 15px;
    }
    .tqz-options {
        gap: 10px;
    }
    .tqz-actions {
        margin-top: 10px;
    }
    .mq-screen-3 {
        padding: 0;
    }
    .tqz-title--wide {
        line-height: 30px;
        margin-bottom: 20px;
    }
    .mq-screen-3 .tqz-options {
        margin: 20px auto;
    }
    .mq-screen-3 .tqz-option {
        min-height: 48px;
    }
    .mq-screen-4 {
        padding: 0;
    }
    .mq-screen-4 .tqz-title--wide {
        font-size: 38px;
        line-height: 38px;
    }
    .tqz-gift-banner--center {
        width: 100%;
    }
    .mq-screen-4 .tqz-consent__text {
        font-size: 14px;
        line-height: 14px;
    }
    .tqz-modal .tqz-btn {

        padding: 20px 20px;
    }

    .tqz-modal { padding: 15px 18px 28px; max-width: 460px; }
    .tqz-cols { flex-direction: column; gap: 18px; }
    .tqz-logo--desktop { display: none; }

    .tqz-photo { max-height: 300px; }
    .tqz-envelope { max-height: 240px; }
    .tqz-options--2col { grid-template-columns: 1fr; }
    .tqz-title, .tqz-title--wide, .tqz-q-title { font-size: 32px; }
    .tqz-text { font-size: 16px; }
    .tqz-btn { width: 100%; padding: 15px 20px; }
    .tqz-trigger { width: 66px; height: 66px; left: 14px; bottom: 14px; }
    .tqz-trigger__img { width: 42px; }
    .mq-screen-5 .tqz-col.tqz-col--info {
        width: 100%;
    }
    .mq-screen-5 .tqz-text {
        margin-top: 35px;
    }
}
@media (max-width: 400px) {
    .tqz-title, .tqz-title--wide { font-size: 27px; }
    .tqz-option { padding: 13px 15px; }
    .tqz-option__text { font-size: 15px; }
}
