/* assets/msp-assessment.css - Updated with better spacing and layout */

/* Reset and base styles */
#msp-assessment-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#msp-assessment-container {
    font-family: 'Arial', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
    max-width: 1100px; /* Increased from 1000px to match quick actions width */
    margin: 0 auto;
    padding: 30px; /* Increased padding */
}

/* Header - Expanded width and better spacing */
.msp-header {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    padding: 50px 40px; /* Increased padding for more space */
    text-align: center;
    border-radius: 10px;
    margin-bottom: 40px; /* Increased margin */
    width: 100%;
    max-width: none; /* Remove width restriction */
}

.msp-header h1 {
    font-size: 2.8em; /* Slightly larger */
    margin-bottom: 15px; /* More space */
    font-weight: bold;
}

.msp-header p {
    font-size: 1.3em; /* Slightly larger */
    opacity: 0.9;
}

/* Business Info - Better spacing */
.msp-business-info {
    background: white;
    padding: 40px; /* Increased from 30px */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px; /* Increased margin */
}

.msp-business-info h2 {
    color: #1e3a8a;
    margin-bottom: 30px; /* Increased spacing */
    font-size: 1.8em; /* Larger heading */
}

.msp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px; /* Increased from 20px */
    margin-bottom: 30px; /* Increased margin */
}

.msp-form-group {
    display: flex;
    flex-direction: column;
}

.msp-form-group label {
    font-weight: bold;
    margin-bottom: 8px; /* Increased spacing */
    color: #1e3a8a;
    font-size: 1.1em; /* Slightly larger */
}

