@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");

body {
    font-family: 'Poppins', sans-serif;
    margin: 0; /* Remove default margin to prevent overflow */
    padding: 0; /* Remove default padding to prevent overflow */
    box-sizing: border-box; /* Apply box-sizing to ensure padding and borders are included in element's width/height */
}

/* General Styles */
.contact-us-section {
    background: #f0f4f8;
    padding: 5em 1em;
    margin: 0 auto; /* Center content within the section */
    max-width: 100%; /* Ensure it doesn't exceed the screen width */
}

.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 3em;
    flex-wrap: wrap;
}

/* Left Section */
.contact-left {
    flex: 1;
    background: linear-gradient(135deg, #006BD6, #4B90E2);
    color: white;
    padding: 2.5em;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-left:hover {
    transform: translateY(-10px);
}

.contact-left h2 {
    font-size: 2.2em;
    margin-bottom: 1em;
}

.contact-left h3 {
    font-size: 1.8em;
    margin-bottom: 1.5em;
}

.contact-left p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 2em;
}

.address {
    display: flex;
    align-items: center;
    font-size: 1.2em;
}

.address i {
    margin-right: 0.7em;
    font-size: 1.5em;
}

/* Right Section */
.contact-right {
    flex: 1;
    background: white;
    padding: 2.5em;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-right h4 {
    font-size: 1.9em;
    margin-bottom: 1.5em;
    color: #333;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 0.5em;
    font-weight: bold;
    color: #555;
}

input, textarea {
    padding: 0.9em;
    margin-bottom: 1.2em;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    background: #f9f9f9;
    transition: border 0.3s;
    width: 100%;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
    min-height: 150px;
}

input:focus, textarea:focus {
    border-color: #006BD6;
    outline: none;
}

button.submit-btn {
    background: #006BD6;
    color: white;
    border: none;
    padding: 0.8em 1.6em;
    font-size: 1.2em;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    width: 100%; /* Make the button full width on mobile */
    box-sizing: border-box;
}

button.submit-btn:hover {
    background: #004d9b;
    transform: scale(1.05);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 2em;
    }

    .contact-left, .contact-right {
        width: 100%;
        padding: 2em 1.5em;
        border-radius: 10px;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .contact-left, .contact-right {
        padding: 1.5em 1em;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .contact-left h2 {
        font-size: 1.8em;
    }

    .contact-left h3 {
        font-size: 1.5em;
    }

    .contact-left p {
        font-size: 1em;
    }

    .contact-right h4 {
        font-size: 1.5em;
    }

    input, textarea {
        padding: 0.8em;
        font-size: 0.9em;
    }

    button.submit-btn {
        font-size: 1em;
        padding: 0.7em 1.4em;
    }
}

@media (max-width: 320px) {
    .contact-left h2 {
        font-size: 1.6em;
    }

    .contact-left h3 {
        font-size: 1.3em;
    }

    .contact-left p, .address {
        font-size: 0.9em;
    }

    .contact-right h4 {
        font-size: 1.3em;
    }

    input, textarea {
        padding: 0.6em;
        font-size: 0.8em;
    }

    button.submit-btn {
        font-size: 0.9em;
        padding: 0.6em 1.2em;
    }
}
