/* AI Insights Page Styles */
.opti-behavior-ai-insights-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.ai-insights-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 40px 30px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.ai-header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-title-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ai-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-icon {
    font-size: 48px;
    z-index: 2;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.ai-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.ai-title {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.ai-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 5px 0 0 0;
}

.ai-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.badge-text {
    color: white;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ai-insights-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
}

/* Hero Section */
.ai-hero-section {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.ai-hero-icon {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.ai-hero-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 20px 0;
}

.ai-hero-description {
    font-size: 18px;
    line-height: 1.8;
    color: #64748b;
    max-width: 900px;
    margin: 0 auto;
}

/* Features Grid */
.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.ai-feature-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.ai-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.feature-description {
    font-size: 15px;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

/* Analyze Section */
.ai-analyze-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin: 0 0 32px 0;
}

.analyze-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.analyze-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.analyze-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scale(1.05);
}

.analyze-item:hover .analyze-text {
    color: white;
}

.analyze-icon {
    font-size: 24px;
}

.analyze-text {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    transition: color 0.3s ease;
}

/* Feedback Section */
.ai-feedback-section {
    margin-bottom: 40px;
}

.feedback-card {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3);
}

.feedback-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.feedback-title {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin: 0 0 16px 0;
}

.feedback-description {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin: 0 auto 32px;
}

.feedback-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
}

.feedback-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.feedback-btn.primary {
    background: white;
    color: #10b981;
}

.feedback-btn.primary:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.feedback-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.feedback-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.feedback-note {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

/* Timeline Section */
.ai-timeline-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-item {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 24px;
    top: 60px;
    width: 2px;
    height: calc(100% + 10px);
    background: linear-gradient(180deg, #667eea 0%, #e9ecef 100%);
}

.timeline-marker {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    z-index: 1;
}

.timeline-item.active .timeline-marker {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.timeline-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.timeline-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .ai-insights-header {
        padding: 30px 20px;
    }
    
    .ai-header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .ai-title {
        font-size: 28px;
    }
    
    .ai-insights-content {
        padding: 20px;
    }
    
    .ai-hero-section {
        padding: 40px 20px;
    }
    
    .ai-hero-title {
        font-size: 24px;
    }
    
    .ai-features-grid {
        grid-template-columns: 1fr;
    }
    
    .feedback-actions {
        flex-direction: column;
    }
    
    .feedback-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Support Form Styles */
.support-form {
    max-width: 600px;
    margin: 32px auto;
    text-align: left;
}

.support-form .form-group {
    margin-bottom: 24px;
}

.support-form label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.support-form .form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.support-form .form-control:focus {
    outline: none;
    border-color: white;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.support-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.support-form .form-hint {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 6px;
}

.support-form .form-actions {
    text-align: center;
    margin-top: 32px;
}

.support-form button[type="submit"] {
    border: none;
    cursor: pointer;
}

.support-form button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.support-form .support-response {
    margin-top: 24px;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.support-form .support-response-hidden {
    display: none !important;
}

.support-form .support-response.success {
    background: rgba(16, 185, 129, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.support-form .support-response.error {
    background: rgba(239, 68, 68, 0.2);
    color: white;
    border: 2px solid rgba(239, 68, 68, 0.5);
}

/* Responsive adjustments for support form */
@media (max-width: 768px) {
    .support-form {
        max-width: 100%;
    }
}