/**
 * Assessment Widget Styles
 * Comprehensive styling for assessment forms and results
 */

/* Assessment Section */
.assessment-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.assessment-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 600;
}

.assessment-section p {
    text-align: center;
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Assessment Modal */
.assessment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 123, 255, 0.1));
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

.assessment-modal-content {
    background: #fff;
    border-radius: 24px;
    width: 100%;
    max-width: 950px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.assessment-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #00d4ff, #007bff);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.assessment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2.5rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.assessment-modal-header h2 {
    margin: 0;
    color: #1a202c;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.assessment-modal-header h2::before {
    content: "🎯";
    font-size: 1.5rem;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

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

.assessment-modal-close {
    background: rgba(108, 117, 125, 0.1);
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.assessment-modal-close::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(-50%, -50%);
}

.assessment-modal-close:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    transform: scale(1.1);
}

.assessment-modal-close:hover::before {
    width: 100%;
    height: 100%;
}

.assessment-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

/* Assessment Widget Container */
.assessment-widget {
    max-width: none;
    margin: 0;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

/* Assessment Form */
.assessment-form {
    padding: 2.5rem;
}

/* Progress Indicator */
.assessment-progress {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff 0%, #00d4ff 100%);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShimmer 2s ease-in-out infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
}

.assessment-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding: 1rem 0;
}

.assessment-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #00d4ff);
    border-radius: 2px;
}

.assessment-header h3 {
    color: #1a202c;
    font-size: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.assessment-header p {
    color: #64748b;
    font-size: 1.125rem;
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Form Sections */
.form-section {
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 123, 255, 0.1);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #007bff, #00d4ff);
    border-radius: 0 16px 16px 0;
}

.form-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 123, 255, 0.2);
}

.form-section h4 {
    color: #1a202c;
    margin: 0 0 1.5rem 0;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h4::before {
    content: "👤";
    font-size: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.assessment-widget .form-group label {
    font-weight: 500 !important;
    color: #2c3e50 !important;
    margin-bottom: 0.5rem !important;
    font-size: 0.9rem !important;
}

.assessment-widget .form-group input {
    padding: 1rem !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    color: #1a202c !important;
    background-color: #fff !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    width: 100% !important;
    font-weight: 500 !important;
    position: relative !important;
}

.assessment-widget .form-group input::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, transparent, transparent);
    border-radius: 12px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    transition: all 0.3s ease;
}

.assessment-widget .form-group input:focus {
    outline: none !important;
    border-color: #007bff !important;
    box-shadow: 
        0 0 0 4px rgba(0, 123, 255, 0.1),
        0 4px 12px rgba(0, 123, 255, 0.15) !important;
    color: #1a202c !important;
    background-color: #fff !important;
    transform: translateY(-1px) !important;
}

.assessment-widget .form-group input::placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}

.assessment-widget .form-group input::-webkit-input-placeholder {
    color: #6c757d !important;
}

.assessment-widget .form-group input::-moz-placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}

.assessment-widget .form-group input:-ms-input-placeholder {
    color: #6c757d !important;
}

/* Dimension Sections */
.dimension-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(40, 167, 69, 0.1);
    border-radius: 16px;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.dimension-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #28a745, #20c997);
    border-radius: 0 16px 16px 0;
}

.dimension-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(40, 167, 69, 0.2);
}

.dimension-description {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.6;
    padding: 1rem;
    background: rgba(40, 167, 69, 0.05);
    border-radius: 8px;
    border-left: 3px solid #28a745;
}

