/* Personality Quiz - Frontend Styles
   Accent color: #46d6cd (teal)
*/

.pq-quiz-container {
    max-width: 720px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    font-family: inherit;
}

.pq-quiz-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.pq-quiz-title {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #222;
}

.pq-quiz-description {
    color: #666;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

/* Questions */
.pq-question {
    margin-bottom: 30px;
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
    border-left: 4px solid #46d6cd;
}

.pq-question-text {
    margin: 0 0 15px 0;
    font-size: 18px;
    line-height: 1.4;
    color: #222;
}

.pq-question-number {
    color: #46d6cd;
    margin-right: 6px;
    font-weight: 600;
}

/* Answers */
.pq-answers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pq-answer-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
    color: #333;
}

.pq-answer-option:hover {
    border-color: #46d6cd;
    background: #f0fbfa;
}

.pq-answer-option input[type="radio"] {
    margin: 0 12px 0 0;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #46d6cd;
}

.pq-answer-option.pq-selected {
    border-color: #46d6cd;
    background: #e1f7f5;
}

/* Submit button */
.pq-quiz-submit {
    text-align: center;
    margin-top: 30px;
}

.pq-submit-btn {
    background: #46d6cd;
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.pq-submit-btn:hover {
    background: #36b5ad;
}

.pq-submit-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* Error message */
.pq-quiz-error {
    margin-top: 20px;
    padding: 12px 16px;
    background: #fff3f3;
    border-left: 4px solid #d63638;
    color: #b32d2e;
    border-radius: 4px;
}

/* Loading */
.pq-quiz-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* Result display (rendered by [personality_quiz_result]) */
.pq-result-display {
    max-width: 720px;
    margin: 30px auto;
    padding: 40px 30px;
    text-align: center;
    background: linear-gradient(135deg, #f0fbfa 0%, #e1f7f5 100%);
    border-radius: 12px;
    border: 1px solid #b8e9e5;
    box-shadow: 0 2px 12px rgba(70, 214, 205, 0.1);
}

.pq-result-title {
    font-size: 28px;
    color: #1e8b85;
    margin: 0 0 20px 0;
}

.pq-result-description {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.pq-result-description p {
    margin: 0 0 12px 0;
}

.pq-result-description p:last-child {
    margin-bottom: 0;
}

/* Empty result state */
.pq-quiz-result-empty {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    text-align: center;
    background: #fafafa;
    border: 1px dashed #ccc;
    border-radius: 8px;
    color: #666;
}

/* Mobile */
@media (max-width: 600px) {
    .pq-quiz-container,
    .pq-result-display {
        padding: 20px 15px;
        margin: 15px;
    }

    .pq-quiz-title,
    .pq-result-title {
        font-size: 22px;
    }

    .pq-question {
        padding: 15px;
    }

    .pq-question-text {
        font-size: 16px;
    }

    .pq-answer-option {
        padding: 10px 12px;
        font-size: 14px;
    }
}
