/* Variables */
:root {
    --primary: #f97316;
    --primary-hover: #ea580c;
    --primary-light: #fed7aa;
    --primary-dark: #c2410c;
    
    --secondary: #64748b;
    --secondary-light: #94a3b8;
    --secondary-dark: #475569;
    
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    
    --border: #e2e8f0;
    --border-focus: var(--primary);
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.5;
}

/* Notification System */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
}

.notification {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin-bottom: 1rem;
    min-width: 320px;
    max-width: 420px;
    transform: translateX(400px);
    opacity: 0;
    transition: var(--transition);
    pointer-events: auto;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hide {
    transform: translateX(400px);
    opacity: 0;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.notification-content i {
    font-size: 20px;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition-fast);
}

.notification-close:hover {
    color: var(--text-primary);
}

.notification-progress {
    height: 3px;
    background: var(--bg-tertiary);
    position: relative;
    overflow: hidden;
}

.notification-progress::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: currentColor;
    animation: progress linear forwards;
}

@keyframes progress {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.notification-success { color: var(--success); }
.notification-error { color: var(--error); }
.notification-warning { color: var(--warning); }
.notification-info { color: var(--info); }

.tahmin-header-banner {
    border-radius: 15px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    min-height: 120px;
    width: 100%;
}

.tahmin-promo-banner {
    border-radius: 15px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    width: 100%;
}

.tahmin-info-banner {
    background: #2c3e50;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    min-height: 80px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.info-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f39c12;
    text-transform: uppercase;
}

.info-right {
    text-align: right;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
}

.info-right span {
    display: block;
    line-height: 1.2;
}

/* Countdown */
.tahmin-countdown-display {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.tahmin-countdown-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    min-width: 70px;
}

.tahmin-countdown-value {
    font-size: 2rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: white;
    display: block;
}

.tahmin-countdown-label {
    font-size: 0.75rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    margin-top: 4px;
    display: block;
}

.countdown-expired {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--error);
    padding: 1rem;
}

/* Progress Tracker */
.progress-tracker {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-title {
    font-weight: 600;
    color: var(--text-primary);
}

.progress-count {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.125rem;
}

.progress-bar-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.progress-bar {
    height: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-bar-wrapper.completed .progress-bar {
    animation: pulse-success 0.5s ease;
}

@keyframes pulse-success {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.progress-milestones {
    position: relative;
    height: 30px;
}

.milestone {
    position: absolute;
    transform: translateX(-50%);
    text-align: center;
    transition: var(--transition);
}

.milestone-dot {
    width: 16px;
    height: 16px;
    background: var(--bg-primary);
    border: 3px solid var(--border);
    border-radius: 50%;
    margin: 0 auto 4px;
    transition: var(--transition);
}

.milestone.reached .milestone-dot {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.2);
}

.milestone-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.milestone.reached .milestone-label {
    color: var(--primary);
    font-weight: 600;
}

/* Form Section */
.qa-form-section {
    margin-bottom: 4rem;
}

.questions-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.question-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.question-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.question-card.focused {
    border-color: #f39c12;
    box-shadow: 0 0 0 4px rgba(243, 156, 18, 0.15);
}

.question-card.animate-in {
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    position: relative;
    overflow: hidden;
}

.question-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(45deg, rgba(243, 156, 18, 0.1), transparent);
    transform: skewX(-15deg);
}

.question-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    position: relative;
    z-index: 2;
}

.question-text {
    flex: 1;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin: 0;
    position: relative;
    z-index: 2;
}

.answered-indicator {
    color: #27ae60;
    font-size: 1.8rem;
    animation: checkBounce 0.6s ease;
    position: relative;
    z-index: 2;
}