/* Question Groups */
.question-group {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

.question-group:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.question-group::before {
    content: attr(data-question-number);
    position: absolute;
    top: -10px;
    left: 20px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.question-label {
    display: block;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
    line-height: 1.5;
    padding-left: 0.5rem;
}

/* Radio Options */
.radio-option {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.radio-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.radio-option:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateX(4px);
    border-color: rgba(0, 123, 255, 0.2);
}

.radio-option:hover::before {
    left: 100%;
}

.radio-option:has(input:checked) {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.radio-option input[type="radio"] {
    margin-right: 0.75rem;
    transform: scale(1.2);
}

.radio-option label {
    cursor: pointer;
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.3;
    margin: 0;
}

/* Scale Input */
.scale-container {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.scale-container input[type="range"] {
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #e9ecef 0%, #dee2e6 100%);
    outline: none;
    -webkit-appearance: none;
    margin: 1rem 0;
    position: relative;
    cursor: pointer;
}

.scale-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    border: 3px solid #ffffff;
}

.scale-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.scale-container input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: none;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.scale-value {
    margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
    text-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.scale-value::before {
    content: "📊";
    font-size: 1.25rem;
}

/* Yes/No Container */
.yes-no-container {
    display: flex;
    gap: 1rem;
}

.yes-no-container .radio-option {
    flex: 1;
    justify-content: center;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.yes-no-container .radio-option:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.yes-no-container .radio-option input[type="radio"]:checked + label {
    color: #007bff;
    font-weight: 600;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.assessment-submit-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 160px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.assessment-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.assessment-submit-btn:hover::before {
    left: 100%;
}

.assessment-submit-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.assessment-submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.assessment-back-btn {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.assessment-back-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Assessment Steps */
.assessment-step {
    padding: 2rem;
}

.assessment-step .assessment-header {
    text-align: center;
    margin-bottom: 2rem;
}

.assessment-step .assessment-header h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.assessment-step .assessment-header p {
    color: #7f8c8d;
    font-size: 1rem;
    margin: 0;
}

/* Spinner Animation */
.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

.spinner .path {
    stroke: #fff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

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

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Assessment Results */
.assessment-results {
    padding: 2.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    animation: resultsSlideIn 0.5s ease-out;
    /* Add highlighting effect */
    border: 3px solid #28a745;
    border-radius: 20px;
    box-shadow: 
        0 0 0 6px rgba(40, 167, 69, 0.1),
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 60px rgba(40, 167, 69, 0.2);
    position: relative;
    overflow: hidden;
}

/* Add pulsing highlight effect */
.assessment-results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(40, 167, 69, 0.05) 0%, 
        rgba(32, 201, 151, 0.05) 25%, 
        rgba(23, 162, 184, 0.05) 50%, 
        rgba(40, 167, 69, 0.05) 75%, 
        rgba(32, 201, 151, 0.05) 100%);
    background-size: 400% 400%;
    animation: highlightPulse 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes highlightPulse {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Ensure content stays above the highlight effect */
.assessment-results > * {
    position: relative;
    z-index: 1;
}

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

.results-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding: 2rem 0;
    /* Enhanced highlighting for header */
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.1));
    border-radius: 15px;
    border: 2px solid rgba(40, 167, 69, 0.2);
}

.results-header::before {
    content: "🎉";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    animation: celebration 2s ease-in-out infinite;
}

@keyframes celebration {
    0%, 100% { transform: translateX(-50%) scale(1) rotate(0deg); }
    50% { transform: translateX(-50%) scale(1.1) rotate(5deg); }
}

.results-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 2px;
}

.results-header h3 {
    color: #1a202c;
    font-size: 2.25rem;
    margin: 1rem 0 0.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    /* Add text highlight effect */
    text-shadow: 0 0 20px rgba(40, 167, 69, 0.3);
}

.results-header p {
    color: #64748b;
    font-size: 1.125rem;
    margin: 0;
    line-height: 1.6;
}

/* Overall Score - Enhanced highlighting */
.overall-score {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    border: 2px solid rgba(40, 167, 69, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 4px rgba(40, 167, 69, 0.1),
        0 0 30px rgba(40, 167, 69, 0.2);
    position: relative;
    overflow: hidden;
    /* Add subtle animation */
    animation: scoreHighlight 2s ease-in-out infinite alternate;
}

@keyframes scoreHighlight {
    from { box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 4px rgba(40, 167, 69, 0.1),
        0 0 30px rgba(40, 167, 69, 0.2); }
    to { box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 4px rgba(40, 167, 69, 0.2),
        0 0 40px rgba(40, 167, 69, 0.3); }
}

.overall-score::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997, #17a2b8);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

.score-circle {
    text-align: center;
    min-width: 150px;
    position: relative;
}

.score-circle::before {
    display: none;
}

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

.score-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #007bff 0%, #28a745 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    position: relative;
    z-index: 1;
    animation: scoreCountUp 2s ease-out;
    /* Add glow effect */
    filter: drop-shadow(0 0 10px rgba(40, 167, 69, 0.5));
}

@keyframes scoreCountUp {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.score-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.score-details h4 {
    color: #1a202c;
    margin: 0 0 0.75rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    /* Add highlight effect */
    text-shadow: 0 0 15px rgba(40, 167, 69, 0.3);
}

.score-details p {
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

/* Spider Chart */
.spider-chart-container {
    margin-bottom: 2rem;
    text-align: center;
    /* Add subtle highlight */
    background: rgba(40, 167, 69, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(40, 167, 69, 0.1);
}

.spider-chart-container h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.chart-wrapper {
    max-width: 500px;
    margin: 0 auto;
    height: 400px;
}

/* Detailed Results */
.detailed-results {
    margin-bottom: 2rem;
}

.detailed-results h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.dimension-card {
    padding: 2rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Enhanced highlighting for dimension cards */
    border-left: 4px solid #28a745;
}

.dimension-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 0 16px 16px 0;
    background: linear-gradient(180deg, #28a745, #20c997);
}

.dimension-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.12),
        0 0 0 2px rgba(40, 167, 69, 0.2),
        0 0 20px rgba(40, 167, 69, 0.1);
}

.dimension-card.novice::before {
    background: linear-gradient(180deg, #dc3545, #c82333);
}

.dimension-card.basic::before {
    background: linear-gradient(180deg, #fd7e14, #e66100);
}

.dimension-card.developing::before {
    background: linear-gradient(180deg, #ffc107, #e0a800);
}

.dimension-card.intermediate::before {
    background: linear-gradient(180deg, #28a745, #20c997);
}

.dimension-card.advanced::before {
    background: linear-gradient(180deg, #007bff, #0056b3);
}

.dimension-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.dimension-header h5 {
    margin: 0;
    color: #1a202c;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.dimension-score {
    font-weight: 700;
    background: linear-gradient(135deg, #007bff 0%, #28a745 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.375rem;
}

.dimension-level {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.dimension-level::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.dimension-card:hover .dimension-level::before {
    left: 100%;
}

.dimension-card.novice .dimension-level {
    background: #f8d7da;
    color: #721c24;
}

.dimension-card.basic .dimension-level {
    background: #fff3cd;
    color: #856404;
}

.dimension-card.developing .dimension-level {
    background: #d1ecf1;
    color: #0c5460;
}

.dimension-card.intermediate .dimension-level {
    background: #d4edda;
    color: #155724;
}

.dimension-card.advanced .dimension-level {
    background: #cce5ff;
    color: #004085;
}

.dimension-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Recommendations */
.recommendations-section {
    margin-bottom: 2rem;
    /* Add highlighting background */
    background: rgba(40, 167, 69, 0.03);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(40, 167, 69, 0.1);
}

.recommendations-section h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    /* Add highlight effect */
    text-shadow: 0 0 10px rgba(40, 167, 69, 0.2);
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recommendation-item {
    padding: 2rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    /* Enhanced highlighting */
    border-left: 4px solid #28a745;
}

.recommendation-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 0 16px 16px 0;
    background: linear-gradient(180deg, #28a745, #20c997);
}

.recommendation-item:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.12),
        0 0 0 2px rgba(40, 167, 69, 0.2),
        0 0 20px rgba(40, 167, 69, 0.1);
}

.recommendation-item.high-priority::before {
    background: linear-gradient(180deg, #dc3545, #c82333);
}

.recommendation-item.medium-priority::before {
    background: linear-gradient(180deg, #ffc107, #e0a800);
}

.recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.recommendation-header h5 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.priority-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

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

.priority-badge.medium {
    background: #fff3cd;
    color: #856404;
}

.recommendation-list {
    margin: 0;
    padding-left: 1.5rem;
}

.recommendation-list li {
    margin-bottom: 0.5rem;
    color: #495057;
    line-height: 1.4;
}

/* Next Steps */
.next-steps {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.1));
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 2rem;
    border: 2px solid rgba(40, 167, 69, 0.2);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.1),
        0 0 0 3px rgba(40, 167, 69, 0.1);
    position: relative;
    overflow: hidden;
}

.next-steps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #28a745, #20c997, #17a2b8);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

.next-steps h4 {
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    /* Add highlight effect */
    text-shadow: 0 0 10px rgba(40, 167, 69, 0.2);
}

.next-steps p {
    color: #6c757d;
    margin: 0 0 1rem 0;
}

.next-steps-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-button {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button.primary {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(40, 167, 69, 0.4),
        0 0 0 2px rgba(40, 167, 69, 0.2);
}

.cta-button.secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.cta-button.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(108, 117, 125, 0.4),
        0 0 0 2px rgba(108, 117, 125, 0.2);
}

/* Email Confirmation */
.email-confirmation {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.1));
    border: 2px solid rgba(40, 167, 69, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.1),
        0 0 0 3px rgba(40, 167, 69, 0.1);
    position: relative;
    overflow: hidden;
}

.email-confirmation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #28a745, #20c997, #17a2b8);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

.confirmation-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #155724;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.check-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    filter: drop-shadow(0 0 5px rgba(40, 167, 69, 0.3));
}

/* Retake Assessment */
.retake-assessment {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.retake-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retake-btn:hover {
    background: #545b62;
    transform: translateY(-2px);
}

/* Loading State */
.assessment-loading {
    text-align: center;
    padding: 3rem 2rem;
}

.loading-spinner {
    margin-bottom: 1rem;
}

.loading-spinner svg {
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

.loading-spinner circle {
    stroke: #007bff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

.assessment-loading p {
    color: #6c757d;
    margin: 0;
}

/* Error State */
.assessment-error {
    text-align: center;
    padding: 2rem;
}

.error-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #dc3545;
}

.error-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.retry-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .assessment-modal-content {
        margin: 0.5rem;
        border-radius: 20px;
        max-height: 95vh;
    }
    
    .assessment-modal-header {
        padding: 1.5rem 2rem 1rem;
    }
    
    .assessment-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .assessment-form,
    .assessment-results {
        padding: 1.5rem;
    }
    
    .assessment-header h3 {
        font-size: 1.75rem;
    }
    
    .form-section,
    .dimension-section {
        padding: 1.5rem;
    }
    
    .overall-score {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }
    
    .score-number {
        font-size: 2.5rem;
    }
    
    .dimensions-grid {
        grid-template-columns: 1fr;
    }
    
    .next-steps-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .yes-no-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .radio-option {
        padding: 0.75rem;
    }
    
    .question-group {
        padding: 1.25rem;
    }
    
    .recommendation-item {
        padding: 1.5rem;
    }
}

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

.dimension-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.dimension-card:nth-child(1) { animation-delay: 0.1s; }
.dimension-card:nth-child(2) { animation-delay: 0.2s; }
.dimension-card:nth-child(3) { animation-delay: 0.3s; }
.dimension-card:nth-child(4) { animation-delay: 0.4s; }

.recommendation-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.recommendation-item:nth-child(1) { animation-delay: 0.2s; }
.recommendation-item:nth-child(2) { animation-delay: 0.4s; }
.recommendation-item:nth-child(3) { animation-delay: 0.6s; }

/* Loading States */
.assessment-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.loading-spinner svg {
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

.loading-spinner circle {
    stroke: #007bff;
    stroke-width: 4;
    stroke-linecap: round;
    fill: none;
    stroke-dasharray: 125;
    stroke-dashoffset: 125;
    animation: dash 2s ease-in-out infinite;
}

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

@keyframes dash {
    0% {
        stroke-dasharray: 1, 125;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 125;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 125;
        stroke-dashoffset: -124;
    }
} 

/* Prominent Email Prompt Styles */
.prominent-email-prompt {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 
        0 20px 40px rgba(102, 126, 234, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.prominent-email-prompt::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.email-prompt-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.email-prompt-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.email-prompt-icon i {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.prominent-email-prompt h4 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.prominent-email-prompt p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.prominent-email-form {
    max-width: 400px;
    margin: 0 auto;
}

.prominent-email-form .form-group {
    margin-bottom: 1.5rem;
}

.prominent-email-form input[type="email"] {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.prominent-email-form input[type="email"]:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 0 3px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.prominent-email-form input[type="email"]::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

.prominent-email-form .form-actions {
    text-align: center;
}

.prominent-email-form .cta-button.primary {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    min-width: 200px;
}

.prominent-email-form .cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
    background: linear-gradient(135deg, #ff5252, #d63031);
}

.prominent-email-form .cta-button.primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.email-prompt-note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1rem;
    font-style: italic;
}

/* Email Success Content */
.email-success-content {
    text-align: center;
    color: white;
}

.email-success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #28a745;
}

.email-success-icon i {
    animation: successPulse 1s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.email-success-content h4 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #28a745;
}

.email-success-content p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.email-success-note {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
    margin-bottom: 2rem;
}

/* Anonymous Email Prompt (existing styles) */
.anonymous-email-prompt {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.anonymous-email-prompt h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.anonymous-email-prompt p {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.anonymous-email-form .form-group {
    margin-bottom: 1rem;
}

.anonymous-email-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #495057;
    font-weight: 500;
}

.anonymous-email-form input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.anonymous-email-form input[type="email"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.anonymous-email-form .form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.anonymous-email-form .cta-button {
    flex: 1;
    min-width: 120px;
}

/* Responsive adjustments for prominent email prompt */
@media (max-width: 768px) {
    .prominent-email-prompt {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .prominent-email-prompt h4 {
        font-size: 1.5rem;
    }
    
    .prominent-email-prompt p {
        font-size: 1rem;
    }
    
    .email-prompt-icon {
        font-size: 2.5rem;
    }
    
    .prominent-email-form input[type="email"] {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }
    
    .prominent-email-form .cta-button.primary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-width: 180px;
    }
    
    .anonymous-email-form .form-actions {
        flex-direction: column;
    }
    
    .anonymous-email-form .cta-button {
        flex: none;
    }
} 