.nist-risk-container {
    max-width: 800px;
    margin: 0 auto 0.5rem auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.nist-header {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
    border-left: 4px solid #0073aa;
}

.nist-header h3 {
    margin: 0 0 0.5rem 0;
    color: #1e1e1e;
    font-size: 1.5rem;
}

.nist-header p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 1rem;
}

.question-note {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin: 0.25rem 0 0.5rem 0;
    padding-left: 0.5rem;
    border-left: 2px solid #0073aa;
}

.answer-guide {
    background: #f0f8ff;
    border: 1px solid #cce5ff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.answer-guide h4 {
    margin: 0 0 1rem 0;
    color: #0066cc;
    font-size: 1.1rem;
}

.guide-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.guide-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guide-label {
    font-weight: 600;
    color: #333;
    min-width: 60px;
}

.guide-desc {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .guide-items {
        grid-template-columns: 1fr;
    }
    
    .answer-guide {
        padding: 1rem;
    }
}

/*.nist-risk-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	overflow:hidden;
}*/

.contact-info-section {
    background: #fff; /* Change from #f0f8ff to match container */
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.contact-info-section h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
}

.contact-description {
    margin: 0 0 1.5rem 0;
    color: #666;
    font-size: 0.9rem;
}

.contact-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.contact-field {
    display: flex;
    flex-direction: column;
}

.contact-field label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.contact-field input {
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-field input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.contact-field input:required:invalid {
    border-color: #ffc107;
}

/* Make phone and organization full width on smaller screens */
@media (max-width: 768px) {
    .contact-fields {
        grid-template-columns: 1fr;
    }
}
.question-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eaeaea;
	overflow:hidden;
}

.question-item:last-child {
    border-bottom: none;
    margin-bottom: 1rem;
}

.question-item label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
}

.question-number {
    color: #0073aa;
    font-weight: 700;
}

.answer-dropdown {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

.answer-dropdown:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.answer-dropdown:invalid {
    color: #999;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
	overflow:hidden;
}
#note {margin-top:10px;}
.assessment-note {font-size:0.8em;}
.submit-btn {
    background: #0073aa;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #005a87;
}

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


#loading-indicator.loading-hidden {
    display: none;
}

#loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.validation-error {
    color: #d63638;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.validation-error.show {
    display: block;
}

.hidden {
    display: none;
}

/*.results-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 2rem;
	overflow:hidden;
}*/

.results-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eaeaea;
}

.score-display {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
}

.risk-rating {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.2rem;
}

.low-risk {
    background: #d1e7dd;
    color: #0f5132;
}

.moderate-risk {
    background: #fff3cd;
    color: #664d03;
}

.high-risk {
    background: #f8d7da;
    color: #721c24;
}

.breakdown-section {
    margin-bottom: 2rem;
}

.breakdown-section h4 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breakdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.breakdown-list li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid;
}

.strength-list li {
    border-left-color: #28a745;
}

.attention-list li {
    border-left-color: #ffc107;
}

.critical-list li {
    border-left-color: #dc3545;
}

.knowledge-list li {
    border-left-color: #6c757d;
}

.retake-btn {
    background: #6c757d;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 1rem;
}

.retake-btn:hover {
    background: #545b62;
}

/* Responsive design */
@media (max-width: 768px) {
    .nist-risk-container {
        margin: 1rem;
    }
    
    /*.nist-risk-form,
    .results-container {
        padding: 1rem;
    }*/
    
    .score-display {
        font-size: 2rem;
    }
}
.moderate-risk {
    background: #fff3cd;
    color: #664d03;
}
.auto-qualification-message {display:block; overflow:hidden; margin-bottom:15px;}

/* ===== NEW STYLES FOR UPDATED FLOW ===== */

/* Disclaimer Section */
.disclaimer-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.disclaimer-content h4 {
    color: #856404;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.disclaimer-content p {
    color: #856404;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.disclaimer-content strong {
    color: #664d03;
}

/* Exemption Messages */
.exemption-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid;
    animation: fadeIn 0.3s ease-in;
}

.exemption-message.full-exemption {
    background: #d1e7dd;
    border-left-color: #0f5132;
}

.exemption-message.limited-exemption {
    background: #cff4fc;
    border-left-color: #055160;
}

.exemption-message .message-content {
    color: #333;
    font-size: 0.9rem;
    line-height: 1.4;
}

.exemption-message.full-exemption .message-content {
    color: #0f5132;
}

.exemption-message.limited-exemption .message-content {
    color: #055160;
}

/* Email Notice in Results */
.email-notice {
    background: #d1e7dd;
    border: 1px solid #badbcc;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.email-notice p {
    margin: 0.5rem 0;
    color: #0f5132;
}

.email-notice strong {
    color: #0f5132;
}

/* Question Number Styling */
.question-number {
    background: #0073aa;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Risk Rating Colors */
.low-risk {
    background: #d1e7dd;
    color: #0f5132;
}

.moderate-risk {
    background: #fff3cd;
    color: #664d03;
}

.high-risk {
    background: #f8d7da;
    color: #721c24;
}

/* Form Actions Consistency */
.form-actions {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eaeaea;
}

/* Loading States */
#loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
}

