.hero::after {
    background-image: url('../images/contact/contact.jpg');
}

.container-contact {
    display: flex;
    flex-wrap: wrap-reverse;
    background-color: white;
    padding: 1.25rem;
    /* 20px */
    align-items: flex-end;
}

.contact-info,
.contact-form {
    flex: 1;
    padding: 1.25rem;
    /* 20px */
}

.contact-info h2 {
    font-size: 1.5rem;
    /* 24px */
}

.contact-info p {
    color: #666;
}

.info {
    margin-bottom: 1.25rem;
    /* 20px */
}

.info-item {
    display: flex;
    margin: 1.25rem 0;
    /* 20px */
}

.info-item img {
    width: 2.5rem;
    /* 40px */
    height: 2.5rem;
    /* 40px */
    margin-right: 0.625rem;
    /* 10px */
}

.info-item h3 {
    margin-bottom: 0.3125rem;
    /* 5px */
    color: #688E4E;
}

.social-media h3 {
    margin-bottom: 0.625rem;
    /* 10px */
}

.social-media a {
    margin-right: 0.625rem;
    /* 10px */
}

.contact-form h2 {
    font-size: 1.5rem;
    /* 24px */
    margin: 1.25rem 0;
    /* 20px */
    color: #688E4E;
}

.contact-form {
    background-color: #D5DDDF;
    border-radius: 0.625rem;
    /* 10px */
    padding-bottom: 3.125rem;
    /* 50px */
}

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

.contact-form input,
.contact-form textarea {
    margin: 0.75rem 0.625rem;
    /* 12px 10px */
    padding: 0.625rem;
    /* 10px */
    border: none;
    border-radius: 0.3125rem;
    /* 5px */
}

.contact-form button {
    padding: 0.625rem;
    /* 10px */
    border: none;
    background-color: #1B2727;
    color: white;
    border-radius: 0.3125rem;
    /* 5px */
    cursor: pointer;
    width: 6.875rem;
    /* 110px */
}

.contact-form button:hover {
    background-color: #688E4E;
}

.heading {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 1.875rem 0;
    /* 30px */
}

.heading h1 {
    font-size: 1.875rem;
    /* 30px */
    font-weight: 400;
    font-style: normal;
}

.hr-heading {
    color: #688E4E;
    width: 190px;
    height: 0.3125rem;
    /* 5px */
    background-color: #688E4E;
    border: none;
    margin: 0.4375rem 0;
    /* 7px */
}

.social-media h3 {
    color: #688E4E;
}

.social-icons-contact a i {
    font-size: 30px;
    color: #1B2727;
    margin: 0.3125rem;
    margin-left: 0;
}

.social-icons-contact a i:hover {
    color: #688E4E;
}

.rounded-img {
    background: #688E4E;
    color: white;
    width: 3.125rem;
    /* 50px */
    height: 3.125rem;
    /* 50px */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 0.9375rem;
    /* 15px */
}

.rounded-img i {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    /* 20px */
}

.map-section {
    margin: 1.875rem 0;
    /* 30px */
}


.map {
    width: 100%;
    padding: 1.875rem;
    /* 30px */
}

.map iframe {
    width: 100%;
    border: 0.25rem solid gray !important;
    /* 4px */
}

.map-section h3 {
    padding-left: 1.875rem;
    /* 30px */
    color: #688E4E;
    font-size: 1.875rem;
    /* 30px */
    font-weight: 400;
    font-style: normal;
}

a {
    text-decoration: none;
    color: inherit;
}

.flex-input {
    width: 100%;
    display: flex;
}

.flex-input input {
    width: 50%;
}

input,
select,
textarea {
    outline: none;
    border: 1px solid !important;
    border-color: #688E4E !important;
    /* New border color when clicked/focused */
}

input:focus,
select:focus,
textarea:focus {
    outline: 0.0625rem solid #688E4E;
    /* 1px */
}

@media (max-width: 768px) {
    .contact-info {
        border-right: none;
    }

    .heading h1 {
        text-align: center;
    }
}

@media (max-width: 713px) {
    .flex-input {
        width: 93%;
        display: block;
    }

    .flex-input input {
        width: 100%;
        margin: 0.75rem 0.625rem;
        /* 12px 10px */
        padding: 0.625rem;
        /* 10px */
        border: none;
        border-radius: 0.3125rem;
        /* 5px */
    }
}

@media (max-width: 589px) {
    .social-media {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .info {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .info-item {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .info-item h3 {
        margin-bottom: 0.3125rem;
        /* 5px */
        color: #688E4E;
        text-align: center;
    }

    .contact-info p {
        color: #666;
        text-align: center;
    }

    .contact-info,
    .contact-form {
        flex: 1;
        min-width: 300px;
        padding: 1.25rem;
        /* 20px */
    }
}

/* Success message styling */
.success-message {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(20px);
}

.success-message.show {
    opacity: 1;
    transform: translateY(0);
}

.error-message {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: red;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(20px);
}


.error-message.show {
    opacity: 1;
    transform: translateY(0);
}