@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

.tvqp-quiz {
    --tvqp-ink: #1f2a2e;
    --tvqp-muted: #5a6b70;
    --tvqp-accent: #d86a3d;
    --tvqp-accent-2: #0f6b6d;
    --tvqp-card: #fffaf3;
    --tvqp-border: #e7d9c8;
    --tvqp-shadow: rgba(31, 42, 46, 0.12);
    font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    padding: 2.5rem 1.5rem;
    margin: 2rem auto;
    background: linear-gradient(130deg, #f7efe3 0%, #f0f6f4 55%, #fdf4ea 100%);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    color: var(--tvqp-ink);
}

.tvqp-quiz::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(216, 106, 61, 0.12), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(15, 107, 109, 0.12), transparent 40%);
    pointer-events: none;
}

.tvqp-quiz-shell {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--tvqp-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px var(--tvqp-shadow);
}

.tvqp-quiz-header {
    text-align: left;
    margin-bottom: 2rem;
}

.tvqp-quiz-kicker {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.7rem;
    color: var(--tvqp-accent-2);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.tvqp-quiz-title {
    font-size: clamp(1.7rem, 2vw, 2.2rem);
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.tvqp-quiz-description {
    color: var(--tvqp-muted);
    margin: 0;
    max-width: 540px;
}

.tvqp-question {
    border: 1px solid var(--tvqp-border);
    background: var(--tvqp-card);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    animation: tvqp-fade-up 0.6s ease both;
}

.tvqp-quiz.is-stepped .tvqp-question {
    display: none;
}

.tvqp-quiz.is-stepped .tvqp-question.is-active {
    display: block;
}

.tvqp-question-title {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.tvqp-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.tvqp-option {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    border: 1px solid transparent;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 16px rgba(31, 42, 46, 0.08);
}

.tvqp-option input {
    accent-color: var(--tvqp-accent);
}

.tvqp-option:hover {
    border-color: var(--tvqp-accent);
    transform: translateY(-2px);
}

.tvqp-quiz-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.tvqp-btn {
    background: linear-gradient(180deg, #ffd07c 0%, #ff9b1f 100%);
    color: #191410;
    border: 1px solid #f28b19;
    border-radius: 999px;
    padding: 1rem 2.1rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 18px 28px rgba(240, 136, 4, 0.3);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.tvqp-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.02);
}

.tvqp-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.tvqp-btn:hover::after {
    opacity: 1;
}

.tvqp-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.tvqp-btn-amazon {
    background: linear-gradient(180deg, #ffd787, #ff9900);
    color: #111;
    border: 1px solid #f08804;
    box-shadow: 0 14px 22px rgba(240, 136, 4, 0.35);
}

.tvqp-btn-secondary,
.tvqp-btn-outline {
    background: linear-gradient(135deg, #6b5833 0%, #3b3a32 48%, #1f2b36 100%);
    color: #fdf7ef;
    border: 1px solid #1a2026;
    box-shadow: 0 18px 28px rgba(12, 15, 20, 0.38);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
}

.tvqp-btn-secondary:hover,
.tvqp-btn-amazon:hover {
    filter: brightness(1.03);
}

.tvqp-quiz a.tvqp-btn-secondary:hover,
.tvqp-quiz a.tvqp-btn-secondary:focus-visible,
.tvqp-quiz a.tvqp-btn-secondary:active,
.tvqp-quiz button.tvqp-btn-secondary:hover,
.tvqp-quiz button.tvqp-btn-secondary:focus-visible,
.tvqp-quiz button.tvqp-btn-secondary:active,
.tvqp-quiz a.tvqp-btn-outline:hover,
.tvqp-quiz a.tvqp-btn-outline:focus-visible,
.tvqp-quiz a.tvqp-btn-outline:active,
.tvqp-quiz button.tvqp-btn-outline:hover,
.tvqp-quiz button.tvqp-btn-outline:focus-visible,
.tvqp-quiz button.tvqp-btn-outline:active {
    color: #fdf7ef !important;
}

.tvqp-btn-secondary::after,
.tvqp-btn-outline::after {
    display: none;
}

.tvqp-btn-secondary:hover::after,
.tvqp-btn-outline:hover::after {
    opacity: 0;
}

.tvqp-btn:focus-visible,
.tvqp-btn-outline:focus-visible,
.tvqp-btn-secondary:focus-visible,
.tvqp-btn-amazon:focus-visible {
    outline: 3px solid rgba(255, 153, 0, 0.35);
    outline-offset: 2px;
}

.tvqp-quiz-error {
    color: #b42318;
    font-weight: 600;
}

.tvqp-quiz-results {
    margin-top: 2rem;
}

.tvqp-quiz-progress {
    font-size: 0.85rem;
    color: var(--tvqp-muted);
    margin: 0 0 1rem;
    font-weight: 600;
    display: grid;
    gap: 0.5rem;
}

.tvqp-quiz-progress-bar {
    height: 8px;
    background: #e6d7c5;
    border-radius: 999px;
    overflow: hidden;
}

.tvqp-quiz-progress-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, #ffb347, #ff9900);
    transition: width 0.3s ease;
}

.tvqp-results-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.tvqp-results-note {
    margin-top: -0.3rem;
    margin-bottom: 1.2rem;
    color: var(--tvqp-muted);
}
.tvqp-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
}

.tvqp-results-more {
    margin-top: 1.6rem;
    display: flex;
    justify-content: center;
}

.tvqp-results-more .tvqp-btn-secondary {
    font-size: 1rem;
    padding: 1.05rem 2.4rem;
    box-shadow: 0 18px 30px rgba(15, 23, 34, 0.4);
}

.tvqp-results-retake {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.tvqp-result-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.2rem 1.2rem 1rem;
    border: 1px solid #e4e4e4;
    box-shadow: 0 10px 20px rgba(31, 42, 46, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    animation: tvqp-fade-up 0.5s ease both;
}

.tvqp-result-card h4 {
    font-size: 0.9rem;
    line-height: 1.3;
    margin: 0;
    font-weight: 600;
}

.tvqp-result-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 12px;
    background: #fafafa;
    transition: transform 0.2s ease;
}

.tvqp-result-image-link {
    display: block;
    border-radius: 12px;
    overflow: hidden;
}

.tvqp-result-image-link:hover img,
.tvqp-result-image-link:focus-visible img {
    transform: scale(1.02);
}

.tvqp-result-title-link {
    color: var(--tvqp-ink);
    text-decoration: none;
}

.tvqp-result-title-link:hover,
.tvqp-result-title-link:focus-visible {
    color: var(--tvqp-accent-2);
    text-decoration: underline;
}

.tvqp-result-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    color: var(--tvqp-muted);
    font-size: 0.85rem;
}

.tvqp-result-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1f2a2e;
}

.tvqp-stars {
    display: inline-flex;
    gap: 0.2rem;
    align-items: center;
}

.tvqp-star {
    width: 14px;
    height: 14px;
    background: linear-gradient(90deg, #f5a623 calc(var(--fill) * 100%), #e6e0d6 0);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.tvqp-result-reasons {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--tvqp-muted);
    font-size: 0.85rem;
}

.tvqp-result-card .tvqp-btn-amazon {
    margin-top: auto;
    border-radius: 10px;
    background: linear-gradient(180deg, #2f2f2f, #121212);
    color: #fff;
    border: 1px solid #0a0a0a;
    box-shadow: 0 10px 16px rgba(10, 10, 10, 0.25);
    font-size: 0.85rem;
    padding: 0.65rem 1rem;
    width: 100%;
}

.tvqp-result-card .tvqp-btn-amazon::after {
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}

.tvqp-result-card .tvqp-btn-amazon:hover {
    filter: brightness(1.1);
}

.tvqp-quiz-warning {
    background: #fff3cd;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    margin-top: 1rem;
}

.tvqp-seo {
    margin-top: 2.5rem;
    color: var(--tvqp-ink);
}

.tvqp-seo-shell {
    max-width: 960px;
    margin: 0 auto;
    border-radius: 20px;
    padding: 2.6rem;
    background: #ffffff;
    border: 1px solid #e8edf2;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

.tvqp-seo-shell::before {
    content: "";
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.12), transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(15, 118, 110, 0.12), transparent 45%),
        radial-gradient(circle at 20% 90%, rgba(125, 211, 252, 0.18), transparent 50%);
    pointer-events: none;
}

.tvqp-seo-shell > * {
    position: relative;
    z-index: 1;
}

.tvqp-seo-header {
    margin-bottom: 2.2rem;
}

.tvqp-seo-kicker {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.7rem;
    font-weight: 700;
    color: #0f766e;
    margin: 0 0 0.6rem;
}

.tvqp-seo-header h2 {
    font-size: clamp(1.6rem, 2vw, 2.3rem);
    margin: 0 0 0.8rem;
    font-weight: 700;
}

.tvqp-seo-lede {
    color: var(--tvqp-muted);
    max-width: 680px;
    margin: 0 0 1.4rem;
    line-height: 1.6;
}

.tvqp-seo-jumplinks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.tvqp-seo-jumplinks a {
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1f2937;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tvqp-seo-jumplinks a:hover,
.tvqp-seo-jumplinks a:focus-visible {
    transform: translateY(-1px);
    border-color: #cbd5f5;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.tvqp-seo-grid,
.tvqp-seo-columns,
.tvqp-seo-steps,
.tvqp-seo-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
    margin-bottom: 2rem;
}

.tvqp-seo-card,
.tvqp-seo-panel,
.tvqp-step-card,
.tvqp-seo-tip,
.tvqp-seo-faq-card {
    background: #ffffff;
    border: 1px solid #e6edf3;
    border-radius: 16px;
    padding: 1.6rem 1.7rem;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
}

.tvqp-step-card::after {
    display: none;
}

.tvqp-seo-wide {
    margin-bottom: 2rem;
}

.tvqp-step-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.6rem;
}

.tvqp-step-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    display: grid;
    place-items: center;
    margin-bottom: 0.1rem;
}

.tvqp-step-icon svg {
    width: 28px;
    height: 28px;
}

.tvqp-step-pill {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #e2e8f0;
}

.tvqp-seo-card h3,
.tvqp-seo-panel h3,
.tvqp-seo-card h2,
.tvqp-seo-panel h2 {
    margin: 0 0 0.8rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.4rem;
}

.tvqp-step-card h2 {
    margin: 0;
    padding-bottom: 0.2rem;
    font-size: 1.05rem;
    line-height: 1.4;
    font-weight: 800;
    flex: 1;
}

.tvqp-seo-card h3 {
    font-size: 1rem;
}

.tvqp-seo-card h3::after,
.tvqp-seo-panel h3::after,
.tvqp-seo-card h2::after,
.tvqp-seo-panel h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #22c55e);
}

