/* �������� ����� ��� �������� */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #74ebd5, #acb6e5);
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
    flex-wrap: wrap;
    /* �������� ��� ��������� �������� */
}

/* �������� ��� ��������� �������� */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ��������� ��� ����� */
.container {
    max-width: 800px;
    width: 80%;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    /* �������� ���� */
    background: #fff;
    min-width: 320px;
    margin-top: 80px;

}

.container:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    /* ���� ��� ��������� */
}

/* счетсик символов */
.char-counter {
    position: absolute;
    left: 50%;
    bottom: 0;
    margin-left: 5px;
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

form label {
    font-size: 20px;
}

/* ��������� */
h1,
h2,
h3,
h4 {
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    /* �������������� ������ � ������� ������� */
    letter-spacing: 1px;
    /* ������������ �������� */
    background: linear-gradient(135deg, #2c3e50, #3498db);
    /* ����������� ��� */
    -webkit-background-clip: text;
    /* ������� ���� ��� ������ */
    -webkit-text-fill-color: transparent;
    /* ���������� ���� ������ ��� ���� */
    transition: transform 0.3s ease;
    /* ������� ������ ��� ��������� */
}

/* ���������� ������� ��� ���������� */
h1 {
    font-size: 3em;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    /* ���� ������ */
}

h2 {
    font-size: 2.2em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    /* ���� ������ */
}

h3 {
    font-size: 1.8em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    /* ���� ������ */
}

h4 {
    font-size: 1.2em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    /* ���� ������ */
}


/* ���� ����� � ������ */
.input-field {
    width: -webkit-fill-available;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 20px;
    height: auto;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-field:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
    /* ���� ��� ������ */
    transform: scale(1.02);
    /* ������ ���������� */
}

/* ����� ��� ������ */
.btn {
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* ���� ������ */
    text-decoration: none;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px) scale(1.05);
    /* ���������� � �������� */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    /* �������� ���� */
}

.btn:active {
    transform: translateY(2px) scale(0.98);
    /* ������ ��� ����� */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    /* ���������� ���� */
}

/* ���� ����� */
.captcha {
    font-size: 24px;
    font-weight: bold;
    color: #0099ff;
    padding: 12px;
    border: 2px solid #80c1ff;
    border-radius: 10px;
    background: #e6f7ff;
    margin-bottom: 12px;
    width: 100%;
    display: inline-block;
    box-sizing: border-box;
    animation: pulse 2s infinite;
    /* ������������ ������ */
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(0, 153, 255, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 153, 255, 0.8);
    }
}

/* ����� ��� ��������� */
.alert {
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9em;
    text-align: center;
    font-weight: bold;
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 200px;
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    transform: translateX(100%);
    /* Начальное положение за пределами экрана */
    opacity: 0;
}

.alert.show {
    transform: translateX(0);
    /* Появление на экране */
    opacity: 1;
}

.alert.hide {
    transform: translateX(100%);
    /* Исчезновение */
    opacity: 0;
}

.alert:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Анимация появления */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Анимация исчезновения */
@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ���������� ����� */
@media (max-width: 1024px) {
    .container {
        padding: 30px;
    }

    h1 {
        font-size: 2em;
    }

    h2,
    h3 {
        font-size: 1.5em;
    }
}

.parent-incident-info {
    background-color: #f9f9f9;
    /* ������� ��� */
    border: 1px solid #ddd;
    /* ������-����� ����� */
    padding: 15px;
    /* ���������� ������ */
    border-radius: 5px;
    /* ������������ ���� */
    margin-bottom: 20px;
    /* ������ ����� */
}

/* Стили для модального окна */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        .modal-content {
            background-color: #fff;
            padding: 20px;
            border-radius: 5px;
            max-width: 500px;
            width: 90%;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        .modal-header {
            font-size: 1.5em;
            margin-bottom: 10px;
            color: #333;
        }
        .modal-body {
            margin-bottom: 20px;
        }
        .modal-body.error {
            color: #d32f2f;
        }
        .modal-body.success {
            color: #2e7d32;
        }
        .modal-footer {
            text-align: right;
        }
        .modal-footer button {
            padding: 10px 20px;
            background-color: #007bff;
            color: #fff;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }
        .modal-footer button:hover {
            background-color: #0056b3;
        }
        