.msp-form-group input {
    width: 100%;
    padding: 15px; /* Increased from 12px */
    border: 2px solid #e2e8f0;
    border-radius: 6px; /* Slightly larger radius */
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.msp-form-group input:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Start Section - Better spacing */
.msp-start-section {
    text-align: center;
    margin: 40px 0; /* Increased margins */
    padding: 40px; /* Increased padding */
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.msp-start-section h3 {
    color: #1e3a8a;
    margin-bottom: 25px; /* Increased spacing */
    font-size: 1.8em; /* Larger heading */
}

.msp-start-section p {
    margin-bottom: 25px; /* Increased spacing */
    color: #666;
    font-size: 1.1em; /* Slightly larger */
}

.msp-demo-note {
    margin-top: 20px; /* Increased spacing */
    color: #666;
    font-size: 15px; /* Slightly larger */
}

/* Buttons - Better spacing and sizing */
.msp-btn {
    border: none;
    padding: 18px 35px; /* Increased padding */
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    margin: 15px; /* Increased margin */
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.msp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.msp-btn-primary {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
}

.msp-btn-secondary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.msp-btn-demo {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
}

.msp-btn-upgrade {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.msp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Assessment Sections - Better spacing */
.msp-assessment-sections {
    margin-top: 40px; /* Increased spacing */
}

.msp-section {
    background: white;
    margin-bottom: 40px; /* Increased spacing */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.msp-section-header {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    padding: 30px; /* Increased padding */
    display: flex;
    align-items: center;
}

.msp-section-number {
    background: rgba(255,255,255,0.2);
    width: 50px; /* Increased size */
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px; /* Increased spacing */
    font-weight: bold;
    font-size: 20px; /* Larger font */
}

.msp-section-content {
    padding: 40px; /* Increased from 30px */
}

.msp-question {
    margin-bottom: 35px; /* Increased spacing */
    padding: 25px; /* Increased padding */
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.msp-question-text {
    font-weight: bold;
    margin-bottom: 20px; /* Increased spacing */
    color: #1e3a8a;
    font-size: 1.2em; /* Larger font */
    line-height: 1.5; /* Better line height */
}

.msp-answers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px; /* Increased gap */
}

.msp-answer-option {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 6px; /* Larger radius */
    padding: 15px; /* Increased padding */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px; /* Increased gap */
}

.msp-answer-option:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.msp-answer-option.selected {
    border-color: #3b82f6;
    background: #dbeafe;
}

.msp-answer-option input[type="radio"] {
    margin-top: 3px; /* Better alignment */
}

.msp-answer-text {
    flex: 1;
}

.msp-answer-title {
    font-weight: bold;
    margin-bottom: 4px; /* Increased spacing */
    font-size: 1.05em; /* Slightly larger */
}

.msp-answer-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5; /* Better line height */
}

.msp-section-progress {
    background: #f1f5f9;
    padding: 20px 40px; /* Increased padding */
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.msp-progress-text {
    color: #666;
    font-weight: 600;
    font-size: 1.1em; /* Larger font */
}

.msp-section-score {
    font-weight: bold;
    color: #1e3a8a;
    font-size: 1.2em; /* Larger font */
}

/* Warning Note - Better spacing */
.msp-warning-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px; /* Increased padding */
    border-radius: 6px; /* Larger radius */
    margin-bottom: 20px; /* Increased spacing */
    font-size: 15px; /* Larger font */
    color: #856404;
    line-height: 1.5;
}

/* Results Dashboard - Better spacing */
.msp-results-dashboard {
    background: white;
    padding: 50px; /* Increased padding */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    margin-top: 40px; /* Increased spacing */
}

.msp-results-dashboard h2 {
    color: #1e3a8a;
    margin-bottom: 30px; /* Increased spacing */
    font-size: 2.2em; /* Larger font */
}

.msp-overall-score {
    font-size: 4.5em; /* Slightly larger */
    font-weight: bold;
    color: #1e3a8a;
    margin: 30px 0; /* Increased spacing */
}

.msp-letter-grade {
    font-size: 3.2em; /* Slightly larger */
    font-weight: bold;
    margin-bottom: 40px; /* Increased spacing */
}

.msp-grade-A, .msp-grade-B { color: #10b981; }
.msp-grade-C { color: #f59e0b; }
.msp-grade-D { color: #f97316; }
.msp-grade-F { color: #ef4444; }

.msp-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Wider minimum */
    gap: 25px; /* Increased gap */
    margin-top: 40px; /* Increased spacing */
    text-align: left;
}

.msp-result-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 25px; /* Increased padding */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.msp-result-card.high-risk { border-left: 4px solid #ef4444; }
.msp-result-card.medium-risk { border-left: 4px solid #f59e0b; }
.msp-result-card.low-risk { border-left: 4px solid #10b981; }

.msp-result-card h4 {
    color: #1e3a8a;
    margin-bottom: 15px; /* Increased spacing */
    font-size: 1.3em; /* Larger font */
}

.msp-result-score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0; /* Increased spacing */
}

.msp-result-percentage {
    font-size: 26px; /* Larger font */
    font-weight: bold;
    color: #1e3a8a;
}

.msp-result-grade {
    font-size: 22px; /* Larger font */
    font-weight: bold;
}

.msp-result-points {
    color: #666;
    font-size: 15px; /* Larger font */
    margin: 8px 0; /* Added spacing */
}

.msp-result-description {
    font-size: 15px; /* Larger font */
    margin-top: 12px; /* Increased spacing */
    color: #666;
    line-height: 1.5; /* Better line height */
}

/* Action Buttons - Better spacing */
.msp-action-buttons {
    margin-top: 40px; /* Increased spacing */
}

/* Trial Info - Better spacing */
.msp-trial-info {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 25px; /* Increased padding */
    margin-top: 40px; /* Increased spacing */
    text-align: center;
}

.msp-trial-info p {
    margin-bottom: 20px; /* Increased spacing */
    color: #0369a1;
    font-size: 1.1em; /* Larger font */
}

/* Loading Overlay - Better styling */
.msp-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.msp-loading-content {
    background: white;
    padding: 50px; /* Increased padding */
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.msp-spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 50px; /* Larger spinner */
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px; /* Increased spacing */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design - Improved mobile spacing */
@media (max-width: 1024px) {
    #msp-assessment-container {
        width: 95% !important;
        padding: 25px !important;
    }
    
    .msp-section-content {
        padding: 30px !important;
    }
    
    .msp-question {
        padding: 20px !important;
        margin-bottom: 25px !important;
    }
}

@media (max-width: 768px) {
    #msp-assessment-container {
        padding: 20px !important;
        margin: 15px auto !important;
        width: 95% !important;
    }
    
    .msp-form-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .msp-answers {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .msp-header {
        padding: 30px 20px !important;
    }
    
    .msp-header h1 {
        font-size: 2em !important;
    }
    
    .msp-header p {
        font-size: 1.1em !important;
    }
    
    .msp-business-info,
    .msp-start-section {
        padding: 25px !important;
    }
    
    .msp-section-content {
        padding: 25px !important;
    }
    
    .msp-section-progress {
        padding: 15px 25px !important;
    }
    
    .msp-question {
        padding: 18px !important;
        margin-bottom: 20px !important;
    }
    
    .msp-answer-option {
        padding: 12px !important;
        min-height: 65px !important;
    }
    
    .msp-overall-score {
        font-size: 3.5em !important;
    }
    
    .msp-letter-grade {
        font-size: 2.8em !important;
    }
    
    .msp-results-grid {
        grid-template-columns: 1fr !important;
    }
    
    .msp-btn {
        display: block !important;
        width: calc(100% - 24px) !important;
        margin: 12px !important;
        text-align: center;
    }
    
    .msp-section-progress {
        flex-direction: column;
        gap: 10px !important;
        text-align: center;
        padding: 15px !important;
    }
    
    .msp-section-number {
        width: 45px !important;
        height: 45px !important;
        font-size: 18px !important;
        margin-right: 15px !important;
    }
    
    .msp-section-header {
        padding: 20px 15px !important;
    }
    
    .msp-section-header h3 {
        font-size: 1.4em !important;
    }
}

@media (max-width: 480px) {
    #msp-assessment-container {
        padding: 15px !important;
        margin: 10px auto !important;
        width: 95% !important;
    }
    
    .msp-header {
        padding: 25px 15px !important;
    }
    
    .msp-header h1 {
        font-size: 1.8em !important;
    }
    
    .msp-business-info,
    .msp-start-section {
        padding: 20px !important;
    }
    
    .msp-section-content {
        padding: 20px !important;
    }
    
    .msp-question {
        padding: 15px !important;
    }
    
    .msp-answer-option {
        padding: 10px !important;
        min-height: 55px !important;
    }
    
    .msp-btn {
        padding: 12px 20px !important;
        font-size: 16px !important;
    }
    
    .msp-section-number {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
        margin-right: 12px !important;
    }
}