/* JP Quiz Frontend Styles */

.jp-quiz-container {
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    position: relative;
}

/* Header */
.jp-quiz-header {
    background: #fff;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.jp-quiz-count {
    margin: 0;
    color: #333;
    font-size: 19px;
}

/* Content */
.jp-quiz-content {
    background: #fff;
    padding: 30px;
}

.jp-quiz-title {
    color: #2c5aa0;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin: 0 0 20px;
    text-transform: uppercase;
}

.jp-quiz-description,
.jp-quiz-instructions {
    border: 1px solid #ddd;
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.jp-quiz-instructions h3 {
    margin-top: 0;
    color: #333;
    font-size: 16px;
}

.jp-quiz-timer {
    text-align: center;
    font-size: 18px;
    margin-bottom: 20px;
    padding: 10px;
    background: #fff3cd;
    border-radius: 4px;
}

#jp-timer-display {
    color: #e53935;
    font-weight: bold;
    font-size: 20px;
}

/* Questions */
.jp-quiz-questions {
    margin-top: 30px;
}

.jp-question {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.jp-question.error {
    border-color: #e53935;
    background: #ffebee;
}

.jp-question-title {
    color: #2c5aa0;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px;
}

.jp-answers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jp-answer {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.jp-answer:hover {
    background: #f5f5f5;
    border-color: #2c5aa0;
}

.jp-answer label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.jp-answer input[type="radio"] {
    margin-right: 10px;
    margin-bottom: 0px;
    cursor: pointer;
}

.jp-answer-label {
    font-weight: bold;
    margin-right: 8px;
    color: #2c5aa0;
}

.jp-question-error {
    color: #e53935;
    font-size: 14px;
    margin-top: 10px;
    font-weight: 500;
}

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

.jp-btn {
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jp-btn-primary {
    background: #2c5aa0;
    color: #fff;
}

.jp-btn-primary:hover {
    background: #1e3f7a;
}

/* Code Verification */
.jp-quiz-verification {
    background: #fff;
    border: 2px solid #e53935;
    border-radius: 4px;
    padding: 40px;
    text-align: center;
}

.jp-verification-content h3 {
    color: #e53935;
    font-size: 24px;
    margin: 0 0 20px;
}

.jp-code-instruction {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: left;
}

.jp-rating-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    background: #fff3cd;
    border-radius: 4px;
}

.jp-stars {
    display: flex;
    gap: 2px;
}

.jp-stars .dashicons {
    color: #ffa500;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.jp-rating-text {
    font-weight: 600;
    color: #333;
}

.jp-code-input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    max-width: 500px;
    margin: 20px auto;
}

.jp-code-input-group input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.jp-code-input-group input[type="text"]:focus {
    outline: none;
    border-color: #2c5aa0;
}

.jp-code-error {
    color: #e53935;
    margin-top: 10px;
    font-weight: 500;
}

/* Results */
.jp-quiz-results {
    background: #fff;
    border: 2px solid #4caf50;
    border-radius: 4px;
    padding: 40px;
}

.jp-quiz-results h2 {
    color: #4caf50;
    text-align: center;
    font-size: 28px;
    margin: 0 0 30px;
    text-transform: uppercase;
}

.jp-result-display {
    text-align: center;
}

.jp-personality-badge {
    margin-bottom: 30px;
}

.jp-badge-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4caf50, #81c784);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #fff;
    font-size: 48px;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
}

.jp-score-display,
.jp-category-display {
    margin-bottom: 30px;
}

.jp-score-display h3,
.jp-category-display h3 {
    color: #333;
    font-size: 20px;
    margin: 0 0 10px;
}

.jp-score-number {
    font-size: 64px;
    font-weight: bold;
    color: #4caf50;
}

.jp-result-title {
    color: #2c5aa0;
    font-size: 24px;
    margin: 20px 0;
}

.jp-result-description {
    text-align: left;
    line-height: 1.6;
    margin: 20px 0;
}

.jp-personality-breakdown {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 4px;
    margin-top: 30px;
    text-align: left;
}