.tvqp-seo-card h3 span,
.tvqp-seo-panel h3 span,
.tvqp-seo-card h2 span,
.tvqp-seo-panel h2 span {
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    border: 1px solid #dbeafe;
}

.tvqp-seo-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1rem;
}

.tvqp-seo-card p,
.tvqp-seo-panel p {
    margin: 0 0 1rem;
    color: var(--tvqp-muted);
    line-height: 1.65;
}

.tvqp-seo-note {
    margin: 0;
    font-size: 0.9rem;
    color: var(--tvqp-muted);
    line-height: 1.5;
}

.tvqp-seo-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.9rem;
    display: grid;
    gap: 0.6rem;
}

.tvqp-seo-list li {
    position: relative;
    padding-left: 1.3rem;
    font-weight: 600;
    color: #3b4448;
}

.tvqp-seo-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.tvqp-seo-list-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tvqp-seo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tvqp-seo-tag {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

.tvqp-step-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tvqp-step-tags span {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tvqp-seo-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
    color: #475569;
    font-weight: 600;
}

.tvqp-seo-checklist li {
    padding-left: 1.4rem;
    position: relative;
}

.tvqp-seo-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3rem;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 4px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.tvqp-seo-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #0f172a;
    display: grid;
    place-items: center;
    margin-bottom: 0.8rem;
}

