/* Support Page Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #f8fafc;
    --text-color: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --danger-color: #dc2626;
    --success-color: #059669;
    --warning-color: #d97706;
    --info-color: #0891b2;
    --shadow-color: rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    direction: rtl;
}

.support-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.support-header {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    animation: slideIn 0.5s ease-out;
}

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

.support-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.support-header h1 i {
    margin-left: 10px;
    font-size: 28px;
}

.support-header p {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 400;
}

.support-body {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 30px;
    animation: slideIn 0.5s ease-out 0.1s both;
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.step {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    margin: 0 5px;
    transition: all 0.3s ease;
    position: relative;
}

.step.active {
    background: var(--primary-color);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(0, 136, 204, 0.3);
}

.step.completed {
    background: var(--success-color);
    animation: bounce 0.5s ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.support-step {
    display: none;
    animation: slideIn 0.3s ease-out;
}

.support-step.active {
    display: block;
}

/* Type Selection */
.type-selection h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
    text-align: center;
}

.type-selection p {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.type-card {
    background: var(--secondary-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 136, 204, 0.1), transparent);
    transition: left 0.5s;
}

.type-card:hover::before {
    left: 100%;
}

.type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.type-card.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 136, 204, 0.3);
}

.type-card i {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.type-card.selected i {
    color: white;
}

.type-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.type-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Form Styles */
.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 15px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    background: white;
    color: var(--text-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.1);
    transform: translateY(-1px);
}

.form-control.error {
    border-color: var(--danger-color);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-message {
    color: var(--danger-color);
    font-size: 12px;
    margin-top: 5px;
    display: none;
    animation: fadeIn 0.3s ease-in;
}

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

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::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:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.back-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.back-link:hover {
    text-decoration: underline;
    transform: translateX(-5px);
}

/* Success Section */
.success-section {
    text-align: center;
    padding: 40px 0;
}

.success-icon {
    font-size: 64px;
    color: var(--success-color);
    margin-bottom: 20px;
    animation: bounce 1s ease-in-out;
}

.success-section h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--success-color);
    margin-bottom: 10px;
}

.success-section p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.ticket-info {
    background: var(--secondary-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: right;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item .label {
    font-weight: 600;
    color: var(--text-color);
}

.info-item .value {
    color: var(--primary-color);
    font-weight: 500;
}

/* Tracking Section */
.tracking-section {
    background: var(--secondary-color);
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
}

.tracking-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.tracking-section p {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 20px;
}

.tracking-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

.tracking-result {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
}

.tracking-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid var(--success-color);
}

.tracking-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--danger-color);
    text-align: center;
}

.tracking-error i {
    font-size: 24px;
    color: var(--danger-color);
    margin-bottom: 10px;
}

.tracking-details {
    text-align: right;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-item .label {
    font-weight: 600;
    color: var(--text-color);
}

.detail-item .value {
    color: var(--primary-color);
    font-weight: 500;
}

/* Status and Priority Colors */
.status-pending { color: var(--warning-color); }
.status-in_progress { color: var(--info-color); }
.status-resolved { color: var(--success-color); }
.status-closed { color: var(--text-color); }

.priority-low { color: var(--success-color); }
.priority-medium { color: var(--warning-color); }
.priority-high { color: var(--danger-color); }
.priority-urgent { color: #dc3545; font-weight: bold; }

/* FAQ Section */
.faq-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    animation: slideIn 0.5s ease-out 0.2s both;
}

.faq-section h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 30px;
    text-align: center;
}

.faq-section h3 i {
    margin-left: 10px;
    color: var(--primary-color);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 20px;
    background: var(--secondary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--primary-color);
    color: white;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.show {
    padding: 20px;
    max-height: 200px;
}

.faq-answer p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

/* Loading Animation */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .support-container {
        padding: 10px;
    }
    
    .support-header,
    .support-body,
    .faq-section {
        padding: 20px;
    }
    
    .type-grid {
        grid-template-columns: 1fr;
    }
    
    .tracking-form {
        grid-template-columns: 1fr;
    }
    
    .step-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
}

/* Contact Methods Section */
.contact-methods-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 30px;
    animation: slideIn 0.5s ease-out 0.3s both;
}

.contact-methods-section h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
    text-align: center;
}

.contact-methods-section h3 i {
    margin-left: 10px;
    color: var(--primary-color);
}

.section-description {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.contact-card {
    background: var(--secondary-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 136, 204, 0.1), transparent);
    transition: left 0.5s;
}

.contact-card:hover::before {
    left: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3);
}

.contact-icon i {
    font-size: 24px;
    color: white;
}

.contact-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

.contact-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.2);
}

.whatsapp-link:hover {
    background: #25D366;
    border-color: #25D366;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.chat-link {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    cursor: pointer;
}

.chat-link:hover {
    background: #006699;
    border-color: #006699;
}

.contact-time {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.6;
    font-style: italic;
}

.contact-note {
    background: rgba(23, 162, 184, 0.1);
    border: 1px solid var(--info-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.note-icon {
    font-size: 24px;
    color: var(--info-color);
    margin-top: 2px;
}

.note-content h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.note-content p {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.5;
    margin: 0;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .support-header,
    .support-body,
    .faq-section,
    .contact-methods-section {
        background: #2d3748;
        color: white;
    }
    
    .form-control {
        background: #4a5568;
        border-color: #718096;
        color: white;
    }
    
    .form-control:focus {
        border-color: var(--primary-color);
    }
    
    .type-card,
    .contact-card {
        background: #4a5568;
        border-color: #718096;
        color: white;
    }
    
    .ticket-info,
    .tracking-section {
        background: #4a5568;
    }
    
    .faq-question {
        background: #4a5568;
        color: white;
    }
    
    .contact-link {
        background: #4a5568;
        border-color: #718096;
        color: white;
    }
    
    .contact-note {
        background: rgba(23, 162, 184, 0.2);
        border-color: var(--info-color);
    }
}

/* Success Note Styles */
.success-note {
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid var(--success-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.success-note i {
    font-size: 24px;
    color: var(--success-color);
    flex-shrink: 0;
}

.success-note p {
    color: var(--success-color);
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}
