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

form label {
    font-weight: bold;
    font-size: 16px;
    margin: 14px 0 2px;
}

form label:first-of-type {
    margin-top: 0;
}

form label em {
    color: darkred;
}

form input, form textarea {
    font-size: 16px;
    margin: 2px 0;
    padding: 4px;
    border: 1px solid #ccc;
    font-family: inherit;
}

form input:focus, form textarea:focus {
    outline: 1px solid #000;
}

/* Warning message */
form input + p, form textarea + p {
    display: none;
    color: red;
    margin: 0 0 0 2px;
    font-size: 12px;
}

/* If the user left an input without giving valid input */
form :user-invalid {
    outline: 1px solid red !important;
}

form :user-invalid + p {
    display: block;
}

/* If they went back and corrected their input */
form :user-valid {
    outline: unset;
}

form :user-valid + p {
    display: none;
}

form textarea {
    resize: vertical;
}

form button, .map-button {
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    margin-top: 20px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
}

form button:hover {
    background: #333;
}

form button:active {
    background: #444;
}

/* Form button when no form content is filled in */
form [required]:placeholder-shown ~ button,
form :invalid ~ button,
form :user-invalid ~ button {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Date input container */
#dates {
    display: flex;
    margin-top: 14px;
}

#dates div {
    width: 46%;
}

#dates div:first-child {
    margin-right: 6%;
}

/* Date input label */
#dates label {
    display: block;
}

/* Date input */
#dates input {
    width: 100%;
}

/* Additional disclaimers */
.disclaimer {
    font-size: 12px;
    margin-top: 12px;
}