/* =========================================================
   VoerVinder – Frontend styles
   Design tokens: Puro brand palette
   ========================================================= */

:root {
    --vv-green:       #003127;
    --vv-green-mid:   #004E3D;
    --vv-gold:        #CEAA5D;
    --vv-gold-light:  #F9EFD7;
    --vv-cream:       #FFF9EB;
    --vv-cream-dark:  #FFF9EB;
    --vv-white:       #ffffff;
    --vv-text:        #616161;
    --vv-text-muted:  #666;
    --vv-border:      #616161;
    --vv-radius:      8px;
    --vv-shadow:      0 0px 0px rgba(0,0,0,.00);
}

/* ---- Wrapper --------------------------------------------------- */
.vv-quiz {
    margin: 0 auto;
    font-family: inherit;
    color: var(--vv-text);
}

/* ---- Progress bar ---------------------------------------------- */
.vv-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    position: relative;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Single continuous line behind all dots */
.vv-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 18px;
    right: 18px;
    height: 2px;
    background: #FFF9EB;
    transform: translateY(-50%);
    z-index: 0;
}

.vv-progress__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 57px;
    height: 57px;
    border-radius: 50%;
    font-size: 24px;
    background: var(--color-text-heading-inverse, #FFF);
    font-family: 'bogart';
    font-weight: 600;
    position: relative;
    border: 2px solid rgba(255, 249, 235, 0.50);
    z-index: 1;
    transition: background .25s, color .25s, transform .25s;
}

/* removed individual ::before connectors — line is on the wrapper now */

.vv-progress__step.is-active {
    background: var(--color-goud-Background-color-2, #F9EFD7);
    color: var(--color-goud-600, #644606);
    font-family: 'bogart';
    border: 2px solid var(--color-goud-100, #E7CF9D);
}

.vv-progress__step.is-done {
    background: var(--vv-gold);
    color: var(--vv-white);
}

.vv-progress__step--result {
    width: auto;
    padding: 0 14px;
    border-radius: 18px;
    font-size: 13px;
    background: var(--vv-cream-dark);
    color: var(--vv-text-muted);
}

.vv-progress__step--result.is-active {
    background: var(--vv-gold);
    color: var(--vv-white);
    transform: scale(1.05);
}

/* "Start" dot (first-is-intro mode) */
.vv-progress__step--start {
    width: auto;
    padding: 0 14px;
    border-radius: 18px;
    font-size: 16px;
    font-family: 'Nunito Sans' !important;
}

/* ---- Nav row (back / restart) ---------------------------------- */
.vv-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 32px;
    margin-bottom: 8px;
}

.vv-btn-back,
.vv-btn-restart {
    background: none;
    border: none;
    padding: 4px 0;
    color: var(--vv-text-muted);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color .2s;
}

.vv-btn-back:hover,
.vv-btn-restart:hover {
    color: var(--vv-green);
}

/* ---- Stage ----------------------------------------------------- */
.vv-stage {
    opacity: 1;
    transition: opacity .2s ease;
}

.vv-stage--entering {
    opacity: 0;
}

/* ---- Step content ---------------------------------------------- */
.vv-step-content {
    text-align: center;
    padding: 8px 0 24px;
}

.vv-question {
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 700;
    color: var(--vv-green);
    margin: 0 0 10px;
    line-height: 1.2;
}

.vv-subtitle {
    font-size: 15px;
    color: var(--vv-text-muted);
    margin: 0 0 32px;
}

/* ---- Answer cards ---------------------------------------------- */
.vv-answers {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin: 0 auto;
    max-width: 600px;
}

.vv-answer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #FFF9EB;
    border: 2px solid var(--vv-border);
    border-radius: var(--vv-radius);
    padding: 24px 28px 20px;
    width: 250px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--vv-text);
    box-shadow: var(--vv-shadow);
    transition: border-color .2s, transform .15s, box-shadow .2s;
    position: relative;
}

.vv-answer-card:hover {
    border-color: var(--vv-green);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0,0,0,.12);
}

.vv-answer-card:active {
    transform: translateY(0);
}

.vv-answer-icon {
    font-size: 59px;
    padding: 0rem 1rem 0rem 1rem;
    line-height: 1;
    color: var(--vv-gold);
    display: block;
    transition: color .2s;
}

