main {
    background-image: url(/Images/background.jpg);
}

/* GRID */
.contact-page {
    display: grid;
    grid-template-columns: 75% 25%;
    max-width: 100%;
}

.sidebar {
    grid-column: 2;
    grid-row: 1;
}

.form-section {
    grid-column: 1;
    grid-row: 1;
}
/* GRID */

.form-section {
    padding: 8rem;
}

#form {
    width: 25rem;
    margin: 1.25rem auto;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    padding: 4.4rem;
    background-color: #e7dfd4;
    filter: drop-shadow(0 0 0.75rem rgba(0, 0, 0, 0.5));
}

h1 {
    text-align: center;
    padding-bottom: 1.5rem;
}

/* JAVASCRIPT */
.input-control {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

.input-control input,
#textarea {
    border: 0.125rem solid #f0f0f0;
    border-radius: 0.25;
    display: block;
    font-size: 0.75rem;
    padding: 0.6rem;
}

.input-control input:focus {
    outline: 0;
}

.input-control .error {
    color: #ff3860;
    font-size: 0.56rem;
    height: 0.8rem;
}

.error-name {
    position: relative;
}

.error-name::after {
    content: "Name has to be minimum 5 characters";
    position: absolute;
    left: 0;
    color: #ff3860;
    bottom: -0.5rem;
}

.error-email {
    position: relative;
}

.error-email::after {
    content: "Not a valid email address";
    position: absolute;
    left: 0;
    color: #ff3860;
    bottom: -0.5rem;
}

.error-subject {
    position: relative;
}

.error-subject::after {
    content: "Subject has to be minimum 15 characters";
    position: absolute;
    left: 0;
    color: #ff3860;
    bottom: -0.5rem;
}

.error-message {
    position: relative;
}

.error-message::after {
    content: "Message has to be minimum 25 characters";
    position: absolute;
    left: 0;
    color: #ff3860;
    bottom: -0.5rem;
}

#textarea {
    min-height: 4.4rem;
    resize: none;
}
.success-button {
    position: relative;
}

.success-button::after {
    content: "Your message has been sent";
    position: absolute;
    color: #219d3c;
    left: 4.4rem;
    bottom: 2rem;
    font-size: 1.2rem;
}
/* JAVASCRIPT */

/* SIDEBAR */
.sidebar {
    background-color: #887154;
    color: white;
    float: right;
    padding: 3.5rem 4rem 3.5rem 4rem;
}

.sidebar img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 0.75rem rgba(0, 0, 0, 0.5));
    border-radius: 0.3rem;
}

.sidebar p {
    box-sizing: border-box;
    width: 14.5rem;
}

.sidebar button {
    background-color: white;
}

.sidebar button a {
    color: #553d1f;
    text-decoration: none;
}

.socials i {
    color: white;
    padding: 2rem 0;
}
/* SIDEBAR */

/* MEDIA QUERIES MOBILE & IPAD */

@media only screen and (min-width: 0px) and (max-width: 1180px) {
    .contact-page {
        display: flex;
        flex-direction: column;
    }

    .sidebar {
        width: inherit;
        display: flex;
        align-items: flex-end;
        justify-content: space-evenly;
    }

    .licorice {
        display: none;
    }

    .form-section {
        padding: 0;
        align-self: center;
    }

    #form {
        padding: 10% 12%;
        box-sizing: border-box;
        width: 100%;
    }
}

/* MEDIA QUERIES MOBILE */

@media only screen and (min-width: 0px) and (max-width: 767px) {
    .contact-page {
        padding-top: 10%;
    }

    .form-section {
        margin: 5%;
        width: 90vw;
        max-width: 25rem;
    }

    #form {
        font-size: 85%;
        padding-bottom: 15%;
    }

    .sidebar {
        margin-top: 10%;
        padding: 5% 5%;
        flex-direction: column;
        align-items: center;
    }

    .sidebar img {
        height: 12.5rem;
        width: 9.4rem;
    }

    .success-button::after {
        left: 3rem;
        bottom: 1.3rem;
    }
}

/* MEDIA QUERIES IPAD */

@media only screen and (min-width: 768px) and (max-width: 1180px) {
    .form-section {
        width: 31.25rem;
        margin: 7%;
    }

    .sidebar img {
        height: 18.75rem;
        width: 12.5rem;
    }

    .sidebar p {
        width: 25rem;
    }

    .sidebar button {
        height: fit-content;
    }

    .right {
        padding-left: 3rem;
    }

    .left {
        text-align: center;
    }

    .button-socials {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .success-button::after {
        left: 3.7rem;
        bottom: 1.6rem;
    }

    #form {
        padding-bottom: 13%;
    }
}
