/* Avanta quiz — isolated component styles */
#page #wrap #content #test {
    --quiz-primary: #008fc1;
    --quiz-primary-dark: #005a7d;
    --quiz-accent: #42c9f5;
    --quiz-accent-light: #bdefff;
    --quiz-ink: #103746;
    --quiz-muted: #54717d;
    position: relative;
    isolation: isolate;
    margin-top: 80px !important;
    padding: 50px;
    overflow: hidden;
    color: var(--quiz-ink);
    background:
        radial-gradient(circle at 94% 3%, rgba(66, 201, 245, .34), transparent 29%),
        radial-gradient(circle at 4% 100%, rgba(0, 143, 193, .13), transparent 30%),
        linear-gradient(145deg, #fff 0%, #f2fbff 55%, #e4f6fc 100%);
    border: 2px solid rgba(0, 143, 193, .24);
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0, 90, 125, .2), inset 0 1px 0 #fff;
}

#page #wrap #content #test:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--quiz-primary-dark), var(--quiz-accent), var(--quiz-primary));
}

#page #wrap #content #test:after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -190px;
    right: -120px;
    width: 380px;
    height: 380px;
    border: 70px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    pointer-events: none;
}

#page #wrap #content #test > h2,
#page #wrap #content #test #quiz {
    max-width: 750px;
    margin: 0 auto;
    color: var(--quiz-primary-dark);
    font-size: 39px;
    font-weight: 400;
    line-height: 1.16;
    letter-spacing: -.025em;
    text-align: center;
}

#page #wrap #content #test .quiz-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 35px;
}

#page #wrap #content #test .quiz-topline #quiz { margin: 0; text-align: left; }

#page #wrap #content #test .quiz-eyebrow,
#page #wrap #content #test .quiz-question-number,
#page #wrap #content #test .caption > p {
    display: block;
    margin: 0 0 8px !important;
    color: var(--quiz-primary);
    font-size: 12px !important;
    font-weight: 400;
    letter-spacing: .12em;
    text-transform: uppercase;
}

#page #wrap #content #test .quiz-lead {
    max-width: 650px;
    margin: 14px 0 0;
    color: var(--quiz-muted);
    font-size: 16px;
    line-height: 1.55;
}

#page #wrap #content #test .quiz-gift {
    min-width: 150px;
    padding: 19px 20px;
    color: #fff;
    text-align: center;
    background: linear-gradient(135deg, #00aee9, #007ca8 70%, #005a7d);
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 17px;
    box-shadow: 0 14px 30px rgba(0, 90, 125, .3), inset 0 1px 0 rgba(255, 255, 255, .35);
}

#page #wrap #content #test .quiz-gift span { display: block; color: #fff; font-size: 31px; font-weight: 400; line-height: 1; }
#page #wrap #content #test .quiz-gift small { display: block; margin-top: 6px; color: #dff7ff; font-size: 11px; }

#page #wrap #content #test .quiz-progress { margin-top: 30px; }
#page #wrap #content #test .quiz-progress__meta { display: flex; justify-content: space-between; margin-bottom: 9px; color: #4e717f; font-size: 13px; }
#page #wrap #content #test .quiz-progress__step { color: var(--quiz-primary-dark); font-weight: 400; }
#page #wrap #content #test .quiz-progress__track { height: 7px; overflow: hidden; background: #cfeaf3; border-radius: 99px; }
#page #wrap #content #test .quiz-progress__track span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--quiz-primary-dark), var(--quiz-accent));
    border-radius: inherit;
    box-shadow: 0 0 15px rgba(0, 174, 233, .48);
    transition: width .4s ease;
}

#page #wrap #content #test .caption { margin-top: 34px; }
#page #wrap #content #test .caption h3 {
    margin: 0;
    color: var(--quiz-ink);
    font-size: 26px;
    font-weight: 400;
    line-height: 1.32;
}

#page #wrap #content #test .answers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 25px 0 0;
}

#page #wrap #content #test .answers > br { display: none; }

#page #wrap #content #test .answers .answer {
    position: relative;
    display: block;
    width: auto;
    margin: 0;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    border: 2px solid #d6e9ef;
    border-radius: 17px;
    box-shadow: 0 12px 27px rgba(0, 74, 102, .12);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

#page #wrap #content #test .answers .answer:hover {
    opacity: 1;
    transform: translateY(-6px);
    border-color: var(--quiz-accent);
    box-shadow: 0 20px 42px rgba(0, 90, 125, .22), 0 0 0 4px rgba(66, 201, 245, .11);
}

#page #wrap #content #test .answers .answer.selected {
    border-color: var(--quiz-primary);
    box-shadow: 0 20px 44px rgba(0, 90, 125, .25), 0 0 0 4px rgba(0, 143, 193, .16);
}

#page #wrap #content #test .answers .answer picture { display: block; overflow: hidden; background: #dff4fb; }
#page #wrap #content #test .answers .answer picture img {
    display: block;
    width: 100%;
    height: 190px;
    max-width: none;
    padding: 0;
    object-fit: cover;
    filter: saturate(.92) contrast(1.04);
    transition: transform .5s ease, filter .3s ease;
}

#page #wrap #content #test .answers .answer:hover picture img { opacity: 1; filter: saturate(1.08) contrast(1.06); transform: scale(1.045); }

#page #wrap #content #test .answers .answer p {
    display: flex;
    align-items: center;
    min-height: 62px;
    max-width: none;
    margin: 0;
    padding: 14px 15px;
    color: var(--quiz-ink);
    background: #fff;
    border-radius: 0;
    font-size: 15px !important;
    font-weight: 400;
    line-height: 1.25;
    text-align: left;
    transition: color .25s ease, background .25s ease;
}

