/* Assumes style.css is loaded with base variables and styling */

/* ------------------------------------------- */
/* --- 1. General Page Structure --- */
/* ------------------------------------------- */

.help-body {
    background-color: var(--color-bg-dark);
    min-height: 100vh;
    /* Removed top padding as the header is now sticky */
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================== */
/* --- SITE-WIDE HEADER (NAVIGATION BAR) --- */
/* =========================================== */
.site-header {
    background-color: var(--color-bg-card); 
    width: 100%;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-text-light);
}

.logo-img {
    height: 30px; 
    margin-right: 10px;
}

.logo-text {
    font-size: 1.4em;
    font-weight: 900;
    color: var(--color-accent);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-subtle);
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s, border-bottom 0.3s;
}

.nav-links a:hover,
.nav-links li.active a {
    color: var(--color-accent);
}

.btn-login-nav {
    background-color: var(--color-accent);
    color: var(--color-bg-dark) !important;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s;
    margin-left: 15px;
}

.btn-login-nav:hover {
    background-color: var(--color-accent-hover);
    color: var(--color-bg-dark) !important;
}

/* =========================================== */
/* --- PAGE TITLE/HERO (Below Nav) --- */
/* =========================================== */
.page-title-hero {
    background-color: #121216; 
    padding: 50px 0 30px 0;
    text-align: center;
    border-bottom: 2px solid var(--color-accent-dim);
    margin-bottom: 50px;
}
.page-title-hero h1 {
    font-size: 2.5em;
    color: var(--color-accent);
    margin-bottom: 10px;
    font-weight: 900;
}
.page-title-hero p {
    color: var(--color-text-subtle);
    font-size: 1.1em;
}
.page-title-hero i {
    margin-right: 10px;
}

/* ------------------------------------------- */
/* --- 2. Grid Layout & Card Styling --- */
/* ------------------------------------------- */

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Form takes 2/3, Contact card takes 1/3 */
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background-color: var(--color-bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.card h2 {
    font-size: 1.5em;
    color: var(--color-text-light);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--color-accent-dim);
    padding-bottom: 10px;
}

/* ------------------------------------------- */
/* --- 3. Support Form Styling --- */
/* ------------------------------------------- */

.support-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--color-text-light);
}

.input-group label i {
    color: var(--color-accent);
    margin-right: 8px;
}

.support-form input[type="file"],
.support-form input[type="text"],
.support-form select,
.support-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background-color: #0d0d10;
    color: var(--color-text-light);
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
    appearance: none;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
    outline: none;
}

.support-form textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.file-input {
    padding: 10px; 
    cursor: pointer;
}

.file-info, .word-count-display {
    font-size: 0.85em;
    color: var(--color-text-subtle);
    margin-top: 5px;
}

.btn-submit {
    background-color: var(--color-accent);
    color: var(--color-bg-dark);
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.4);
}

/* ------------------------------------------- */
/* --- 4. Contact Card Styling --- */
/* ------------------------------------------- */

.contact-card p {
    color: var(--color-text-light);
    margin-bottom: 20px;
    font-size: 0.95em;
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1em;
}

.contact-detail i {
    color: var(--color-accent);
    width: 25px;
    text-align: center;
    font-size: 1.2em;
    flex-shrink: 0;
}

.contact-detail p {
    margin: 0;
    margin-left: 10px;
}

.contact-detail a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}
.contact-detail a:hover {
    text-decoration: underline;
}

/* ------------------------------------------- */
/* --- 5. FAQ Section (Accordion) --- */
/* ------------------------------------------- */

.faq-section {
    padding-bottom: 50px;
}

.faq-section h2 {
    font-size: 2em;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 900;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background-color: var(--color-bg-card);
    transition: box-shadow 0.3s;
}

.faq-item.active {
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    border-color: var(--color-accent);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--color-text-light);
    text-align: left;
    padding: 20px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: rgba(0, 255, 255, 0.05);
}

.faq-question::after {
    content: '\2b'; /* Plus icon */
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-accent);
    font-size: 1.2em;
    font-weight: 700;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    content: '\2212'; /* Minus icon */
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    color: var(--color-text-subtle);
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
}

.faq-item.active .faq-answer {
    max-height: 500px; 
    padding: 10px 20px 20px 20px;
}

/* =========================================== */
/* --- SITE-WIDE FOOTER --- */
/* =========================================== */
.site-footer {
    background-color: var(--color-bg-card);
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h3 {
    color: var(--color-text-light);
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-col p, .footer-col ul {
    color: var(--color-text-subtle);
    font-size: 0.9em;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col a {
    color: var(--color-text-subtle);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--color-accent);
}

.footer-col .fas, .footer-col .fab {
    color: var(--color-accent);
    margin-right: 8px;
}

.social-links a {
    font-size: 1.5em;
    margin-right: 15px;
    color: var(--color-text-subtle);
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 15px 20px;
    text-align: center;
    font-size: 0.8em;
    color: var(--color-text-subtle);
}


/* ------------------------------------------- */
/* --- 6. RESPONSIVENESS --- */
/* ------------------------------------------- */

@media (max-width: 850px) {
    /* Stack form and contact card */
    .content-grid {
        grid-template-columns: 1fr; 
    }

    .form-card {
        order: 1;
    }

    .contact-card {
        order: 2;
    }
    
    /* Footer stacking */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .social-links {
        text-align: center;
        margin-top: 15px;
    }
    .footer-col p {
        /* Center contact details */
        display: inline-block;
        text-align: left;
    }
    .footer-col ul {
        text-align: center;
    }
}

@media (max-width: 500px) {
    .page-title-hero {
        padding: 30px 0 20px 0;
    }
    .page-title-hero h1 {
        font-size: 2em;
    }
    
    .card {
        padding: 20px;
    }
    
    .faq-question {
        padding: 15px;
        font-size: 1em;
    }
    .faq-question::after {
        right: 15px;
    }
    
    .nav-links {
        /* Hide nav links on very small screens for better mobile menu integration */
        display: none; 
    }
}