:root {
    --primary-blue: #302bff; 
    --dark-blue: #1c0bda;    
    --bg-gray: #eeeaea;      
    --text-dark: #000000;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

.bg-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%; 
    max-width: 900px;
    z-index: -1;
    pointer-events: none;
}

.bg-decoration img {
    width: 100%;
    height: auto;
    display: block;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-text {
    font-family: 'Rubik', sans-serif;
    font-weight: 900;
    font-size: 20px;
    color: #000000;
    /* text-transform: uppercase; */
}

.logo-img {
    width: 60px;
    height: auto;
}

.header-icons {
    display: flex;
    gap: 20px;
}

.header-icon {
    color: white; 
    font-size: 24px;
    z-index: 10;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 40px 20px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    margin-top: 50px;
}

.buttons-row {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.main-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-size: 22px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 20px rgba(48, 43, 255, 0.3);
    min-width: 320px;
}

.btn-blue {
    background-color: var(--primary-blue);
}

.btn-dark {
    background-color: var(--dark-blue);
    min-width: 450px; 
}

.btn-icon-img {
    height: 28px;
    width: auto;
    display: block;
}

.main-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(48, 43, 255, 0.5);
    filter: brightness(1.1);
}

.main-btn:active {
    transform: translateY(-1px);
}

footer {
    background-color: var(--bg-gray);
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    padding: 40px 60px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-section h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.contact-info {
    font-family: 'Inter', sans-serif;
    font-weight: 400; 
    font-size: 16px;
    line-height: 1.5;
    color: #222;
}

.contact-info p {
    margin-bottom: 5px;
}

.social-block {
    display: flex;
    gap: 30px;
    text-align: center;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.social-icon-circle {
    width: 60px;
    height: 60px;
    background-color: var(--primary-blue);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s;
    cursor: pointer;
}

.social-icon-circle img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.social-item span {
    font-size: 11px;
    text-transform: uppercase;
}

.social-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 11px;
    max-width: 100px;
    line-height: 1.2;
    color: #444;
}

.social-icon-circle:hover {
    transform: rotate(10deg) scale(1.1);
    background-color: var(--dark-blue);
}

@media (max-width: 900px) {
    header { padding: 20px; }
    .bg-decoration { opacity: 0.5; }
    .buttons-row { flexDirection: column; }
    .footer-content { flexDirection: column; }
    .main-btn, .btn-dark { min-width: auto; width: 100%; }
}
        
.content-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.main-title {
    font-family: 'Rubik', sans-serif;
    font-weight: 900;
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 40px;
    color: #1e1e1e;
    text-align: center;
}

.info-list {
    text-align: left;
    list-style: none;
    font-family: 'Rubik', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #555;
    margin-bottom: 50px;
}

.info-list li {
    margin-bottom: 20px;
    position: relative;
    padding-left: 35px;
    line-height: 1.5;
}

.info-list li::before {
    content: attr(data-number);
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #555;
}

.highlight {
    font-weight: 700;
    color: #000;
}

.iframe-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 40px;
    background: #fdfdfd; 
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .main-title {
        font-size: 26px;
    }
    .info-list {
        font-size: 16px;
    }
}

.header-icons a {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, filter 0.3s ease;
    margin-left: 10px;
}

.header-icon {
    font-size: 24px;
    color: #ffffff;
    transition: color 0.3s ease;
}

.header-icons a:hover {
    transform: scale(1.2); 
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.header-icons a:active {
    transform: scale(0.95);
    transition: transform 0.1s;
}

.header-icons a:hover .header-icon {
    color: #f0f0f0;
}

.form-group label {
    text-align: left;
    display: block; /* Гарантируем, что метка занимает всю строку */
}

.form-container, 
.form-group label, 
.form-description,
.label-text {
    color: #ffffff !important; /* Гарантируем белый цвет для всех текстовых элементов формы */
}

#main-form-wrapper .form-container {
    text-align: left;
    background: #29292d;
    color: #fff;
}

#main-form-wrapper .form-group label {
    color: #fff !important;
    text-align: left;
}

