/* Contact & Support Page Styles */

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: white;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.accordion-header {
    margin-bottom: 0;
}

.accordion-button {
    background: #f8f9fa;
    border: none;
    padding: 1.5rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    text-align: left;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background: #000;
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(180deg);
}

.accordion-body {
    padding: 2rem;
    background: white;
    color: #666;
    line-height: 1.8;
    font-size: 1rem;
}

/* Live Chat Section */
.live-chat-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.chat-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Chat Login Prompt */
.chat-login-prompt {
    text-align: center;
    padding: 4rem 2rem;
}

.chat-icon {
    font-size: 4rem;
    color: #007bff;
    margin-bottom: 2rem;
}

.chat-login-prompt h4 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.chat-login-prompt p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Start Chat Container */
.start-chat-container {
    padding: 3rem 2rem;
    text-align: center;
}

.start-chat-container .chat-icon {
    font-size: 3.5rem;
    color: #28a745;
    margin-bottom: 1.5rem;
}

.start-chat-container h4 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.start-chat-container p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.start-chat-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.start-chat-form .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.start-chat-form .form-select,
.start-chat-form .form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.start-chat-form .form-select:focus,
.start-chat-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Active Chat Container */
.active-chat-container {
    height: 600px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: #000;
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.status-pending {
    background: #ffc107;
}

.status-indicator.status-active {
    background: #28a745;
}

.status-indicator.status-closed {
    background: #dc3545;
}

.status-text {
    font-weight: 600;
    font-size: 0.95rem;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.message.user {
    align-self: flex-end;
    background: #007bff;
    color: white;
    border-bottom-right-radius: 6px;
}

.message.admin {
    align-self: flex-start;
    background: white;
    color: #333;
    border: 1px solid #e9ecef;
    border-bottom-left-radius: 6px;
}

.message.system {
    align-self: center;
    background: #e9ecef;
    color: #666;
    font-style: italic;
    font-size: 0.85rem;
    max-width: 90%;
    text-align: center;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

.chat-input-container {
    padding: 1rem 1.5rem;
    background: white;
    border-top: 1px solid #e9ecef;
}

.chat-input-container .input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.chat-input-container .form-control {
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
}

.chat-input-container .form-control:focus {
    box-shadow: none;
}

.chat-input-container .btn {
    border: none;
    padding: 0.75rem 1.5rem;
    background: #007bff;
    color: white;
}

/* Contact Info Section */
.contact-info-section {
    padding: 80px 0;
    background: white;
}

.contact-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1.5rem;
}

.contact-card h5 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.contact-card p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.contact-card small {
    color: #666;
    font-size: 0.9rem;
}

/* Animations */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .accordion-button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .accordion-body {
        padding: 1.5rem;
    }
    
    .chat-container {
        margin: 0 1rem;
    }
    
    .active-chat-container {
        height: 500px;
    }
    
    .start-chat-container,
    .chat-login-prompt {
        padding: 2rem 1.5rem;
    }
    
    .contact-card {
        margin-bottom: 2rem;
    }
}