@keyframes checkBounce {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    50% {
        transform: scale(1.3) rotate(-90deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.answer-wrapper {
    padding: 2rem;
    background: white;
}

.textarea-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.answer-textarea {
    width: 100%;
    min-height: 120px;
    padding: 1.5rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    font-family: inherit;
    font-size: 1rem;
    color: #2d3748;
    resize: none;
    transition: all 0.3s ease;
    line-height: 1.6;
}

.answer-textarea:focus {
    outline: none;
    background: white;
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
    transform: translateY(-2px);
}

.answer-textarea::placeholder {
    color: #a0aec0;
    font-style: italic;
}

.textarea-border {
    display: none;
}

.answer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.char-counter {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

.char-current {
    font-weight: 700;
    color: #2d3748;
    transition: color 0.3s ease;
}

.answer-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border: none;
    background: #f7fafc;
    color: #718096;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-icon:hover {
    background: #f39c12;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.btn-voice.recording {
    background: #e53e3e;
    color: white;
    animation: recordPulse 1.5s infinite;
}

@keyframes recordPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(229, 62, 62, 0);
    }
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.qa-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.qa-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.qa-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.qa-btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.qa-btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.qa-btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.qa-btn-ghost:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--primary);
}

.qa-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-loader {
    position: absolute;
    inset: 0;
    background: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.qa-btn.loading .btn-loader {
    opacity: 1;
    visibility: visible;
}

.qa-btn.loading > *:not(.btn-loader) {
    opacity: 0;
}

.loader-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Info Section */
.info-section {
    margin-bottom: 4rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.info-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.info-icon {
    position: relative;
    flex-shrink: 0;
}

.icon-bg {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: var(--radius-md);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    opacity: 0.2;
}

.info-icon i {
    position: relative;
    font-size: 1.75rem;
    color: var(--primary);
    line-height: 1;
}

.info-card-content {
    text-align: left;
}

.info-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-weight: 600;
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.875rem;
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-success-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.success-burst {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, var(--primary-light), transparent);
    border-radius: 50%;
    animation: burst 0.5s ease-out;
}

@keyframes burst {
    from {
        transform: scale(0);
        opacity: 1;
    }
    to {
        transform: scale(1.5);
        opacity: 0;
    }
}

.modal-success-icon i {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    background: linear-gradient(135deg, var(--success), #059669);
    border-radius: 50%;
    animation: successBounce 0.6s ease;
}

@keyframes successBounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.modal-content h2,
.modal-content h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-icon {
    font-size: 4rem;
    color: var(--warning);
    margin-bottom: 1rem;
}

/* Submitted Info Box */
.qa-submitted-info {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    text-align: center;
    border: 1px solid #ffc200;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
}

.qa-submitted-info-icon {
    font-size: 3rem;
    color: var(--success);
    margin-bottom: 1rem;
    animation: bounceIn 0.6s ease;
}

.qa-submitted-info h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.qa-submitted-info p {
    color: var(--text-secondary);
    line-height: 1.6;
}


/* Submitted Page */
.qa-submitted-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.qa-submitted-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.qa-success-animation {
    margin-bottom: 2rem;
}

.checkmark {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    stroke-width: 2;
}

.checkmark__circle {
    stroke: var(--success);
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    stroke: var(--success);
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

.qa-submission-details {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 2rem 0;
}

.detail-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item i {
    color: var(--primary);
}

.countdown-widget {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2rem 0;
}

.countdown-widget h4 {
    margin-bottom: 1rem;
    font-weight: 500;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.time-block {
    text-align: center;
}

.time-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.time-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 0.25rem;
}

.time-separator {
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* No Event State */
.qa-no-event {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.qa-no-event-content {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 4rem 2rem;
    text-align: center;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
}

.qa-no-event-icon {
    margin-bottom: 2rem;
}

.qa-no-event-icon svg {
    width: 120px;
    height: 120px;
    color: var(--primary);
}

.qa-no-event h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.qa-no-event p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tahmin-header-banner {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .header-content h1 {
        font-size: 1.4rem;
    }
    
    .header-icon {
        font-size: 2rem;
    }
    
    .tahmin-promo-banner {
        padding: 20px;
        margin-bottom: 15px;
        min-height: 150px;
    }
    
    .promo-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .promo-text h2 {
        font-size: 1.4rem;
    }
    
    .promo-text h3 {
        font-size: 1.6rem;
    }
    
    .promo-visual {
        flex: none;
        height: 100px;
    }
    
    .tahmin-info-banner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px;
    }
    
    .info-left {
        flex-direction: column;
        gap: 10px;
    }
    
    .countdown-display {
        gap: 0.5rem;
    }
    
    .countdown-value {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
    
    .questions-grid {
        gap: 1rem;
    }
    
    .question-header {
        padding: 1rem;
    }
    
    .question-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .question-text {
        font-size: 1rem;
    }
    
    .answer-wrapper {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .qa-btn {
        width: 100%;
        justify-content: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 2rem 1.5rem;
    }
    
    .notification {
        min-width: 280px;
        max-width: calc(100vw - 40px);
    }
}

@media (max-width: 480px) {
    .hero-image {
        max-width: 280px;
    }
    
    .progress-tracker {
        padding: 1rem;
    }
    
    .milestone-label {
        font-size: 0.625rem;
    }
    
    .qa-submitted-card {
        padding: 2rem 1.5rem;
    }
    
    .checkmark {
        width: 80px;
        height: 80px;
    }
}

/* Print Styles */
@media print {
    .qa-hero-section,
    .info-section,
    .form-actions,
    .answer-actions,
    .notification-container,
    .modal-overlay {
        display: none !important;
    }
    
    .question-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 1rem;
    }
    
    .answer-textarea {
        border: 1px solid #ddd;
        background: white;
    }
}

/* Dark Mode Support (if needed) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1e293b;
        --bg-secondary: #0f172a;
        --bg-tertiary: #334155;
        --text-primary: #f1f5f9;
        --text-secondary: #cbd5e1;
        --text-tertiary: #94a3b8;
        --border: #334155;
    }
    
    .qa-hero-background {
        background: linear-gradient(135deg, #ea580c 0%, #7c2d12 100%);
    }
    
    .hero-pattern {
        opacity: 0.05;
    }
    
    .progress-tracker {
        background: rgba(30, 41, 59, 0.95);
    }
    
    .question-card {
        background: var(--bg-primary);
        border-color: var(--border);
    }
    
    .answer-textarea {
        background: var(--bg-tertiary);
        color: var(--text-primary);
    }
    
    .answer-textarea:focus {
        background: var(--bg-secondary);
    }
    
    .btn-icon {
        background: var(--bg-tertiary);
        color: var(--text-secondary);
    }
    
    .modal-content {
        background: var(--bg-primary);
        color: var(--text-primary);
    }
}

/* Animations for page load */
.qa-hero-section {
    animation: fadeIn 0.8s ease;
}

.questions-grid .question-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.questions-grid .question-card:nth-child(1) { animation-delay: 0.1s; }
.questions-grid .question-card:nth-child(2) { animation-delay: 0.2s; }
.questions-grid .question-card:nth-child(3) { animation-delay: 0.3s; }
.questions-grid .question-card:nth-child(4) { animation-delay: 0.4s; }
.questions-grid .question-card:nth-child(5) { animation-delay: 0.5s; }
.questions-grid .question-card:nth-child(6) { animation-delay: 0.6s; }
.questions-grid .question-card:nth-child(7) { animation-delay: 0.7s; }
.questions-grid .question-card:nth-child(8) { animation-delay: 0.8s; }
.questions-grid .question-card:nth-child(9) { animation-delay: 0.9s; }
.questions-grid .question-card:nth-child(10) { animation-delay: 1s; }

/* Beyond 10 items */
.questions-grid .question-card:nth-child(n+11) {
    animation-delay: 1.1s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Accessibility improvements */
.qa-btn:focus,
.btn-icon:focus,
.answer-textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.notification-close:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: var(--radius);
    z-index: 10000;
}

.skip-to-content:focus {
    top: 10px;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Error states */
.question-card.error {
    border-color: var(--error);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.answer-textarea.error {
    border-color: var(--error);
}

/* Success animations */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.success-checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--success);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius-full);
    border: 3px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--bg-secondary);
}

/* Performance optimizations */
.question-card,
.qa-btn,
.info-card {
    will-change: transform;
}

.progress-fill {
    will-change: width;
}

.notification {
    will-change: transform, opacity;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .question-card {
        border-width: 2px;
    }
    
    .qa-btn {
        border: 2px solid currentColor;
    }
    
    .answer-textarea {
        border-width: 3px;
    }
}

/* Additional utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; justify-content: space-between; }

.hidden { display: none; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* Final touches */
.qa-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff10" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    pointer-events: none;
    opacity: 0.5;
}
