/* Premium Assessment Page Styles */

/* Page Container */
.assessment-flow {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
}

.assessment-flow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.03) 0%, transparent 200px),
        radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.03) 0%, transparent 200px);
    pointer-events: none;
}

.assessment-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem;
    position: relative;
    z-index: 1;
}

/* Page Header */
.assessment-header {
    text-align: center;
    margin-bottom: 1.75rem;
    position: relative;
}

.assessment-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: var(--premium-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    font-weight: 800;
    text-shadow: 0 5px 15px rgba(3, 105, 161, 0.15);
}

.assessment-header p {
    color: #475569;
    font-size: 0.9rem;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.5;
}

.assessment-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--premium-gradient);
    border-radius: 2px;
}

/* Page Buttons */
.page-button-container {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 0.75rem;
}

.continue-btn, .submit-btn {
    background: var(--premium-gradient);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 8px 20px rgba(3, 105, 161, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    min-width: 180px;
}

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

.continue-btn:hover, .submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(3, 105, 161, 0.4);
}

.continue-btn:hover::before, .submit-btn:hover::before {
    transform: translateX(100%);
}

.continue-btn.clicked, .submit-btn.clicked {
    transform: scale(0.95);
    opacity: 0.9;
    transition: all 0.2s ease;
}

.continue-btn span, .submit-btn span {
    display: inline-block;
    text-align: center;
    flex: 1;
    margin-right: -24px; /* Offset the icon width to center the text */
}

.continue-btn i, .submit-btn i {
    position: relative;
    font-size: 1rem;
}

.submit-btn {
    background: linear-gradient(135deg, #10b981, #34d399);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.submit-btn:hover {
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.4);
}

/* Progress Bar */
.progress-container {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    background: white;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: var(--premium-shadow);
    border: 1px solid rgba(14, 165, 233, 0.1);
}

.progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: var(--premium-gradient);
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShimmer 2s infinite;
}

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

.step-indicators {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.step-indicator {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 0.5rem;
}

.step-indicator.active {
    color: var(--premium-accent);
}

.step-indicator.completed {
    color: #10b981;
}

/* Error Message */
.error-message {
    background: #fee2e2;
    color: #ef4444;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.error-message i {
    font-size: 1.1rem;
}

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

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

.question-page {
    animation: fadeIn 0.5s ease-out;
}

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

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

    .continue-btn, .submit-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
}
