/* Page Container */
.contact-hero {
    background: rgb(245, 245, 247);
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 40px;
}

/* Page Header */
.contact-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--accent);
}

.contact-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
}

.contact-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Offices Section */
.offices-section {
    margin-bottom: 40px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--accent);
}

.offices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.office-card {
    position: relative;
    background: rgb(245, 245, 247);
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 450px;
}

.office-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.card-content {
    position: relative;
    z-index: 2;
}

.office-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    padding: 20px;
    margin: 0;
    background: rgb(245, 245, 247);
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.office-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.office-info {
    padding: 20px;
}

.office-info p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    color: #6c757d;
    cursor: text;
}

.office-info p:last-child {
    margin-bottom: 0;
}

.office-info i {
    margin-right: 10px;
    color: #2c3e50;
    width: 16px;
    flex-shrink: 0;
}

.office-info span {
    user-select: text;
}

.office-map {
    height: 220px;
    overflow: hidden;
}

.office-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

.map-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Contact Form Section */
.contact-form-section {
    margin-bottom: 40px;
}

.contact-form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.contact-form-wrapper {
    background: rgb(245, 245, 247);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.contact-image-wrapper {
    height: 100%;
    min-height: 350px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.contact-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.contact-image:hover {
    transform: scale(1.05);
}

.form-group {
    margin-bottom: 15px;
}

.contact-form-label {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    color: #2c3e50;
    font-weight: 500;
}

.contact-form-label i {
    margin-right: 8px;
    color: #2c3e50;
    width: 16px;
}

.contact-form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background: #fff;
    color: #2c3e50;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-form-input:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

textarea.contact-form-input {
    resize: vertical;
    min-height: 100px;
}

.contact-form-submit {
    width: 100%;
    padding: 10px 20px;
    background: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form-submit:hover {
    background: #34495e;
    transform: translateY(-2px);
}

.g-recaptcha {
    margin-bottom: 15px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .offices-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-form-container {
        grid-template-columns: 1fr;
    }

    .contact-image-wrapper {
        min-height: 300px;
        order: -1;
    }
}

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

    .contact-hero {
        padding: 30px 20px;
    }

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

    .contact-form-wrapper {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .contact-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: left center;
    }
}