@charset "utf-8";

/* ==========================================================================
   Modern Contact Page Styles - "Grand & Beautiful"
   ========================================================================== */

:root {
    --primary-color: #0052d9; /* Tech Blue */
    --primary-dark: #003cab;
    --primary-light: #e6f0ff;
    --secondary-color: #1a202c;
    --text-main: #1d2129;
    --text-regular: #4e5969;
    --text-light: #86909c;
    --bg-light: #f7f9fc;
    --white: #ffffff;
    --border-color: #e5e6eb;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 16px 32px rgba(0, 82, 217, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Hero Section */
.contact-hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../../images/about/about.jpg'); /* Reuse about bg or set a gradient fallback */
    background-color: #001f4d;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.75), rgba(255,255,255,0.5));
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 48px;
    color: #24313F;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(36,49,63,0.8);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* Main Container */
.contact-container {
    max-width: 1400px;
    margin: -60px auto 100px;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

/* Support Section Layout */
.support-section {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 60px;
    margin-bottom: 40px;
}

.section-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.section-title-wrap {
    max-width: 70%;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.section-title i {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 24px;
}

.section-desc {
    font-size: 15px;
    color: var(--text-regular);
    line-height: 1.6;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Forced 4 columns */
    gap: 30px;
}

/* Contact Card */
.contact-card {
    background: var(--bg-light);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    background: #fff;
    border-color: var(--primary-light);
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.card-icon-wrap {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition);
}

.card-icon-wrap i {
    font-size: 28px;
    color: var(--primary-color);
    transition: var(--transition);
}

.contact-card:hover .card-icon-wrap {
    background: var(--primary-color);
}

.contact-card:hover .card-icon-wrap i {
    color: #fff;
    transform: scale(1.1);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.card-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
    flex-grow: 1;
    line-height: 1.6;
}

.card-action {
    margin-top: auto;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary-outline {
    background: #fff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-primary-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Custom Highlight Card (e.g., Phone Support) */
.contact-card.highlight {
    background: linear-gradient(135deg, #0052d9 0%, #003cab 100%);
    color: #fff;
}

.contact-card.highlight .card-icon-wrap {
    background: rgba(255, 255, 255, 0.2);
}

.contact-card.highlight .card-icon-wrap i {
    color: #fff;
}

.contact-card.highlight .card-title {
    color: #fff;
}

.contact-card.highlight .card-desc {
    color: rgba(255, 255, 255, 0.8);
}

.contact-card.highlight .btn-primary-outline {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.contact-card.highlight .btn-primary-outline:hover {
    background: #fff;
    color: var(--primary-color);
}

/* Sales Team Section */
.sales-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.sales-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.sales-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
    transform: translateY(-5px);
}

.sales-avatar-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.sales-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: var(--shadow-sm);
}

.sales-gender-icon {
    position: absolute;
    bottom: 0;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    border: 2px solid #fff;
}

.gender-male {
    background: #0052d9;
}

.gender-female {
    background: #ff4d4f;
}

.sales-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 5px;
}

.sales-role {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
    display: block;
}

.sales-contact-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.sales-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-regular);
    transition: var(--transition);
    text-decoration: none;
    font-size: 18px;
}

.sales-link:hover {
    background: var(--primary-color);
    color: #fff;
}

.sales-link.qq:hover { background: #12b7f5; }
.sales-link.tg:hover { background: #0088cc; }

/* Modal Styles */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 400px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transform: scale(0.9);
    transition: var(--transition);
    position: relative;
}

.modal-backdrop.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: #fef0f0;
    color: #f56c6c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.modal-text {
    font-size: 15px;
    color: var(--text-regular);
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-btn {
    display: inline-block;
    padding: 10px 30px;
    background: var(--primary-color);
    color: #fff;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.modal-btn:hover {
    background: var(--primary-dark);
}

/* Responsive */
@media (max-width: 1200px) {
    .contact-grid, .sales-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .support-section {
        padding: 40px;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .section-title-wrap {
        max-width: 100%;
        margin-bottom: 20px;
    }
    .contact-grid, .sales-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-hero {
        height: 300px;
    }
    .hero-title {
        font-size: 36px;
    }
    .contact-container {
        margin-top: -30px;
    }
    .support-section {
        padding: 30px 20px;
    }
    .contact-grid, .sales-grid {
        grid-template-columns: 1fr;
    }
}
