* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --yellow: #fcae24;
    --dark-purple: #2F0A63;
    --grey: #66626C;
}

html {
    font-family: 'Lato', sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

p {
    line-height: 130%;
    letter-spacing: 0.03rem;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}


h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
}

h3 {
    font-weight: 900;
    color: var(--yellow);
    font-size: 2.8rem;
    line-height: 2.6rem;
}

section p {
    font-family: Lato, sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: #49444f;
}

header {
    height: 50vh;
    background: url('../static/vectors/cover.svg');
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

.cover {
    width: 84%;
    height: 50%;
    display: flex;
    align-items: start;
    justify-content: space-between;
    margin: 0 auto;
}

.cover-left, .cover-right {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cover h1 {
    margin-top: 7vh;
    color: var(--yellow);
    font-size: 2.6rem;
    line-height: 2.5rem;
    cursor: default;
}

.cover p {
    color: white;
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 500;
    margin-top: 1.5vh;
}

.call-link {
    align-self: flex-end;
}

.call-button {
    margin-top: 3vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--yellow);
    width: 16rem;
    padding: 2vh 4vw 2vh 3vw;
    color: var(--dark-purple);
    font-size: 1.1rem;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    letter-spacing: 0.03rem;
    border: none;
    border-radius: 0.6rem;
    transition: letter-spacing 250ms ease, opacity 250ms ease;
    cursor: pointer;
}

.call-button img {
    margin-right: 0.5rem;
    height: 1.2rem;
}

.call-button:hover {
    opacity: 0.85;
    letter-spacing: 0.05rem;
    transition: letter-spacing 250ms ease, opacity 250ms ease;
}

main {
    height: auto;
    width: 100%;
    display: flex;
    justify-content: center;
}

.form {
    height: auto;
    width: 74%;
    margin: 12vh auto 22vh auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    row-gap: 2rem;
    column-gap: 2.5rem;
}

.gritem {
    height: 4rem;
    padding-left: 1vw;
    border: 0.11rem solid var(--dark-purple);
    border-radius: 0.5rem;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
}

.message {
    padding-top: 2vh;
    height: 22vh;
    grid-row: 3 / span 2;
    grid-column: 1 / span 2;
    resize: none;
}

.grid-btn {
    background-color: var(--dark-purple);
    width: 13rem;
    height: 3.8rem;
    padding: 2vh 4vw 2vh 3vw;
    color: white;
    font-size: 1.1rem;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    letter-spacing: 0.03rem;
    border: none;
    border-radius: 0.6rem;
    transition: letter-spacing 250ms ease, opacity 250ms ease;
    cursor: pointer;
}

.grid-btn:hover {
    opacity: 0.85;
    letter-spacing: 0.05rem;
    transition: letter-spacing 250ms ease, opacity 250ms ease;
}

.remove {
    display: none;
    visibility: hidden;
}

@media (max-aspect-ratio: 14/10) and (orientation: landscape) {
    
    .form {
        width: 84%;
        margin: 10vh auto 18vh auto;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(6, 1fr);
        row-gap: 1rem;
        column-gap: 3rem;
    }
    
    .gritem {
        padding-left: 2vw;
        font-size: 1.2rem;
    }
    
    .message {
        margin-bottom: 4vh;
        height: 16vh;
        grid-row: 4 / span 2;
    }
    
    .grid-btn {
        width: 18rem;
        height: 4.2rem;
        font-size: 1.2rem;
    }
}

@media (max-width: 1080px) and (orientation: landscape) {

    header {
        height: 60vh;
        width: 100vw;
    }

    h3, .cover h1 {
        font-size: 25px;
        line-height: 25px;
    }

    .cover p, section p {
        font-size: 13px;     
    }

    .call-button {
        margin-top: 4vh;
        width: 20rem;
        padding: 3vh 4vw 3vh 3vw;
        font-size: 13px;
    }

    .form {
        width: 84%;
        margin: 14vh auto 22vh auto;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(6, 1fr);
        row-gap: 3rem;
        column-gap: 3rem;
    }
    
    .gritem {
        height: 6rem;
        padding-left: 2vw;
        font-size: 1.5rem;
    }
    
    .message {
        margin-bottom: 4vh;
        height: 14rem;
        grid-row: 4 / span 2;
    }
    
    .grid-btn {
        width: 22rem;
        height: 6rem;
        font-size: 1.5rem;
    }
}

@media (orientation: portrait) {

    header {
        height: 60vh;
    }

    .cover {
        flex-direction: column;
    }

    .cover h1 {
        width: 100%;
        margin-top: 4vh;
        text-align: center;
        font-size: 3rem;
        line-height: 3rem;
    }

    .cover p {
        width: 94%;
        text-align: center;
        margin: 1vh auto;
        font-size: 2rem;
    }

    .cover-left, .cover-right {
        height: auto;
        width: 100%;
    }

    .call-link {
        align-self: center;
    }

    .call-button {
        margin-top: 1vh;
        width: 50vw;
        font-size: 1.8rem;
    }

    main {
        margin: 0 auto;
        width: 84%;
        margin-bottom: 12vh;
    }

    .form {
        width: 100%;
        margin: 6vh auto 8vh auto;
        display: grid;
        grid-template-columns: 100%;
        grid-template-rows: repeat(8, auto);
        row-gap: 3rem;
    }

    .gritem {
        height: 6rem;
        padding-left: 1.5rem;
        border: 0.12rem solid var(--dark-purple);
        font-size: 1.8rem;
    }

    .message {
        padding-top: 1.5rem;
        height: 30vh;
        grid-row: auto / span 2;
        grid-column: 1 / span 1;
    }

    .grid-btn {
        margin: 0 auto;
        width: 50vw;
        height: 6rem;
        font-size: 1.8rem;
    }
    
}