.tvqp-seo-icon svg {
    width: 24px;
    height: 24px;
}

.tvqp-usecase-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.tvqp-usecase-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: #1d4ed8;
    font-weight: 600;
    font-size: 0.82rem;
}

.tvqp-usecase-pill svg {
    width: 18px;
    height: 18px;
}

.tvqp-seo-faq-card details {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    margin-top: 1rem;
}

.tvqp-seo-faq-card details:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.tvqp-seo-faq-card summary {
    font-weight: 600;
    cursor: pointer;
    color: #0f172a;
    padding: 0.3rem 0;
}

.tvqp-seo-faq-card p {
    margin: 0.6rem 0 0;
    color: #475569;
}

.tvqp-seo-cta {
    background: #eff6ff;
    color: #0f172a;
    border: 1px solid #dbeafe;
    box-shadow: none;
    padding: 1.9rem 2rem;
}

.tvqp-seo-cta h2,
.tvqp-seo-cta p {
    color: inherit;
}

.tvqp-seo-cta-note {
    display: inline-flex;
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: #1d4ed8;
    font-weight: 600;
}

.tvqp-seo-posts {
    margin-top: 2rem;
}

.tvqp-seo-posts h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1rem;
}

.tvqp-seo-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.tvqp-seo-post-card {
    background: #ffffff;
    border: 1px solid #e6edf3;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05);
}

.tvqp-seo-post-card h3 {
    margin: 0;
    font-size: 0.98rem;
    color: #0f172a;
}

.tvqp-seo-post-link {
    text-decoration: none;
    color: inherit;
}

.tvqp-seo-post-link:hover h3,
.tvqp-seo-post-link:focus-visible h3 {
    color: #2563eb;
    text-decoration: underline;
}

.tvqp-seo-posts-more {
    display: inline-flex;
    margin-top: 1rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.tvqp-seo-posts-more:hover,
.tvqp-seo-posts-more:focus-visible {
    text-decoration: underline;
}

@keyframes tvqp-fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 720px) {
    .tvqp-quiz-shell {
        padding: 1.4rem;
    }

    .tvqp-quiz-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .tvqp-seo-shell {
        padding: 1.8rem;
    }

    .tvqp-seo-grid,
    .tvqp-seo-columns,
    .tvqp-seo-steps,
    .tvqp-seo-split {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .tvqp-seo-posts-grid {
        grid-template-columns: 1fr;
    }
}
