/* Общий стиль для body */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f2f2f2;
    margin: 0;
    padding: 0;
}

/* Контейнер для всей страницы */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Шапка страницы */
header {
    background: rgba(0, 0, 0, 0.8);
}

.logo {
    padding: 40px;
}

/* Контейнер для иконок */
.iconsCont {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.iconsCont i {
    color: white;
    font-size: 24px;
    cursor: pointer;
}

#nextBtn {
    margin-left: auto;
}

/* Опрос */
#survey {
    position: relative;
    padding: 20px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 600px;
    box-sizing: border-box;
    margin-top: 50px;
}

/* Контейнер прогресса */
.progress-container {
    position: relative;
    width: 100%;
    height: 30px;
    background-color: #f2f2f2;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
}

.progress-bar {
    height: 100%;
    background-color: #4caf50;
    width: 0;
    transition: width 0.5s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
}

/* Нумерация вопросов */
.question-counter {
    color: white;
    font-weight: bold;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Заголовки */
h1 {
    color: #333;
    text-align: center;
}

p {
    color: #666;
    text-align: center;
}

/* Вопросы */
.question {
    margin-bottom: 20px;
}

.question p {
    font-weight: bold;
    margin-bottom: 20px;
    color: white;
    font-size: 20px;
}

.option {
    margin-left: 20px;
}

input[type="radio"] {
    margin-right: 10px;
}

label {
    font-weight: normal;
    color: white;
}

/* Кнопки навигации */
.navigation-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Благодарность за опрос */
#thankYouContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Кнопки */
button {
    margin: 10px;
    padding: 10px 20px;
    background: rgb(245, 174, 6);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#submitBtn {
    display: none;
}

/* Стили для контейнеров с вариантами */
.option-container {
    display: flex;
    align-items: center;
    background: rgba(170, 170, 170, 0.1);
    padding: 10px;
    margin-bottom: 30px;
    border-radius: 5px;
    cursor: pointer;
    border-radius: 20px;
    color: white;
    border: 2px solid transparent;
    box-sizing: border-box;
}

.option-container input[type="radio"] {
    margin-right: 10px;
}

.option-container span {
    color: white;
}

.option-container:hover {
    border-color: rgba(245, 174, 6, 0.6);
}

.option-container.active {
    border: 2px solid #F5AE06;
}

.option-container.check {
    border: 2px solid red;
}

/* Контейнер поиска */
.search-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border-radius: 8px;
}

/* Поле ввода контрагентов */
#contr-agents-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s ease;
}

#contr-agents-input:focus {
    border-color: #4caf50;
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.4);
}

/* Список контрагентов */
#agent-list {
    display: none;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

/* Элементы контрагентов */
.agent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 16px;
    color: #333;
    border-radius: 6px;
}

.agent-item:hover {
    background-color: #f9f9f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.agent-item:last-child {
    border-bottom: none;
}

/* Текст внутри элементов контрагентов */
.agent-item span {
    font-weight: bold;
    font-size: 14px;
    color: #666;
}

/* Скрытый элемент */
.hidden {
    display: none;
}

.special-btn,
.superadmin-btn {
    position: fixed; /* Use fixed to keep buttons at the same position even when scrolling */
    right: 10px; /* Distance from the right edge */
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.special-btn:hover {
    background-color: #45a049;
}

.superadmin-btn {
    background-color: #FFA500; /* Different color for superadmin button */
    top: 70px; /* Position below the first button */
}

.superadmin-btn:hover {
    background-color: #FF8C00;
}

/* For the first button */
.special-btn {
    top: 10px; /* Position at the top-right */
}



.modal {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative; /* Позиционирование относительно родителя */
    background: white; /* Фон формы */
    padding: 20px;
    border-radius: 10px; /* Скругленные углы */
    width: 80%; /* Ширина в 70% экрана */
    height: 90%; /* Высота в 70% экрана */
    max-width: 100%; /* Ограничение ширины для малых экранов */
    max-height: 100%; /* Ограничение высоты для малых экранов */
    display: flex; /* Для выравнивания контента */
    flex-direction: column; /* Расположение дочерних элементов */
    justify-content: center; /* Вертикальное центрирование */
    align-items: center; /* Горизонтальное центрирование */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Тень для эффекта */
}

#questionSelect {
    font-size: 16px;
    padding: 10px;
    height: 45px;
    border-radius: 5px;
    border: 1px solid #ccc;
    overflow-y: auto;
}

#chart{
    height: 650px !important;
}


.close {
    position: absolute; /* Абсолютное позиционирование относительно формы */
    top: 10px; /* Отступ сверху */
    right: 10px; /* Отступ справа */
    font-size: 24px; /* Размер крестика */
    color: #000; /* Цвет крестика */
    background: none; /* Без фона */
    border: none; /* Без границы */
    cursor: pointer; /* Курсор указателя */
}

.close:hover {
    color: #f00; /* Цвет крестика при наведении */
    transform: scale(1.1); /* Легкое увеличение при наведении */
}

@media (max-width: 480px){
    #survey{
        margin-top: 20px !important;
    }
    
    header{
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        max-height: 120px !important;
    }
    
    .logo{
        max-height: 70px !important;
    }
    
    .progress-container{
        margin-bottom: 15px !important;
    }
    
    .option-container{
        margin-bottom: 20px !important;
    }
    
    .question p {
        margin-bottom: 10px !important;
        margin-top: 10px !important;
    }
    
    #chart{
        height: 150px !important;
    }
    
    .modal-content{
        height: auto !important;
    }
    
    #questionSelect{
        font-size: 11px !important;
    }
}




