/* ---------- 맞춤 제품 찾기 퀴즈 ---------- */
.quiz { max-width: 880px; margin: 0 auto; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 36px; scroll-margin-top: 90px; animation: fade .35s ease; }
.quiz[data-step="0"] { padding: 0; background: none; box-shadow: none; }
.qz-start { position: relative; overflow: hidden; width: 100%; border: 0; text-align: left; color: #fff; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--navy) 0%, #1F3A7A 55%, var(--forest) 100%); padding: 38px 40px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  box-shadow: 0 18px 44px rgba(16,32,74,.28); transition: transform .2s, box-shadow .2s; }
.qz-start::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.14) 50%, transparent 70%); transform: translateX(-100%); animation: shine 3.2s ease-in-out infinite; }
.qz-start:hover { transform: translateY(-3px); box-shadow: 0 24px 54px rgba(16,32,74,.34); }
.qz-start-pets { display: flex; }
.qz-start-pets span { width: 76px; height: 76px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 40px; box-shadow: 0 6px 16px rgba(0,0,0,.2); animation: bob 2.4s ease-in-out infinite; }
.qz-start-pets span + span { margin-left: -16px; animation-delay: .4s; }
.qz-start-txt { display: flex; flex-direction: column; gap: 6px; }
.qz-start-txt strong { font-size: clamp(21px, 2.6vw, 27px); font-weight: 800; letter-spacing: -0.03em; }
.qz-start-txt > span:last-child { color: rgba(255,255,255,.78); font-size: 15px; }
.qz-badge { align-self: flex-start; display: inline-block; background: var(--gold-2); color: var(--navy); font-size: 12.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.qz-start-go { background: #fff; color: var(--navy); font-weight: 800; padding: 15px 22px; border-radius: 999px; white-space: nowrap; animation: pulse 2s infinite; }
.qz-start-go b { display: inline-block; transition: transform .2s; }
.qz-start:hover .qz-start-go b { transform: translateX(4px); }
@keyframes shine { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 70% { box-shadow: 0 0 0 14px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

.qz-top { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.qz-back { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 18px; flex: none; }
.qz-bar { flex: 1; height: 8px; background: var(--cream); border-radius: 99px; overflow: hidden; }
.qz-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 99px; transition: width .4s ease; }
.qz-step { font-weight: 800; color: var(--gold); font-size: 14px; }
.qz-q { font-size: clamp(21px, 2.6vw, 26px); font-weight: 800; text-align: center; margin-bottom: 8px; }
.qz-hint { text-align: center; color: var(--ink-3); font-size: 14px; margin-bottom: 20px; }
.qz-name { display: flex; align-items: center; gap: 12px; justify-content: center; margin: 18px 0 22px; }
.qz-name label { font-weight: 700; font-size: 15px; }
.qz-name small { color: var(--ink-3); font-weight: 500; }
.qz-name input { font: inherit; font-size: 16px; padding: 11px 16px; border: 1.5px solid var(--line); border-radius: 12px; width: 180px; text-align: center; }
.qz-name input:focus { outline: none; border-color: var(--navy); }
.qz-opts { display: grid; gap: 12px; }
.qz-opt { border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 18px; font-weight: 600; color: var(--ink); transition: border-color .15s, background .15s, transform .12s; }
.qz-opt:hover { border-color: var(--gold-2); }
.qz-opt:active { transform: scale(.97); }
.qz-opt[aria-pressed="true"] { border-color: var(--navy); background: var(--navy-soft); }
.qz-pets { grid-template-columns: 1fr 1fr; max-width: 520px; margin: 0 auto; }
.qz-pet { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 16px; font-size: 18px; }
.qz-emoji { font-size: 58px; line-height: 1; transition: transform .2s; }
.qz-pet:hover .qz-emoji { transform: scale(1.1) rotate(-4deg); }
.qz-ages { grid-template-columns: repeat(4, 1fr); margin-top: 22px; }
.qz-ages .qz-opt { display: flex; flex-direction: column; gap: 2px; padding: 22px 10px; font-size: 16px; }
.qz-ages small { color: var(--ink-3); font-weight: 500; font-size: 13px; }
.qz-concerns { grid-template-columns: repeat(3, 1fr); margin-bottom: 22px; }
.qz-c { display: flex; align-items: center; gap: 10px; text-align: left; font-size: 15px; padding: 15px 14px; position: relative; }
.qz-c > span { font-size: 22px; flex: none; }
.qz-c[aria-pressed="true"]::after { content: "✓"; position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; display: grid; place-items: center; }
.qz-next { position: sticky; bottom: 16px; z-index: 2; box-shadow: 0 8px 22px rgba(16,32,74,.25); }
body.has-buybar .qz-next { bottom: 84px; }
.qz-next:disabled { opacity: .4; cursor: not-allowed; transform: none; }
@media (max-width: 760px) {
  .quiz { padding: 22px 16px; }
  .qz-start { grid-template-columns: 1fr; text-align: center; padding: 30px 22px; gap: 18px; justify-items: center; }
  .qz-start-txt { align-items: center; }
  .qz-badge { align-self: center; }
  .qz-start-go { width: 100%; text-align: center; }
  .qz-ages { grid-template-columns: 1fr 1fr; }
  .qz-concerns { grid-template-columns: 1fr; gap: 9px; }
  .qz-name { flex-direction: column; gap: 6px; }
}

.qz-rhead { text-align: center; }
.qz-rhead h3 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; margin: 12px 0 14px; }
.qz-rhead h3 em { font-style: normal; color: var(--gold); }
.qz-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 18px; }
.qz-tags span { font-size: 13px; background: var(--cream); color: var(--ink-2); padding: 5px 11px; border-radius: 999px; font-weight: 600; }
.qz-note { background: var(--gold-soft); border-radius: 12px; padding: 12px 16px; font-size: 14.5px; margin-bottom: 10px; text-align: center; }
.qz-rcards { display: grid; gap: 16px; margin-top: 18px; }
.qz-rcards.two { grid-template-columns: 1fr 1fr; }
.qz-rc { display: grid; grid-template-columns: 200px 1fr; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.qz-rcards.two .qz-rc { grid-template-columns: 1fr; }
.qz-rc-img { display: grid; place-items: center; padding: 18px; }
.qz-rc.navy .qz-rc-img { background: var(--navy-soft); }
.qz-rc.forest .qz-rc-img { background: var(--forest-soft); }
.qz-rc-img img { max-height: 190px; width: auto; }
.qz-rc-body { padding: 22px; display: flex; flex-direction: column; }
.qz-match { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.qz-match b { font-size: 26px; color: var(--navy); font-weight: 900; }
.forest .qz-match b { color: var(--forest); }
.qz-mbar { height: 10px; background: var(--cream); border-radius: 99px; overflow: hidden; margin: 6px 0 16px; }
.qz-mbar span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--navy), #3B5BB5); transition: width .9s cubic-bezier(.2,.8,.2,1); }
.forest .qz-mbar span { background: linear-gradient(90deg, var(--forest), #3C8A5F); }
.qz-rc h4 { font-size: 20px; font-weight: 800; }
.qz-rc h4 small { font-size: 14px; color: var(--ink-3); font-weight: 600; margin-left: 4px; }
.qz-why { margin: 12px 0 18px; display: grid; gap: 7px; }
.qz-why li { font-size: 14.5px; color: var(--ink-2); padding-left: 22px; position: relative; }
.qz-why li::before { content: "✓"; position: absolute; left: 0; color: var(--naver); font-weight: 900; }
.qz-rc-cta { margin-top: auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.qz-rc-cta .btn { padding: 0 12px; }
.qz-duo, .qz-also { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 18px 22px; border-radius: 14px; background: linear-gradient(90deg, var(--navy), var(--forest)); color: #fff; border: 0; font-size: 15px; text-align: left; }
.qz-duo small { display: block; color: rgba(255,255,255,.75); font-size: 13px; margin-top: 2px; }
.qz-duo b { font-size: 17px; }
.qz-duo-go { background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 999px; font-weight: 800; white-space: nowrap; }
.qz-also { background: var(--cream); color: var(--ink); justify-content: center; text-align: center; display: block; }
.qz-foot { display: flex; justify-content: center; gap: 22px; margin-top: 20px; }
.qz-link { border: 0; background: none; color: var(--ink-3); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .qz-rcards.two { grid-template-columns: 1fr; }
  .qz-rc { grid-template-columns: 1fr; }
  .qz-rc-img img { max-height: 150px; }
  .qz-duo { flex-direction: column; align-items: stretch; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .qz-start::after, .qz-start-pets span, .qz-start-go { animation: none; } }
