h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #008D6B;
    font-size: 2.2rem;
    letter-spacing: 1px;
}

form {
    background: #fff;
    max-width: 520px;
    margin: 2rem auto 3rem auto;
    padding: 2.5rem 2rem 2rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 500;
    color: #008D6B;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="datetime-local"],
select,
textarea,
input[type="file"] {
    font-size: 1rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid #b6c5b9;
    border-radius: 6px;
    background: #f9fafb;
    margin-top: 0.2rem;
}

textarea {
    resize: vertical;
    min-height: 80px;
    max-height: 300px;
}

input[type="checkbox"] {
    accent-color: #008D6B;
    margin-right: 0.5rem;
    transform: scale(1.3);
}

button[type="submit"] {
    background: linear-gradient(90deg, #008D6B 60%, #4cae7c 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.9rem 0;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s;
}

button[type="submit"]:hover {
    background: linear-gradient(90deg, #256b4d 60%, #3e9e6c 100%);
}

@media (max-width: 600px) {
    form {
        max-width: 98vw;
        padding: 1.2rem 0.5rem;
    }
    h1 {
        font-size: 1.3rem;
    }
}

.one_line {
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
}

.error {
    background: #ffeaea;
    color: #b02d2d;
    border: 1px solid #f5c2c7;
    border-radius: 6px;
    padding: 0.7em 1em;
    margin-bottom: 1.2rem;
    text-align: center;
    font-size: 1em;
}