
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
    width: 65%;
    margin: 100px auto 0;
}

.contact-info h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.info-item {
    margin-top: 30px;
}

.info-item strong {
    display: block;
    color: #57a864;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.contact-form-wrapper {
    background: #fdfdfd;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-form-wrapper p {
    margin-bottom: 20px;
}

.contact-form-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.wpcf7-form-control-wrap input,
.wpcf7-form-control-wrap textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    display: block;
}

/* Specific rules for the Message box */
.wpcf7-form-control-wrap textarea {
    resize: none;
    height: 150px;
    overflow-y: auto;
}

.wpcf7-submit {
    width: 100%;
    padding: 15px;
    background: #57a864;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s;
    appearance: none;
    -webkit-appearance: none;
}

.wpcf7-submit:hover {
    background: #4c9a59;
}

.wpcf7-form-control-wrap {
    display: block;
}

@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr; /* Stack the form and info */
        width: 85%;                 /* Increase width to use more screen space */
        margin: 50px auto;          /* Reduce top margin */
        gap: 40px;
    }

    /* Move the text content to the top so they read about it before the form */
    .contact-info {
        order: -1;
        text-align: center;
    }

    .contact-info h1 {
        font-size: 2rem;
    }

    .info-details {
        display: flex;
        justify-content: center;
        gap: 30px;
        text-align: left;
    }
}

/* For Phones (600px and down) */
@media (max-width: 600px) {
    .contact-container {
        width: 95%;      /* Nearly full width on tiny screens */
        margin: 30px auto;
    }

    .contact-form-wrapper {
        padding: 25px 20px; /* Thinner padding on mobile */
    }

    .info-details {
        flex-direction: column; /* Stack location and email */
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .info-item {
        margin-top: 20px;
    }

    .wpcf7-submit {
        font-size: 1rem; /* Slightly smaller button text for small screens */
    }
}