/* Подключаем Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap');
* {
    box-sizing: border-box;
}
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #e3f2fd; /* Лёгкий голубой фон */
    font-family: 'Roboto Mono', monospace;
}

.form-container {
    background-color: #ffffff;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-width: 900px;
    width: 100%;
    margin: 3rem 0;
}

form {
    display: flex;
    flex-direction: column;
}

h2 {
    margin: 0 0 30px 0;
    text-align: center;
    font-size: 26px; /* Чуть меньше */
    color: #10519E; /* Контрастный голубой */
    font-weight: 700;
}

label {
    margin-bottom: 10px;
    font-weight: 700;
    color: #10519E;
    font-size: 16px; /* Чуть меньше */
}

input[type="text"],
input[type="date"],
input[type="tel"],
input[type="file"] {
    padding: 14px; /* Чуть меньше */
    margin-bottom: 20px;
    border: 2px solid #64b5f6;
    border-radius: 8px;
    font-size: 16px; /* Чуть меньше */
    font-weight: 500;
    background-color: #e1f5fe;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

input[type="text"]::placeholder,
input[type="date"]::placeholder,
input[type="tel"]::placeholder,
input[type="file"]::placeholder {
    font-weight: 700;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="tel"]:focus,
input[type="file"]:focus {
    border-color: #10519E;
    background-color: #bbdefb;
}

input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button {
    padding: 10px;
    margin-right: 10px;
    background-color: #10519E;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 700;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background-color: #0d47a1;
}

.checkbox-field {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.checkbox-field label {
    margin-left: 10px;
    font-weight: 400;
    color: #10519E;
    font-size: 16px;
    margin-bottom: 0;
}

button {
    background-color: #10519E;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px; /* Чуть меньше */
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    font-weight: 700;
}

button:hover {
    background-color: #0d47a1;
}

small {
    display: block;
    margin-top: -15px;
    margin-bottom: 20px;
    color: #757575;
    font-style: italic;
    font-size: 14px;
}

@media (max-width: 600px) {
    .form-container {
        padding: 30px;
    }

    h2 {
        font-size: 22px; /* Чуть меньше */
    }

    input[type="text"],
    input[type="date"],
    input[type="tel"],
    input[type="file"] {
        font-size: 14px; /* Чуть меньше */
    }

    label {
        font-size: 14px; /* Чуть меньше */
    }
}
.main-img {
    text-align: center;
    margin: 2rem 0;
}
.main-img img {
    max-width: 300px;
}
.error { color: red; }
.success { color: green; }

input.valid {
    border-color: green;
}

input.invalid {
    border-color: red;
}

.success {
    color: #ffffff;
    background-color: #4CAF50;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    display: none; /* Скрываем сообщение по умолчанию */
    font-size: 18px;
}

.error {
    color: #ffffff;
    background-color: #f44336;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    display: none; /* Скрываем сообщение по умолчанию */
    font-size: 18px;
}


.error { color: red; }
.success { color: green; }
.form-container { max-width: 800px; margin: 0 auto; padding: 20px; }
.form-section { margin-bottom: 25px; padding: 15px; background: #f9f9f9; border-radius: 5px; }
.form-section h3 { margin-top: 0; color: #333; }
label { display: block; margin: 10px 0 5px; font-weight: bold; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], 
input[type="file"], textarea { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; }
button { background: #0066cc; color: white; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; }
button:hover { background: #0055aa; }
small { display: block; color: #666; font-size: 0.8em; margin-top: 5px; }
.checkbox-field { margin: 15px 0; }
.main-img { text-align: center; margin-bottom: 20px; }
.main-img img { max-width: 300px; }