#page #wrap #content #test .answers .answer p sup { color: inherit; }
#page #wrap #content #test .answers .answer p span {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin: 0 10px 0 0;
    background: #fff;
    border: 2px solid #84bdcf;
    border-radius: 50%;
}

#page #wrap #content #test .answers .answer.selected p {
    color: #fff;
    background: linear-gradient(135deg, #009dcc, #00769f);
}

#page #wrap #content #test .answers .answer.selected p span {
    border-color: #fff;
    background: var(--quiz-accent);
    box-shadow: inset 0 0 0 5px #0086b3, 0 0 0 2px rgba(255, 255, 255, .24);
}

#page #wrap #content #test .answers-line { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#page #wrap #content #test .answers-line .answer p { min-height: 68px; font-size: 16px !important; }

#page #wrap #content #test .quiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 40px; margin-top: 24px; }
#page #wrap #content #test .quiz-back {
    padding: 8px 0;
    color: var(--quiz-primary-dark);
    background: none;
    border: 0;
    font-size: 14px;
    font-weight: 400;
    transition: color .2s ease, transform .2s ease;
}
#page #wrap #content #test .quiz-back:hover { color: var(--quiz-primary); transform: translateX(-3px); }
#page #wrap #content #test .quiz-hint { color: #5f7c87; font-size: 12px; }
#page #wrap #content #test.quiz-complete .quiz-progress,
#page #wrap #content #test.quiz-complete .quiz-nav { display: none !important; }

#page #wrap #content #test .ask-8,
#page #wrap #content #test .ask-9 {
    margin-top: 30px;
    padding: 31px;
    color: #365764;
    background: #fff;
    border: 2px solid #c5e8f3;
    border-radius: 18px;
    box-shadow: 0 17px 42px rgba(0, 90, 125, .13);
}

#page #wrap #content #test .ask-8 h3,
#page #wrap #content #test .ask-9 h3 { color: var(--quiz-primary-dark); }
#page #wrap #content #test .ask-8 p,
#page #wrap #content #test .ask-9 p { color: #486873; }
#page #wrap #content #test .feedback { max-width: 550px; }
#page #wrap #content #test .feedback input[type="text"] {
    width: 100%;
    height: 53px;
    margin-bottom: 12px;
    padding: 0 16px;
    color: var(--quiz-ink);
    background: #f7fcfe;
    border: 2px solid #c8e3ec;
    border-radius: 9px;
    box-shadow: none;
}
#page #wrap #content #test .feedback input[type="text"]:focus { border-color: var(--quiz-primary); box-shadow: 0 0 0 4px rgba(0, 143, 193, .12); outline: none; }
#page #wrap #content #test .feedback input.error { border-color: #d9534f; box-shadow: 0 0 0 4px rgba(217, 83, 79, .12); }
#page #wrap #content #test .feedback .btn {
    min-height: 53px;
    padding: 0 27px;
    color: #fff;
    font-weight: 600;
    background: linear-gradient(135deg, #16b8ed, #008fc1 55%, #00688e);
    border: 0;
    border-radius: 9px;
    box-shadow: 0 13px 30px rgba(0, 104, 142, .3);
}
#page #wrap #content #test .feedback .btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
#page #wrap #content #test .feedback .btn:disabled { cursor: wait; opacity: .65; }
#page #wrap #content #test .quiz-form-error { padding: 11px 14px; color: #9f2d2a; background: #fff0ef; border: 1px solid #efc2bf; border-radius: 8px; }

#page #wrap #content #test .ask.from-right { animation: avantaQuizRight .36s cubic-bezier(.2,.8,.2,1); }
#page #wrap #content #test .ask.from-left { animation: avantaQuizLeft .36s cubic-bezier(.2,.8,.2,1); }
@keyframes avantaQuizRight { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: translateX(0); } }
@keyframes avantaQuizLeft { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 868px) {
    #page #wrap #content #test { margin-top: 50px !important; padding: 28px 18px; border-radius: 21px; }
    #page #wrap #content #test .quiz-topline { display: block; }
    #page #wrap #content #test > h2,
    #page #wrap #content #test #quiz { font-size: 28px; }
    #page #wrap #content #test .quiz-gift { display: inline-flex; align-items: center; gap: 8px; min-width: 0; margin-top: 18px; padding: 12px 15px; }
    #page #wrap #content #test .quiz-gift span { font-size: 22px; }
    #page #wrap #content #test .quiz-gift small { margin: 0; }
    #page #wrap #content #test .caption { margin-top: 27px; }
    #page #wrap #content #test .caption h3 { font-size: 20px; }
    #page #wrap #content #test .answers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    #page #wrap #content #test .answers .answer { width: auto; }
    #page #wrap #content #test .answers .answer picture img { height: 135px; }
    #page #wrap #content #test .answers .answer p { min-height: 55px; padding: 10px; font-size: 12px !important; }
    #page #wrap #content #test .answers .answer p span { flex-basis: 18px; width: 18px; height: 18px; margin-right: 7px; }
    #page #wrap #content #test .answers-line { grid-template-columns: 1fr; }
    #page #wrap #content #test .answers-line .answer p { font-size: 15px !important; }
    #page #wrap #content #test .quiz-hint { max-width: 190px; text-align: right; }
}

@media (max-width: 480px) {
    #page #wrap #content #test .answers { grid-template-columns: 1fr; }
    #page #wrap #content #test .answers .answer picture img { height: 185px; }
}

@media (prefers-reduced-motion: reduce) {
    #page #wrap #content #test *,
    #page #wrap #content #test *:before,
    #page #wrap #content #test *:after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
