/* ========================================
   HELP & SUPPORT PAGE STYLES
   Add this to help-support.css file
   ======================================== */

/* Help Content Container */
.help-content {
    padding: 2rem 0 4rem;
}

/* Help Header */
.help-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.help-header .page-title {
    font-size: 3rem;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.help-header .page-subtitle {
    font-size: 1.1rem;
    color: #999999;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Search Section */
.search-section {
    max-width: 800px;
    margin: 0 auto 4rem;
    position: relative;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, #1a1a1a, #0a0a0a);
    border: 2px solid rgba(255, 68, 68, 0.3);
    border-radius: 50px;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    transition: all 0.3s;
}

.search-container:focus-within {
    border-color: #ff4444;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.search-icon {
    width: 24px;
    height: 24px;
    stroke: #999;
    margin-right: 1rem;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    padding: 0.75rem 0;
}

.search-input::placeholder {
    color: #666;
}

.search-btn {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.search-btn:hover {
    background: linear-gradient(135deg, #cc0000, #990000);
    transform: scale(1.05);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 12px;
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 1rem 1.5rem;
    color: #cccccc;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(255, 68, 68, 0.1);
    color: #ffffff;
}

.suggestion-item strong {
    color: #ff4444;
}

/* Section Heading */
.section-heading {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: center;
}

.section-description {
    text-align: center;
    color: #999999;
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Quick Help Section */
.quick-help-section {
    margin-bottom: 5rem;
}

.quick-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.help-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 68, 68, 0.2);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    cursor: pointer;
}

.help-card:hover {
    background: rgba(255, 68, 68, 0.1);
    border-color: #ff4444;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
}

.help-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.help-card h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.help-card p {
    color: #999999;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.help-card-link {
    color: #ff4444;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.help-card-link:hover {
    color: #ff6666;
    gap: 0.75rem;
}

/* FAQ Section */
.faq-section {
    margin-bottom: 5rem;
}

.faq-category {
    margin-bottom: 3rem;
    scroll-margin-top: 200px;
}

.category-title {
    font-size: 1.6rem;
    color: #ff4444;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255, 68, 68, 0.3);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: rgba(255, 68, 68, 0.3);
}

.faq-item.active {
    background: rgba(255, 68, 68, 0.05);
    border-color: #ff4444;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: #ffffff;
    padding: 1.5rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.faq-question:hover {
    color: #ff4444;
}

.faq-toggle {
    font-size: 1.5rem;
    color: #ff4444;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-answer p,
.faq-answer ul,
.faq-answer ol {
    padding: 0 1.5rem 1.5rem;
    color: #cccccc;
    line-height: 1.8;
    margin: 0;
}

.faq-answer ul,
.faq-answer ol {
    padding-left: 3rem;
}

.faq-answer li {
    margin: 0.5rem 0;
}

.faq-answer strong {
    color: #ffffff;
}

.faq-answer a {
    color: #ff4444;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.faq-answer a:hover {
    border-bottom-color: #ff4444;
}

/* Contact Form Section */
.contact-form-section {
    max-width: 800px;
    margin: 0 auto 5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 68, 68, 0.2);
    border-radius: 16px;
    padding: 3rem;
}

.contact-form {
    margin-top: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff4444;
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-group select {
    cursor: pointer;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #ff4444;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
}

.submit-btn {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #cc0000, #990000);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Contact Methods Section */
.contact-methods-section {
    margin-bottom: 5rem;
}

.contact-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-method-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.contact-method-card:hover {
    background: rgba(255, 68, 68, 0.05);
    border-color: rgba(255, 68, 68, 0.3);
    transform: translateY(-5px);
}

.method-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-method-card h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.contact-method-card p {
    color: #999999;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.method-link {
    display: inline-block;
    color: #ff4444;
    text-decoration: none;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.method-link:hover {
    color: #ff6666;
}

.chat-trigger {
    padding: 0.5rem 1.5rem;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    border-radius: 6px;
}

.chat-trigger:hover {
    background: rgba(255, 68, 68, 0.2);
}

/* Resource Section */
.resource-section {
    margin-bottom: 3rem;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.resource-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    display: block;
}

.resource-card:hover {
    background: rgba(255, 68, 68, 0.05);
    border-color: rgba(255, 68, 68, 0.3);
    transform: translateY(-5px);
}

.resource-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.resource-card h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.resource-card p {
    color: #999999;
    font-size: 0.9rem;
    margin: 0;
}

/* Success/Error Messages */
.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
    animation: slideDown 0.3s ease;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    color: #4caf50;
}

.form-message.error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    color: #ff4444;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ff4444;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Footer Active Link */
.footer-link.active {
    color: #ff4444;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .help-header .page-title {
        font-size: 2rem;
    }

    .search-container {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        border-radius: 16px;
    }

    .search-input {
        order: 2;
        padding: 0.75rem 0;
    }

    .search-icon {
        order: 1;
        margin: 0 0 0.75rem 0;
    }

    .search-btn {
        order: 3;
        margin-top: 0.75rem;
        width: 100%;
    }

    .quick-help-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-methods-grid {
        grid-template-columns: 1fr;
    }

    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-form-section {
        padding: 1.5rem;
    }

    .section-heading {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .help-header .page-title {
        font-size: 1.75rem;
    }

    .resource-grid {
        grid-template-columns: 1fr;
    }

    .help-card-icon,
    .method-icon {
        font-size: 2.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Styling */
::selection {
    background: rgba(255, 68, 68, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(255, 68, 68, 0.3);
    color: #ffffff;
}

/* Focus Styles for Accessibility */
.help-card:focus,
.faq-question:focus,
.submit-btn:focus,
.method-link:focus,
.resource-card:focus {
    outline: 2px solid #ff4444;
    outline-offset: 4px;
}

/* Print Styles */
@media print {
    .header,
    .announcement-bar,
    .info-bar,
    .footer,
    .chat-btn,
    .chat-container,
    .search-section,
    .scroll-top-btn,
    .contact-form-section {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .help-content {
        margin-top: 0;
    }

    .faq-answer {
        max-height: none !important;
    }
}