.contact_section {
    padding-bottom: 40px;
    display: flex;
    align-items: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section_title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: rgb(226, 231, 252);
}

.section_subtitle {
    color: #b2bad7;
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.1em;
}

.contact_wrapper {
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.contact_info {
    flex: 1;
    background: rgba(18, 22, 62, 0.8);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info_item {
    margin-bottom: 30px;
}

.icon_wrapper {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4a00e0, #00094b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon_wrapper img {
    width: 25px;
}

.info_item:hover .icon_wrapper {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(74, 0, 224, 0.4);
}

.info_item h3 {
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 8px;
}

.info_item p,
.info_item a {
    color: #a0a8c5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info_item a:hover {
    color: #00ccff;
}

.contact_form {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact_form ::placeholder {
    color: #a0a8c5;
}

.form_group {
    display: flex;
    gap: 20px;
}

.contact_form input,
.contact_form textarea {
    font-family: inherit;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    background: rgba(18, 22, 62, 0.8);
    color: #ffffff;
    outline: none;
    transition: box-shadow 0.3s ease;
    width: 100%;
}

.contact_form input:focus,
.contact_form textarea:focus {
    box-shadow: 0 0 0 3px rgba(74, 0, 224, 0.2);
}

.contact_form textarea {
    resize: vertical;
    min-height: 180px;
}

.btn_submit {
    font-family: inherit;
    font-weight: 600;
    color: #fff;
    background: rgb(64, 75, 123);
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    align-self: flex-start;
}

.btn_submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 0, 224, 0.4);
}

.btn_submit:active {
    transform: translateY(1px);
}

.btn_submit svg {
    transition: transform 0.3s ease;
}

.btn_submit:hover svg {
    transform: translateX(5px);
}

@media (max-width: 900px) {
    .contact_wrapper {
        flex-direction: column;
    }

    .form_group {
        flex-direction: column;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .form_group {
        display: flex;
        flex-direction: column;
    }
    
    .form_group input,
    .form_group textarea {
        width: 92%;
        margin-bottom: 15px;
    }

    /* Adjust the width of the Subject input */
    input[name="subject"] {
        width: calc(100% - 30px); /* Subtracting the button width */
    }

    /* Adjust the width of the textarea and remove margin-bottom */
    textarea[name="message"] {
        width: calc(100% - 30px); /* Subtracting the button width */
        margin-bottom: 0;
    }

    .btn_submit {
        width: 100%;
    }
}
