/* === DESIGN SYSTEM === */
:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
}

/* === MAIN CONTAINER === */
.card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}
/* === OPTION CARDS === */
.option-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(79, 70, 229, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.option-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.option-card:hover::before {
    opacity: 1;
}

.option-card.selected {
    border-color: var(--primary-color);
    border-width: 2px;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1), var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
    transform: translateY(-1px);
}

.option-card.selected::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(16, 185, 129, 0.02) 100%);
}

/* === PRODUCT IMAGES === */
.product-image-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-xl);
    border: 2px solid var(--border-light);
}

.product-image {
    max-width: 100%;
    max-height: 280px;
    height: auto;
    border-radius: var(--radius-lg);
    object-fit: contain;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.product-image:hover {
    transform: scale(1.02);
}

/* === PRODUCT ACCENT COLORS === */
.product-low-accent { 
    color: var(--secondary-color);
    font-weight: 600;
}
.product-medium-accent { 
    color: var(--accent-color);
    font-weight: 600;
}
.product-high-accent { 
    color: #3b82f6;
    font-weight: 600;
}

/* === STAIRCASE OPTION STYLING === */
#question-screen .option-card {
    padding: 1.5rem;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#question-screen .option-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

#question-screen .option-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    text-align: center;
}

#question-screen .option-card p:last-child {
    margin-bottom: 0;
}

#question-screen .option-card strong {
    font-weight: 600;
}

/* === DISCOUNT VALUE ANIMATION === */
.discount-value, .discount-amount {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    perspective: 1000px;
}

.discount-value.rotating, .discount-amount.rotating {
    animation: clockRotation 1.2s ease-in-out;
}

@keyframes clockRotation {
    0% { 
        transform: rotateY(0deg);
        opacity: 1;
    }
    25% { 
        transform: rotateY(90deg);
        opacity: 0.2;
    }
    50% { 
        transform: rotateY(180deg);
        opacity: 0.1;
    }
    75% { 
        transform: rotateY(270deg);
        opacity: 0.2;
    }
    100% { 
        transform: rotateY(360deg);
        opacity: 1;
    }
}

/* Enhanced visual feedback during rotation */
.discount-value.rotating, .discount-amount.rotating {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-radius: 6px;
    padding: 2px 8px;
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.3);
}

.product-low-border-selected { 
    border-color: var(--secondary-color) !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1) !important;
}
.product-medium-border-selected { 
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1) !important;
}
.product-high-border-selected { 
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
}
.accent-blue-border { 
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1) !important;
}

/* === QUIZ STYLES === */
.quiz-option {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-option:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.quiz-option.correct-answer {
    background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.quiz-option.incorrect-answer {
    background: linear-gradient(135deg, #fee2e2 0%, #fef2f2 100%);
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.traditional-quiz-option {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.likert-option {
    padding: 1.5rem 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    min-width: 60px;
}

/* === BUTTONS === */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-hover) 0%, #3730a3 100%);
}

.btn-primary:hover:not(:disabled)::before {
    left: 100%;
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
    background: linear-gradient(135deg, #a5b4fc 0%, #c7d2fe 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-sm);
}

/* === SCREEN TRANSITIONS === */
#content-area {
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

#content-area.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2rem;
    color: var(--text-primary);
}

h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* === FORM ELEMENTS === */
input, select, textarea {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: white;
    font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    transform: translateY(-1px);
}

/* === SLIDER STYLES === */
.slider {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

.slider::-webkit-slider-track {
    background: var(--border-color);
    height: 8px;
    border-radius: 4px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: var(--primary-color);
    height: 20px;
    width: 20px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.slider::-moz-range-track {
    background: var(--border-color);
    height: 8px;
    border-radius: 4px;
    border: none;
}

.slider::-moz-range-thumb {
    background: var(--primary-color);
    height: 20px;
    width: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.slider::-moz-range-thumb:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* === TESTIMONIAL CARDS === */
.testimonial-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* === PROGRESS INDICATORS === */
.progress-indicator {
    background: linear-gradient(135deg, var(--primary-light) 0%, #f0f9ff 100%);
    border-radius: var(--radius-lg);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

/* === ALERT STYLES === */
.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
    border: 1px solid #93c5fd;
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    color: #1e40af;
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fef7cd 100%);
    border: 1px solid #fbbf24;
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    color: #92400e;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #dcfce7 100%);
    border: 1px solid #34d399;
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    color: #065f46;
}
