﻿/* ============================================================
   SUPPORT PAGE STYLES - PAKMEDICS
   ============================================================ */

/* Hero Section */
.support-hero {
    background: linear-gradient(135deg, #0d7c6e 0%, #095a4f 50%, #0a5c4f 100%);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.support-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.support-hero-content {
    position: relative;
    z-index: 1;
}

.support-hero-icon {
    font-size: 48px;
    color: rgba(255,255,255,0.9);
    display: inline-block;
    margin-bottom: 8px;
}

.support-hero h1 {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
}

.support-hero p {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

/* Support Search */
.support-search {
    max-width: 600px;
    margin: 0 auto;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 60px;
    padding: 4px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
}

.search-wrapper:focus-within {
    box-shadow: 0 12px 40px rgba(13,124,110,0.25);
}

.search-icon {
    padding: 0 12px 0 20px;
    color: #94a3b8;
    font-size: 18px;
}

.search-input {
    flex: 1;
    border: none;
    padding: 14px 0;
    font-size: 15px;
    background: transparent;
    outline: none;
    color: #0a1a1f;
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, #0d7c6e, #095a4f);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13,124,110,0.3);
}

/* Section Title */
.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #0a1a1f;
    margin-bottom: 20px;
}

/* Support Categories */
.support-categories {
    margin-bottom: 40px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.category-card {
    background: white;
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border-color: #0d7c6e;
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: white;
    font-size: 20px;
}

.category-card h6 {
    font-weight: 700;
    color: #0a1a1f;
    font-size: 14px;
    margin: 0 0 4px;
}

.category-card p {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

/* FAQ Section */
.faq-section {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 24px;
    margin-bottom: 20px;
}

.faq-result-count {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #0d7c6e;
}

.faq-item.open {
    border-color: #0d7c6e;
    box-shadow: 0 4px 16px rgba(13,124,110,0.08);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
    transition: background 0.3s ease;
    background: #f8fafc;
}

.faq-question:hover {
    background: #f0faf8;
}

.faq-q {
    font-weight: 700;
    color: #0d7c6e;
    font-size: 14px;
    flex-shrink: 0;
}

.faq-text {
    flex: 1;
    font-size: 14px;
    color: #0a1a1f;
    font-weight: 500;
}

.faq-toggle {
    color: #94a3b8;
    font-size: 18px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-answer {
    display: none;
    padding: 16px 18px;
    background: white;
    border-top: 1px solid #e2e8f0;
    gap: 12px;
    align-items: flex-start;
}

.faq-a {
    font-weight: 700;
    color: #f59e0b;
    font-size: 14px;
    flex-shrink: 0;
}

.faq-answer .faq-text {
    color: #475569;
    font-weight: 400;
    line-height: 1.6;
}

.faq-view-all {
    text-align: center;
    margin-top: 20px;
}

.faq-empty {
    text-align: center;
    padding: 40px 20px;
}

.faq-empty i {
    font-size: 48px;
    color: #cbd5e1;
    display: block;
    margin-bottom: 12px;
}

.faq-empty h6 {
    font-weight: 700;
    color: #0a1a1f;
    font-size: 18px;
    margin: 0;
}

.faq-empty p {
    color: #94a3b8;
    margin: 4px 0 16px;
}

/* Support Ticket Card */
.support-ticket-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    overflow: hidden;
}

.support-ticket-header {
    padding: 18px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.support-ticket-header h5 {
    font-weight: 700;
    color: #0a1a1f;
    margin: 0;
    font-size: 18px;
}

.support-ticket-header p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #64748b;
}

.support-ticket-body {
    padding: 24px;
}

.support-ticket-footer {
    padding: 14px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

/* Form */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    display: block;
}

.form-control,
.form-select {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control:focus,
.form-select:focus {
    border-color: #0d7c6e;
    box-shadow: 0 0 0 4px rgba(13,124,110,0.1);
    outline: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-text {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Quick Contact Card */
.quick-contact-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    overflow: hidden;
    margin-bottom: 16px;
}

.quick-contact-header {
    padding: 14px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.quick-contact-header h6 {
    font-weight: 700;
    color: #0a1a1f;
    margin: 0;
    font-size: 15px;
}

.quick-contact-body {
    padding: 16px 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.contact-method:last-child {
    border-bottom: none;
}

.contact-icon {
    font-size: 22px;
    color: #0d7c6e;
    width: 36px;
    text-align: center;
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.contact-value {
    display: block;
    font-size: 14px;
    color: #0a1a1f;
    font-weight: 500;
}

.contact-method small {
    display: block;
    font-size: 11px;
    color: #94a3b8;
}

/* Live Chat Card */
.live-chat-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    overflow: hidden;
    margin-bottom: 16px;
}

.live-chat-header {
    padding: 14px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.live-chat-header h6 {
    font-weight: 700;
    color: #0a1a1f;
    margin: 0;
    font-size: 15px;
}

.live-chat-body {
    padding: 16px 20px;
    text-align: center;
}

.chat-availability {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.chat-availability .badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

.chat-text {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 14px;
}

.live-chat-footer {
    padding: 10px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

/* Knowledge Card */
.knowledge-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    overflow: hidden;
}

.knowledge-header {
    padding: 14px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.knowledge-header h6 {
    font-weight: 700;
    color: #0a1a1f;
    margin: 0;
    font-size: 15px;
}

.knowledge-body {
    padding: 12px 20px;
}

.knowledge-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.knowledge-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.knowledge-list li:last-child {
    border-bottom: none;
}

.knowledge-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.knowledge-list a:hover {
    color: #0d7c6e;
}

.knowledge-list a i {
    color: #0d7c6e;
    font-size: 16px;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 14px;
    margin-bottom: 16px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
}

/* Responsive */
@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .support-hero {
        padding: 30px 20px;
    }

    .support-hero h1 {
        font-size: 26px;
    }

    .support-hero p {
        font-size: 14px;
    }

    .search-wrapper {
        border-radius: 30px;
    }

    .search-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .support-ticket-header {
        padding: 14px 16px;
    }

    .support-ticket-body {
        padding: 16px;
    }

    .support-ticket-footer {
        padding: 12px 16px;
    }

    .faq-section {
        padding: 16px;
    }

    .faq-question {
        padding: 10px 14px;
    }

    .faq-text {
        font-size: 13px;
    }

    .quick-contact-body {
        padding: 12px 16px;
    }
}

@media (max-width: 576px) {
    .support-hero-icon {
        font-size: 36px;
    }

    .support-hero h1 {
        font-size: 22px;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .category-card {
        padding: 14px 10px;
    }

    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .category-card h6 {
        font-size: 12px;
    }

    .category-card p {
        font-size: 10px;
    }

    .search-wrapper {
        flex-wrap: wrap;
        border-radius: 16px;
        padding: 8px;
    }

    .search-input {
        width: 100%;
        padding: 10px 14px;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
    }

    .search-btn {
        width: 100%;
        margin-top: 8px;
        justify-content: center;
    }

    .contact-method {
        padding: 8px 0;
    }

    .contact-icon {
        font-size: 18px;
        width: 30px;
    }

    .contact-value {
        font-size: 13px;
    }
}