/* BeautyPsy quiz interface. Scoped to .bp-quiz to avoid touching theme styles. */

.bp-quiz {
    --bp-quiz-radius: 14px;
    --bp-quiz-border: #e6e3f0;
    --bp-quiz-muted: #8a86a0;
    --bp-quiz-surface: #ffffff;
    --bp-quiz-hover: #f6f4fb;
}

/* Progress */
.bp-quiz__progress {
    margin-bottom: 28px;
}

.bp-quiz__progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--bp-quiz-muted);
    margin-bottom: 10px;
}

.bp-quiz__progress-count {
    font-weight: 700;
    color: var(--primary, #756ab6);
}

.bp-quiz__progress-track {
    height: 8px;
    background: var(--bp-quiz-border);
    border-radius: 99px;
    overflow: hidden;
}

.bp-quiz__progress-fill {
    height: 100%;
    width: 0;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--primary-light, #ac87c5), var(--primary, #756ab6));
    transition: width .35s ease;
}

/* Question block */
.bp-quiz__question {
    padding: 22px 0;
    border-bottom: 1px solid var(--bp-quiz-border);
}

.bp-quiz__question:last-of-type {
    border-bottom: 0;
}

.bp-quiz__question-number {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary, #756ab6);
    background: var(--bp-quiz-hover);
    padding: 3px 12px;
    border-radius: 99px;
    margin-bottom: 12px;
}

.bp-quiz__question-text {
    font-size: 18px;
    line-height: 1.9;
    font-weight: 600;
    margin: 0 0 18px;
}

/* Options */
.bp-quiz__options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bp-quiz__option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 2px solid var(--bp-quiz-border);
    border-radius: var(--bp-quiz-radius);
    background: var(--bp-quiz-surface);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .12s ease;
    font-size: 16px;
    margin: 0;
}

.bp-quiz__option:hover {
    border-color: var(--primary-light, #ac87c5);
    background: var(--bp-quiz-hover);
}

.bp-quiz__option:active {
    transform: scale(.995);
}

.bp-quiz__option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bp-quiz__dot {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border: 2px solid #cfc9de;
    border-radius: 50%;
    position: relative;
    transition: border-color .18s ease;
}

.bp-quiz__dot::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--primary, #756ab6);
    transform: scale(0);
    transition: transform .18s ease;
}

.bp-quiz__option.is-selected {
    border-color: var(--primary, #756ab6);
    background: var(--bp-quiz-hover);
}

.bp-quiz__option.is-selected .bp-quiz__dot {
    border-color: var(--primary, #756ab6);
}

.bp-quiz__option.is-selected .bp-quiz__dot::after {
    transform: scale(1);
}

.bp-quiz__option-text {
    flex: 1;
}

/* Unanswered highlight */
.bp-quiz__question.is-missing {
    background: #fff8f8;
    border-radius: var(--bp-quiz-radius);
    padding-inline: 16px;
    box-shadow: inset 0 0 0 1px #f3d0d0;
}

/* Navigation */
.bp-quiz__nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--bp-quiz-border);
}

.bp-quiz__nav .bp-quiz__btn {
    min-width: 130px;
}

.bp-quiz__btn {
    border: 0;
    border-radius: 99px;
    padding: 12px 26px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .18s ease, transform .12s ease;
}

.bp-quiz__btn:hover {
    opacity: .9;
}

.bp-quiz__btn:active {
    transform: translateY(1px);
}

.bp-quiz__btn--primary {
    background: var(--primary, #756ab6);
    color: #fff;
}

.bp-quiz__btn--ghost {
    background: transparent;
    color: var(--bp-quiz-muted);
    border: 2px solid var(--bp-quiz-border);
}

.bp-quiz__btn--finish {
    background: linear-gradient(90deg, var(--primary-light, #ac87c5), var(--primary, #756ab6));
    color: #fff;
}

.bp-quiz__btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* Resume notice */
.bp-quiz__notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--bp-quiz-hover);
    border: 1px solid var(--bp-quiz-border);
    border-radius: var(--bp-quiz-radius);
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 14px;
}

.bp-quiz__notice button {
    border: 0;
    background: none;
    color: var(--primary, #756ab6);
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}

@media (max-width: 575px) {
    .bp-quiz__question-text { font-size: 16px; }
    .bp-quiz__option { padding: 12px 14px; font-size: 15px; }
    .bp-quiz__nav { flex-direction: column-reverse; }
    .bp-quiz__nav .bp-quiz__btn { width: 100%; }
} 
/* Category listing cards */
.quiz-card-link {
    display: block !important;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.quiz-card-link .quiz-card {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e6e3f0;
    border-radius: 16px;
    padding: 18px;
    text-align: right;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.quiz-card-link:hover .quiz-card {
    transform: translateY(-4px);
    border-color: var(--primary-light, #ac87c5);
    box-shadow: 0 10px 28px rgba(117, 106, 182, .14);
}

/* Uniform image box regardless of the uploaded aspect ratio */
.quiz-card-link .quiz-card .text-center,
.quiz-card-link .quiz-card > div:has(> .quiz-image) {
    margin: 0 0 14px !important;
}

.quiz-card-link .quiz-image {
    display: block;
    width: 100% !important;
    height: 200px !important;
    max-width: none !important;
    object-fit: cover;
    border-radius: 12px;
}

.bp-quiz-card__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.8;
    margin: 0 0 12px;
    min-height: 56px;
    color: #2c2740;
}

.bp-quiz-card__excerpt {
    font-size: 13.5px;
    line-height: 2;
    color: #6f6b81;
    margin: 12px 0 0;
    flex: 1;
}

.quiz-card-link .quiz-info {
    border-top: 1px solid #f0eef7;
    padding-top: 12px;
    margin-top: 4px;
}

.quiz-card-link .quiz-info p {
    font-size: 13px;
    margin: 0 0 6px;
    color: #6f6b81;
    display: flex;
    align-items: center;
    gap: 6px;
}

.quiz-card-link .quiz-info p:last-child {
    margin-bottom: 0;
}