#contact-form {
    display: grid;
    width: 100%;
    gap: 0.8rem;
}

input, textarea {
    box-sizing: border-box;
    width: 100%;
}

.error {
    text-align: left;
    color: #ef5350;
    font-weight: 500;
    font-size: 0.8rem;
    height: 1rem;
    padding: 0.5rem 0 0 1rem;
}

#message {
    resize: vertical;
    height: 5rem;
}

#submit {
    grid-column: 1/3;
    width: 100%;
}

.loader {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #000;
    border-radius: 50%;
    width: 1.1rem;
    height: 1.1rem;
    margin: auto;
    animation: spin 2s linear infinite;
    box-sizing: border-box;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#contact #socials {
    width: 70%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 1rem;
    height: unset;
    margin: 0;
}

#contact #socials a {
    height: 2.4rem;
}

#contact #socials img {
    width: unset;
}

h4, p {
    color: #666673;
}

p {
    font-size: 1rem;
}

@media screen and (max-width: 600px) {
    .container {
        grid-column: 1/3;
    }
}

/* Honeypot: hidden from people, filled in by bots. Positioned off-screen
   rather than display:none, which is easier for a bot to detect and skip. */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
