section.content-contact {
    width: 100%;
    margin-top: -5rem;
    background: var(--purple-text);
}

div.content-container {
    max-width: 1120px;
    display: grid;
    margin: 0 auto;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

div.content-contact-form {
    width: 920px;
    position: relative;
}

div.content-contact-form h1 {
    margin: 1rem 0;
    color: var(--gray-light);
    font-size: 2.5rem;
}

div.form-option {
    position: relative;
    width: 40rem;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.3rem;
}

div.uf {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 40rem;
    margin-bottom: 1.3rem;
}

div.content-contact-form label {
    width: 100%;
    color: var(--gray-light-text);
    font-size: 1.4rem;
}

div.content-contact-form input, .nameinput {
    width: 100%;
    outline: 0;
    height: 3rem;
    padding: 1rem;
    border: none;
    border-radius: 20px;
    margin-top: 0.5rem;
    background: var(--gray-light);
    font-size: 1rem;
}

div.content-contact-form input {
    color: var(--gray-text);
}

div.content-contact-form select {
    color: rgba(47, 46, 65, 0.8);
}

div.content-contact-form textarea {
    width: 100%;
    outline: none;
    resize: none;
    height: 7rem;
    padding: 1rem;
    border: none;
    border-radius: 20px;
    margin-top: 0.5rem;
    background: var(--gray-light);
    color: var(--gray-text);
    font-size: 1rem;
}

.form-option:focus-within::after {
    content: "";
    width: calc(100% - 3.2rem);
    height: 2px;
    background: var(--orange);
    position: absolute;
    left: 1.6rem;
    right: 1.6rem;
    bottom: 0;
}

.custom-select {
    position: relative;
    margin-bottom: 1.3rem;
}

.custom-select select {
    display: none;
}

.select-selected {
    background-color: var(--gray-light);
}

.select-selected:after {
    position: absolute;
    content: "";
    top: 3.7rem;
    right: 27rem;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-color: var(--orange) transparent transparent transparent;
}

.select-selected.select-arrow-active:after {
    border-color: transparent transparent var(--orange) transparent;
    top: 3.3rem;
}

.select-items div,
.select-selected {
    color: var(--gray-text);
    border: 1px solid transparent;
    border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
    cursor: pointer;
    border-radius: 20px;
    width: 40rem;
    margin-top: 0.5rem;
    height: 3rem;
    padding: 1em;
}

.select-items {
    position: absolute;
    width: 40rem;
    border-radius: 20px;
    background-color: var(--gray-light);
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
}

.select-hide {
    display: none;
}

.select-items div:hover, .same-as-selected {
    background-color: rgba(0, 0, 0, 0.1);
}

div.form-option-img {
    position: absolute;
    margin-left: 42rem;
}

div.form-option-img img {
    width: 35rem;
}

div.form-button {
    width: 100%;
    text-align: center;
}

div.form-button button.btn {
    background: var(--orange);
    color: white;
    font-size: 1.4rem;
    padding: 0.8rem 5rem;
    margin-bottom: 2rem;
    border: none;
    border-radius: 20px;
    transition: 2s filter;
}

div.form-button button.btn:hover {
    filter: brightness(0.7);
}

@media only screen and (max-width: 1024px) {
    section.content-contact {
        height: 60rem;
    }

    div.content-contact-form {
        width: 100%;
        padding: 2.5rem;
        margin: auto;
    }

    div.form-option-img {
        display: none;
    }

    div.content-contact-form h1 {
        font-size: 3rem;
    }

    div.form-option {
        width: 50rem;
    }

    div.content-contact-form label {
        font-size: 1.8rem;
    }

    div.form-button button.btn {
        font-size: 2rem;
        padding: 1rem 5rem;
    }

    div.uf {
        width: 50rem;
    }

    div.content-contact-form input, .nameinput {
        height: 4rem;
        font-size: 1.8rem;
    }

    .select-items div, .select-selected {
        width: 50rem;
        font-size: 1.8rem;
        padding: .8rem;
        height: 4rem;
    }

    .select-items {
        width: 50rem;
    }

    .select-selected:after {
        right: 1.5rem;
        top: 4.5rem;
    }
    
    .select-selected.select-arrow-active:after {
        top: 4rem;
    }

    div.content-contact-form textarea {
        font-size: 1.8rem;
    }
}

@media only screen and (max-width: 600px) {
    section.content-contact {
        padding: 1rem;
        margin-top: -3rem;
    }

    div.content-container {
        grid-template-columns: 1fr;
    }

    div.content-contact-form {
        width: 18rem;
        padding-bottom: 15rem;
        margin: auto;
    }

    div.content-contact-form h1 {
        font-size: 1.9rem;
    }

    div.form-option-img {
        margin: 43rem 1rem;
    }

    div.form-option-img img {
        width: 18rem;
    }

    div.form-button button.btn{
        width: 100%;
    }

    div.form-option {
        width: 100%;
    }
    
    div.uf {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    div.content-contact-form label {
        font-size: 1.2rem;
    }
    
    div.content-contact-form input, .nameinput {
        height: 2.5rem;
        padding: 0.5rem;
        font-size: 1rem;
    }
     
    div.content-contact-form textarea {
        height: 5rem;
        padding: 0.5rem;
        font-size: 1rem;
    }
    
    .select-items div,
    .select-selected {
        width: 13rem;
        padding: 0.9rem 0.5rem;
    }

    .select-selected:after {
        top: 3rem;
        right: 1rem;
    }

    .select-items {
        width: 13rem;
    }

    .select-items div, .select-selected {
        width: 13rem;
        font-size: 1rem;
        height: 3rem;
    }

    div.form-button button.btn {
        padding: .8rem 4rem;
    }
}