#grid {
    background-image: url("../media/ornament.jpg");
    grid-template-rows: 100px calc(100vh - 50vh) auto 600px auto;
    grid-template-areas:    "nav"
                            "main"
                            "article"
                            "maps"
                            "footer"
}

.introduction {
    max-width: 600px;
    margin: 10vh 0 0 0;
    color: var(--clr-txt);
}

h1 {
    color: var(--clr-txt);
}


section {
    background: var(--clr-light);
    display: block;
    border-radius: 1rem;
}

.toaster {
    display: block;
    background: var(--clr-tert);
    border: 1px solid var(--clr-sec);
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

label {
    text-transform: uppercase;
    font-size: 0.8rem;
}

.form {
    max-width: 1300px;
    margin: 24px auto -40px auto;
}

form {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.form-half {
    width: 49%;
    margin-bottom: 16px;
   }
   
.form-full {
    width: 100%;
    margin-bottom: 0px;
}

.form span {
    color: var(--clr-red);
    font-size: 0.8rem;
    display: none;
}

input {
    width: 100%;
    padding: 4px 8px;
    background: #fff;
    border: 1px solid var(--clr-sec);
}

input:focus, textarea:focus {
    border: 1px solid var(--clr-txt);
}

textarea {
    width: 100%;
    height: 240px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--clr-sec);
}


span.legal { 
    font-size: 0.7rem;
    float: left;
    max-width: 100%;
    margin-bottom: 16px;
    color: var(--clr-sec);
}

#submit {
    border-bottom: none;
    width: 300px;
    min-height: 40px;
    margin: 0;
    border: 0;
    background: var(--clr-prim);
    color: var(--clr-bg);
    font-size: 1rem;
    border-radius: 16px;
    font-weight: bold;
    transition: background-color 400ms ease-in-out;
    text-align: center;
    float: right;
}

#submit:hover {
    background: var(--clr-txt);
    cursor: pointer;
}

#submit:disabled {
    background: var(--clr-tert);
    opacity: 0.5;
    cursor: default;
}

iframe {
    width: 100%;
    height: 700px;
}


/* Mobile queries */
@media only screen and (max-height: 900px) {

    .introduction {
        margin: 0;
    }
}


@media only screen and (max-width: 768px) {

    body {
        background-image: url("../media/ornament.jpg");
        background-size: 1500px;
        background-repeat: no-repeat;
        background-position: center top;
        background-attachment: scroll;
    }

    #grid {
        grid-template-rows: 80px 320px auto 600px auto;
        background-image: none;
    }

    .introduction {
        margin: 0;
        /* max-width: 350px; */
    }

    .form-half {
        width: 100%;
        margin-bottom: 16px;
       }

    #submit {
        float: none;
        margin: 0 auto;
        width: 100%;
    }

}

@media only screen and (max-width: 720px) {
    .introduction {
        margin: 32px 0 0 0;
    }
}
