﻿.contact-form {
    position: relative;
    display: flex;
    width: 100%;
    height: 700px;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    color: white;
}

    .contact-form::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5); /* Black color with 50% transparency */
        /*filter: blur(5px);*/ /* Blur effect */
        width: 80%;
        height: 80%;
        margin: auto;
    }

.contact-info {
    flex: 1;
    padding: 50px;
    color: white;
    z-index: 100;
    width: 40%;
}

.form {
    flex: 1;
    padding: 20px 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
    margin: auto;
}

    /* Input fields styling */
    .form input, .form textarea {
        background: none;
        border: none;
        border-bottom: 1px solid white;
        outline: none;
        padding: 10px;
        font-size: 14px;
    }

    .form textarea {
        height: 100px; /* You can adjust as needed */
    }

.form-container {
    width: 80%;
    height: 80%;
    margin: auto;
    display: flex;
}

.map iframe {
    height: 300px;
    margin: auto;
    width: -webkit-fill-available;
    border-radius: 5px;
}

    .map {
        margin: auto;
    }

/* Input fields styling */
.form input, .form textarea {
    background: none;
    border: none;
    border-bottom: 1px solid white;
    outline: none;
    padding: 10px;
    color: #FFF; /* Optional: This will set the color of the text that users type. You can adjust as per your design. */
}

    /* Styling for the placeholder text */
    .form input::placeholder, .form textarea::placeholder {
        color: rgba(255, 255, 255, 0.8);
        font-family: 'Poppins', sans-serif;
        font-weight: 300;
    }

    /* For cross-browser compatibility */
    .form input::-webkit-input-placeholder, .form textarea::-webkit-input-placeholder {
        color: rgba(255, 255, 255, 0.8);
    }

    .form input::-moz-placeholder, .form textarea::-moz-placeholder {
        color: rgba(255, 255, 255, 0.8);
    }

    .form input:-ms-input-placeholder, .form textarea:-ms-input-placeholder {
        color: rgba(255, 255, 255, 0.8);
    }

.form button {
    position: relative; /* Position relative to allow absolute positioning inside */
    width: 200px;
    padding: 8px;
    border: 1px solid white;
    background: none;
    color: white; /* Assuming the button text color is white; modify if different */
    overflow: hidden; /* Hide the overflowing part of the pseudo-element */
    transition: color 0.4s; /* Transition the text color */
    margin-top: 30px;
}

    .form button::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%; /* Start from the left and outside of the button */
        width: 100%;
        height: 100%;
        background-color: white; /* Assuming fill color is white; modify if different */
        transition: left 0.4s; /* Transition for the fill effect */
        z-index: -1; /* Place the fill effect behind the text */
    }

    .form button:hover {
        color: black; /* Modify if you want a different color after hover */
    }

        /* Fill effect on hover */
        .form button:hover::before { /* Removed extra space */
            left: 0; /* Move the fill effect to cover the entire button */
        }

.alert-top {
    position: fixed;
    top: 50px;
    left: 36%;
    width: 350px;
    border-radius: 10px;
    z-index: 1000;
    display: none;
    text-align: center;
    padding: 10px;
    font-size: 18px;
    border: none;
}

.alert-success {
    background-color: #dff0d8;
    color: #3c763d;
}

.alert-danger {
    background-color: #f2dede;
    color: #a94442;
}

.form textarea {
    height: 100px; /* You can adjust as needed */
}

.width-100 {
    width: 100%;
}

/* Responsivity */
@media (max-width: 1279.98px) {

    .form {
        padding-right: 50px;
        padding-left: 20px;
    }
}

@media (max-width: 919.98px) {

    .contact-info {
        padding: 30px;
    }

    .form {
        padding: 30px;
        padding-left: 0px;
    }

    .contact-form::before {
        width: 85%;
        height: 85%;
    }

    .form-container {
        width: 85%;
        height: 85%;
    }

    .form input::placeholder, .form textarea::placeholder {
        font-size: 14px !important;
    }
}

@media (max-width: 767.98px) {

    .contact-form::before {
        width: 85%;
        height: 85%;
    }

    .form-container {
        width: 85%;
        height: 85%;
    }

    .form-container {
        flex-direction: column;
    }

    .contact-form {
        height: 965px;
    }

    .contact-info {
        width: 100%;
        height: 30%;
        padding-bottom: 0;
    }

    .form {
        width: 100%;
        padding: 30px;
        padding-top: 0px;
    }

    .map iframe {
        height: 250px;
    }

    .form-container p {
        font-size: 14px;
    }

}

@media (max-width: 519.98px) {

    .contact-form::before {
        width: 90%;
        height: 90%;
    }

    .form-container {
        width: 90%;
        height: 90%;
    }

    .form button {
        font-size: 14px;
    }

    .contact-info {
        padding-bottom: 0 !important;
    }

    .form {
        padding-top: 0 !important;
    }

        .form[data-aos] {
            transition: none !important;
            visibility: visible !important;
            opacity: 1 !important;
            transform: none !important;
        }

    .contact-form {
        background-attachment: scroll;
    }
}


@media (max-width: 419.98px) {

    .contact-info, .form {
        padding: 20px;
    }
}
