﻿ /* Стили для кнопок */
.toggle-btn {
            padding: 15px 25px;
            border: 1px solid #ccc;
            background-color: #f1f1f1;
            cursor: pointer;
            outline: none;
}
.toggle-btn:hover {
         	background-color: #E0F8E1;
			color: #0A0A0A;
}
/* */


.form-input {
    width: 90% !important; /* Все поля займут всю доступную ширину */
    box-sizing: border-box; /* Учитывает padding и border в ширине элемента */
    margin-bottom: 15px; /* Отступ между полями */
    padding: 10px; /* Внутренние отступы для удобства */
    border: 1px solid #ccc; /* Стандартная граница */
    border-radius: 4px; /* Закругленные края для красоты */
}
/* Общие отступы для полей формы */
form input,
form select,
form textarea,
form label {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    display: block;
    width: 100%;
}

/* Опционально: установка минимальной высоты для полей ввода */
form input[type="text"],
form input[type="tel"],
form input[type="email"],
form select,
form textarea {
    min-height: 35px !important; /* Можно изменить по необходимости */
}
label {
    display: block; /* Для корректного отображения всех label над полями */
    margin-bottom: 5px; /* Отступ между label и полем */
}

textarea {
    resize: vertical; /* Пользователь сможет изменять высоту текстового поля */
    min-height: 120px; /* Минимальная высота текстового поля */
}

select, input[type="tel"] {
    width: 100%; /* Выровнять все поля */
}

/* */
.hint-container {
    position: relative;
    display: inline-block;	
}
.feedback-hint {
	width: 23px;
	height: 23px;
	position: relative;
	border: none !important;
}
.feedback-hint:hover {
	opacity: 0.5;
}
.hint-text {
    visibility: hidden;
    width: 300px; /* Увеличить ширину для широких экранов */
    background-color: #555;
    color: #fff;
    text-align: left;
    border-radius: 5px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    margin-left: -150px;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    line-height: 1.5;
}
/* Адаптация для больших экранов */
@media (min-width: 1024px) {
    .hint-text {
        width: 1000px; /* Увеличиваем ширину для ПК */
        margin-left: -150px; /* Центруем относительно новой ширины */
        font-size: 16px; /* Немного увеличиваем шрифт */
        line-height: 1.8; /* Для удобства чтения */
    }
}
/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .hint-text {
        width: 250px; /* Немного уменьшить ширину */
        font-size: 12px; /* Уменьшить шрифт */
        padding: 8px;
        margin-left: -125px; /* Центрирование для меньшей ширины */
    }
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 480px) {
    .hint-text {
        width: 200px;
        font-size: 11px;
        padding: 6px;
        margin-left: -100px;
    }
}
.hint-container:hover .hint-text {
    visibility: visible;
    opacity: 1;
}
/* Стили для активной кнопки */
.active {
            background-color: #4CAF50;
            color: white;
}
.active:hover {
            background-color: #3A863D;
            color: white;
}
/* Скрываем контент, который неактивен */
.content {
            display: none;
}

/* Контент, который активен */
.active-content {
            display: block;
}
/*Все для чекбокса*/
  .checkbox-wrapper-28 {
    --size: 25px;
    position: relative;
  }

  .checkbox-wrapper-28 *,
  .checkbox-wrapper-28 *:before,
  .checkbox-wrapper-28 *:after {
    box-sizing: border-box;
  }

  .checkbox-wrapper-28 .promoted-input-checkbox {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  .checkbox-wrapper-28 input:checked ~ svg {
    height: calc(var(--size) * 0.6);
    -webkit-animation: draw-checkbox-28 ease-in-out 0.2s forwards;
            animation: draw-checkbox-28 ease-in-out 0.2s forwards;
  }
  .checkbox-wrapper-28 label:active::after {
    background-color: #4CAF50;
  }
  .checkbox-wrapper-28 label {
    color: black;
    line-height: var(--size);
    cursor: pointer;
    position: relative;
  }
  .checkbox-wrapper-28 label:after {
    content: "";
    height: var(--size);
    width: var(--size);
    margin-right: 8px;
    float: left;
    border: 2px solid #4CAF50;
    border-radius: 3px;
    transition: 0.15s all ease-out;
  }
  .checkbox-wrapper-28 svg {
    stroke: #4CAF50;
    stroke-width: 3px;
    height: 0;
    width: calc(var(--size) * 0.6);
    position: absolute;
    left: calc(var(--size) * 0.21);
    top: calc(var(--size) * 0.2);
    stroke-dasharray: 33;
  }

  @-webkit-keyframes draw-checkbox-28 {
    0% {
      stroke-dashoffset: 33;
    }
    100% {
      stroke-dashoffset: 0;
    }
  }

  @keyframes draw-checkbox-28 {
    0% {
      stroke-dashoffset: 33;
    }
    100% {
      stroke-dashoffset: 0;
    }
  }
/* ВСПЛЫВАЮЩЕЕ ОКНО СОГЛАСИЯ ОБРАБОТКИ ПЕРСОНАЛЬНЫХ ДАННЫх  */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* Полупрозрачный фон */
}

.modal-content {
    background-color: #fff; /* Белый фон */
    margin: 5% auto; /* Отступы сверху и снизу */
    padding: 15px 70px ; /* Отступы внутри окна */
    border: 1px solid #888;
    width: 80%; /* Ширина 80% от окна */
    max-width: 210mm; /* Максимальная ширина A4 */
    max-height: 297mm; /* Максимальная высота A4 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Легкая тень для эффекта */
    border-radius: 8px; /* Закругленные углы */
    overflow: hidden; /* Скрытие переполненного содержимого */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


/* КНОПКА ОТПРАВКИ ФОРМЫ  */
.send-button {
    padding: 10px 20px; /* Уменьшенные отступы для небольшой кнопки */
    font-size: 14px; /* Размер текста поменьше */
    border-radius: 10px; /* Закругление углов */
    background-color: #4CAF50; /* Основной цвет кнопки */
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease; /* Плавный переход цвета */
	width: auto !important;
}

.send-button:hover {
    background-color: #45a049; /* Цвет при наведении */
	opacity: 0.8;
}

.send-button:active {
    background-color: #218701; /* Цвет при нажатии */
}

/* Стиль для поля с ошибкой */

input:invalid, textarea:invalid {
    border-color: red;
}

/* Стиль для корректно заполненного поля */
input:valid, textarea:valid {
    border-color: green;
}

input:invalid, textarea:invalid {
    border-color: red;
}

input:valid, textarea:valid {
    border-color: green;
}

.error-message {
    color: red;
    font-size: 12px;
    display: none;
}
input:invalid + .error-message, textarea:invalid + .error-message {
    display: block;
}
/*Ловушка для дураков*/
#licnumber {
	display: none;
}