.application-wrapper{
    display: flex;
    width: 100%;
    justify-content: center;
}
.application-form * {
    background-color:  #212121;
    font-family: "Montserrat", "Arial", sans-serif;
}
.application-form{
    background-color:  #212121;
    width: 820px;
    
}

.send-form{
    display:flex;
    flex-direction:column;
    gap:20px;
    width: 100%;
    padding: 20px;
}
.items-block{
    display:flex;
    gap:30px;
}
.items-block-checked{
    display:flex;
    flex-direction: column;
    gap:20px;
}
.form-item {
    display:flex;
    flex-direction:column;
    gap:10px;
    width: 100%;
    flex-wrap: wrap;
}
.form-item-check{
    display:flex;
    gap:10px;
}

label{
    color:#cbddc5;
    font-weight: 500;
    font-size: 14px;
}
.red{
    color:red;
}
.form-item  > input, textarea{
    border-radius: 10px;
    padding: 12px 16px;
    min-height: 44px;
    background-color: transparent;
    border: 2px solid #bd2e36;
    color: #cbddc5;
    font-size: 14px;
    line-height: 24px;
    font-weight: 400;
}
.form-item > input:focus, textarea:focus{
    padding: 12px 16px;
    background-color: transparent;
    border: 2px solid #bd2e36;
    outline: 2px solid #e11927;
    color: #cbddc5;
}
#send-btn{
    color: #fbeeee;
    border: 2px solid #e11927;
    background-color: #e11927;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    text-align: center;
    width: 100%;
    line-height: 2.5;
    padding: 0 24px;
    font-size: 21px;
    transition: .3s;
    white-space: nowrap;
}

/*Выпадающие списки*/
/*
.application-form select {
    width: 100%;
    padding: 12px 16px;
    min-height: 44px;
    border-radius: 10px;
    background-color: transparent;
    border: 2px solid #bd2e36;
    color: #cbddc5;
    font-size: 14px;
    line-height: 24px;
    font-weight: 400;
    
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    padding-right: 40px;
    background-repeat: no-repeat;
    background-position: right 16px center;
    
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32"><path fill="none" stroke="%23e11927" stroke-width="2" d="M10 13l8 8 8-8"/></svg>');
}

.application-form select:focus {
    outline: none;
    border-color: #bd2e36;
    box-shadow: 0 0 0 2px rgba(225, 25, 39, 0.5);
}



.application-form select:disabled {
    color: #666;
    border-color: #555;
    background-color: #333;
}


.application-form select option {
    background-color: #212121;
    color: #cbddc5;
    padding: 8px 12px;
}


.application-form select option:hover {
    background-color: #3a3a3a;
    color: #ffffff;
}


.application-form select::-ms-expand {
    display: none; 
}

*/

/* Основное поле ввода */
/* Основное поле */

