html{
    scroll-behavior: smooth;
}
#contact-sec {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 1rem;
    /* width: 100%; */
    height: 100%;
    top: 5rem;
    max-width: 1200px;
    margin: 0px auto;
    font-family: Arial, Helvetica, sans-serif;
}
#contact-sec .row{
    align-items: center;
}
.contact-form-container {
    padding: 0.5rem 1rem;
    text-align: center;
    width: 100%;
}

.contact-form-container .send-msg {
    font-size: 14px;
    font-weight: 600;
    color: #8102ff;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.contact-form-container .form-msg {
    font-size: 2.3rem;
    line-height: 1.1;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.grid-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0rem 0rem;
    margin-top: 30px;
}

.form-group {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: end;
    position: relative;
}

.form-group input,
.form-group textarea {
    width:100%;
    padding: 0.6rem 1rem;
    margin: 0.5rem;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 16px;
}

.form-group i {
    position: absolute;
    right: 3.2rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.8;
}



.form-group textarea {
    resize: vertical;
    height: 120px;
}

.form-group button {
    background-color: #8102ff;
    color: #ffffff;
    padding: 0.7rem 1.6rem;
    border: 2px solid #8102ff;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease;
}

button:hover {
    background-color: transparent;
    color: #ffffff;
}

.contact-section {
    width: 100%;
    padding: 5rem 1rem;
    margin-bottom: 30px;
}

.contact-heading {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
}
.contact-parts {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}
.contact-info h2 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: #bbbbbb;
}
.contact-info h6 {
    font-size: 0.6rem;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
    color: #ffffff;
}
.contact-info p , .contact-info a {
    font-size: 14px;
    color: #acacac;
    margin: 0.2rem 0;
    text-decoration: none;
}
.contact-info i {
    font-size: 2.6rem;
    color: #8102ff;
    margin-right: 1.6rem;
}


.popup {
    display: none; 
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.4);
}

.popup-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    text-align: center;
    border-radius: 10px;
}

.popup-header img {
    width: 25%;
}

.popup-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.popup-body p {
    font-size: 1rem;
    margin: 0;
}

.popup-footer button {
    padding: 0.6rem 1.8rem;
    background-color: #03103d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1rem;
}

.popup-footer button:hover {
    background-color: #010a29;
}

@media (max-width: 768px) {
    .contact-form-container .form-msg {
        font-size: 1.6rem;
    }
    .grid-form {
        grid-template-columns: 1fr;
        /* padding: 0 1rem; */
         justify-content: end;
    }
    .contact-section{
        justify-content: start;
        align-items: start;
    }
    .form-group textarea {
        width: 100%;
    }
    .contact-section {
        flex-direction: column;
        gap: 3rem;  
    }
    .map {
        width: 100%;
    }
    .form-group i {
        right: 2rem;
    }
    .popup-content {
        margin: 30% auto;
    }
    .contact-parts{
        margin: 20px 0px;
    }
}

@media (max-width: 399px) {
    .contact-form-container {
        padding: 0.5rem 0;
    }
    .grid-form,
    .form-group.textarea {
        padding: 0;
    } 
    .map {
        width: 95%;
    }
}
