/* Стиль модального окна */
.modal {
    display: none; /* Скрыть модальное окно по умолчанию */
    position: fixed; /* Оставаться на месте при прокрутке */
    z-index: 1000; /* Сидеть на вершине */
    left: 0;
    top: 0;
    width: 100%; /* Полная ширина */
    height: 100%; /* Полная высота */
    overflow: auto; /* Включить прокрутку, если необходимо */
    background-color: rgb(0,0,0); /* Цвет фона */
    background-color: rgba(0,0,0,0.4); /* Черный с непрозрачностью */
}
  
/* Стиль содержимого модального окна */
.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 10% auto; /* 15% от верха и центрировано */
    padding: 24px;
    border: 1px solid #888;
    width: 50%; /* Или ширина в пикселях, если нужно */
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

/* Стиль для заголовка модального окна */
.modal-header {
    padding: 10px 0;
    background-color: #f2f2f2;
    color: black;
}

/* Стиль для тела модального окна */
.modal-body {
    padding: 0;
}

.modal-body h2 {
    margin-bottom: 12px;
}

/* Стили для формы и ее элементов */
input[type=email], input[type=password] {
    /* width: calc(100% - 20px); */
    box-sizing: border-box;
    display: inline-block;
    flex-direction: column;
    position: relative;
    min-width: 0px;
    padding: 6px 12px;
    border: 0px;
    line-height: 24px;
    font-size: 16px;
    vertical-align: top;
    background-color: rgb(248, 244, 234);
    border: 1px solid rgb(201, 198, 190);
    border-radius: 10px;
    outline: none;
}

/* Кнопка закрытия (x) */

.close-button {
    position: absolute;
    top: -27px; /* Смещение от верхней границы модального окна */
    right: -27px; /* Смещение от правой границы модального окна */
    background-color: #fff; /* Белый фон */
    color: #000; /* Черный текст */
    width: 30px; /* Ширина кнопки */
    height: 30px; /* Высота кнопки */
    text-align: center; /* Текст по центру */
    line-height: 25px; /* Высота линии равна высоте кнопки для вертикального центрирования */
    border-radius: 50%; /* Делаем кнопку круглой */
    cursor: pointer; /* Стиль курсора при наведении */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Тень для кнопки */
    font-size: 24px; /* Размер шрифта иконки закрытия */
    font-weight: bold; /* Жирность шрифта */
    border: none; /* Без границы */
}
  
.close-button:hover {
    background-color: #e6e6e6; /* Светло-серый фон при наведении */
}



/* Стили для кнопки формы */

.popup-btn {
    background: linear-gradient(49deg, #cf6b90 14%, #74bed7 51%, #368bcf 100%);
    color: #000;
    box-shadow: 1px 3px 0px #8b75a4;
    background: #fee94e;
    box-shadow: 1px 4px 0px #f6b243;
    text-transform: capitalize;
    line-height: 24px;
    padding: 12px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: 32px;
    outline: none;
}

/* form */
.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

label {
    margin: 0 !important;
    padding: 0;
}

/* Checkbox */
/* Скрываем стандартный checkbox */
.custom-checkbox input[type="checkbox"] {
    visibility: hidden;
    position: absolute;
}
  
/* Создаем кастомный квадрат для checkbox */
.custom-checkbox .checkmark {
    display: inline-block;
    min-width: 20px;
    height: 20px;
    background: white;
    border: 1px solid #dcdcdc;
    position: relative;
    border-radius: 4px;
}
  
/* Стилизуем кастомный checkbox при активном состоянии */
.custom-checkbox input[type="checkbox"]:checked + .checkmark {
    background: black;
}
  
/* Добавляем галочку для активного состояния */
.custom-checkbox input[type="checkbox"]:checked + .checkmark:after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}
  
/* Стилизация текста рядом с checkbox */
.custom-checkbox {
    display: flex;
    position: relative;
    cursor: pointer;
    user-select: none;
    gap: 8px;
    line-height: 20px;
    
    /* Добавьте здесь необходимые стили для текста */
}

/* Если требуется изменить цвет фона при наведении, можно добавить: */
.custom-checkbox:hover input[type="checkbox"]:not(:checked) + .checkmark {
    background: #f0f0f0;
}


/* Input */ 
