/* ========== Banner ========== */
.page-banner {
    width: 100%;
    height: 347px;
    overflow: hidden;
}

.page-banner-img {
    width: 100%;
    height: 347px;
    object-fit: cover;
    display: block;
}

/* ========== Layout ========== */
.contact-main {
    padding: 40px 0 60px;
    background: #F7F7F7;
}

.contact-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.contact-sidebar {
    width: 276px;
    flex-shrink: 0;
    background: #fff;
    overflow: hidden;
}

.contact-sidebar .sidebar-title {
    height: 83px;
    line-height: 83px;
    padding: 0 30px;
    background: #0061AE;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.contact-sidebar .sidebar-nav a {
    display: block;
    padding: 18px 24px;
    font-size: 16px;
    color: #333;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.2s, background 0.2s;
}

.contact-sidebar .sidebar-nav a:hover {
    color: #0061AE;
    background: #f8fbff;
}

.contact-sidebar .sidebar-nav a.active {
    color: #0061AE;
    background: #f0f7fd;
    font-weight: 700;
}

.contact-content {
    flex: 1;
    background: #fff;
    min-width: 0;
    padding: 32px 36px 40px;
}

.contact-panel {
    display: none;
}

.contact-panel.active {
    display: block;
}

/* ========== Map ========== */
.contact-map {
    width: 100%;
    height: 400px;
    margin-bottom: 32px;
    overflow: hidden;
    border: 1px solid #eee;
}

.contact-map iframe,
.contact-map #contactMap {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ========== Contact Info ========== */
.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 40px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-info-item:last-child {
    grid-column: 1 / 2;
}

.info-icon {
    width: 63px;
    height: 63px;
    border: 1px solid #C7C7C7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon img {
    width: 36px;
    height: 36px;
}

.info-text h4 {
    font-size: 18px;
    color: #999999;
    margin-bottom: 8px;
}

.info-text p {
    font-size: 20px;
    color: #333333;
    line-height: 1.6;
}

/* ========== Message Form ========== */
.contact-form {
    max-width: 640px;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    outline: none;
    font-family: inherit;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: #0061AE;
}

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

.contact-form .btn-primary {
    margin-top: 8px;
}

/* ========== Responsive ========== */
@media (max-width: 992px) {
    .page-banner,
    .page-banner-img {
        height: 260px;
    }

    .contact-layout {
        flex-direction: column;
    }

    .contact-sidebar {
        width: 100%;
    }

    .contact-content {
        padding: 24px 20px;
    }

    .contact-map {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .page-banner,
    .page-banner-img {
        height: 200px;
    }

    .contact-main {
        padding: 24px 0 40px;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-info-item:last-child {
        grid-column: auto;
    }

    .contact-map {
        height: 240px;
    }
}