/* Стили для DaData внутри формы, чтобы они не были черными на черном */
#main-form-wrapper .suggestions-suggestion {
    color: #222228 !important; /* Текст в выпадающем списке остается темным на светлом фоне */
}

.form-container {
    text-align: left !important;
    background: #29292d;
    max-width: 520px;
    margin: 32px auto 0;
    border-radius: 18px;
    padding: 32px 20px 20px 20px;
    box-shadow: 0 6px 40px rgba(0,0,0,0.22);
}

.form-title {
    font-size: 25px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 18px;
    color: #fff;
    letter-spacing: .02em;
}

.form-header {
    margin-bottom: 24px;
}

.form-description {
    font-size: 16px;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.4;
}

.telegram-text {
    color: #aabfff;
    font-weight: 500;
    font-size: 15px;
}

.form-group {
    margin-bottom: 22px;
}

#main-form {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4,0.2,0.2,1), opacity 0.3s;
    will-change: max-height, opacity;
    pointer-events: none;
}

#main-form.open {
    opacity: 1;
    max-height: 4000px;
    pointer-events: auto;
}

.check-group {
    margin-bottom: 15px;
    padding: 0;
    border: none;
    background: none;
}

.required .asterisk {
    color: #ff2d2d !important;
    margin-right: 5px;
    font-size: 16px;
    font-weight: bold;
    vertical-align: middle;
}

.form-hint {
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 7px;
    margin-top: -2px;
}

.form-container .form-hint {
    color: #d1d1dd !important; /* Светло-серый */
    font-size: 13px;
}

