/* Базовые стили страницы */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f4f5f7; /* Светло-серый фон всей страницы */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 60px 20px;
    position: relative;
}


/* Белая карточка формы */
.form-container {
    background-color: #ffffff;
    width: 100%;
    max-width: 520px;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Логотип желтый круг */
.logo-wrapper {
    margin-bottom: 24px;
}

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

/* Заголовок */
h1 {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 24px;
    text-align: center;
}

/* Элементы формы */
.data-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group input, 
.input-group select {
    width: 100%;
    padding: 16px 20px;
    background-color: #f0f0f0; /* Серый фон полей */
    border: none;
    border-radius: 12px;
    font-size: 15px;
    color: #000000;
    outline: none;
    appearance: none; /* Убирает дефолтные стрелочки селекта */
}

.input-group input::placeholder {
    color: #a0a0a0;
}

/* Иконка календаря и стрелка селекта */
.date-group .calendar-icon,
.select-group::after {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.select-group::after {
    content: "▼";
    font-size: 10px;
    color: #a0a0a0;
}

/* Стили для поля телефона */
.phone-group {
    display: flex;
    background-color: #f0f0f0;
    border-radius: 12px;
    align-items: center;
    padding-left: 20px;
}

.phone-group input {
    background-color: transparent;
    padding-left: 10px;
}

.flag-select {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #000000;
    border-right: 1px solid #d0d0d0;
    padding-right: 12px;
}

.arrow-down {
    font-size: 9px;
    color: #a0a0a0;
}

/* Блок чекбоксов */
.checkbox-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-label input {
    display: none; /* Прячем стандартный чекбокс */
}

/* Кастомный чекбокс (круглый со скруглением) */
.checkbox-custom {
    min-width: 22px;
    height: 22px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    display: inline-block;
    position: relative;
    background-color: #ffffff;
}

.checkbox-label input:checked + .checkbox-custom {
    background-color: #ffcc00;
    border-color: #ffcc00;
}

/* Галочка при активации */
.checkbox-label input:checked + .checkbox-custom::after {
    content: "✓";
    position: absolute;
    color: #000000;
    font-size: 14px;
    font-weight: bold;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-text {
    font-size: 11px;
    line-height: 1.4;
    color: #333333;
    text-align: left;
}

.checkbox-text a {
    color: #0070f3;
    text-decoration: none;
}

/* Кнопка Дальше */
.submit-btn {
    width: 100%;
    padding: 16px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #e5e5e5;
}

/* Адаптация под мобильные */
@media (max-width: 540px) {
    body {
        padding: 20px 10px;
    }
    .form-container {
        padding: 24px 16px;
        border-radius: 12px;
    }
    .support-btn {
        position: static;
        margin-bottom: 20px;
        align-self: flex-end;
    }
}