.vv-answer-card:hover .vv-answer-icon {
    color: var(--vv-green);
}

.vv-answer-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-alt-content-heading);
}

/* "Kies X" CTA button inside card */
.vv-answer-cta {
    display: inline-block;
    background: var(--vv-green);
    color: var(--vv-white);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    margin-top: 2px;
    transition: background .2s;
    pointer-events: none;
}

.vv-answer-card:hover .vv-answer-cta {
    background: var(--vv-green-mid);
}

/* ---- Answer tooltip icon -------------------------------------- */
.vv-answer-label-wrap {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.vv-answer-tip {
    position: relative;
    color: var(--vv-gold);
    font-size: 14px;
    cursor: help;
    flex-shrink: 0;
    line-height: 1;
}

.vv-answer-tip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    max-width: 240px;
    background: var(--vv-green);
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
    padding: 7px 11px;
    border-radius: 7px;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s;
    z-index: 99;
}

/* small arrow pointing down */
.vv-answer-tip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 3px);
    right: 5px;
    border: 5px solid transparent;
    border-top-color: var(--vv-green);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s;
    z-index: 99;
}

.vv-answer-tip:hover::after,
.vv-answer-tip:hover::before {
    opacity: 1;
}

/* ---- Multi-select: selected card state ------------------------- */
.vv-answer-card.is-selected {
    border-color: var(--vv-green);
    background: var(--vv-green);
    color: var(--vv-white);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0,0,0,.12);
}

.vv-answer-card.is-selected .vv-answer-label {
    color: var(--vv-white);
}

.vv-answer-card.is-selected .vv-answer-icon {
    color: var(--vv-gold);
}

.vv-answer-card.is-selected .vv-answer-cta {
    background: var(--vv-gold);
    color: var(--vv-green);
}

/* ---- Multi-select: "Volgende" button --------------------------- */
.vv-multi-next {
    display: block;
    margin: 28px auto 0;
    padding: 14px 40px;
    background: var(--vv-green);
    color: var(--vv-white);
    border: none;
    border-radius: var(--vv-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, opacity .2s;
}

.vv-multi-next:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.vv-multi-next:not(:disabled):hover {
    background: var(--vv-green-mid);
}

/* ---- Name step input ------------------------------------------ */
.vv-name-input-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    width: 100%;
}

/* Inline variant: shown on first step above the answers */
.vv-name-input-wrap--inline {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    margin-top: 0;
}

.vv-name-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--vv-green);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.vv-name-input-wrap--inline .vv-name-input {
    max-width: 200px;
    font-size: 15px;
    padding: 9px 14px;
    text-align: left;
}

.vv-name-input {
    width: 100%;
    max-width: 320px;
    padding: 12px 18px;
    border: 2px solid var(--vv-border);
    border-radius: var(--vv-radius);
    font-size: 18px;
    font-family: inherit;
    color: var(--vv-text);
    background: var(--vv-cream);
    text-align: center;
    transition: border-color .2s;
}

.vv-name-input:focus {
    outline: none;
    border-color: var(--vv-green);
}

.vv-name-input.vv-input-error {
    border-color: #c0392b;
    animation: vv-shake .25s;
}

@keyframes vv-shake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-6px); }
    75%       { transform: translateX(6px); }
}

/* Personalised results heading */
.vv-results-for {
    text-align: center;
    font-size: 14px;
    color: var(--vv-text-muted, #666);
    margin: 0 0 20px;
}

.vv-results-for strong {
    color: var(--vv-green);
}

/* Inline subtext under label */
.vv-answer-subtext {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--vv-text-muted, #666);
    line-height: 1.35;
    margin-top: -4px;
    text-align: center;
}

/* ---- Results loading ------------------------------------------- */
.vv-results__loading {
    text-align: center;
    padding: 60px 0;
}

.vv-spinner {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 3px solid var(--vv-border);
    border-top-color: var(--vv-green);
    border-radius: 50%;
    animation: vv-spin .7s linear infinite;
}

@keyframes vv-spin {
    to { transform: rotate(360deg); }
}

/* ---- Results layout -------------------------------------------- */

/* Top card: image-col left, info-col right */
.vv-result-top {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    background: var(--vv-cream);
    border-radius: var(--vv-radius);
    padding: 2.5rem;
    margin-bottom: 28px;
    box-shadow: var(--vv-shadow);
    align-items: start;
    position: relative;
}

/* Left column: image stacked above cart button */
.vv-result-top__left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vv-result-top__image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: var(--vv-cream-dark);
}

