/* Supplement Advisor – v1.0.0 */

.sa-advisor {
    max-width: 680px;
    margin: 2rem auto;
    font-family: inherit;
}

/* --- Card wrapper --- */
.sa-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 2px 16px rgba(15, 32, 68, .06);
}

/* --- Header --- */
.sa-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f2044;
    margin: 0 0 .5rem;
    line-height: 1.25;
}

.sa-subtitle {
    color: #6b7280;
    margin: 0 0 1.25rem;
    font-size: .95rem;
}

/* --- Progress bar --- */
.sa-progress {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: .5rem;
}

.sa-progress-bar {
    height: 100%;
    background: #5282ff;
    border-radius: 2px;
    transition: width .3s ease;
}

.sa-step-label {
    font-size: .8rem;
    color: #9ca3af;
    margin: 0 0 1.75rem;
    text-align: right;
}

/* --- Vraag + opties --- */
.sa-question {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f2044;
    margin: 0 0 1rem;
}

.sa-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-bottom: 1.25rem;
}

.sa-option {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .875rem 1.1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    user-select: none;
}

.sa-option:hover {
    border-color: #5282ff;
    background: #f5f7ff;
}

.sa-option.is-selected {
    border-color: #5282ff;
    background: #eef1ff;
}

.sa-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sa-option span {
    font-size: .93rem;
    color: #111827;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.sa-option span small {
    font-size: .78rem;
    color: #9ca3af;
    font-weight: 400;
}

/* --- Fout-melding --- */
.sa-error {
    font-size: .875rem;
    color: #dc2626;
    margin: -.5rem 0 .75rem;
}

/* --- Navigatieknoppen --- */
.sa-nav {
    display: flex;
    gap: .75rem;
    justify-content: flex-end;
    margin-top: .5rem;
}

.sa-btn {
    padding: .7rem 1.4rem;
    border-radius: 8px;
    font-size: .93rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
    line-height: 1;
}

.sa-btn-primary {
    background: #0f2044;
    color: #fff;
    border-color: #0f2044;
}

.sa-btn-primary:hover {
    background: #1a3060;
    border-color: #1a3060;
}

.sa-btn-ghost {
    background: transparent;
    color: #0f2044;
    border-color: #d1d5db;
}

.sa-btn-ghost:hover {
    background: #f9fafb;
}

/* --- Laad-indicator --- */
.sa-loading {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #6b7280;
}

.sa-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e5e7eb;
    border-top-color: #5282ff;
    border-radius: 50%;
    animation: sa-spin .7s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes sa-spin {
    to { transform: rotate(360deg); }
}

/* --- Resultaten --- */
.sa-results h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f2044;
    margin: 0 0 1.25rem;
}

.sa-product-card {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: .875rem;
    transition: border-color .15s;
}

.sa-product-card.is-top {
    border-color: #5282ff;
}

.sa-product-card img,
.sa-img-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f3f4f6;
}

.sa-product-info {
    flex: 1;
    min-width: 0;
}

.sa-product-name {
    font-weight: 700;
    color: #0f2044;
    font-size: .95rem;
    margin: 0 0 .3rem;
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
}

.sa-badge {
    display: inline-block;
    background: #5282ff;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: .15rem .45rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}

.sa-product-benefit {
    font-size: .82rem;
    color: #6b7280;
    margin: 0 0 .35rem;
    line-height: 1.45;
}

.sa-product-price {
    font-weight: 700;
    color: #0f2044;
    font-size: .93rem;
    margin: 0;
}

.sa-add-to-cart {
    display: inline-block;
    white-space: nowrap;
    padding: .6rem 1.1rem;
    background: #5282ff;
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: .85rem;
    font-weight: 600;
    transition: background .15s;
    flex-shrink: 0;
}

.sa-add-to-cart:hover {
    background: #3d6aee;
}

#sa-restart {
    margin-top: .75rem;
}

/* --- Responsive --- */
@media ( max-width: 480px ) {
    .sa-card {
        padding: 1.5rem;
    }

    .sa-options {
        grid-template-columns: 1fr;
    }

    .sa-product-card {
        flex-wrap: wrap;
    }

    .sa-add-to-cart {
        width: 100%;
        text-align: center;
        margin-top: .5rem;
    }
}
