/* ==========================================
   FAIR E WEB HOST - CONTACT PAGE STYLES
   Standalone CSS for Contact Us Page
   ========================================== */

/* Contact Hero Section */
.contact-hero {
    background: linear-gradient(135deg, #2d2d3a 0%, #3a3a4e 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.contact-hero .container {
    position: relative;
    z-index: 1;
}

.contact-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
    background-color: #f5f7fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-top: -40px;
}

.contact-card {
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 32px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-card h2 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
    color: #2d2d3a;
}

.contact-card > p {
    color: #6c757d;
    margin-bottom: 28px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d2d3a;
    font-size: 14px;
}

.required {
    color: #ff6b6b;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background-color: white;
    color: #2d2d3a;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6a4fff;
    box-shadow: 0 0 0 3px rgba(106, 79, 255, 0.1);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.5;
}

.form-message {
    padding: 14px 16px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
    font-weight: 600;
    font-size: 14px;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Contact Info Styles */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    padding: 18px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #6a4fff;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(106, 79, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6a4fff;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-info-content h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #2d2d3a;
}

.contact-info-content p,
.contact-info-content a {
    margin: 4px 0;
    color: #6c757d;
    font-size: 14px;
    display: block;
    text-decoration: none;
}

.contact-info-content a:hover {
    color: #6a4fff;
}

/* Social Links Section */
.social-section {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid #e9ecef;
}

.social-section h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    color: #2d2d3a;
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #2d2d3a;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: #6a4fff;
    color: white;
    border-color: #6a4fff;
    transform: translateY(-2px);
}

/* Support Channels Section */
.channels-section {
    padding: 60px 0;
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 12px;
    font-weight: 700;
    color: #2d2d3a;
}

.section-header p {
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    font-size: 16px;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.channel-card {
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.channel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.channel-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(106, 79, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #6a4fff;
    font-size: 28px;
}

.channel-card h3 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    color: #2d2d3a;
}

.channel-card p {
    margin: 0 0 24px;
    color: #6c757d;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-item.active {
    border-color: #6a4fff;
    box-shadow: 0 5px 20px rgba(106, 79, 255, 0.15);
}

.faq-question {
    padding: 20px 24px;
    background-color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-item.active .faq-question {
    background-color: #f0f2ff;
}

.faq-question h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #2d2d3a;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    background-color: #6a4fff;
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    font-size: 14px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 20px 24px;
    border-top: 1px solid #e9ecef;
}

.faq-answer p {
    margin: 0;
    color: #6c757d;
    line-height: 1.7;
}

.faq-answer a {
    color: #6a4fff;
    font-weight: 600;
    text-decoration: none;
}

.faq-answer a:hover {
    color: #ff6b6b;
}

/* Modal Styles */
.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}

.modal[aria-hidden="false"] {
    display: flex;
}

.modal__card {
    width: min(600px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e9ecef;
}

.modal__header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #2d2d3a;
}

.modal__close {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    width: 36px;
    height: 36px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #2d2d3a;
    transition: all 0.3s ease;
}

.modal__close:hover {
    background-color: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .channels-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 60px 0;
    }
    
    .contact-hero h1 {
        font-size: 36px;
    }
    
    .contact-hero p {
        font-size: 16px;
    }

    .contact-card {
        padding: 24px;
    }

    .modal__card {
        padding: 24px;
    }
    
    .contact-section {
        padding: 40px 0;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .contact-hero h1 {
        font-size: 28px;
    }
    
    .contact-hero p {
        font-size: 15px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .channel-card {
        padding: 24px;
    }
    
    .faq-question h3 {
        font-size: 14px;
    }
}

/* ==========================================
   HEADER & NAVIGATION - UNIFIED SYSTEM
   ========================================== */

header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    max-width: 100%;
    filter: brightness(1.1);
}

/* Desktop Navigation */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    text-decoration: none;
    padding: 5px 0;
    position: relative;
    transition: all 0.3s ease;
}

nav ul li a.active,
nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav ul li a.active::after,
nav ul li a:hover::after {
    transform: scaleX(1);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
    margin-left: auto;
}

/* Mobile Menu - Hidden by default */
.mobile-menu {
    display: none;
}

/* ==========================================
   RESPONSIVE - MOBILE NAVIGATION
   ========================================== */

@media (max-width: 992px) {
    /* Hide desktop nav, show mobile toggle */
    nav ul {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Mobile Menu Styles */
    .mobile-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: white;
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 90;
    }
    
    .mobile-menu.active {
        display: block;
        max-height: 500px;
    }
    
    .mobile-menu ul {
        list-style: none;
        padding: 20px;
        margin: 0;
    }
    
    .mobile-menu ul li {
        margin: 0 0 15px 0;
    }
    
    .mobile-menu ul li a {
        display: block;
        padding: 12px 15px;
        background-color: var(--light-color);
        border-radius: 5px;
        color: var(--dark-color);
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .mobile-menu ul li a:hover,
    .mobile-menu ul li a.active {
        background-color: var(--primary-color);
        color: white;
    }
    
    .mobile-menu .btn-primary {
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
}