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

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    max-width: 100%;
    background-color: #d3d3d3;
    font-family: 'Montserrat', sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

section {
    display: flex;
    align-items: center;
    border-radius: 10px;
    padding-bottom: 12px;
    flex-direction: column;
    justify-content: center;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 3);
}

.about {
    display: flex;
    flex-direction: column;
    padding: 12px;
}

.about span {
    font-size: 1rem;
    line-height: 1.5;
}

.about span.last {
    margin-top: 5px;
}

.about a {
    text-decoration: none;
}

.wrapper {
    width: min(400px, 24rem);
    background-color: #fff;
}

.form-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    border: 1px solid gray;
    overflow: hidden;
    padding-top: 24px;
    padding-bottom: 3rem;
}

.form-title {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

hr {
    margin-bottom: 14px;
    opacity: 40%;
    width: 95%;
}

.form-box {
    margin-bottom: 10px;
    padding-bottom: 20px;
    position: relative;
    width: 85%;
}

.form-box input {
    border: 2px solid #dfdede;
    border-radius: 4px;
    display: block;
    font-size: 1rem;
    padding: 10px;
    width: 100%;
}

.form-box.success input {
    border-color: #23cc71;
}

.form-box.error input {
    border-color: #e74c3c;
}

.form-box.error small {
    visibility: visible;
    color: #e74c3c;
}

.form-box small {
    visibility: hidden;
    position: absolute;
    bottom: 0;
    left: 0;
}

.form-text button {
    background-color: #043a45;
    border: 2px solid #043a45;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    color: #fff;
    padding: 5px;
    width: 85%;
}

.submit-button:hover {
    background-color: #026477;
    border: 2px solid #026477;
}

.submit-button:active {
    background-color: #05839c;
    border: 2px solid #05839c;
}

.message-input {
    width: 100%;
    min-height: 150px;
    max-height: 250px;
    resize: vertical;
    padding: 5px 8px;
}

#result {
    font-style: italic;
    margin-top: 5px;
}

#warning-message {
    font-size: .875rem;
    text-align: center;
    color: #f01e07;
    margin-top: 10px;
    display: none;
    width: 85%;
}