section .contact-title-container::before {
    content: '';
    height: 90vh;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(92, 92, 92, 0.13);
    /* Streamlined color format */
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

section .contact-title-container {
    position: relative;
    height: 90vh;
    width: 100%;
    text-align: center;
    background: url(../img/white-background-water.avif);
    background-size: cover;
    /* -80px converted to rem */
}

section .contact-title-container {
    font-size: 2rem;
    font-weight: 600;
    display: flex;
    gap: 1rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

section .contact-modes-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 80px 40px;
    background-color: var(--cream-color);
}

.contact-modes-container .contact-mode {
    width: 20rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    border-radius: 0.625rem;
    /* 10px converted to rem */
    background-color: var(--light-rose-color);
    color: var(--dark-red-color);
    /* Streamlined color format */
    transition: background-color 0.5s ease;
    justify-content: center;
    /* Simplified transition syntax */
}

.contact-mode div {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s ease;
}

.contact-mode>div>span {
    font-weight: bold;
    transition: color 0.5s ease;
    /* Simplified transition */
}

.contact-mode>div>p {
    color: var(--dark-red-color);
    font-weight: 400;
}


.contact-mode i {
    font-size: 2rem;
}

/* Contact Form & Map Card Design */
.contact-form-card {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 80px 40px;
    background-color: var(--cream-color);
}

.map-container #map {
    height: 100%;
    width: 100%;
    background-color: var(--cream-color);
}

#map iframe {
    width: 100%;
    height: 100%;
}

.contact-form-card .contact-form {
    width: 100%;
    padding: 1.6rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.contact-form h2 {
    width: 80%;
    text-align: start;
    color: var(--dark-red-color);
}

.contact-form .input-container {
    width: 80%;
    display: flex;
    margin-top: 0.6rem;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.5rem 0.4rem;
    border: 1px solid #202020;
    border-radius: 0.25rem;
    /* 4px converted to rem */
    border: none;
    /* Removed redundant border definition */
}

label {
    margin: 0.3125rem 0;
    /* 5px converted to rem */
}

.contact-form button {
    width: 6.25rem;
    /* 100px converted to rem */
    margin-top: 0.4rem;
    padding: 0.5rem 0.4rem;
    border-radius: 0.25rem;
    /* 4px converted to rem */
    border: none;
    color: white;
    background: linear-gradient(to right, var(--dark-red-color) 22%, var(--dark-rose-color) 76%);
    box-shadow: 0 0 16px 8px rgba(213, 0, 0, 0.2);
    cursor: pointer;
}

.contact-form {
    background-color: var(--light-rose-color);
}

@media (max-width: 1080px) {
    .contact-form-card {
        grid-template-columns: 1fr;
    }

    .contact-form-card .map-container {
        height: 30rem;
        /* Responsive height */
    }

    .contact-form-card {
        margin-top: 2.5rem;
        /* 40px converted to rem */
        border-radius: 0.6875rem;
        /* 11px converted to rem */
        margin-bottom: 1.5625rem;
        /* 25px converted to rem */
    }
}

.contact-title-container h2 {
    color: #4d5256;
}

.contact-title-container h4 {
    color: #547880;
}

@media (max-width: 383px) {
    .contact-modes-container .contact-mode {
        width: -webkit-fill-available;
    }

    section .contact-title-container {
        font-size: 1rem;
        gap: 1rem;
    }

    .contact-title-container h2 {
        color: #4d5256;
        font-size: 2.8125rem;
        /* 45px converted to rem */
    }

    .contact-title-container h4 {
        color: #547880;
        font-size: 1.25rem;
        /* 20px converted to rem */
        margin: 0 0.625rem;
        /* 10px converted to rem */
    }

    section .contact-modes-container {

        padding: 80px 15px;

    }

}

@media (max-width: 415px) {
    .contact-form-card {
        padding: 1.4375rem;
        /* 23px converted to rem */
    }
}

.input-container-sc button {
    width: 100%;
    margin: 2rem;
    padding: .5rem 1rem;
    border-radius: 4px;
    border: none;
    color: white;
    box-shadow: 0 0 16px 8px rgba(213, 0, 0, 0.2);
    background: linear-gradient(to right, #d50000, #710000);
    cursor: pointer;
}

.input-container-sc {
    position: fixed;
    bottom: 1rem;
    right: 3rem;
    width: 8rem;
}

.contact-form .input-container {
    position: unset !important;
    z-index: unset;
}

.contact-mode:hover {
    background-color: var(--dark-red-color);
    color: var(--white-color) !important;
    /* Adjusted hover effect */
}

.footer {
    width: 100%;
}

.input-container span {
    color: var(--dark-red-color);
}

input:focus,
textarea:focus {
    outline: 2px solid var(--dark-red-color);
}