.choices__inner{
    background-color: transparent !important;
    border: 2px solid #bd2e36 !important;
    border-radius: 10px !important;
    padding: 12px 16px !important; 
}
.choices__input {
    border: 2px solid #bd2e36;
    border-radius: 10px;
    background-color: transparent;
    color: #cbddc5;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    line-height: 24px;
    padding: 12px 16px;
    min-height: 44px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/*
.form-item > input:-webkit-autofill {
  background-color: transparent !important; 
  -webkit-box-shadow: 0 0 0px 1000px transparent inset !important; 
}
.form-item > input:-webkit-autofill:focus,
.form-item > input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
  background-color: transparent !important;
}
*/
.choices__input:focus {
    outline: none;
    border-color: #e11927;
    box-shadow: 0 0 0 3px rgba(225, 25, 39, 0.4);
}

/* Контейнер выпадающего меню */
.choices__list--dropdown {
    background-color: #212121;
    border: none;
    border-radius: 10px;
    margin-top: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    max-height: 250px;
    overflow-y: auto;
    /* Важно: z-index для перекрытия других элементов */
    z-index: 9999 !important;
}

.choices__list--single .choices__item {
    color: #cbddc5;

}
.choices__list--single {
    padding: 3px 16px 3px 4px !important;
}
/* Пункты списка — ОСНОВНОЕ ПРАВИЛО ДЛЯ НАВЕДЕНИЯ */
.choices__item--choice {
    color: #cbddc5;
    
    padding: 12px 20px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    cursor: pointer;
    /* Плавный переход для наведения */
    transition: background-color 0.2s ease, color 0.2s ease;
}


.choices__list--dropdown, .choices__list[aria-expanded] {
     border-bottom-left-radius: 10px !important; 
     border-bottom-right-radius: 10px !important; 

}

/* НАВЕДЕНИЕ — ключевое правило */
.choices__item--highlighted,
.choices__item--choice:hover {
    background-color: #bd2e36 !important;
    color: white !important;
}

/* Убираем стандартные маркеры выбора */
.choices__item--selectable[data-value]::after {
    content: none !important;
}

/* Стили скролла (WebKit) */
.choices__list--dropdown::-webkit-scrollbar {
    width: 8px;
}
.choices__list--dropdown::-webkit-scrollbar-track {
    background: #1a1a1a;
}
.choices__list--dropdown::-webkit-scrollbar-thumb {
    background: #bd2e36;
    border-radius: 4px;
}
.choices__list--dropdown::-webkit-scrollbar-thumb:hover {
    background: #e11927;
}

/* Для Firefox */
.choices__list--dropdown {
    scrollbar-width: thin;
    scrollbar-color: #bd2e36 #1a1a1a;
}


/*Стрелка в инпуте*/
.choices {
    position: relative;
}

/* Сама стрелка */

.choices-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;   
    height: 32px;
    pointer-events: none;
    z-index: 10;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32"><path fill="none" stroke="%23e11927" stroke-width="2" d="M10 13l8 8 8-8"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.choices__list--dropdown .choices__item--choice:first-child {
    background-color: #bd2e36 !important;
    color: white !important;
    font-weight: 500;
}

.choices__list--dropdown .choices__item--choice[aria-selected="true"] {
    background-color: #e11927 !important;

}








/*чекбоксы*/
.form-item-check input[type="checkbox"]{
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.form-item-check label {
    position: relative;
    padding-left: 35px;
    font-size: 14px;
    cursor: pointer;
    display: inline-block;
    line-height: 25px;
    user-select: none;
}
.form-item-check label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #e11927;
    border-radius: 5px;
    background-color: transparent;
    transition: all 0.25s ease;
    box-sizing: border-box;
}
.form-item-check input[type="checkbox"]:checked + label::before {
background-color: #e11927;
}

.form-item-check input[type="checkbox"]:checked + label::after {
content: "";
position: absolute;
left: 7px;
top: 3px;
width: 7px;
height: 12px;
border: solid white;
border-width: 0 2px 2px 0;
transform: rotate(45deg);
transition: all 0.2s ease;
}

.form-item-check input[type="checkbox"]:focus + label::before {
box-shadow: 0 0 0 3px rgba(121, 2, 2, 0.3);
}

.form-item-check input[type="checkbox"]:hover + label::before {
border-color: #bd2e36;
}

.form-item-check input[type="checkbox"]:disabled + label {
opacity: 0.6;
cursor: not-allowed;
}

.form-item-check input[type="checkbox"]:disabled + label::before {
border-color: #bdc3c7;
background-color: #ecf0f1;
}

/*даты*/
/*
input[type="date"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='20' height='20'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm0 14H5V8h14v10zM7 10h4v4H7zm8 0h4v4h-4z' fill='red'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px 20px;
  padding-right: 20px;
  
}

.form-item input[type="date"]::-webkit-calendar-picker-indicator {
  display: none; 
}
*/

.form-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.form-modal.hidden {
    display: none;
}

.form-modal-content {
    background: #212121;
    padding: 24px 32px;
    border-radius: 10px;
    max-width: 420px;
    text-align: center;
}

.form-modal-text{
    font-size: 16px;
}

.form-modal-content button {
    margin-top: 15px;
    color: #fbeeee;
    border: 2px solid #e11927;
    background-color: #e11927;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    text-align: center;
    width: 100%;
    line-height: 2.5;
    padding: 0 15px;
    font-size: 16px;
    transition: .3s;
    white-space: nowrap;
}


/*DATE*/

/*Закругляем границы*/
.ui-corner-all {

    padding: 0 !important;


    color: #e5eee2 !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16) !important;
    font-family: "Montserrat", Arial, sans-serif !important;    
}
.ui-datepicker{
    border:none !important;
    border-radius:10px !important;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
}
.ui-datepicker-calendar, .ui-widget-content{
        background:  #212121 !important;
}