.jp-personality-breakdown h4 {
    margin-top: 0;
    color: #333;
}

.jp-personality-breakdown ul {
    list-style: none;
    padding: 0;
}

.jp-personality-breakdown li {
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.jp-personality-breakdown li:last-child {
    border-bottom: none;
}

/* Loading Overlay */
.jp-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.jp-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2c5aa0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* MBTI Personality Description */
.jp-personality-description {
    margin-top: 30px;
}

.jp-personality-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    border-left: 4px solid #2271b1;
}

.jp-personality-content h4 {
    color: #2271b1;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.jp-personality-content-body {
    color: #3c434a;
    line-height: 1.8;
    font-size: 15px;
}

.jp-personality-content-body p {
    margin-bottom: 15px;
}

.jp-personality-content-body strong {
    color: #2271b1;
    font-weight: 600;
}

.jp-personality-content-body ul,
.jp-personality-content-body ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.jp-personality-content-body li {
    margin-bottom: 8px;
}
/* Responsive */
@media (max-width: 768px) {
    .jp-quiz-container {
        padding: 10px;
    }

    .jp-quiz-content,
    .jp-quiz-verification,
    .jp-quiz-results {
        padding: 20px;
    }

    .jp-code-input-group {
        flex-direction: column;
    }

    .jp-code-input-group input[type="text"],
    .jp-code-input-group button {
        width: 100%;
    }

    .jp-badge-circle {
        width: 150px;
        height: 150px;
        font-size: 36px;
    }
}

/* ===== DASS-21 RESULTS DISPLAY ===== */

.dass-main-title {
    text-align: center;
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
}

.dass-results-container {
    margin: 30px 0;
}

/* ===== RESULT ITEM ===== */
.dass-result-item {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #6c757d;
    transition: all 0.3s ease;
}

.dass-result-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Border colors */
.dass-result-item.dass-depression {
    border-left-color: #5856d6;
}

.dass-result-item.dass-anxiety {
    border-left-color: #ff9500;
}

.dass-result-item.dass-stress {
    border-left-color: #ff3b30;
}

/* ===== HEADER ===== */
.dass-result-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.dass-icon {
    font-size: 32px;
    margin-right: 12px;
}

.dass-result-header h4 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
}

/* ===== SCORE INFO ===== */
.dass-score-info {
    display: flex;
    align-items: baseline;
    margin-bottom: 12px;
}

.dass-score-label {
    font-size: 16px;
    color: #6c757d;
    margin-right: 8px;
}

.dass-score-value {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
}

.dass-score-max {
    font-size: 18px;
    color: #6c757d;
    margin-left: 2px;
}

/* ===== PROGRESS BAR ===== */
.dass-score-bar {
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
}

.dass-score-progress {
    height: 100%;
    transition: width 1.5s ease;
    border-radius: 6px;
}