.vv-result-top__btn-wrap {
    width: 100%;
}

.vv-btn--full {
    width: 100%;
    justify-content: center;
}

/* Right column: info */
.vv-result-top__info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

/* "Bekijk alle voordelen" gold text link */
.vv-link-voordelen {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--vv-gold);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.vv-link-voordelen:hover {
    color: var(--vv-green);
    text-decoration: underline;
}

.vv-link-voordelen .vv-chevron {
    font-size: 18px;
}

/* Others panel */
.vv-results__others-panel {
    background: transparent;
    padding: 0;
}

.vv-others-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--vv-green);
    margin: 0 0 20px;
    line-height: 1.25;
}

/* Scroller with overflow + bottom gradient */
.vv-result-others-scroller {
    position: relative;
    max-height: 325px;   /* ~1.5 cards */
    overflow: hidden;
    transition: max-height .4s ease;
}

.vv-result-others-scroller::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(to top, #ffffff 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    transition: opacity .3s ease;
}

/* Expanded: full height, no gradient */
.vv-result-others-scroller.is-expanded {
    max-height: 3000px;
}

.vv-result-others-scroller.is-expanded::after {
    opacity: 0;
}

/* Toggle button */
.vv-view-all-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.vv-view-all {
    margin-top: 16px;
    padding-top: 14px;
}

.vv-toggle-icon {
    display: inline-block;
    margin-left: 4px;
    vertical-align: middle;
    transition: transform .25s ease;
}

.vv-result-others {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
}

/* Other product card: image+btn left, info right */
.vv-other-card {
    display: grid;
    grid-template-columns: 144px 1fr;
    gap: 16px;
    padding: 16px 0;
    align-items: start;
}

.vv-other-card:last-child {
    border-bottom: none;
}

.vv-other-card__left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.vv-other-card__left img {
    width: 144px;
    height: 144px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--vv-cream);
}

.vv-other-card__btn-wrap {
    width: 100%;
}

/* Gold cart button for other cards */
.vv-btn--gold-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    width: 100%;
    background: #E7CF9D;
    color: #644606;
    border: 2px solid #CEAA5D;
    border-top-color: #CEAA5D;
    border-bottom: 3px solid #CEAA5D;
    transition: background .2s, transform .15s;
}

.vv-btn--gold-cart:hover {
    background: #CEAA5D;
    color: #3a2a05;
    transform: translateY(-1px);
}

.vv-other-card__info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

.vv-other-card .vv-product-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--vv-green);
    line-height: 1.2;
}

.vv-other-desc {
    font-size: 13px;
    color: var(--vv-text-muted);
    margin: 0;
    line-height: 1.4;
}

.vv-other-price {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: var(--vv-text);
}

.vv-other-price small {
    font-size: 12px;
    font-weight: 400;
    color: var(--vv-text-muted);
}

/* Mobile: stack everything */
@media (max-width: 620px) {
    .vv-result-top {
        grid-template-columns: 1fr;
    }

    .vv-other-card {
        grid-template-columns: 100px 1fr;
    }

    .vv-other-card__left img {
        width: 100px;
        height: 100px;
    }
}

/* Desktop: two-column layout — top card LEFT, others RIGHT */
@media (min-width: 860px) {
    .vv-results__content {
        display: grid;
        grid-template-columns: 1fr 440px;
        gap: 40px;
        align-items: start;
    }

    .vv-result-top {
        margin-bottom: 0;
        grid-template-columns: 185px 1fr;
        padding: 4rem 3rem;
        gap: 28px;
        margin-bottom: 3rem;
    }

    /* Save banner spans full grid width */
    .vv-save-banner {
        grid-column: 1 / -1;
    }
}

