* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #065A82;
    --secondary: #1C7293;
    --success: #02C39A;
    --warning: #F77F00;
    --danger: #DC2F02;
    --dark: #212529;
    --light: #F8F9FA;
    --border: #DEE2E6;
    --text: #495057;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #043b55 0%, var(--primary) 50%, var(--secondary) 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 8px;
}

.header-logo {
    height: 55px;
    width: auto;
    filter: brightness(0) invert(1);
}

.brand-text h1 {
    font-size: 1.8rem;
    margin-bottom: 2px;
    line-height: 1.2;
}

.brand-text p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.brand-tagline {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 5px;
}

.brand-link {
    color: #90d4f7;
    text-decoration: none;
}

.brand-link:hover {
    text-decoration: underline;
    color: white;
}

.header-content h1 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.header-content p {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Navigation */
.nav {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.nav-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid transparent;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.3);
}

.nav-btn.active {
    background: white;
    color: var(--primary);
    border-color: white;
}

/* Progress Bar */
.progress-container {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
}

.progress-bar {
    height: 8px;
    background: var(--success);
    border-radius: 10px;
    transition: width 0.3s;
    width: 0%;
}

.progress-text {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

/* Sections */
.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cards */
.card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.card h2 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.subtitle {
    color: var(--text);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--border);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    color: var(--secondary);
    background: var(--light);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Field validation styles */
.field-hint {
    display: block;
    font-size: 0.82rem;
    color: #6c757d;
    margin-top: 4px;
}

.field-error {
    display: none;
    font-size: 0.82rem;
    color: var(--danger);
    margin-top: 4px;
    font-weight: 500;
}
.field-error.visible {
    display: block;
}

.form-group input.input-valid {
    border-color: var(--success);
    background: #f0fdf8;
}
.form-group input.input-invalid {
    border-color: var(--danger);
    background: #fff5f5;
}

.personal-email-warning {
    display: block;
    font-size: 0.82rem;
    color: var(--warning);
    margin-top: 4px;
}

/* Email Modal styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}
.modal-content {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 520px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}
.modal-header h3 { margin: 0; font-size: 1.15rem; }
.modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
}
.modal-close:hover { opacity: 1; }
.modal-body {
    padding: 24px;
}
.modal-body textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}
.modal-body textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.email-options {
    margin-top: 12px;
}
.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}
.checkbox-inline input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: #f8f9fa;
}
.email-status {
    padding: 12px 24px;
    text-align: center;
    font-weight: 500;
    font-size: 0.92rem;
}
.email-status.sending {
    background: #fff3cd;
    color: #856404;
}
.email-status.success {
    background: #d4edda;
    color: #155724;
}
.email-status.error {
    background: #f8d7da;
    color: #721c24;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.checkbox-group label:hover {
    background: var(--light);
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 12px;
    cursor: pointer;
    transform: scale(1.2);
}

.info-text {
    color: var(--text);
    font-style: italic;
    margin-bottom: 15px;
    padding: 10px;
    background: #E7F3FF;
    border-left: 4px solid var(--primary);
    border-radius: 5px;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(6, 90, 130, 0.3);
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 90, 130, 0.4);
}

.btn-secondary {
    background: var(--success);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin: 10px 5px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #019875;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin: 10px 5px;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Results Styling */
.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.result-card {
    padding: 20px;
    border-radius: 10px;
    border: 2px solid var(--border);
    background: var(--light);
}

.result-card h3 {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.risk-critical {
    background: #FFE0E0;
    border-color: var(--danger);
    color: var(--danger);
}

.risk-high {
    background: #FFF3E0;
    border-color: var(--warning);
    color: var(--warning);
}

.risk-medium {
    background: #FFF9E0;
    border-color: #FFD700;
    color: #CC9900;
}

.risk-low {
    background: #E0F7E0;
    border-color: var(--success);
    color: var(--success);
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

thead {
    background: var(--primary);
    color: white;
}

th, td {
    padding: 12px;
    text-align: left;
    border: 1px solid var(--border);
}

tbody tr:nth-child(even) {
    background: var(--light);
}

tbody tr:hover {
    background: #E7F3FF;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-yes {
    background: #D4EDDA;
    color: #155724;
}

.badge-no {
    background: #F8D7DA;
    color: #721C24;
}

.badge-conditional {
    background: #FFF3CD;
    color: #856404;
}

/* Action Plan */
.action-section {
    margin: 25px 0;
    padding: 20px;
    background: var(--light);
    border-left: 5px solid var(--primary);
    border-radius: 8px;
}

.action-section h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.action-section ul {
    margin-left: 20px;
}

.action-section li {
    margin-bottom: 10px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin: 30px 0;
}

.cta-section h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.cta-section p {
    margin-bottom: 20px;
    opacity: 0.95;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header {
        padding: 20px;
    }

    .header-content h1 {
        font-size: 1.5rem;
    }

    .card {
        padding: 20px;
    }

    .nav {
        flex-direction: column;
    }

    .nav-btn {
        width: 100%;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 0.85rem;
    }

    th, td {
        padding: 8px;
    }
}

/* Dynamic Compliance Sections */
.compliance-category-header {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    padding: 10px 16px;
    margin: 20px 0 12px 0;
    border-radius: 6px;
    background: #E7F3FF;
    border-left: 4px solid var(--primary);
}

.compliance-category-header:first-child {
    margin-top: 0;
}

.sdf-header {
    background: #FFF3E0;
    border-left-color: var(--warning);
    color: #7A4100;
}

.children-header {
    background: #FCE4EC;
    border-left-color: #E91E63;
    color: #880E4F;
}

.crossborder-header {
    background: #E8F5E9;
    border-left-color: #4CAF50;
    color: #1B5E20;
}

.conditional-compliance-group {
    margin-top: 15px;
    padding: 15px;
    border-radius: 10px;
    border: 2px dashed var(--border);
    background: #FAFBFC;
}

.conditional-note {
    font-size: 0.88rem;
    color: var(--text);
    font-style: italic;
    margin-bottom: 12px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
}

.section-ref {
    font-size: 0.82rem;
    color: var(--secondary);
    font-weight: 400;
}

.compliance-summary-bar {
    margin-top: 20px;
    padding: 14px 18px;
    background: var(--light);
    border-radius: 8px;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

/* App Footer */
.app-footer {
    background: linear-gradient(135deg, #043b55 0%, var(--primary) 100%);
    color: white;
    padding: 35px 30px;
    border-radius: 15px;
    margin-top: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.footer-content {
    max-width: 700px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.footer-logo {
    height: 38px;
    filter: brightness(0) invert(1);
}

.footer-product-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-desc {
    font-size: 0.92rem;
    opacity: 0.9;
    margin-bottom: 12px;
}

.footer-features {
    margin-bottom: 14px;
    font-size: 0.95rem;
    font-weight: 600;
}

.footer-feature {
    display: inline-block;
    margin: 0 6px;
}

.footer-divider {
    opacity: 0.5;
}

.footer-compliance-badges {
    margin-bottom: 18px;
}

.compliance-badge {
    display: inline-block;
    padding: 4px 14px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    margin: 3px 4px;
    letter-spacing: 0.5px;
}

.footer-company p {
    margin-bottom: 3px;
}

.footer-link {
    color: #90d4f7;
    text-decoration: none;
    font-weight: 600;
}

.footer-link:hover {
    text-decoration: underline;
    color: white;
}

.footer-address {
    font-size: 0.8rem;
    opacity: 0.7;
}

.footer-copy {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 14px;
}

/* Piivacy CTA Section */
.piivacy-cta {
    background: linear-gradient(135deg, #043b55 0%, var(--primary) 50%, var(--secondary) 100%);
}

.piivacy-solution-section {
    border-left-color: var(--success);
}

/* Detailed Gap Analysis */
.detailed-gap-section {
    margin: 25px 0;
}

.detailed-gap-section > h3 {
    color: var(--danger);
    font-size: 1.3rem;
    margin-bottom: 5px;
    padding: 12px 20px;
    background: #FFF0F0;
    border-radius: 8px;
    border-left: 5px solid var(--danger);
}

.gap-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
}

.gap-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.gap-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #FFF8F6;
    border-bottom: 1px solid var(--border);
}

.gap-number {
    background: var(--danger);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.gap-title-block {
    flex: 1;
}

.gap-title-block h4 {
    color: var(--dark);
    font-size: 1rem;
    margin-bottom: 2px;
}

.gap-section-badge {
    display: inline-block;
    background: #E7F3FF;
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
}

.gap-penalty-badge {
    background: #FFE0E0;
    color: var(--danger);
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
}

.gap-card-body {
    padding: 16px 18px;
}

.gap-description {
    margin-bottom: 14px;
}

.gap-description strong,
.gap-remediation strong {
    display: block;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 4px;
}

.gap-description p {
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.5;
}

.gap-remediation {
    background: #F0FAF6;
    padding: 12px 14px;
    border-radius: 6px;
    border-left: 3px solid var(--success);
}

.gap-remediation strong {
    color: #0a7c5a;
}

.gap-remediation p {
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* Slide in animation for dynamic sections */
.slide-in {
    animation: slideIn 0.35s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* ===== DPDP Deep Assessment Accordion & Questions ===== */

.dpdp-section {
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.dpdp-section:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.dpdp-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--light);
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
    gap: 12px;
}

.dpdp-section-header:hover {
    background: #E7F3FF;
}

.dpdp-section-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.dpdp-section-header-left h4 {
    font-size: 0.95rem;
    color: var(--dark);
    margin: 0;
    line-height: 1.3;
}

.dpdp-section-header-left .section-ref {
    font-size: 0.78rem;
    color: var(--secondary);
    font-weight: 400;
    white-space: nowrap;
}

.dpdp-section-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.section-score-bar {
    width: 80px;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.section-score-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s, background 0.3s;
}

.section-score-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    min-width: 32px;
    text-align: right;
}

.dpdp-section-chevron {
    font-size: 0.9rem;
    transition: transform 0.25s;
    color: var(--text);
}

.dpdp-section.open .dpdp-section-chevron {
    transform: rotate(180deg);
}

.dpdp-section-body {
    display: none;
    padding: 0 18px 14px;
    border-top: 1px solid var(--border);
}

.dpdp-section.open .dpdp-section-body {
    display: block;
    animation: fadeIn 0.25s;
}

.dpdp-section.conditional-section {
    border-style: dashed;
    border-color: var(--warning);
}

.dpdp-section.conditional-section .dpdp-section-header {
    background: #FFF8F0;
}

/* Question Card */
.dpdp-question {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.dpdp-question:last-child {
    border-bottom: none;
}

.dpdp-question-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.dpdp-question-number {
    background: var(--primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.dpdp-question-text {
    flex: 1;
    font-size: 0.92rem;
    color: var(--dark);
    line-height: 1.5;
    font-weight: 500;
}

.question-weight {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    margin-top: 2px;
}

.question-weight.critical {
    background: #FFE0E0;
    color: var(--danger);
}

.question-weight.high {
    background: #FFF3E0;
    color: #E85D04;
}

.question-weight.standard {
    background: #E7F3FF;
    color: var(--primary);
}

/* Radio Button Options */
.dpdp-question-options {
    display: flex;
    gap: 8px;
    margin-left: 34px;
    flex-wrap: wrap;
}

.dpdp-radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    color: var(--text);
    background: white;
}

.dpdp-radio-label:hover {
    border-color: var(--primary);
    background: #f0f7ff;
}

.dpdp-radio-label input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.dpdp-radio-label.selected-yes {
    border-color: var(--success);
    background: #f0fdf8;
    color: #155724;
}

.dpdp-radio-label.selected-partial {
    border-color: var(--warning);
    background: #fff8f0;
    color: #7A4100;
}

.dpdp-radio-label.selected-no {
    border-color: var(--danger);
    background: #fff5f5;
    color: #721C24;
}

.dpdp-radio-label.selected-not_sure {
    border-color: #6c757d;
    background: #f5f5f5;
    color: #495057;
}

/* BFSI Hint */
.question-bfsi-hint {
    margin: 8px 0 0 34px;
    padding: 8px 12px;
    background: #FFF8F0;
    border-left: 3px solid var(--warning);
    border-radius: 0 6px 6px 0;
    font-size: 0.82rem;
    color: #7A4100;
    line-height: 1.4;
}

.question-bfsi-hint::before {
    content: 'BFSI Context: ';
    font-weight: 700;
}

/* Gap Severity Badges */
.gap-severity-critical {
    background: #FFE0E0;
    color: var(--danger);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

.gap-severity-high {
    background: #FFF3E0;
    color: #E85D04;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

.gap-severity-medium {
    background: #FFF9E0;
    color: #CC9900;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Section Score Bars in Results */
.results-section-scores {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.results-section-score-card {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--light);
}

.results-section-score-card h4 {
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 8px;
}

.results-section-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}

.results-section-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s;
}

.results-section-score-label {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Section Scores in Results */
.results-section-score-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.results-section-score-item:last-child {
    border-bottom: none;
}

.results-section-label {
    flex: 1;
    font-size: 0.88rem;
    color: var(--dark);
    font-weight: 500;
    min-width: 180px;
}

.results-section-bar-wrapper {
    flex: 2;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.results-section-bar-wrapper .results-section-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s;
}

.results-section-pct {
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 40px;
    text-align: right;
}

/* Gap Section Grouping */
.gap-section-group {
    margin-bottom: 25px;
}

.gap-section-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 16px;
    background: #FFF0F0;
    border-radius: 8px;
    border-left: 4px solid var(--danger);
}

.gap-section-group-header h4 {
    font-size: 1rem;
    color: var(--dark);
    margin: 0;
}

.gap-section-group-header .gap-count-badge {
    background: var(--danger);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Responsive: stack radio options on mobile */
@media (max-width: 768px) {
    .dpdp-question-options {
        flex-direction: column;
        margin-left: 0;
    }

    .dpdp-radio-label {
        width: 100%;
    }

    .dpdp-section-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .dpdp-section-header-right {
        width: 100%;
        justify-content: flex-end;
    }

    .dpdp-question-header {
        flex-wrap: wrap;
    }

    .results-section-scores {
        grid-template-columns: 1fr;
    }
}