input[type="text"],
input[type="date"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 13px;
    border-radius: 11px;
    border: 1.5px solid #fff;
    background: #fff;
    color: #222228;
    font-size: 16px;
    outline: none;
    transition: border 0.2s;
    margin: 0;
    display: block;
    font-family: 'Rubik', sans-serif;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus {
    border-color: #518fff;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="gray" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 18px 18px;
}

button.submit-btn {
    background: #3b72ff;
    color: #fff;
    border: none;
    padding: 11px 0;
    border-radius: 10px;
    width: 100%;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 18px;
    transition: background 0.18s, opacity 0.18s;
    font-family: 'Rubik', sans-serif;
    opacity: 1;
}

button.submit-btn:disabled {
    background: #a5b4cf;
    color: #fff;
    opacity: 0.5;
    cursor: not-allowed;
}

button.submit-btn:hover:enabled {
    background: #2152b5;
}

.error {
    color: #ff6060;
    font-size: 13px;
    margin-top: 4px;
    display: block;
    font-family: 'Rubik', sans-serif;
}

.region-warning {
    background: none;
    color: #fff;
    font-size: 16px;
    margin-top: 18px;
    margin-bottom: 22px;
    border: none;
    padding: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 500;
    line-height: 1.4;
    font-family: 'Rubik', sans-serif;
}

.region-warning .emoji {
    font-size: 18px;
    margin-right: 8px;
    margin-top: 2px;
}

/* --- Блок "Дата рождения + возраст" --- */
.birthdate-flex {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 4px;
    margin-bottom: 2px;
}

.birthdate-flex input[type="date"] {
    width: 48%;
    min-width: 120px;
}

/* Базовый бокс */
.age-box {
    font-size: 15px;
    background: #35373c;
    border-radius: 8px;
    padding: 8px 15px;
    color: #fff;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Состояние: Валидный возраст (5-17 лет) */
.age-box.age-valid {
    background: #28a745; /* Зеленый */
    color: #fff;
}

.age-box.age-valid::after {
    content: ' ✓';
    font-weight: bold;
}

/* Состояние: Невалидный возраст (<5 или >=18) */
.age-box.age-invalid {
    background: #dc3545; /* Красный */
    color: #fff;
}

.age-box.age-invalid::after {
    content: ' ⛔';
}

/* Удаляем старый стиль ошибки для числа, так как теперь красим весь бокс */
.age-box .age-num.error-age {
    color: inherit;
}

.birth-flex-group .error {
    margin-left: 2px;
}

/* --- Кнопки выбора справки, учебного заведения, был/не был --- */
.spravka-toggle, .edu-toggle, .been-toggle {
    display: flex;
    gap: 10px;
    margin-top: 7px;
}

.spravka-btn, .edu-btn, .been-btn {
    flex: 1 1 0;
    border-radius: 16px;
    border: 2px solid #fff;
    background: #39393e;
    color: #fff;
    font-size: 16px;
    font-family: 'Rubik', sans-serif;
    padding: 10px 0 8px 0;
    font-weight: 500;
    transition: border 0.18s, background 0.18s, color 0.18s;
    cursor: pointer;
    outline: none;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spravka-btn.selected, .spravka-btn:active,
.edu-btn.selected, .edu-btn:active,
.been-btn.selected, .been-btn:active {
    border: 2px solid #488bfa;
    background: #353a4c;
    color: #fff;
    font-weight: 500;
}

.spravka-btn:not(.selected):hover, .edu-btn:not(.selected):hover, .been-btn:not(.selected):hover {
    background: #44444a;
    border-color: #fff;
}

.upload-block {
    display: flex; /* Это свойство уже есть, оставляем */
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    transition: opacity 0.3s ease; /* Добавляем плавность для красоты */
}

.upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #39393e;
    color: #fff;
    font-size: 15px;
    border: 2px solid #fff;
    border-radius: 14px;
    padding: 7px 18px 7px 13px;
    cursor: pointer;
    font-family: 'Rubik', sans-serif;
    transition: border 0.18s, background 0.18s;
    outline: none;
    font-weight: 500;
}

.upload-btn:hover {
    border: 2px solid #488bfa;
    background: #353a4c;
}

.upload-btn svg {
    margin-right: 8px;
    width: 17px;
    height: 17px;
    vertical-align: middle;
    stroke: #fff;
}

.upload-info {
    font-size: 14px;
    color: #fff;
    font-family: 'Rubik', sans-serif;
    margin-left: 5px;
}

.upload-file-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.attached-file {
    display: flex;
    align-items: center;
    background: #35373c; /* Немного светлее фона для выделения */
    border-radius: 12px;
    padding: 10px 14px;
    color: #fff;
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    gap: 12px;
    width: 100%; /* На всю ширину */
    box-sizing: border-box;
}

.clip-icon svg {
    width: 20px;
    height: 20px;
    stroke: #d1d1dd; /* Светло-серый цвет иконки */
    fill: none;
    flex-shrink: 0;
}

.file-name {
    flex-grow: 1; /* Растягиваем имя файла, сдвигая иконки вправо */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.preview-file, .remove-file {
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}

.preview-file:hover, .remove-file:hover {
    opacity: 0.7;
}

.preview-file svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    fill: none;
}

.remove-file svg {
    width: 22px;
    height: 22px;
    stroke: #ff6060; /* Красный цвет для удаления */
    fill: none;
}

/* --- Стили для попапа предпросмотра --- */
.preview-popup {
    display: none; /* По умолчанию скрыт */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Темный полупрозрачный фон */
    z-index: 20000;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 40px;
}

.preview-popup.open {
    display: flex;
}

.preview-popup.open .preview-content {
    opacity: 1;
    transform: translateY(0);
}

.preview-content {
    background: #29292d; /* */
    border-radius: 18px; /* */
    padding: 30px; /* Увеличим отступы для удобства */
    max-width: 95%; /* Чуть больше места по ширине */
    max-height: 95%; /* Чуть больше места по высоте */
    position: relative; /* */
    display: flex; /* */
    flex-direction: column; /* */
    box-shadow: 0 10px 40px rgba(0,0,0,0.5); /* */
    
    /* ВКЛЮЧАЕМ ПРОКРУТКУ */
    overflow: auto; /* Добавляем прокрутку, если контент не помещается */
    
    /* Добавим плавность появления */
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.preview-close {
    position: sticky;
    top: 0px;
    right: 0px;
    align-self: flex-end;
    cursor: pointer;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    
    /* Фиксируем размеры, чтобы круг не деформировался */
    width: 36px;
    height: 36px;
    min-width: 36px; /* Защита от сжатия в flex-контейнере */
    min-height: 36px;
    border-radius: 50%;
    
    /* Идеальное центрирование содержимого */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Убираем лишние свойства, мешающие центровке */
    line-height: 0; 
    font-size: 24px;
    
    z-index: 10;
    margin-bottom: -36px;
    margin-right: -10px;
    transition: color 0.2s, background 0.2s;
}

.preview-close:hover {
    color: #ff6060;
    background: rgba(255, 255, 255, 0.2);
}

.preview-image, .preview-pdf {
    /* Основное изменение: */
    width: 80vh; /* Позволяем изображению сохранять пропорции */
    height: auto; /* Позволяем изображению сохранять пропорции */
    max-width: 100%; /* Но не шире контейнера */
    max-height: none; /* Разрешаем изображению быть выше экрана, чтобы появилась прокрутка */
    
    object-fit: contain; /* */
    border-radius: 12px; /* */
    display: none; /* */
    margin-top: 10px; /* Отступ от заголовка */
}

/* Для PDF iframe */
.preview-pdf {
    width: 100%; /* Занимает всю ширину */
    height: 80vh; /* Занимает 80% высоты видимой области */
    border: none;
}

.preview-header {
    color: #fff; /* */
    font-size: 18px; /* */
    font-weight: 600; /* */
    margin-bottom: 20px; /* */
    margin-right: 50px; /* Больше места для кнопки закрытия */
    white-space: nowrap; /* */
    overflow: hidden; /* */
    text-overflow: ellipsis; /* */
    flex-shrink: 0; /* Заголовок не должен сжиматься */
}

.remove-file {
    cursor: pointer;
    margin-left: 9px;
    display: flex;
    align-items: center;
}

.remove-file svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    fill: none;
    transition: stroke 0.2s;
}
.remove-file:hover svg {
    stroke: #ff5555;
}

/* 1. Основные параметры дорожки (background) */
.preview-content::-webkit-scrollbar {
    width: 8px;               /* Ширина вертикальной полосы */
    height: 8px;              /* Высота горизонтальной полосы (если будет) */
    background-color: transparent; /* Фон дорожки делаем прозрачным */
}

/* 2. Стилизация самого ползунка (thumb) */
.preview-content::-webkit-scrollbar-thumb {
    background-color: #55575c; /* Темно-серый цвет, чуть светлее фона попапа */
    border-radius: 10px;      /* Сильное скругление */
    border: 2px solid #29292d; /* Создаем отступ от краев, используя цвет фона попапа */
}

/* 3. Цвет ползунка при наведении */
.preview-content::-webkit-scrollbar-thumb:hover {
    background-color: #71747a; /* Слегка осветляем при наведении */
}

/* 4. Стилизация углов (если есть и вертикальная, и горизонтальная прокрутка) */
.preview-content::-webkit-scrollbar-corner {
    background-color: transparent;
}

/* --- Arrivals Grid (Выбор заезда) --- */
.arrivals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 12px;
    margin-top: 10px;
    margin-bottom: 4px;
}

@media (max-width: 700px) {
    .form-container {
        max-width: 99vw;
    }
    .arrivals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .arrivals-grid {
        grid-template-columns: 1fr;
    }
}

.arrival-btn {
    border-radius: 13px;
    border: 2px solid #fff;
    background: #39393e;
    color: #fff;
    font-size: 15px;
    font-family: 'Rubik', sans-serif;
    padding: 10px 0 8px 0;
    font-weight: 500;
    transition: border 0.18s, background 0.18s, color 0.18s;
    cursor: pointer;
    outline: none;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    min-width: 100px;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: pre-line;
}

.arrival-btn.selected,
.arrival-btn:active {
    border: 2.5px solid #488bfa;
    background: #353a4c;
    color: #fff;
    font-weight: 500; /* Не делаем жирным */
}

.arrival-btn:not(.selected):hover {
    background: #44444a;
    border-color: #fff;
}

/* Нижний отступ для страницы */
.page-bottom-padding {
    height: 60px;
}

.suggestions-promo {
    display: none !important;
}

.suggestions-wrapper {
    position: relative;
    width: 100%;
}

.suggestions-wrapper .suggestions-promo {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Стилизация выпадающего списка */
.suggestions-suggestions {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: 1px solid #488bfa !important;
    border-radius: 11px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4) !important;
    z-index: 99999 !important; /* Максимальный приоритет */
    max-height: 300px !important;
    overflow-y: auto !important;
    margin-top: 4px !important;
}

/* Стилизация каждой строки в списке */
.suggestions-suggestion {
    padding: 12px 15px !important;
    font-size: 15px !important;
    color: #222228 !important;
    cursor: pointer !important;
    line-height: 1.2 !important;
}

.suggestions-suggestion.suggestions-selected {
    background: #e8f0fe !important;
}

.suggestions-wrapper .suggestions-promo {
    display: none !important;
}

/* Цвет при наведении на вариант или выборе стрелками */
.suggestions-suggestion:hover,
.suggestions-suggestion.suggestions-selected {
    background: #f0f5ff !important;
    color: #2152b5 !important;
}

/* Оформление заголовка "Выберите вариант..." внутри списка */
.suggestions-hint {
    padding: 8px 13px !important;
    font-size: 13px !important;
    color: #777 !important;
    background: #f9f9f9 !important;
    border-bottom: 1px solid #eee !important;
}

/* Стили для всплывающего уведомления (Toast) */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    pointer-events: none;
}