.vv-perfect-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
    border-bottom: 2px solid var(--Green-200, #A5D6A7);
    background: var(--color-feedback-succes-container, #C8E6C9);
    color: var(--Green-900, #1B5E20);
    font-size: 16px;
    font-weight: 600;
    width: fit-content;
    position: absolute;
    top: -10px;
    padding: 5px 12px;
}

.vv-perfect-badge::before {
    content: '\f5a2';
    font-weight: 900;
    font-family: 'fontawesome';
}

.vv-product-cat {
    font-size: var(--Font-Size-M, 16px);
    font-weight: 500;
    color: var(--color-goud-500, #7E5B0E);
    font-family: 'bogart';
    line-height: 125%;
}

.vv-product-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--vv-green);
    margin: 0;
    line-height: 1.2;
    padding-top: 0.5rem;
}

/* Stars */
.vv-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 18px;
    line-height: 1;
}

.vv-star--full  { color: var(--vv-gold); }
.vv-star--half  { color: var(--vv-gold); opacity: .6; }
.vv-star--empty { color: var(--vv-border); }

.vv-star-count {
    font-size: 12px;
    color: var(--vv-text-muted);
    margin-left: 4px;
}

/* Description list */
.vv-product-desc {
    list-style: none;
    padding: 0;
    margin: 4px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vv-product-desc li {
    font-size: 14px;
    color: var(--vv-text);
    padding-left: 20px;
    position: relative;
}

.vv-product-desc li::before {
    content: '\f00c';
    position: absolute;
    left: 0;
    color: var(--vv-green);
    font-weight: 700;
    font-family: 'FontAwesome';
}

/* Price */
.vv-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.vv-price .amount,
.vv-price { font-size: 22px; font-weight: 700; color: var(--color-alt-content-heading); font-family: 'bogart'; }
.vv-price-per-kg { font-size: 13px; color: var(--vv-text-muted); }

/* Buttons */
.vv-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background .2s, color .2s, border-color .2s, transform .15s;
}

.vv-btn--cart {
border-radius: var(--Corner-radius-Buttons, 8px);
border-bottom: 2px solid var(--color-groen-900, #001410);
background: var(--color-groen-800, #003127);
color: var(--color-text-heading-inverse, #FFF);
padding: 12px 20px;
}

.vv-btn--cart:hover {
    background: var(--vv-green-mid);
    border-color: var(--vv-green-mid);
    color: var(--vv-white) !important;
}

.vv-btn--outline {
    background: transparent;
    color: var(--vv-green);
    border-color: var(--vv-green);
}

.vv-btn--outline:hover {
    background: var(--vv-green);
    color: var(--vv-white);
    transform: translateY(-1px);
}

.vv-btn--sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* ---- Error ------------------------------------------------------ */
.vv-error-msg {
    text-align: center;
    padding: 40px;
    color: var(--vv-text-muted);
    font-size: 15px;
}

/* ---- Background silhouettes (decorative) ----------------------- */
.vv-quiz {
    position: relative;
}

/* ---- Save-to-account banner (shown below results) -------------- */
.vv-save-banner {
    position: relative;
    margin-top: 28px;
    border: 2px solid var(--vv-gold-light, #F9EFD7);
    border-radius: 12px;
    background: var(--vv-cream, #FFF9EB);
    padding: 20px 44px 20px 20px;
    animation: vv-banner-in .4s ease both;
}

@keyframes vv-banner-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.vv-save-banner__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--vv-text-muted, #999);
    font-size: 14px;
    padding: 4px 6px;
    border-radius: 4px;
    line-height: 1;
    transition: color .15s, background .15s;
}
.vv-save-banner__close:hover {
    color: var(--vv-green, #003127);
    background: var(--vv-gold-light, #F9EFD7);
}

.vv-save-banner__inner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.vv-save-banner__icon {
    width: 40px;
    height: 40px;
    background: var(--vv-green, #003127);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.vv-save-banner__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.vv-save-banner__body strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--vv-green, #003127);
}

.vv-save-banner__body span {
    font-size: 13px;
    color: var(--vv-text-muted, #666);
}

.vv-save-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

@media (max-width: 620px) {
    .vv-save-banner {
        padding: 16px 40px 16px 16px;
    }
    .vv-save-banner__inner {
        flex-direction: column;
        gap: 10px;
    }
    .vv-save-banner__icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}
