/* Page Header Section */
.pg-header {
    background-image: url('images/Slider-Contact-us.jpg');
}

/* Website Section Styles */
.website-section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem;
}

.website-section h2 {
    color: #14428A;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.region-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #2f348a;
    padding-bottom: 1rem;
}

.tab {
    text-decoration: none;
    color: #555;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease;
}

.tab:hover {
    color: #14428A;
}

.tab.active {
    color: #14428A;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: calc(-1rem - 2px);
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #ff4b33;
}

.country-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.country-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background-color: #dfecff;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-basis: calc(20% - 0.8rem);
    text-decoration: none;
    color: inherit;
}

.country-card:hover {
    transform: translateY(-1px);
    box-shadow: 1px 2px 2px rgba(0,0,0,0.25);
    background-color: #e8f1ff;
}

.country-card img {
    width: 32px;
    height: 22px;
    object-fit: cover;
    border-radius: 2px;
}

/* Add styles for the headquarters indicator */
.country-card.headquarters {
    position: relative;
    border-radius: 0 0 8px 8px;
}

.country-card.headquarters::after {
    content: 'HEADQUARTERS';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    background-color: rgb(113, 167, 255);
    color: white;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 8px 8px 0 0;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
}

.country-card:hover.headquarters::after {
    transform: translateY(-1px);
    box-shadow: 1px -1px 2px rgba(0,0,0,0.25);
    right: -1px;
}

/* Information Section Styles */
.information-section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem;
}

.information-section h2 {
    color: #14428A;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.info-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.info-text h3 {
    color: #ff4b33;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.info-text p {
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.info-text p:first-of-type {
    text-align: justify;
}

.info-text a {
    color: #14428A;
    text-decoration: none;
}

.info-text a:hover {
    text-decoration: underline;
}

.info-image img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Contact Form Section Styles */
.contact-form-section {
    padding: 5rem 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('images/1989.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
}

.form-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 5rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.contact-form-section h2 {
    color: #14428A;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #fff;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

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

.recaptcha {
    margin: 1rem 0;
}

.send-message-btn {
    background-color: #ff4b33;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s;
}

.send-message-btn:hover {
    background-color: #e63e2a;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .website-section,
    .information-section {
        padding: 4rem 3rem;
    }

    .country-card {
        flex-basis: calc(20% - 0.8rem);
    }
}

@media (max-width: 992px) {
    .website-section,
    .information-section {
        padding: 3rem 2rem;
    }

    .region-tabs {
        flex-wrap: wrap;
        gap: 1rem 2rem;
    }

    .tab {
        flex-basis: calc(33.3333% - 1.34rem);
    }

    .tab.active::after {
        bottom: -2px
    }

    .country-card {
        flex-basis: calc(25% - 0.75rem);
        font-size: 0.9rem;
    }

    .info-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-container {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .website-section,
    .information-section {
        padding: 2.5rem 1.5rem;
    }

    .website-section h2,
    .information-section h2,
    .contact-form-section h2 {
        font-size: 1.75rem;
    }

    .region-tabs {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .tab {
        flex-basis: calc(33.3333% - 0.67rem);
    }

    .country-card {
        flex-basis: calc(33.33% - 0.67rem);
    }

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

    .country-card.headquarters::after {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .website-section,
    .information-section {
        padding: 2rem 1rem;
    }

    .website-section h2,
    .information-section h2,
    .contact-form-section h2 {
        font-size: 1.5rem;
    }

    .country-card {
        flex-basis: calc(50% - 0.5rem);
    }

    .tab {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }

    .info-text h3 {
        font-size: 1.3rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .send-message-btn {
        width: 100%;
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 0 auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    top: 50%;
    transform: translateY(-50%);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}

.close-modal:hover {
    color: #000;
}

.modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-header img {
    width: 40px;
    height: auto;
    margin-right: 15px;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5em;
}

.contact-info .info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-info i {
    width: 20px;
    margin-right: 15px;
    color: #666;
}

.contact-info p {
    margin: 0;
    flex: 1;
    line-height: 1.5;
    font-size: 0.9rem;
}