form {
    display: flex;
    flex-direction: column;
    gap: 20px;

    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;

    padding: 10px 20px;
}
form h2 {
    font-family: "poppins", sans-serif;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.8rem;
}

hr {
    background-color: var(--border);
    border: none;
    width: 100%;
    height: 1px;
}

.required {
    color: var(--heading-accent);
}

.optional {
    color: var(--text-muted);
    font-size: .8rem;
}

.input-container {
    display: flex;
    flex-direction: column;

    justify-content: center;
}
.input-container .allergy-text {
    margin-top: 5px;
    margin-bottom: 0;
}

.info {
    margin-top: 0;
}

input, 
select, 
textarea {
    padding: 10px;
    font-size: 16px;
    font-weight: 300;
    font-family: "poppins", sans-serif;

    border: 1px solid var(--border);
    border-radius: 5px;
    box-sizing: border-box;

    background-color: var(--background);
}
input:user-invalid,
select:user-invalid,
textarea:user-invalid {
    border-color: red;
}
textarea {
    resize: none;
    height: 100px;
}
label {
    margin-bottom: 5px;
}
input[type="date"] {
    padding-block: 8px;
}


#note {
    margin-top: 40px;
}
#note h3 {
    margin: 0;
    margin-bottom: 20px;
}
#note .img-holder {
    display: none;
    border-radius: 10px;
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 40px;

    margin-bottom: 20px;
    margin-top: 20px;
}
.contact-container .contact {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.contact-container .contact p {
    margin: 0;
}
.contact-container .contact a {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    width: fit-content;

}

#from-gallery-badge {
    display: none;
    justify-content: center;
    align-items: center;

    font-size: 12px;

    padding: 2px 5px;
    background-color: var(--pink-bg);
    color: var(--heading-accent);
    border-radius: 30px;
}
#from-gallery-badge svg {
    fill: var(--heading-accent);
    stroke: var(--heading-accent);
    stroke-width: 10;

    width: 18px;
    height: 18px;
}

#from-gallery-text {
    margin: 0;
}

.error-msg {
    color: red;
    margin: 0;
}

#web3forms {
    display: none;
}

@media (min-width: 768px) {
    main {
        display: grid;
        grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
        column-gap: 40px;
    }
    main section:first-child {
        grid-column: span 2;
        grid-row: 1;

        margin-bottom: 40px;
    }
    main section:nth-child(2) {
        grid-column: 2;
        grid-row: 2;

        margin-left: 0;
    }
    main section:nth-child(3) {
        grid-column: 1;
        grid-row: 2;

        margin-right: 0;
    }

    #note {
        margin-top: 0;
    }
    #note .img-holder {
        display: block;
    }

    form {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    form div:nth-child(1 of :not(input[type="hidden"])) {
        grid-column: span 2;
    }
    form *:nth-child(n + 8 of :not(input[type="hidden"])) {
        grid-column: span 2;
    }
}