/* Afvalcheck widget — all rules scoped under #afvalcheck-widget */

#afvalcheck-widget {
    font-family: inherit;
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

#afvalcheck-widget *,
#afvalcheck-widget *::before,
#afvalcheck-widget *::after {
    box-sizing: border-box;
}

/* ── Content wrapper & transitions ── */

#afvalcheck-widget .afc-content {
    transition: opacity .2s ease;
}

#afvalcheck-widget .afc-content.afc-fade-out {
    opacity: 0;
}

#afvalcheck-widget .afc-content.afc-fade-in {
    opacity: 0;
}

#afvalcheck-widget .afc-content.afc-visible {
    opacity: 1;
}

/* ── Start screen ── */

/* Outer wrapper — override background, padding, alignment here */
#afvalcheck-widget .afc-start-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 56px 32px 48px;
    gap: 0;
    background: #fff;
    border: 1px solid #D5D5D5;
    border-radius: 4px;
}

/* Small label above the title — add border/underline here */
#afvalcheck-widget .afc-start-eyebrow {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 10px;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, rgba(112, 125, 188, 1), rgba(137, 153, 206, 1), rgba(133, 200, 179, 1), rgba(102, 199, 235, 1)) 1;
}

/* Main headline */
#afvalcheck-widget .afc-start-title {
    font-size: var(--heading-3);
    font-weight: 500;
    line-height: 1.15;
    text-transform: uppercase;
    width: 100%;
    max-width: 532px;
    margin: 0 0 64px;
    letter-spacing: -.5px;
}

/* CTA button */
#afvalcheck-widget .afc-start-btn {
    display: block;
    width: 100%;
    max-width: 315px;
    padding: 18px 32px;
    background: var(--button-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    transition: background .15s, transform .12s;
    letter-spacing: .2px;
}

#afvalcheck-widget .afc-start-btn:hover,
#afvalcheck-widget .afc-start-btn:focus {
    background: var(--button-primary-hover);
    transform: translateY(-2px);
    outline: none;
}

/* "Duurt slechts 2 minuten" meta line */
#afvalcheck-widget .afc-start-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(9, 9, 49, 0.35);
    margin: 14px 0 0;
    font-weight: 400;
}

/* Clock icon inside .afc-start-meta */
#afvalcheck-widget .afc-start-meta-icon {
    font-size: 15px;
    line-height: 1;
}

/* ── Quiz header (shown above card during every question + terminal) ── */

/* Outer header wrapper — override spacing/background here */
#afvalcheck-widget .afc-quiz-header {
    margin-bottom: 24px;
}

/* "AFVALTEST" eyebrow label — same styling hook as the start screen */
#afvalcheck-widget .afc-quiz-eyebrow {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 10px;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, rgba(112, 125, 188, 1), rgba(137, 153, 206, 1), rgba(133, 200, 179, 1), rgba(102, 199, 235, 1)) 1;
}

/* Row that holds the fixed title (left) and step counter (right) */
#afvalcheck-widget .afc-quiz-titlerow {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

/* Fixed title — always "Ontdek de juiste oplossing voor jou" */
#afvalcheck-widget .afc-quiz-title {
    font-size: var(--heading-4);
    font-weight: 500;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -.3px;
}

/* "Stap X van Y" / "Klaar!" counter — right side */
#afvalcheck-widget .afc-progress-label {
    font-size: 14px;
    font-weight: 500;
    color: #888;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Progress track (full width, below the title row) */
#afvalcheck-widget .afc-progress-track {
    width: 100%;
    height: 5px;
    background: #e5e9ef;
    border-radius: 99px;
    overflow: hidden;
}

/* Animated fill */
#afvalcheck-widget .afc-progress-fill {
    height: 100%;
    background: #6366f1;
    border-radius: 99px;
    transition: width .4s cubic-bezier(.4, 0, .2, 1);
    min-width: 0;
}

/* Back button — sits below the progress bar, small and subtle */
#afvalcheck-widget .afc-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #888;
    font-size: 13px;
    font-weight: 500;
    transition: color .15s;
}

#afvalcheck-widget .afc-back-btn:hover,
#afvalcheck-widget .afc-back-btn:focus {
    outline: none;
}

/* ── Step inner ── */

/* ── Step card ── */

#afvalcheck-widget .afc-step-inner {
    padding: 0px 0px 24px;
}

