/* RBDV PQY Frontend Styles */

.rbdv-pqy-container {
    max-width: 700px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pqy-featured-image {
    text-align: center;
    margin-bottom: 30px;
}

.pqy-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.pqy-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.pqy-title {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #333;
}

.pqy-type-label {
    margin: 0;
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.pqy-question {
    margin-bottom: 35px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
}

.pqy-question-text {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
}

.pqy-question-number {
    display: inline-block;
    background: #2271b1;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    margin-right: 10px;
}

.pqy-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pqy-answer {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pqy-answer:hover {
    border-color: #2271b1;
    background: #f0f6fc;
}

.pqy-answer input[type="radio"] {
    margin: 0 15px 0 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.pqy-answer-text {
    flex: 1;
    font-size: 16px;
    color: #333;
}

.pqy-submit-section {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.pqy-submit-btn {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.pqy-submit-btn:hover {
    background: #135e96;
}

.pqy-submit-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

.pqy-results {
    margin-top: 30px;
    padding: 30px;
    background: #f0f6fc;
    border: 2px solid #2271b1;
    border-radius: 8px;
    text-align: center;
}

.pqy-result-message h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #2271b1;
}

.pqy-result-message p {
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.6;
}

.pqy-score {
    margin: 20px 0;
    font-size: 20px;
}

.pqy-score strong {
    font-size: 32px;
    color: #2271b1;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .rbdv-pqy-container {
        padding: 20px;
        margin: 15px;
    }
    
    .pqy-title {
        font-size: 22px;
    }
    
    .pqy-question-text {
        font-size: 16px;
    }
    
    .pqy-answer-text {
        font-size: 14px;
    }
    
    .pqy-submit-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
}

/* Type-specific styles */
.pqy-type-p .pqy-type-label {
    color: #4a90e2;
}

.pqy-type-q .pqy-type-label {
    color: #e24a4a;
}

.pqy-type-ty .pqy-type-label {
    color: #4ae28b;
}
