main {
    display: flex;
    flex-direction: column;
}

main > section {
    display: flex;
    width: 100%;
    align-items: center;
    padding: 10vh 0;
    flex-direction: column;
}

.form-sect {
    background-image: linear-gradient(90deg, var(--background-color), #383838);
}

.contact-head {
    background-image: url("/assets/images/contact_background.png");
    height: 20vh;
    margin-top: 10vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
}

.contact-head h1 {
    color: var(--primary-color);
    font-style: italic;
    font-weight: bold;
}

.contact-head h4 {
    color: var(--text-color-dark);
    font-size: 2rem;
    font-style: italic;
    font-weight: lighter;
}


.contact-form {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 1.5rem;
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.88);
    width: 40%;
    max-width: 60vw;
}

.contact-form > fieldset {
    gap: 1.5rem;
}

.form-content {
    border: none;
    display: flex;
    width: 100%;
    padding: 0.3rem 0 0 0;
}

.form-content > label {
    width: 100%;
}

.form-content legend {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #8d8d8d;
    letter-spacing: 0.05rem;
}

.form-content input,
.form-content textarea {
    border: 1px solid #dedede;
    padding: 0.75rem 1rem;
    border-radius: 0.3rem;
    width: 100%;
    max-width: 100%;
    resize: vertical;
}


.form-content > label input::placeholder,
.form-content > label textarea::placeholder {
    color: #cccccc;
    font-size: 0.9rem;
}

.form-content > label input:focus,
.form-content > label textarea:focus {
    outline: none;
    background-color: #f3f3f3;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--primary-color);
    border: none;
    border-radius: var(--border-radius);
    color: var(--text-color-dark);
    font-family: inherit;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color var(--transition-duration);
}

.btn-submit:hover {
    background-color: #c63d3f;
}

@media screen and (max-width: 676px) {
    .contact-form {
        min-width: 80vw;
    }
}