/* Question text — blue accent color */
#afvalcheck-widget .afc-question {
    font-size: var(--heading-6);
    font-weight: 500;
    margin: 0 0 24px;
    line-height: 1.4;
}

/* ── Answer buttons — radio-row style ── */

#afvalcheck-widget .afc-answers {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Each answer looks like a radio-button row */
#afvalcheck-widget .afc-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 18px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    line-height: 1.4;
}

#afvalcheck-widget .afc-btn:hover,
#afvalcheck-widget .afc-btn:focus {
    border-color: #6366f1;
    background: #f5f5ff;
    outline: none;
}

/* The radio circle on the left */
#afvalcheck-widget .afc-btn-radio {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    background: #fff;
    transition: border-color .15s, background .15s;
    position: relative;
}

/* Dot appears on hover */
#afvalcheck-widget .afc-btn:hover .afc-btn-radio,
#afvalcheck-widget .afc-btn:focus .afc-btn-radio {
    border-color: #6366f1;
    background: radial-gradient(circle, #6366f1 38%, #fff 39%);
}

/* ── Result / terminal card ── */

#afvalcheck-widget .afc-terminal {
    text-align: center;
}

#afvalcheck-widget .afc-result-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 32px 24px;
}

#afvalcheck-widget .afc-result-icon {
    font-size: 40px;
    line-height: 1;
}

#afvalcheck-widget .afc-result-text {
    font-size: 16px;
    color: #333;
    margin: 0;
    max-width: 440px;
}

#afvalcheck-widget .afc-result-btn {
    display: inline-block;
    padding: 13px 28px;
    background: #2271b1;
    color: #fff;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, transform .1s;
}

#afvalcheck-widget .afc-result-btn:hover,
#afvalcheck-widget .afc-result-btn:focus {
    background: #1a5793;
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
    outline: none;
}

/* CTA variant */
#afvalcheck-widget .afc-cta-card .afc-result-icon {
    color: #2271b1;
}

#afvalcheck-widget .afc-cta-btn {
    background: #e76e2e;
}

#afvalcheck-widget .afc-cta-btn:hover {
    background: #c85a1e;
    color: #fff;
}

/* Restart button */
#afvalcheck-widget .afc-restart-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    margin-top: 18px;
    padding: 4px 0;
    text-decoration: underline;
    transition: color .15s;
}

#afvalcheck-widget .afc-restart-btn:hover {
    color: #333;
}

/* ── Products section ── */

#afvalcheck-widget .afc-products-section {
    margin-top: 24px;
    margin-bottom: 36px;
    text-align: left;
}

#afvalcheck-widget .afc-products-heading {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 12px;
}

/* ── Product grid ── */

#afvalcheck-widget .afc-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    width: 100%;
}

/* Single product: cap width so it doesn't stretch across the full container */
#afvalcheck-widget .afc-products-1 {
    grid-template-columns: minmax(0, 300px);
    justify-content: start;
}

/* ── Product card ── */

#afvalcheck-widget .afc-product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    width: 100%;
}

#afvalcheck-widget .afc-product-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

#afvalcheck-widget .afc-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 16px;
}

#afvalcheck-widget .afc-product-body {
    padding: 16px 18px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

#afvalcheck-widget .afc-product-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

/* ── Product specs (afmeting + max_vulgewicht) ── */

#afvalcheck-widget .afc-product-specs {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#afvalcheck-widget .afc-product-spec {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.3;
}

#afvalcheck-widget .afc-product-spec-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: .65;
}

/* Size / afmeting icon — ruler */
#afvalcheck-widget .afc-spec-icon-size {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='10' rx='2'/%3E%3Cline x1='7' y1='7' x2='7' y2='11'/%3E%3Cline x1='12' y1='7' x2='12' y2='13'/%3E%3Cline x1='17' y1='7' x2='17' y2='11'/%3E%3C/svg%3E");
}

/* Weight icon — scale */
#afvalcheck-widget .afc-spec-icon-weight {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='3'/%3E%3Cpath d='M6.5 8L3 20h18L17.5 8'/%3E%3Cpath d='M7 20h10'/%3E%3C/svg%3E");
}

#afvalcheck-widget .afc-product-spec-label {
    font-weight: 600;
    color: #374151;
}