.toast-message {
    background: #ff4d4d;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin-bottom: 10px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(-20px);
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Контейнер для группы */
.custom-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

/* Скрываем дефолтный инпут */
.checkbox-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Карточка-обертка */
.checkbox-card {
    display: block;
    cursor: pointer;
    user-select: none;
}

.card-content {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: #35373c; /* В тон вашим полям ввода */
    border: 2px solid transparent;
    border-radius: 14px;
    transition: all 0.25s ease;
}

/* Текст внутри карточки */
.label-text {
    font-size: 14px;
    line-height: 1.4;
    color: #d1d1dd;
    transition: color 0.25s ease;
}

/* Кастомный квадрат чекбокса */
.custom-check {
    width: 20px;
    height: 20px;
    background: #44464b;
    border-radius: 6px;
    margin-right: 14px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

/* Галочка (рисуем через псевдоэлемент) */
.custom-check:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Состояние: Наведение */
.checkbox-card:hover .card-content {
    background: #3d3f44;
    border-color: #55575c;
}

/* Состояние: Выбрано (Checked) */
.checkbox-card input:checked + .card-content {
    background: rgba(72, 139, 250, 0.1); /* Легкий синий фон */
    border-color: #488bfa; /* Фирменный синий цвет */
}

.checkbox-card input:checked + .card-content .label-text {
    color: #fff;
}

.checkbox-card input:checked + .card-content .custom-check {
    background: #488bfa;
}

.checkbox-card input:checked + .card-content .custom-check:after {
    display: block;
}

/*---=== НА ВРЕМЯ ТЕСТА ===---*/
/* Попап успешной отправки (Технический) */
.success-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 30000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.success-popup.open {
    display: flex;
}

.success-content {
    background: #1e1e22;
    border: 2px solid #488bfa;
    border-radius: 18px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    color: #fff;
    font-family: 'Courier New', Courier, monospace; /* Технический шрифт */
}

.success-header {
    color: #488bfa;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Rubik', sans-serif;
}

.tech-data-line {
    display: flex;
    flex-direction: column; /* Изменяем на колонку для длинных текстов */
    margin-bottom: 12px;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
}

.tech-label {
    color: #488bfa;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.tech-value {
    color: #00ff41;
    text-align: left; /* Выравнивание влево для удобства чтения */
    word-break: break-all;
    font-size: 14px;
}

.success-close-btn {
    display: block;
    margin: 25px auto 0;
    padding: 12px 30px;
    background: #488bfa;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Rubik', sans-serif;
}