/* ===================================
   PREMIUM QUIZ EXPERIENCE UPGRADES
   Design enhancements for smoother UX
   =================================== */

/* Enhanced Progress Bar */
.progress-container {
    padding: 24px 40px 20px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.progress-bar {
    height: 8px;
    background: linear-gradient(90deg, #F5F3FF 0%, #EDE9FE 100%);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.progress-fill {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
    transition: width 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.progress-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.3px;
}

/* Enhanced Form Box */
.assessment-form {
    box-shadow: 0 24px 80px rgba(139, 92, 246, 0.12), 0 0 0 1px rgba(139, 92, 246, 0.08);
    border-radius: 20px;
}

/* Smoother Question Transitions */
.question-step.active {
    animation: smoothSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* Enhanced Section Badge */
.section-badge {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(167, 139, 250, 0.05) 100%);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.section-badge::before {
    margin-right: 8px;
    font-size: 14px;
}

/* Enhanced Question Title */
.question-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0F172A;
    line-height: 1.2;
    margin-bottom: 20px;
}

/* Enhanced Radio/Checkbox Options */
.radio-option,
.checkbox-option {
    padding: 16px 20px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.radio-option::before,
.checkbox-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.03) 0%, rgba(167, 139, 250, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.radio-option:hover,
.checkbox-option:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.12);
}

.radio-option:hover::before,
.checkbox-option:hover::before {
    opacity: 1;
}

/* Selected state with glow */
.radio-option:has(input:checked),
.checkbox-option:has(input:checked) {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #F5F3FF 0%, #FFFFFF 100%);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.radio-option:has(input:checked)::before,
.checkbox-option:has(input:checked)::before {
    opacity: 1;
}

/* Enhanced Checkmark */
.radio-option input[type="radio"]::after,
.checkbox-option input[type="checkbox"]::after {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #CBD5E1;
    background: white;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.radio-option input[type="radio"]:checked::after,
.checkbox-option input[type="checkbox"]:checked::after {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Enhanced Text Inputs */
.text-input,
.textarea-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 16px;
    font-family: var(--font-primary);
    color: var(--text-dark);
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}

.text-input:focus,
.textarea-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.text-input::placeholder,
.textarea-input::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

/* Enhanced Navigation Buttons */
.navigation-buttons {
    padding: 24px 40px;
    background: linear-gradient(180deg, #FAFAFA 0%, #FFFFFF 100%);
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.btn-next,
.btn-back {
    font-size: 16px;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-next {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-next::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;
}

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

.btn-next:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn-next:active {
    transform: translateY(0) scale(0.98);
}

.btn-back {
    border: 2px solid #E2E8F0;
    background: white;
    color: var(--text-medium);
}

.btn-back:hover {
    border-color: var(--primary-light);
    background: #F5F3FF;
    color: var(--primary-color);
    transform: translateX(-3px);
}

/* Enhanced Sidebar Cards */
.ticker-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F3FF 100%);
    border: 2px solid rgba(139, 92, 246, 0.12);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.ticker-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.03) 0%, transparent 70%);
    animation: rotate-slow 20s linear infinite;
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.ticker-card > * {
    position: relative;
    z-index: 1;
}

.ticker-icon {
    font-size: 40px;
    margin-bottom: 16px;
    filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.2));
}

.ticker-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
}

.ticker-item-assessment p {
    font-size: 15px;
    line-height: 1.8;
    color: #475569;
}

/* Smooth scrollbar */
.question-content-wrapper::-webkit-scrollbar {
    width: 6px;
}

.question-content-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.question-content-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 10px;
}

.question-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

/* Contact Form Grid Enhancement */
.contact-grid {
    gap: 16px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: 0.2px;
}

/* Other Input Enhancement */
.other-input {
    margin-top: 12px;
    animation: slideDown 0.3s ease-out;
}

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

/* Loading State for Submit */
.btn-next:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-next:disabled:hover {
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Responsive Enhancements */
@media (max-width: 1200px) {
    .assessment-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .ticker-card {
        width: 100%;
        max-width: 900px;
        margin-bottom: 24px;
        position: static;
    }
}

@media (max-width: 768px) {
    .question-title {
        font-size: 26px;
    }
    
    .radio-option,
    .checkbox-option {
        padding: 14px 16px;
    }
    
    .btn-next,
    .btn-back {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .ticker-card {
        padding: 24px 20px;
    }
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 3px solid rgba(139, 92, 246, 0.5);
    outline-offset: 2px;
}

