.layer6 {
    /* background: url("../img/pexels-pixabay-262488.jpg"), #0d1117; */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-blend-mode: difference;
    filter: invert(1);
}

.layer6 .contact_us {
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 100vh;
    filter: invert(1);
    color: white;
}

.info_container {
    position: relative;
}

.info {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 10px;
    transform-style: preserve-3d;
    perspective: 1000px;
    /* border-top: 2px solid rgba(255, 255, 255, 0.1); */
    border: 2px solid rgba(255, 255, 255, 0);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    margin: 10px 0;
}

.info::after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(5px);
}

.info i {
    text-align: center;
    display: block;
    font-size: 30px;
    padding: 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transform: translateZ(10px);
    line-height: 40px;
    /* background: linear-gradient(0deg, #c017bb, #e5242a); */
    background: linear-gradient(0deg, #2c3e50, #2980b9);

    transition: 0.4s;
}

.info:hover i {
    transform: translateZ(40px);
    transition: 0.4s 0.1s;
}

.info a {
    transform: translateZ(0px);
    color: dodgerblue;
    text-decoration: none;
    transition: 0.4s;
}

.info:hover a {
    transform: translateZ(75px);
    transition: 0.4s 0.2s;
}

.info .iname {
    text-align: center;
    font-size: 20px;
    font-style: italic;
    transition: 0.4s;
    color: #acacac;
}

.info:hover .iname {
    text-align: center;
    font-size: 50px;
    font-weight: 900;
    opacity: 0.2;
}

form {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: transparent;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    padding: 30px;
}

form h1 {
    color: #ccc;
    text-align: center;
}

form .inp_field {
    position: relative;
    margin-left: 20px;
    margin-right: 20px;
    width: 380px;
    height: 65px;
    border-radius: 100px;
    /* transform-style: preserve-3d; */
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: row;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    /* transition: all 0.3s ease; */
}

form .inp_field:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

form .inp_field input {
    width: 300px;
    font-size: 20px;
    font-weight: 600;
    border: none;
    background: none;
    outline: none;
    overflow: visible;
    color: #adadad;
}

.inp_field input::placeholder {
    font-weight: 500;
}

.inp_field i {
    color: #ababab;
}

.message {
    width: 320px;
    outline: none;
    border: none;
    border-radius: 25px;
    padding: 10px;
    font-size: 18px;
    font-family: "Montserrat";
    background: rgba(255, 255, 255, 0.1);
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    color: #adadad;
    font-weight: 500;
    resize: vertical;
}

.submit {
    background:rgba(138, 137, 137, 0.3);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.1s ease-in-out;
    margin-top: 8px;
}

/* Hover Effect */
.submit:hover {
    background: rgba(138, 137, 137, 0.5);
    transform: scale(1.05);
}

/* Click (Active) Effect */
.submit:active {
    transform: scale(0.95);
}

input::placeholder {
    color: #fff;
}

textarea::placeholder {
    color: #fff;
}

#map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    filter: invert(1);
}

/* Responsive Queries */
@media (max-width: 632px) {
    .layer6 .contact_us {
        justify-content: center;
        flex-direction: column;
    }

    .info{
        flex-direction: column;
    }
}

@media (max-width: 1020px) {
    .layer6 .contact_us {
        flex-direction: column; /* Stack content vertically */
        justify-content: center;
        align-items: center;
        padding: 10px;
        height: auto; /* Ensure height adjusts dynamically */
        overflow-y: scroll;
    }

    .info_container {
        width:100%; /* Full width */
        text-align: center;
    }

    .info {
        width: 70%; /* Adapt info section */
        margin: 10px auto;
        padding: 10px;
    }

    .info i {
        font-size: 20px;
        width: 35px;
        height: 15px;
        line-height: 10px;
    }

    .info .iname {
        font-size: 16px;
        color: white;
        font-weight: bold;
    }

    .info a {
        font-size: 14px;
    }

    form {
        width: 90%; /* Full width for form */
        padding: 5px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column; /* Stack form elements */
        align-items: center;
        background: none;
        /* height: 250px; */
        /* transition: none; */
    }

    form h1 {
        font-size: 20px;
        margin-bottom: 5px; /* Add spacing below heading */
    }

    form .inp_field {
        width: 80%; /* Input fields width */
        max-width: 400px; /* Ensure fields do not stretch too much */
        margin: 10px 0; /* Add spacing between fields */
        height: 25px;
        /* transition: none; */
    }

    form .inp_field input {
        width: 100%; /* Input takes full width of container */
        font-size: 15px; /* Adjust font size */
        /* transition: none; */
    }

    textarea.message {
        width: 80%; /* Ensure textarea fills form width */
        max-width: 400px; /* Restrict maximum width */
        margin: 10px 0; /* Spacing above and below */
        height: 20px; /* Adjust height for visibility */
        font-size: 15px;
        /* transition: none; */
    }

    .submit {
        font-size: 18px;
        padding: 10px 20px;
        margin-top: 0px; /* Space above button */
        background: #333; /* Ensure button is visible */
        color: #fff;
        width: auto;
        border-radius: 10px;
        box-shadow: 0 5px 10px rgba(121, 106, 106, 0.2);
        text-align: center;
        /* transition: none; */
    }

    .submit:hover {
        background: #555;
    }

    #map {
        width: 100%; /* Full width for map */
        height: 250px; /* Adjusted height for visibility */
        margin-bottom: 20px; /* Add spacing below map */
    }
}
