/* ============================================
   WiFiHapa - Support Center (support.php)
   Colours come from the variables in layout.css, so dark mode follows automatically.
   ============================================ */

.support-hero {
    background: var(--hero-bg);
    border-radius: 40px;
    padding: 2.5rem 2rem;
    margin: 1.5rem 0 2rem;
}

.support-badge {
    display: inline-block;
    background: #0b2b40;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.4rem 1rem;
    border-radius: 50px;
}

.support-search {
    position: relative;
    display: flex;
    gap: 0.5rem;
    max-width: 560px;
}

.support-search > i {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.support-search .form-control {
    border-radius: 50px;
    padding: 0.75rem 1rem 0.75rem 2.6rem;
    background-color: var(--input-bg);
    color: var(--text-primary);
}

.btn-support {
    border: none;
    border-radius: 50px;
    padding: 0 1.5rem;
    background: #0d6efd;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

.btn-support:hover {
    background: #0b5ed7;
}

/* Quick help */
.help-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.help-card:hover {
    transform: translateY(-4px);
}

.help-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1rem 0 0.4rem;
}

.help-card p {
    flex-grow: 1;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.help-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--badge-light-bg);
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.help-link {
    font-weight: 700;
    text-decoration: none;
    color: #0d6efd;
}

body.dark .help-link,
body.dark .help-icon {
    color: #6dafff;
}

.support-title {
    font-size: 1.4rem;
    font-weight: 700;
}

/* Guides */
.guide-row {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 22px;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    text-decoration: none;
    transition: border-color 0.2s;
}

.guide-row:hover {
    border-color: #0d6efd;
    color: var(--text-primary);
}

.guide-row h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0.3rem 0 0.2rem;
}

.guide-row p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.guide-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #0d6efd;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.guide-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-secondary);
}

.guide-go {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0d6efd;
    white-space: nowrap;
}

body.dark .guide-go {
    color: #6dafff;
}

/* Panels */
.support-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 28px;
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.support-faq .accordion-item {
    border: 1px solid var(--border-light);
    border-radius: 16px !important;
    overflow: hidden;
    margin-bottom: 0.6rem;
    background: transparent;
}

.support-faq .accordion-button {
    font-weight: 600;
    font-size: 0.95rem;
    background: var(--card-bg);
    color: var(--text-primary);
    box-shadow: none;
}

.support-faq .accordion-button:not(.collapsed) {
    background: var(--badge-light-bg);
}

.support-faq .accordion-body {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Channels */
.channel-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    text-decoration: none;
}

.channel-row small {
    display: block;
    color: var(--text-secondary);
}

.channel-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.channel-icon.whatsapp { background: #128c4a; }
.channel-icon.phone { background: #0d6efd; }
.channel-icon.email { background: #6f42c1; }

.channel-btn {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    border: 2px solid #0d6efd;
    color: #0d6efd;
    white-space: nowrap;
}

.channel-row:hover .channel-btn {
    background: #0d6efd;
    color: #fff;
}

body.dark .channel-btn {
    border-color: #6dafff;
    color: #6dafff;
}

.support-hours {
    display: grid;
    gap: 0.5rem;
    margin-top: 1.25rem;
    font-size: 0.88rem;
}

.support-hours div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.support-hours span {
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .support-hero {
        border-radius: 28px;
        padding: 1.5rem 1.25rem;
    }

    .support-panel {
        padding: 1.25rem;
        border-radius: 22px;
    }

    .guide-row {
        flex-wrap: wrap;
    }

    .guide-go {
        width: 100%;
        text-align: right;
    }
}

@media (max-width: 420px) {
    .support-search {
        flex-direction: column;
    }

    .btn-support {
        padding: 0.7rem 1.5rem;
    }

    .support-search > i {
        top: 1.45rem;
    }
}
