body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
}

.container {
    width: 80%;
    margin: 50px auto;
}

.contact-title {
    font-size: 32px;
    font-weight: bold;
    color: #8B2E00;
    text-align: left;
    margin-bottom: 20px;
}

.contact-section {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 30px;
}

.contact-form {
    flex: 1;
    max-width: 50%;
width:100%;
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-form label {
    font-size: 16px;
    margin-bottom: 5px;
    display: block;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px; /* Increased padding for better mobile usability */
    margin-bottom: 15px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; /* Ensures padding does not affect width */
}

.contact-form button {
    padding: 12px 20px;
    background-color: #8B2E00;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.contact-form button:hover {
    background-color: #a93c29;
}

.image-container {
    flex: 1;
    text-align: center;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.office-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.office {
    flex: 1;
    max-width: 45%;
}

.office h3 {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
}

.office p {
    font-size: 16px;
    color: #555;
}

.flag {
    width: 30px;
    height: auto;
    margin-right: 10px;
}



html[lang="ar"] .contact-title {
    text-align: right;
}

/* Media Queries */
@media (max-width: 768px) {
    .contact-section {
        flex-direction: column;
        gap: 20px;
    }

    .contact-form {
        max-width: 100%;
    }

    .contact-title {
        font-size: 28px;
    }

    .contact-form label {
        font-size: 14px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 14px; /* Adjusted font size */
    }

    .contact-form button {
        font-size: 15px;
    }

    .office-info {
        flex-direction: column;
        gap: 20px;
    }

    .office {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .contact-title {
        font-size: 24px;
    }

    .contact-form label {
        font-size: 12px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 12px; /* Adjust font size for small screens */
    }

    .contact-form button {
        font-size: 13px; /* Slightly smaller button text */
    }

    .container {
        width: 90%;
        margin: 30px auto;
    }

    .office-info {
        padding: 15px;
    }

    .office h3 {
        font-size: 18px;
    }

    .office p {
        font-size: 14px;
    }

    .image-container img {
        width: 100%;
        height: auto;
    }
}