.ui-datepicker .ui-datepicker-header {
    background: #e11927;
    border-top-right-radius: 10px !important;
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next {
    top: 8px !important; 
    width: unset !important; 
    height: unset !important; 
} 
.ui-datepicker-year, .ui-datepicker-month{
    background: transparent;
    text-align: center !important;
    border: none;
}  
.ui-datepicker-year option, .ui-datepicker-month option{
    background-color: #212121 !important;
}

/*кнопочки дней*/
.ui-state-default{
    text-align: center;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    border: 0 !important;
    font-weight: 500;
    text-align: center !important;
    background: transparent !important;
    transition: background-color .2s ease;
    color: #ffffff !important; 
}
.ui-state-hover{
    background: #7c7c7c !important;
}
.ui-state-active{
    background: #e11927 !important;
}

/*Сегодня*/
.ui-datepicker .ui-datepicker-buttonpane {
    border-top: 0;
    padding: 0 !important;
}
.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current {
    width: 100%;
    padding: 5px 10px !important;
}


/*стрелки*/

/* Скрываем стандартные иконки jQuery UI */
.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span {
    display: none !important;

}

/* Добавляем иконку «назад» (левая стрелка) */
.ui-datepicker-prev::before {
   content: url('data:image/svg+xml;utf8,%3Csvg%20xmlns%3D"http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg"%20width%3D"16"%20height%3D"16"%20viewBox%3D"0%200%2016%2016"%3E%3Cpath%20d%3D"M12%202%20L4%208%20L12%2014"%20stroke%3D"white"%20stroke-width%3D"2"%20fill%3D"none"%2F%3E%3C%2Fsvg%3E');
  font-family: "FontAwesome";
  font-size: 16px;
  color: #333;
  margin: 0 5px;
}

/* Добавляем иконку «вперёд» (правая стрелка) */
.ui-datepicker-next::before {
  content: url('data:image/svg+xml;utf8,%3Csvg%20xmlns%3D"http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg"%20width%3D"16"%20height%3D"16"%20viewBox%3D"0%200%2016%2016"%3E%3Cpath%20d%3D"M4%202%20L12%208%20L4%2014"%20stroke%3D"white"%20stroke-width%3D"2"%20fill%3D"none"%2F%3E%3C%2Fsvg%3E');
  font-size: 16px;
  color: #333;
  margin: 0 5px;
}


@media (max-width: 799px) {
  .application-wrapper {
    padding: 10px; /* Отступы по краям */
  }

  .application-form {
    width: 100%; /* Занимаем всю доступную ширину */
    max-width: 100%;
    box-sizing: border-box;
  }

  .send-form {
    gap: 15px; /* Уменьшаем отступы между полями */
    padding: 15px; /* Компактнее отступы внутри формы */
  }

  .items-block {
    flex-direction: column; /* Блоки выстраиваются вертикально */
    gap: 15px; /* Уменьшаем промежуток между элементами */
  }

  .form-item {
    gap: 8px; /* Чуть меньше отступов внутри поля */
  }

  .form-item > input,
  textarea {
    min-height: 40px; /* Немного уменьшаем высоту полей */
    padding: 10px 14px; /* Компактнее внутренние отступы */
    font-size: 13px; /* Чуть мельче шрифт */
  }

  #send-btn {
    font-size: 18px; /* Уменьшаем размер текста кнопки */
    padding: 0 20px; /* Компактнее кнопка */
    line-height: 2.3;
  }

  /* Стили для выпадающих списков (если используются стандартные <select>) */
  .application-form select {
    padding: 10px 14px;
    font-size: 13px;
    min-height: 40px;
  }

  /* Стили для Choices.js (если используется) */
  .choices__input {
    padding: 10px 14px;
    font-size: 13px;
    min-height: 40px;
  }

  .choices__list--dropdown {
    max-height: 200px; /* Ограничиваем высоту списка на мобильных */
  }

  /* Чекбоксы — немного компактнее */
  .form-item-check label {
    padding-left: 30px; /* Уменьшаем отступ для метки */
    line-height: 22px;
  }

  .form-item-check label::before {
    width: 18px;
    height: 18px;
    left: 0;
    top: 2px;
  }

  .form-item-check input[type="checkbox"]:checked + label::after {
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
  }
}
