/* General Styles */
.contact-wrapper {
    background-color: white;
    width: 100%;
    margin: 3rem auto;
    padding: 20px;
    text-align: center;
    font-family: Arial, sans-serif;
}

.contact-wrapper h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: black;
}

/* Contact Container - Flexbox for main layout */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 10px;
}

/* Info Section Styles */
.info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;  /* Two columns */
    grid-gap: 20px;
    max-width: 500px;
    flex: 1;
}

.info-block {
    background-color: whitesmoke;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.info-block h3 {
    margin: 10px 0;
    color: #333;
    font-size: 1.2rem;
}

.info-block p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
}

.icon {
    font-size: 1.5rem;
    color: #b74242;
}

/* Form Section Styles */
.form-section {
    flex: 1;
    background-color: whitesmoke;
    padding: 20px;
    border-radius: 8px;
    max-width: 550px;
}

form {
    display: flex;
    flex-direction: column;
}

.input-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.input-half {
    flex: 1;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    min-width: 48%;
}

.input-full {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

textarea {
    height: 120px;
}

.submit-button {
    width: 100%;
    padding: 12px;
    background-color: #b74242;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #a63535;
}

/* Responsive Design */

/* Tablet and Small Desktop adjustments */
@media (max-width: 989px) {
    .contact-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        padding: 10px;
    }

    .info-section {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Two columns in a row */
        gap: 20px;
        width: 100%; /* Full width */
        max-width: 600px; /* Keep it within a reasonable max-width */
    }

    .info-block {
        background-color: whitesmoke;
        padding: 15px;
        border-radius: 8px;
        text-align: center; /* Center the text and icons */
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .info-block h3 {
        font-size: 1.3rem;
        margin: 10px 0;
        color: #333;
    }

    .info-block p {
        font-size: 1rem;
        color: #555;
    }

    .icon {
        font-size: 1.8rem;
        color: #b74242;
    }

    .form-section {
        width: 100%;
        max-width: 600px;
        background-color: whitesmoke;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    form {
        display: flex;
        flex-direction: column;
    }

    .input-half, .input-full, textarea {
        padding: 10px;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 5px;
        width: 100%;
    }

    .submit-button {
        width: 100%;
        padding: 12px;
        background-color: #b74242;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 1rem;
        transition: background-color 0.3s ease;
    }

    .submit-button:hover {
        background-color: #a63535;
    }
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .info-section {
        grid-template-columns: 1fr; /* Stack items */
        grid-gap: 15px;
    }

    .form-section {
        width: 100%;
        padding: 10px;
    }

    h1 {
        font-size: 1.7rem;
    }

    .info-block h3 {
        font-size: 1.3rem;
    }

    .info-block p {
        font-size: 1rem;
    }
}

/* Smaller Mobile Screens */
@media (max-width: 480px) {
    .info-block {
        padding: 10px;
        text-align: center;
        align-items: center;
    }

    .info-block h3 {
        font-size: 1.2rem;
    }

    .info-block p {
        font-size: 0.9rem;
    }

    .icon {
        font-size: 1.5rem;
    }

    .form-section {
        width: 100%;
        padding: 10px;
    }

    .submit-button {
        padding: 10px;
    }
}
