/* Assessment Specific Styles */
.assessment-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    padding: 2rem;
}

/* Progress Bar */
.progress-container {
    max-width: 800px;
    margin: 0 auto 2rem;
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.progress-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Assessment Container */
.assessment-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

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

.assessment-header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.assessment-intro {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Question Container */
.question-container {
    margin-bottom: 3rem;
}

.question {
    margin-bottom: 2rem;
}

.question-number {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.question h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.question-help {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* Answer Options */
.answer-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.answer-option {
    padding: 1.5rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.answer-option:hover {
    border-color: var(--primary-500);
    background: var(--primary-50);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.answer-option.selected {
    border-color: var(--primary-600);
    background: var(--primary-50);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.answer-option input[type="radio"],
.answer-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.answer-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
    font-size: 1rem;
}

.answer-description {
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Add radio button indicator */
.answer-option::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-400);
    background: var(--white);
    transition: all 0.3s;
}

/* Default styling - radio button (circular) */
.answer-option::before {
    border-radius: 50%;
}

/* Checkbox styling (square) for multiselect questions */
.question.multiselect .answer-option::before {
    border-radius: 4px;
}

.answer-option.selected::before {
    border-color: var(--primary-600);
    background: var(--primary-600);
}

/* Radio button selected state (dot) */
.answer-option.selected::before {
    box-shadow: inset 0 0 0 4px var(--white);
}

/* Checkbox selected state (checkmark) for multiselect questions */
.question.multiselect .answer-option.selected::before {
    box-shadow: none;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2.5-2.5a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
    background-size: 12px 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.answer-option:hover::before {
    border-color: var(--primary-500);
}

/* Adjust padding to accommodate radio indicator */
.answer-option {
    padding-left: 4rem;
}

/* Navigation */
.assessment-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Score Preview */
.score-preview {
    text-align: center;
    margin-bottom: 2rem;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

#scoreValue {
    font-size: 3rem;
    font-weight: 700;
}

.score-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.results-text {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

#maturityLevel {
    font-weight: 600;
    color: var(--primary-color);
}

/* Results CTA */
.results-cta h3 {
    margin-bottom: 1rem;
}

.results-features {
    list-style: none;
    margin: 1.5rem 0;
}

.results-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

/* Lead Form */
.lead-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.lead-form input {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

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

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Responsive */
@media (max-width: 768px) {
    .assessment-container {
        padding: 2rem;
    }
    
    .modal-content {
        padding: 2rem;
    }
}