@media (max-width: 768px) {
    .forms-container{
        width: 90% !important;
        padding: 30px 0;
    }
}

@media (min-width: 769px) and (max-width: 1279px){
    .forms-container{
        width: 80% !important;
        padding: 30px 0;
    }
}
@media (min-width: 1280px) and (max-width: 1919px){
    .forms-container{
        width: 80% !important;
        padding: 30px 0;
    }
}
@media (min-width: 1920px){
    
}


/* Стили для формы, которая занимает почти весь экран */
.fullscreen-form {
    width: 100%; /* Увеличиваем ширину формы */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fullscreen-form h1 {
    text-align: center;
    color: #333;
}

.fullscreen-form label {
    width: 90%;
    color: #555;
}

.fullscreen-form input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    width: 100%; /* Ширина input на всю доступную ширину */
}

.fullscreen-form input:focus {
    border-color: #4864D0;
    outline: none;
    box-shadow: 0 0 5px rgba(122, 150, 251, 0.5);
}

.fullscreen-form .submit-button {
    background-color: #4864D0;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%; /* Ширина кнопки на всю доступную ширину */
}
.select_input{
    width: 100%;
}
.select_input:focus{
    border-color: #4864D0;
    outline: none;
    box-shadow: 0 0 5px rgba(122, 150, 251, 0.5);
}
.decor-text{
    color: #4864D0;
    font-weight: 400;
}

.fullscreen-form .submit-button:hover {
    background-color: #7A95FB;
}

/* Стили для группы радио-кнопок и чекбоксов */
.fullscreen-form .input-group {
    display: flex;
    width: 100%;
    flex-wrap: wrap; /* Перенос на новую строку, если не хватает места */
    gap: 30px; /* Расстояние между элементами */
    flex-direction: row !important;
}

/* Стили для контейнера каждого элемента (radio/checkbox + label) */
.fullscreen-form .input-container,
.fullscreen-form .personal-container {
    display: flex;
    align-items: center; /* Выравнивание по центру вертикально */
    gap: 8px; /* Расстояние между input и label */
    flex-direction: row !important; 
    width: 100%;
}

/* Дополнительные стили для чекбоксов и радио-кнопок */
.fullscreen-form .input-container input[type="radio"],
.fullscreen-form .input-container input[type="checkbox"],
.fullscreen-form .personal-container input[type="checkbox"] {
    margin: 0; /* Убираем отступы */
    width: 25px; /* Размер радио-кнопки/чекбокса */
    height: 25px;
    accent-color: #4864D0;
}

.fullscreen-form .error {
    border: 2px solid red;
}

.fullscreen-form .error-message {
    color: red;
    font-size: 0.9em;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .fullscreen-form {
        width: 95%; /* Увеличиваем ширину на мобильных устройствах */
        padding: 20px; /* Уменьшаем отступы */
    }

    .fullscreen-form .input-group {
        flex-direction: column; /* Радио-кнопки и чекбоксы в столбик */
    }

    .fullscreen-form .submit-button {
        font-size: 14px; /* Уменьшаем размер шрифта кнопки */
    }
}

.fullscreen-form {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
}
.forms{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.form-container {
    display: flex;
    flex-direction: row;
    gap: 37.8px; /* 1cm = 37.8px */
    width: 100%;
    margin-bottom: 50px;
}
.forms-container{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.forms-container{
    width: 60%;
    padding: 30px 0;
}

.form-content {
    flex: 1;
    max-width: 60%;
}

.row{
    flex-direction: row !important;
    margin: 0 !important;
}

.description-container {
    flex: 1;
    max-width: 40%;
    padding: 20px;
    background-color: #FAFCFF;
    border-radius: 8px;
    box-shadow: 4px 4px 20px rgba(193, 201, 229, 0.8);
    position: sticky;
    top: 30px;
    /* margin-top: 60px; */
}

.description-container h3 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #333333 !important;
    font-weight: 350;
    line-height: 1.7;
    letter-spacing: 0.4px;
}
.container{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    height: 100%;
    box-sizing: border-box;
}
.form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;

}
.row h3{
    font-size: 20px;
    font-weight: 400;
    padding: 0 !important;
    color: #5C5C5C;
}
.form-group h3{
    font-size: 18px;
    font-weight: 400;
    color: #5C5C5C;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-container {
    display: flex;
    flex-direction: column;
}

input, select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.personal-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.submit-button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.submit-button:hover {
    background-color: #0056b3;
}

.messages {
    margin-bottom: 20px;
}

.messages .list-group {
    list-style: none;
    padding: 0;
}

.messages li {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.messages .success {
    background-color: #d4edda;
    color: #155724;
}

.messages .error {
    background-color: #f8d7da;
    color: #721c24;
}

@media (max-width: 768px) {
    .form-container {
        flex-direction: column-reverse;
        gap: 20px;
    }

    .form-content, .description-container {
        max-width: 100%;
    }

    .description-container {
        position: static;
        margin-top: 20px; /* Smaller offset for mobile */
    }
}

/* odno_okno_app/static/css/forms.css */
.modal-content {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 1rem;
    }
}