.loading-hidden {
    display: none;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Validation Errors */
.validation-error {
    color: #d63638;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.validation-error.show {
    display: block;
}

.hidden {
    display: none;
}

/* Step Transitions */
.step {
    transition: opacity 0.3s ease;
}

.step.hidden {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nist-risk-container {
        margin: 1rem;
        padding: 1rem;
    }
    
    .contact-fields {
        grid-template-columns: 1fr;
    }
    
    .guide-items {
        grid-template-columns: 1fr;
    }
    
    .disclaimer-section {
        padding: 1rem;
    }
    
    .exemption-message {
        padding: 0.75rem;
    }
}

/* Print Styles */
@media print {
    .nist-risk-container {
        box-shadow: none;
        padding: 0;
    }
    
    .submit-btn, .retake-btn {
        display: none;
    }
    
    .step.hidden {
        display: block !important;
    }
}
/* Message actions */
.message-actions {
    margin-top: 1rem;
    text-align: center;
}

.message-actions .submit-btn {
    background: #28a745;
    margin-top: 0.5rem;
}

.message-actions .submit-btn:hover {
    background: #218838;
}

/* Next question actions */
.next-question-actions {
    margin-top: 1rem;
    text-align: center;
}

.next-question-actions .submit-btn {
    background: #0073aa;
}

.next-question-actions .submit-btn:hover {
    background: #005a87;
}

/* No exemption message styling */
.no-exemption-message {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    color: #721c24;
}

/* Manual continue button */
#continue-to-assessment {
    margin-top: 2rem;
}

.skip-confirmation {
    background: #d1e7dd;
    border: 1px solid #badbcc;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.confirmation-content h4 {
    color: #0f5132;
    margin: 0 0 1rem 0;
}

.confirmation-content p {
    color: #0f5132;
    margin: 0 0 1.5rem 0;
}

/* Success exemption message */
.success-exemption {
    background: #d1e7dd;
    border: 1px solid #badbcc;
    border-radius: 8px;
    padding: 2rem;
    margin: 1rem 0;
    text-align: center;
    color: #0f5132;
}

.success-exemption h4 {
    color: #0f5132;
    margin: 0 0 1rem 0;
}

/* Completion message */
.completion-message {
    margin: 2rem 0;
    text-align: center;
}

/* Progressive question styling */
.dfs-question {
    transition: all 0.3s ease-in-out;
}

.dfs-question.hidden {
    display: none;
}

/* Base message styles */
.question-message {
    margin: 1.5rem 0;
    border-radius: 8px;
    padding: 0;
    animation: fadeIn 0.3s ease-in;
}

.message-content {
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.message-actions {
    margin-top: 1rem;
    text-align: center;
}

.message-actions .submit-btn {
    margin-top: 0.5rem;
}

/* Q1-Q3: Full Exemption (Green) */
.full-exemption {
    background: #d1e7dd;
    border-left-color: #0f5132;
    color: #0f5132;
}

.full-exemption .message-actions .submit-btn {
    background: #198754;
}

.full-exemption .message-actions .submit-btn:hover {
    background: #157347;
}

/* Q4-Q7: Limited Exemption (Blue) */
.limited-exemption {
    background: #cff4fc;
    border-left-color: #055160;
    color: #055160;
}

.limited-exemption .message-actions .submit-btn {
    background: #0dcaf0;
    color: #000;
}

.limited-exemption .message-actions .submit-btn:hover {
    background: #31d2f2;
}

/* Q8 No Exemption (Amber/Yellow) */
#message_dfs_q8 .message-content:has(#message-text-dfs_q8:contains("do not qualify")) {
    background: #fff3cd;
    border-left-color: #664d03;
    color: #664d03;
}

#message_dfs_q8 .message-content:has(#message-text-dfs_q8:contains("do not qualify")) .message-actions .submit-btn {
    background: #ffc107;
    color: #000;
}

#message_dfs_q8 .message-content:has(#message-text-dfs_q8:contains("do not qualify")) .message-actions .submit-btn:hover {
    background: #ffca2c;
}

/* Success exemption (for completion message) */
.success-exemption {
    background: #d1e7dd;
    border: 1px solid #badbcc;
    border-radius: 8px;
    padding: 2rem;
    margin: 1rem 0;
    text-align: center;
    color: #0f5132;
}

.success-exemption h4 {
    color: #0f5132;
    margin: 0 0 1rem 0;
}

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

/* Make messages more prominent */
.question-message .message-content {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-weight: 500;
}

.question-message .message-content p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Retake button styling */
.retake-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.retake-btn:hover {
    background: #545b62;
}

/* Message actions layout */
.message-actions {
    margin-top: 1rem;
    text-align: center;
}

.message-actions .submit-btn,
.message-actions .retake-btn {
    margin: 0.5rem;
}