#afvalcheck-widget .afc-product-spec-value {
    color: #6b7280;
}

/* ── "Lees meer →" footer link ── */

#afvalcheck-widget .afc-product-lees-meer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
    font-weight: 600;
    color: #6366f1;
    text-decoration: none;
    transition: background .15s, color .15s;
    margin-top: auto;
}

#afvalcheck-widget .afc-product-lees-meer:hover,
#afvalcheck-widget .afc-product-lees-meer:focus {
    background: #f5f5ff;
    color: #4f52d3;
    text-decoration: none;
    outline: none;
}

/* ── Diensten / services section ── */

/* Wrapper — appears below product cards */
#afvalcheck-widget .afc-services-section {
    margin-top: 24px;
    text-align: left;
}

/* "Deze diensten zijn perfect voor u" heading */
#afvalcheck-widget .afc-services-heading {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 12px;
}

/* Container holding the service cards — no background, just spacing */
#afvalcheck-widget .afc-services-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Individual service card */
#afvalcheck-widget .afc-service-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    padding: 16px 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, box-shadow .15s;
}

#afvalcheck-widget a.afc-service-card:hover,
#afvalcheck-widget a.afc-service-card:focus {
    border-color: #6366f1;
    box-shadow: 0 3px 12px rgba(99, 102, 241, .12);
    outline: none;
    text-decoration: none;
    color: inherit;
}

/* Icon column */
#afvalcheck-widget .afc-service-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#afvalcheck-widget .afc-service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Text column */
#afvalcheck-widget .afc-service-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* Service name */
#afvalcheck-widget .afc-service-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.3;
}

/* Intro text from MetaBox "intro_tekst_menu" field */
#afvalcheck-widget .afc-service-intro {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

/* ── Contact-fallback (below product results) ── */

#afvalcheck-widget .afc-contact-fallback {
    margin-top: 20px;
    text-align: left;
}

#afvalcheck-widget .afc-contact-fallback-sub {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
    text-align: center;
}

#afvalcheck-widget .afc-contact-fallback-link {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .15s;
}

#afvalcheck-widget .afc-contact-fallback-link:hover {
    color: #6366f1;
}

/* "begin de afvaltest opnieuw" inline link */
#afvalcheck-widget .afc-contact-restart-link {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .15s;
}

#afvalcheck-widget .afc-contact-restart-link:hover {
    color: #6366f1;
}

/* ── Advice CTA (above contact-fallback) ── */

#afvalcheck-widget .afc-advice-cta {
    margin-top: 28px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3632a8 0%, #4a46c8 50%, #5550d8 100%);
    padding: 26px 32px;
}

#afvalcheck-widget .afc-advice-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

#afvalcheck-widget .afc-advice-cta-text {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

#afvalcheck-widget .afc-advice-cta-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #fff;
    margin-bottom: 12px;
}

#afvalcheck-widget .afc-advice-cta-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: -.3px;
}

#afvalcheck-widget .afc-advice-cta-inner .bricks-button {
    flex-shrink: 0;
    white-space: nowrap;
    padding-top: var(--button-padding-top-bottom);
    padding-right: var(--button-padding-left-right);
    padding-bottom: var(--button-padding-top-bottom);
    padding-left: var(--button-padding-left-right);
    border-radius: var(--button-border-radius);
}

/* ── Mobile ── */

@media (max-width: 480px) {
    #afvalcheck-widget .afc-start-screen {
        padding: 36px 20px 32px;
    }

    #afvalcheck-widget .afc-start-title {
        font-size: 22px;
        margin-bottom: 28px;
    }

    #afvalcheck-widget .afc-start-btn {
        font-size: 16px;
        padding: 16px 20px;
    }

    #afvalcheck-widget .afc-quiz-titlerow {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    #afvalcheck-widget .afc-step-inner {
        padding: 20px 0px;
    }

    #afvalcheck-widget .afc-btn {
        font-size: 14px;
        padding: 12px 14px;
        gap: 12px;
    }

    #afvalcheck-widget .afc-advice-cta {
        padding: 28px 22px;
    }

    #afvalcheck-widget .afc-advice-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    #afvalcheck-widget .afc-advice-cta-title {
        font-size: 18px;
    }

    #afvalcheck-widget .afc-advice-cta-btn {
        width: 100%;
        text-align: center;
    }
}