/* Styles for the contact page */

.contactimg {
    width: 100%;
    height: auto;
    max-width: 600px;
    margin: 0 auto 20px; /* Centered on small screens */
    display: block; /* Ensures image is centered */
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin: 50px auto;
    max-width: 1200px;
}

.contact-text {
    text-align: center;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-text h2 {
    font-size: 24px; /* Smaller font size for better scaling */
    color: #333;
    margin-bottom: 20px;
}

.contact-text p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-sizing: border-box; /* Ensures padding is included in width */
}

.contact-form textarea {
    height: 150px;
}

.contact-form button {
    background-color: #d2fbd9;
    color: #000000;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 15px;
    width: 100%; /* Full width button for better touch targets on mobile */
}

.contact-form button:hover {
    background-color: #8bc34a;
    color: white;
}

@media (min-width: 768px) {
    .contact-content {
        flex-direction: row;
        align-items: flex-start;
        padding: 50px;
    }

    .contact-text {
        max-width: 500px;
        text-align: right;
    }

    .contactimg {
        width: 600px;
        height: auto;
        margin-right: 50px;
        margin-bottom: 0; /* Remove bottom margin for larger screens */
    }

    .contact-text h2 {
        font-size: 36px; /* Larger font size for better readability */
    }
}
