:root { 
    color-scheme: light dark;
}

*{
    box-sizing: border-box;
}


body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    background-color: #333;
    font-family: 'Montserrat', sans-serif;
    padding: 16px;
}

.contact-form {
    position: relative;
    padding: 24px;
    width: 100%;
    max-width: 640px;
    background-color: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
}

.contact-form h1 { 
    margin: 0 0 12px; 
    font-size: 24px; 
}

.contact-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}

.contact-form label {
    font-size: 16px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
    padding: 14px;
    font-size: 16px;
    font-family: inherit;
    border: 2px solid hsl(0,0%, 67%);
    border-radius: 12px;
    background: #fff; color: #111; 
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form button {
    cursor: pointer; 
    font-weight: 600; 
    background: #1357ff; 
    color: #fff; border-color: #1357ff; 
    transition: filter .2s ease;
}

.contact-form button:hover {
    filter: brightness(1.1);
}

.msg-status {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    left: 50%; 
    transform: translateX(-50%);
    top: 24px;
    padding: 16px;
    width: calc(100% - 32px);
    max-width: 600px;
    border-radius: 12px;
    font-size: 16px;
    color: #000; 
    z-index: 1000;
}

.msg-status.success {
    display: flex; 
    background-color: hsl(143,83%,75%); 
}

.msg-status.error { 
    display: flex; 
    background-color: hsl(9,100%,75%); 
}

.helper { 
    margin-top: 8px; 
    font-size: 13px; 
    color: #444; 
}

@media (min-width: 768px) { .contact-form h1 { font-size: 28px; } .msg-status { font-size: 18px; } }