.contact-header {
    position: relative;
    top: 1.5rem;
    overflow: hidden;
    height: 0;
    margin-bottom: 0;
}

.space {
    margin-top: 7rem;
}

.p-IDTC {
    color: white;
    font-weight: bold;
    font-weight: 800;
    font-size: 20px;
}

.contact {
    margin-top: 5rem;
    margin-bottom: 10rem;
    color: var(--color-bg);
}

.contact__container {
    background: var(--color-bg2);
    padding: 4rem;
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 4rem;
    height: 30rem;
    margin: 7rem auto;
    border-radius: 1rem;
}

/* Aside Section */
.contact__aside {
    margin-top: 7rem;
    background: var(--color-bg2);
    padding: 3rem;
    border-radius: 1rem;
    position: relative;
    bottom: 2rem;
    /* text-align: center; */
}

.aside__image {
    width: 12rem;
    margin: 0 auto 2rem;
}

.contact__aside h2 {
    text-align: left;
    font-size: 30px;
    margin-bottom: 1rem;
}

.contact__aside p {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    font-style: italic;
    font-family: 'Times New Roman', Times, serif;
    color: rgb(231, 186, 131);
    font-size: 18px;
}

.contact__details li {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    font-family: 'Times New Roman', Times, serif;
    font-size: 18px;
}

.contact__details a {
    color: white;
}

.contact__details a:hover {
    background: var(--color-bg);
    border-radius: 50%;
    padding: 0.5rem;
    transition: var(--transition);
    color: black;
}

.contact__socials {
    display: flex;
    gap: 0.8rem;
    margin-top: 2rem;
    font-size: 16px;
}

.contact__socials a {
    background: var(--color-bg);
    padding: 0.5rem;
    border-radius: 50%;
    font-size: 0.9rem;
    transition: var(--transition);
}

.contact__socials a:hover {
    background: transparent;
    color: white;
}

/* Form Section  */
.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-right: 4rem;
    min-width: 300px;
}

.form__name {
    display: flex;
    gap: 1.2rem;
}

.contact__form input[type="text"] {
    width: 50%;
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    background: var(--color-bg);
    color: var(--color-black);
    font-size: 16px;
}

.button {
    display: inline-block;
    background: var(--color-bg);
    color: var(--color-black);
    padding: 1rem 2rem;
    border: 1px solid transparent;
    font-weight: 500;
    font-size: large;
    transition: var(--transition);
    border-radius: 80px; /* This property makes the button round */
    
}

.button:hover {
    background: var(--color-bg1);
    color: var(--color-black);
    border-color: var(--color-black);
}

.button-primary {
    background: var(--color-bg1);
    color: var(--color-black);   
}

/* Tablet */
@media screen and (max-width:1024px) {
    .contact {
        padding-bottom: 0;
        margin-top: 0;
        
    }

    .space {
        margin-top: 2rem;
    }

    .contact__container {
        gap: 1.5rem;
        margin-top: 3rem;
        height: auto;
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center; /* Center the content horizontally */
        text-align: center; 
    }

    .contact__aside {
        width: auto;
        padding: 1.5rem;
        bottom: 0;
        margin: 0 auto;
    }

    .contact__form {
        align-self: center;
        margin-right: 1.5rem;
    }

    .contact__aside h2 {
        text-align: center;
    }
    .contact__details li {
        justify-content: center; 
        margin: 1rem 0; 
    }

    .contact__socials {
        justify-content: center;
    }
}

/* Phone */
@media screen and (max-width: 600px) {
    .contact {
        margin-top: 0;
    }

    .contact__container {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-top: 0;
        padding: 0;
    }

    .contact__form {
        margin: 0 1.5rem 3rem;
    }

    .form__name {
        flex-direction: column;
    }

    .form__name input[type="text"] {
        width: 100%;
    }
}