/* Quiz v2 (assets/js/quiz2.js, block/quiz2.tpl.html). Mobile first. */
.gq { color: #1a1a1a; text-align: left; font-size: 15px; line-height: 1.4; }
.gq * { box-sizing: border-box; }

.gq-head { margin: 0 0 16px; padding-right: 36px; }
.gq-title { font-size: 21px; font-weight: 800; line-height: 1.25; margin: 0 0 6px; }
.gq-badge { display: inline-block; vertical-align: middle; margin-left: 4px; padding: 3px 8px; border-radius: 6px; background: #be211d; color: #fff; font-size: 14px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.gq-sub { margin: 0; color: #666; font-size: 14px; }

.gq-progress { display: flex; align-items: center; margin: 0 0 14px; color: #777; font-size: 13px; }
.gq-count { flex: 0 0 auto; margin-right: 12px; }
.gq-bar { flex: 1 1 auto; height: 6px; border-radius: 3px; background: #ececec; overflow: hidden; }
.gq-bar i { display: block; height: 100%; background: linear-gradient(90deg, #d32f2f, #b71c1c); transition: width .3s ease; }

.gq-step { animation: gqIn .25s ease; }
@keyframes gqIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

.gq-q { margin: 0 0 14px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.gq-hint { margin: -8px 0 12px; color: #777; font-size: 13px; }

.gq-opts { display: grid; grid-template-columns: 1fr; gap: 8px; }
.gq-opt { display: flex; align-items: center; width: 100%; min-height: 52px; margin: 0; padding: 12px 16px; border: 2px solid #e3e3e3; border-radius: 8px; background: #fff; color: #1a1a1a; font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s; -webkit-tap-highlight-color: transparent; }
.gq-opt:hover, .gq-opt:focus { border-color: #be211d; outline: 0; }
.gq-opt.is-on { border-color: #be211d; background: #fff5f5; }
.gq-opt--many:before { content: ""; flex: 0 0 18px; height: 18px; margin-right: 10px; border: 2px solid #bbb; border-radius: 4px; }
.gq-opt--many.is-on:before { border-color: #be211d; background: #be211d; box-shadow: inset 0 0 0 3px #fff; }

.gq-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.gq-back { padding: 8px 0; border: 0; background: none; color: #777; font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.gq-back:hover { color: #be211d; }

.gq-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 0; border-radius: 6px; background: linear-gradient(180deg, #d32f2f 0%, #b71c1c 100%); color: #fff; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; transition: box-shadow .2s, transform .2s; }
.gq-btn:hover { box-shadow: 0 6px 20px rgba(190, 33, 29, .4); transform: translateY(-1px); }
.gq-btn[disabled] { opacity: .6; cursor: default; box-shadow: none; transform: none; }
.gq-btn--wide { width: 100%; }

.gq-price { margin: 0 0 18px; padding: 14px 16px; border-radius: 8px; background: #f6f6f6; }
.gq-price b { display: block; color: #be211d; font-size: 18px; font-weight: 800; line-height: 1.25; }
.gq-price-num { white-space: nowrap; }
.gq-price b.gq-price-none { color: #1a1a1a; font-size: 18px; }
.gq-price small { display: block; margin-top: 6px; color: #777; font-size: 12px; line-height: 1.4; }
.gq-price.is-loading b { color: #bbb; }

.gq-chips { display: flex; flex-wrap: nowrap; margin: 0 0 12px; }
.gq-chip { flex: 1 1 0; min-width: 0; margin: 0 5px 0 0; padding: 8px 2px; border: 2px solid #e3e3e3; border-radius: 20px; background: #fff; color: #1a1a1a; font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; text-align: center; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.gq-chip:last-child { margin-right: 0; }
.gq-chip.is-on { border-color: #be211d; background: #fff5f5; color: #be211d; }

.gq-field { display: block; margin: 0 0 10px; }
.gq-field span { display: block; margin: 0 0 4px; color: #666; font-size: 13px; }
.gq-field input { width: 100%; height: 48px; padding: 0 14px; border: 2px solid #e3e3e3; border-radius: 8px; background: #fff; font: inherit; font-size: 16px; }
.gq-field input:focus { border-color: #be211d; outline: 0; }
.gq-field.is-err input { border-color: #d32f2f; background: #fff5f5; }

.gq-consent { display: flex; align-items: flex-start; margin: 4px 0 14px; color: #777; font-size: 12px; line-height: 1.4; cursor: pointer; }
.gq-consent input { flex: 0 0 auto; margin: 2px 8px 0 0; }
.gq-consent a { color: inherit; text-decoration: underline; }
.gq-err { min-height: 1em; margin: 8px 0 0; color: #d32f2f; font-size: 13px; }

.gq-done { padding: 8px 0; text-align: center; }
.gq-done-icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: #2e7d32; color: #fff; font-size: 30px; line-height: 56px; }
.gq-done .gq-sub { margin: 0 0 10px; }
.gq-msgr { display: flex; justify-content: center; margin: 4px 0 10px; }
.gq-pill { display: inline-flex; align-items: center; margin: 0 5px; padding: 9px 18px; border: 2px solid #e3e3e3; border-radius: 24px; background: #fff; color: #1a1a1a !important; font-weight: 700; text-decoration: none !important; }
.gq-pill:hover { border-color: #be211d; }
.gq-pill img { margin-right: 8px; }

.gq-model { display: flex; align-items: center; margin: 10px 0 0; padding: 8px 10px 8px 8px; border-radius: 8px; background: #fff; color: #1a1a1a !important; text-decoration: none !important; }
.gq-model img { flex: 0 0 64px; width: 64px; height: 64px; margin-right: 12px; border-radius: 6px; object-fit: contain; background: #fff; }
.gq-model-text { display: flex; flex-direction: column; min-width: 0; }
.gq-model-label { color: #777; font-size: 12px; }
.gq-model-name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.gq-model-link { margin-top: 2px; color: #be211d; font-size: 13px; font-weight: 600; }
a.gq-model:hover .gq-model-name { color: #be211d; }

/* in page before start: first question comes from the server (visible to search engines),
   a light veil with the start button lies over it; options stay clickable */
.gq-teaser { position: relative; margin: 14px 0 12px; }
.gq-teaser__q .gq-q { margin-bottom: 10px; font-size: 17px; }
.gq-teaser__q .gq-opt { min-height: 44px; padding: 9px 14px; font-size: 14px; }
.gq-teaser__veil { position: absolute; top: 34px; right: -4px; bottom: -4px; left: -4px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px; background: linear-gradient(180deg, rgba(246, 246, 246, 0) 0%, rgba(246, 246, 246, .5) 45%, rgba(246, 246, 246, .9) 100%); pointer-events: none; }
.gq-teaser__veil .svc-cta-widget__btn { pointer-events: auto; box-shadow: 0 8px 24px rgba(190, 33, 29, .35); }

/* in page: the invitation card turns into the quiz */
.gq--inline { margin-top: 8px; animation: gqFlip .4s ease; }
@keyframes gqFlip { from { opacity: 0; transform: perspective(900px) rotateX(-14deg); transform-origin: top; } to { opacity: 1; transform: none; } }

/* popup */
#quiz.modal--gq { width: calc(100% - 24px); max-width: 640px; padding: 26px 22px 22px; border-radius: 10px; }
#quiz.modal--gq .modal__close { z-index: 2; }

@media (max-width: 419px) {
    .gq-chip { padding: 8px 0; font-size: 12px; letter-spacing: -.2px; }
}
@media (max-width: 359px) {
    .gq-chips { flex-wrap: wrap; }
    .gq-chip { flex: 1 1 40%; margin: 0 5px 5px 0; font-size: 13px; }
    .gq-chip:nth-child(2n) { margin-right: 0; }
    .gq-price b { font-size: 17px; }
}
@media (min-width: 600px) {
    .gq-opts { grid-template-columns: 1fr 1fr; gap: 10px; }
    .gq-title { font-size: 24px; }
    .gq-price b { font-size: 23px; }
    .gq-chip { flex: 0 1 auto; margin-right: 8px; padding: 8px 14px; font-size: 14px; }
    #quiz.modal--gq { padding: 34px 36px 30px; }
}
