#contact {
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow-y: scroll;
	align-self: center;
    justify-content: center;
	width: 100%;
	transition: filter 0.2s;
}
.hidden {
    display: none !important;
}
.contact-container {
    width: 100%;
    max-width: 25rem;
    animation: fadeIn 0.2s ease-in-out;
}
.contact-container h2 {
    margin-bottom: 20px;
    color: var(--color);
    text-align: center;
}
#formFields {
    display: flex;
    flex-direction: column;
}
form input, form textarea {
    padding: 14px 18px;
    margin: 10px 0;
    font-size: 1rem;
    color: #222;
    background-color: #ccc;
    border: 1.8px solid #ddd;
    border-radius: 8px;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    font-weight: 500;
    font-family: inherit;
    resize: vertical;
    min-height: 44px;
}
form input:active, form input:focus, form textarea:active, form textarea:focus {
    background-color: #fff;
    outline: none;
}
form button {
    background: #007bff;
    color: white;
    border: none;
    margin-top: 20px;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    width: 10rem;
    align-self: center;
}
form button:hover {
    background: #0056b3;
}
#formMessage {
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
}
.loader {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top-color: #007bff;
    border-radius: 50%;
    margin: 20px auto;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.hidden {
    display: none !important;
}