/* Progress colors by severity */
.dass-score-progress.dass-normal {
    background: linear-gradient(90deg, #28a745 0%, #5cb85c 100%);
}

.dass-score-progress.dass-mild {
    background: linear-gradient(90deg, #ffc107 0%, #ffcd39 100%);
}

.dass-score-progress.dass-moderate {
    background: linear-gradient(90deg, #fd7e14 0%, #ff922b 100%);
}

.dass-score-progress.dass-severe {
    background: linear-gradient(90deg, #dc3545 0%, #e4606d 100%);
}

.dass-score-progress.dass-extremely-severe {
    background: linear-gradient(90deg, #842029 0%, #a83240 100%);
}

/* ===== SEVERITY BADGE ===== */
.dass-severity-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.dass-severity-badge.dass-normal {
    background: #d1e7dd;
    color: #0f5132;
}

.dass-severity-badge.dass-mild {
    background: #fff3cd;
    color: #856404;
}

.dass-severity-badge.dass-moderate {
    background: #ffe5d0;
    color: #974c00;
}

.dass-severity-badge.dass-severe {
    background: #f8d7da;
    color: #842029;
}

.dass-severity-badge.dass-extremely-severe {
    background: #842029;
    color: #fff;
}

/* ===== DESCRIPTION ===== */
.dass-description {
    font-size: 15px;
    line-height: 1.6;
    color: #495057;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* ===== NOTE BOX ===== */
.dass-note {
    background: linear-gradient(135deg, #fff3cd 0%, #fff8e1 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
}

.dass-note-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.dass-note-header .dashicons {
    color: #856404;
    font-size: 24px;
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.dass-note-header strong {
    color: #856404;
    font-size: 16px;
}

.dass-note p {
    margin: 0;
    color: #856404;
    font-size: 14px;
    line-height: 1.6;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dass-result-item {
    animation: fadeInUp 0.5s ease;
}

.dass-result-item:nth-child(1) {
    animation-delay: 0.1s;
}

.dass-result-item:nth-child(2) {
    animation-delay: 0.2s;
}

.dass-result-item:nth-child(3) {
    animation-delay: 0.3s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .dass-main-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .dass-result-item {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    .dass-icon {
        font-size: 24px;
        margin-right: 8px;
    }

    .dass-result-header h4 {
        font-size: 18px;
    }

    .dass-score-value {
        font-size: 24px;
    }

    .dass-score-max {
        font-size: 16px;
    }

    .dass-severity-badge {
        font-size: 13px;
        padding: 6px 14px;
    }

    .dass-description {
        font-size: 14px;
    }

    .dass-note {
        padding: 15px;
    }

    .dass-note p {
        font-size: 13px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .dass-result-item {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .dass-note {
        background: #fff;
        border: 1px solid #ffc107;
    }
}
/* RADS Results */
.rads-main-title {
    text-align: center;
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
}

.rads-result-container {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.rads-score-circle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 30px;
}

.rads-score-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.rads-score-max {
    font-size: 18px;
    opacity: 0.9;
}

.rads-score-bar {
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.rads-score-progress {
    height: 100%;
    transition: width 1.5s ease;
    border-radius: 10px;
}

.rads-score-progress.rads-normal {
    background: linear-gradient(90deg, #28a745 0%, #5cb85c 100%);
}

.rads-score-progress.rads-mild {
    background: linear-gradient(90deg, #ffc107 0%, #ffcd39 100%);
}

.rads-score-progress.rads-moderate {
    background: linear-gradient(90deg, #fd7e14 0%, #ff922b 100%);
}

.rads-score-progress.rads-severe {
    background: linear-gradient(90deg, #dc3545 0%, #e4606d 100%);
}

.rads-severity-badge {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0;
}

.rads-severity-badge.rads-normal {
    background: #d1e7dd;
    color: #0f5132;
}

.rads-severity-badge.rads-mild {
    background: #fff3cd;
    color: #856404;
}

.rads-severity-badge.rads-moderate {
    background: #ffe5d0;
    color: #974c00;
}

.rads-severity-badge.rads-severe {
    background: #f8d7da;
    color: #842029;
}

.rads-description {
    font-size: 16px;
    line-height: 1.6;
    color: #495057;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .rads-result-container {
        padding: 30px 20px;
    }

    .rads-score-circle {
        width: 120px;
        height: 120px;
    }

    .rads-score-number {
        font-size: 36px;
    }

    .rads-main-title {
        font-size: 22px;
    }
}
/* ===== BECK DEPRESSION INVENTORY STYLING ===== */

.beck-main-title {
    text-align: center;
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    animation: fadeInDown 0.6s ease;
}

.beck-result-container {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    animation: fadeIn 0.8s ease;
}

.beck-score-circle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
    animation: scaleIn 0.8s ease;
}

.beck-score-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.beck-score-max {
    font-size: 18px;
    opacity: 0.9;
    margin-top: 5px;
}

.beck-score-bar {
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
    position: relative;
}

.beck-score-progress {
    height: 100%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    position: relative;
}

/* Progress bar colors by severity */
.beck-score-progress.beck-minimal {
    background: linear-gradient(90deg, #28a745 0%, #5cb85c 100%);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.beck-score-progress.beck-mild {
    background: linear-gradient(90deg, #ffc107 0%, #ffcd39 100%);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.beck-score-progress.beck-moderate {
    background: linear-gradient(90deg, #fd7e14 0%, #ff922b 100%);
    box-shadow: 0 2px 8px rgba(253, 126, 20, 0.3);
}

.beck-score-progress.beck-severe {
    background: linear-gradient(90deg, #dc3545 0%, #e4606d 100%);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.beck-severity-badge {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0;
    animation: bounceIn 0.8s ease 0.3s both;
}

.beck-severity-badge.beck-minimal {
    background: #d1e7dd;
    color: #0f5132;
    border: 2px solid #badbcc;
}

.beck-severity-badge.beck-mild {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffeaa7;
}

.beck-severity-badge.beck-moderate {
    background: #ffe5d0;
    color: #974c00;
    border: 2px solid #ffd7ba;
}

.beck-severity-badge.beck-severe {
    background: #f8d7da;
    color: #842029;
    border: 2px solid #f1aeb5;
}

.beck-description {
    font-size: 16px;
    line-height: 1.6;
    color: #495057;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    animation: fadeIn 1s ease 0.5s both;
}

/* Animations (reuse from RADS) */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .beck-result-container {
        padding: 30px 20px;
    }

    .beck-score-circle {
        width: 120px;
        height: 120px;
    }

    .beck-score-number {
        font-size: 36px;
    }

    .beck-score-max {
        font-size: 16px;
    }

    .beck-main-title {
        font-size: 22px;
    }

    .beck-severity-badge {
        font-size: 16px;
        padding: 10px 24px;
    }

    .beck-description {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .beck-result-container {
        padding: 20px 15px;
    }

    .beck-score-circle {
        width: 100px;
        height: 100px;
    }

    .beck-score-number {
        font-size: 32px;
    }

    .beck-main-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

/* Print styles */
@media print {
    .beck-result-container {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }

    .beck-score-circle {
        box-shadow: none;
        border: 2px solid #3498db;
    }

    .beck-score-progress {
        box-shadow: none !important;
    }
}
/* ===== BECK DEPRESSION INVENTORY STYLING ===== */

.beck-main-title {
    text-align: center;
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    animation: fadeInDown 0.6s ease;
}

.beck-result-container {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    animation: fadeIn 0.8s ease;
}

.beck-score-circle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
    animation: scaleIn 0.8s ease;
}

.beck-score-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.beck-score-max {
    font-size: 18px;
    opacity: 0.9;
    margin-top: 5px;
}

.beck-score-bar {
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
    position: relative;
}

.beck-score-progress {
    height: 100%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    position: relative;
}

/* Progress bar colors by severity */
.beck-score-progress.beck-minimal {
    background: linear-gradient(90deg, #28a745 0%, #5cb85c 100%);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.beck-score-progress.beck-mild {
    background: linear-gradient(90deg, #ffc107 0%, #ffcd39 100%);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.beck-score-progress.beck-moderate {
    background: linear-gradient(90deg, #fd7e14 0%, #ff922b 100%);
    box-shadow: 0 2px 8px rgba(253, 126, 20, 0.3);
}

.beck-score-progress.beck-severe {
    background: linear-gradient(90deg, #dc3545 0%, #e4606d 100%);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.beck-severity-badge {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0;
    animation: bounceIn 0.8s ease 0.3s both;
}

.beck-severity-badge.beck-minimal {
    background: #d1e7dd;
    color: #0f5132;
    border: 2px solid #badbcc;
}

.beck-severity-badge.beck-mild {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffeaa7;
}

.beck-severity-badge.beck-moderate {
    background: #ffe5d0;
    color: #974c00;
    border: 2px solid #ffd7ba;
}

.beck-severity-badge.beck-severe {
    background: #f8d7da;
    color: #842029;
    border: 2px solid #f1aeb5;
}

.beck-description {
    font-size: 16px;
    line-height: 1.6;
    color: #495057;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    animation: fadeIn 1s ease 0.5s both;
}

/* Animations (reuse from RADS) */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .beck-result-container {
        padding: 30px 20px;
    }

    .beck-score-circle {
        width: 120px;
        height: 120px;
    }

    .beck-score-number {
        font-size: 36px;
    }

    .beck-score-max {
        font-size: 16px;
    }

    .beck-main-title {
        font-size: 22px;
    }

    .beck-severity-badge {
        font-size: 16px;
        padding: 10px 24px;
    }

    .beck-description {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .beck-result-container {
        padding: 20px 15px;
    }

    .beck-score-circle {
        width: 100px;
        height: 100px;
    }

    .beck-score-number {
        font-size: 32px;
    }

    .beck-main-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

/* Print styles */
@media print {
    .beck-result-container {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }

    .beck-score-circle {
        box-shadow: none;
        border: 2px solid #3498db;
    }

    .beck-score-progress {
        box-shadow: none !important;
    }
}
/* ===== BECK DEPRESSION INVENTORY STYLING ===== */

.beck-main-title {
    text-align: center;
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    animation: fadeInDown 0.6s ease;
}

.beck-result-container {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    animation: fadeIn 0.8s ease;
}

.beck-score-circle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: 0 auto 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    animation: scaleIn 0.8s ease;
    position: relative;
}

/* Viền trang trí */
.beck-score-circle::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid rgba(102, 126, 234, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.beck-score-number {
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.beck-score-max {
    font-size: 20px;
    opacity: 0.9;
    margin-top: 8px;
    font-weight: 500;
}

.beck-score-bar {
    height: 24px;
    background: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    margin: 30px auto 20px;
    position: relative;
    max-width: 400px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.beck-score-progress {
    height: 100%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Progress bar colors by severity */
.beck-score-progress.beck-minimal {
    background: linear-gradient(90deg, #34D399 0%, #10B981 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.beck-score-progress.beck-mild {
    background: linear-gradient(90deg, #FBBF24 0%, #F59E0B 100%);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.beck-score-progress.beck-moderate {
    background: linear-gradient(90deg, #FB923C 0%, #F97316 100%);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
}

.beck-score-progress.beck-severe {
    background: linear-gradient(90deg, #F87171 0%, #EF4444 100%);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.beck-severity-badge {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 30px;
    font-size: 20px;
    font-weight: 700;
    margin: 20px 0;
    animation: bounceIn 0.8s ease 0.3s both;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.beck-severity-badge.beck-minimal {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    color: #065F46;
    border: 2px solid #6EE7B7;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.beck-severity-badge.beck-mild {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    color: #92400E;
    border: 2px solid #FCD34D;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.beck-severity-badge.beck-moderate {
    background: linear-gradient(135deg, #FFEDD5 0%, #FED7AA 100%);
    color: #9A3412;
    border: 2px solid #FDBA74;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.beck-severity-badge.beck-severe {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #991B1B;
    border: 2px solid #FCA5A5;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.beck-description {
    font-size: 17px;
    line-height: 1.7;
    color: #374151;
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    border-radius: 12px;
    animation: fadeIn 1s ease 0.5s both;
    border-left: 4px solid #667eea;
}

/* Animations (reuse from RADS) */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .beck-result-container {
        padding: 30px 20px;
    }

    .beck-score-circle {
        width: 120px;
        height: 120px;
    }

    .beck-score-number {
        font-size: 36px;
    }

    .beck-score-max {
        font-size: 16px;
    }

    .beck-main-title {
        font-size: 22px;
    }

    .beck-severity-badge {
        font-size: 16px;
        padding: 10px 24px;
    }

    .beck-description {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .beck-result-container {
        padding: 20px 15px;
    }

    .beck-score-circle {
        width: 100px;
        height: 100px;
    }

    .beck-score-number {
        font-size: 32px;
    }

    .beck-main-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

/* Print styles */
@media print {
    .beck-result-container {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }

    .beck-score-circle {
        box-shadow: none;
        border: 2px solid #3498db;
    }

    .beck-score-progress {
        box-shadow: none !important;
    }
}
/* ===== EPDS (EDINBURGH POSTNATAL DEPRESSION SCALE) STYLING ===== */

.epds-main-title {
    text-align: center;
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    animation: fadeInDown 0.6s ease;
}

.epds-result-container {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    animation: fadeIn 0.8s ease;
}

.epds-score-circle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, #EC4899 0%, #BE185D 100%);
    color: white;
    margin: 0 auto 30px;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.3);
    animation: scaleIn 0.8s ease;
    position: relative;
}

/* Viền trang trí */
.epds-score-circle::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid rgba(236, 72, 153, 0.2);
    animation: pulse 2s infinite;
}

.epds-score-number {
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.epds-score-max {
    font-size: 20px;
    opacity: 0.9;
    margin-top: 8px;
    font-weight: 500;
}

.epds-score-bar {
    height: 24px;
    background: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    margin: 30px auto 20px;
    position: relative;
    max-width: 400px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.epds-score-progress {
    height: 100%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Progress bar colors by severity */
.epds-score-progress.epds-normal {
    background: linear-gradient(90deg, #34D399 0%, #10B981 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.epds-score-progress.epds-possible {
    background: linear-gradient(90deg, #FBBF24 0%, #F59E0B 100%);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.epds-score-progress.epds-depression {
    background: linear-gradient(90deg, #F87171 0%, #EF4444 100%);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.epds-severity-badge {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 30px;
    font-size: 20px;
    font-weight: 700;
    margin: 20px 0;
    animation: bounceIn 0.8s ease 0.3s both;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.epds-severity-badge.epds-normal {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    color: #065F46;
    border: 2px solid #6EE7B7;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.epds-severity-badge.epds-possible {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    color: #92400E;
    border: 2px solid #FCD34D;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.epds-severity-badge.epds-depression {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #991B1B;
    border: 2px solid #FCA5A5;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.epds-description {
    font-size: 17px;
    line-height: 1.7;
    color: #374151;
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #FCE7F3 0%, #FDF2F8 100%);
    border-radius: 12px;
    animation: fadeIn 1s ease 0.5s both;
    border-left: 4px solid #EC4899;
}

/* ===== DANGER WARNING (CÂU 10) ===== */

.epds-danger-warning {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    border-left: 6px solid #DC2626;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
    animation: shake 0.5s ease, fadeIn 0.8s ease;
}

.epds-danger-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #991B1B;
    font-size: 20px;
    font-weight: 700;
}

.epds-danger-icon {
    font-size: 32px;
    animation: pulse 2s infinite;
}

.epds-danger-message {
    font-size: 17px;
    line-height: 1.7;
    color: #7F1D1D;
    margin-bottom: 20px;
}

.epds-danger-message strong {
    font-weight: 700;
    color: #991B1B;
}

.epds-hotline {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.epds-hotline-title {
    font-weight: 700;
    font-size: 16px;
    color: #DC2626;
    margin-bottom: 12px;
}

.epds-hotline-number {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #DC2626;
    margin: 8px 0;
}

.epds-hotline-number .dashicons {
    font-size: 28px;
}

.epds-hotline-desc {
    font-size: 14px;
    color: #6B7280;
    margin-top: 8px;
}

/* Shake animation for danger warning */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Reuse animations from Beck */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .epds-result-container {
        padding: 30px 20px;
    }

    .epds-score-circle {
        width: 140px;
        height: 140px;
    }

    .epds-score-number {
        font-size: 48px;
    }

    .epds-main-title {
        font-size: 22px;
    }

    .epds-danger-warning {
        padding: 20px;
    }

    .epds-hotline-number {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .epds-score-circle {
        width: 120px;
        height: 120px;
    }

    .epds-score-number {
        font-size: 40px;
    }

    .epds-danger-warning {
        padding: 15px;
    }
}

/* Print styles */
@media print {
    .epds-danger-warning {
        border: 2px solid #DC2626;
        box-shadow: none;
    }

    .epds-score-circle {
        box-shadow: none;
        border: 2px solid #EC4899;
    }
}