/* Support Page Specific Styles */

/* Support Hero Section */
.support-hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.support-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.support-hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.support-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.title-highlight {
    display: block;
}

.support-hero-description {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0.95;
}

.support-quick-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.quick-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.quick-link-icon {
    font-size: 1.5rem;
}

.quick-link-text {
    font-weight: 600;
}

/* FAQ Section */
.faq-section {
    background: white;
    padding: 6rem 0;
}

.faq-categories {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.category-btn.active {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.faq-item.active {
    border-color: var(--primary-color);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.faq-question:hover {
    background: #f7fafc;
}

.faq-question-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    padding-right: 1rem;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

.faq-footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #e2e8f0;
}

.faq-footer p {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e3e9f3 100%);
    padding: 6rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    position: sticky;
    top: 100px;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-description {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.method-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.method-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.method-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.social-links h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Contact Form */
.contact-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #f56565;
}

.form-group input.success,
.form-group select.success,
.form-group textarea.success {
    border-color: #48bb78;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.error-message {
    color: #f56565;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 400;
    color: var(--text-light);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.btn-submit {
    width: 100%;
    padding: 1.125rem 2rem;
    font-size: 1.125rem;
    position: relative;
    overflow: hidden;
}

.btn-submit .btn-loading {
    display: none;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loading {
    display: inline;
}

.btn-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

.form-status {
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-status.show {
    display: block;
}

.form-status.success {
    background: #c6f6d5;
    color: #22543d;
    border: 2px solid #48bb78;
}

.form-status.error {
    background: #fed7d7;
    color: #742a2a;
    border: 2px solid #f56565;
}

/* Responsive Design */
@media (max-width: 968px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        position: relative;
        top: 0;
    }

    .support-hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .support-hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .support-hero-title {
        font-size: 2rem;
    }

    .support-hero-description {
        font-size: 1rem;
    }

    .support-quick-links {
        flex-direction: column;
        align-items: stretch;
    }

    .quick-link {
        justify-content: center;
    }

    .faq-categories {
        gap: 0.5rem;
    }

    .category-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .faq-question-text {
        font-size: 1rem;
    }

    .contact-title {
        font-size: 2rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .contact-methods {
        gap: 1rem;
    }

    .method-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .support-hero-title {
        font-size: 1.75rem;
    }

    .faq-question {
        padding: 1rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1rem 1rem;
    }

    .contact-form-container {
        padding: 1.25rem;
    }
}

/* Animation for FAQ items appearing */
.faq-item {
    animation: fadeInUp 0.4s ease-out;
    animation-fill-mode: both;
}

.faq-item:nth-child(1) { animation-delay: 0.05s; }
.faq-item:nth-child(2) { animation-delay: 0.1s; }
.faq-item:nth-child(3) { animation-delay: 0.15s; }
.faq-item:nth-child(4) { animation-delay: 0.2s; }
.faq-item:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide FAQ items when filtered */
.faq-item.hidden {
    display: none;
}

/* Loading state for form */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Legal Pages Styling */
.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.legal-section:last-of-type {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.legal-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.legal-section a:hover {
    text-decoration: underline;
}

.legal-section strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Articles Section */
.articles-section {
    padding: 4rem 0;
    background: #f7fafc;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.article-placeholder-icon {
    font-size: 4rem;
}

.article-content {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.article-date {
    color: var(--text-light);
}

.article-category {
    color: var(--primary-color);
    font-weight: 600;
}

.article-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.article-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.article-card:hover .article-read-more {
    transform: translateX(5px);
}

/* Individual Article Page */
.article-header {
    background: var(--gradient-1);
    padding: 4rem 0 2rem;
    color: white;
    text-align: center;
}

.article-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-header-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-header-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.95rem;
    opacity: 0.95;
}

.article-body-section {
    padding: 4rem 0;
    background: white;
}

.article-body-container {
    max-width: 800px;
    margin: 0 auto;
}

.article-body-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-body-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.article-body-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.article-body-content p {
    margin-bottom: 1.5rem;
}

.article-body-content ul,
.article-body-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-body-content li {
    margin-bottom: 0.5rem;
}

.article-body-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: var(--transition);
}

.article-body-content a:hover {
    color: var(--secondary-color);
}

.article-body-content strong {
    font-weight: 600;
    color: var(--text-dark);
}

.article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.article-back-link:hover {
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-header-title {
        font-size: 2rem;
    }

    .article-header-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .article-body-content {
        font-size: 1rem;
    }

    .article-body-content h2 {
        font-size: 1.75rem;
    }

    .article-body-content h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .article-header-title {
        font-size: 1.75rem;
    }

    .article-body-content {
        font-size: 0.95rem;
    }
}
