/* === ОСНОВА === */
body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #011b39 0%, #052b57 100%);
  color: white;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px;
  min-height: 100vh;
  box-sizing: border-box;
}

/* === ФОРМА === */
form {
  width: 100%;
  max-width: 1100px;
  background: transparent;
  border-radius: 16px;
  padding: 40px;
  box-sizing: border-box;
  box-shadow: none;
  z-index: 1;
  position: relative;
}

/* === КОЛОНКИ === */
.form-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 80px;
}

.form-left,
.form-right {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 280px;
}

/* === ИНПУТЫ / СЕЛЕКТЫ / ТЕЛЕФОН === */
input,
select,
.iti input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 12px 14px;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-sizing: border-box;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appea
}

input::placeholder,
.iti input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

input:focus,
select:focus,
.iti input:focus {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
  box-shadow: 0 0 6px rgba(46, 168, 255, 0.4);
}

/* === 💡 Общий стиль для select === */
select {
  width: 100%;
  height: 48px;
  padding: 12px 40px 12px 14px;
  font-size: 15px;
  color: #fff;
  border: none;
  border-radius: 8px;
  box-sizing: border-box;
  cursor: pointer;
 
    url("data:image/svg+xml;utf8,<svg fill='white' height='10' viewBox='0 0 24 24' width='10' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>")
    no-repeat right 14px center;
  background-size: 12px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  line-height: 1.4;
}

/* === Hover / Focus === */
select:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

select:focus {
  background-color: rgba(255, 255, 255, 0.18);
  outline: none;
  box-shadow: 0 0 6px rgba(46, 168, 255, 0.4);
}

/* === Для Windows / Edge — прячем стандартную стрелку === */
select::-ms-expand {
  display: none;
}

/* === Фикс для выпадашки на Windows: чёрный текст и белый фон === */
select option {
  color: #000;
  background-color: #fff;
}

/* === 📱 Мобильная адаптация селектов === */
@media (max-width: 768px) {
  select {
    padding: 10px 36px 10px 12px;
    font-size: 14px;
    line-height: 1.3;
    height: auto;
  }
}

/* === ЧИПЫ === */
.btn-chip {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-chip.active,
.btn-chip:hover {
  background: #2ea8ff;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* === КНОПКА И СОГЛАСИЕ === */
.form-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 0;
  padding-top: 0;
  width: 100%;
  margin-top: 1rem;
}

.form-actions button[type="submit"] {
  background: #2ea8ff;
  order: -1;
  border: none;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.5rem;
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: 0.25s ease;
  margin-bottom: 0.25rem;
}

.form-actions button[type="submit"]:hover {
  background: #2196f3;
  box-shadow: 0 3px 10px rgba(46, 168, 255, 0.25);
  transform: translateY(-0.125rem);
}

/* === ЧЕКБОКС И СОГЛАСИЕ === */
.form-consent {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  flex-wrap: nowrap;
  white-space: nowrap;
  margin-top: 0.75rem;
}

.form-consent label {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.form-consent input[type='checkbox'] {
  accent-color: #2ea8ff;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  transform: scale(0.95);
  -webkit-appearance: auto;
    -moz-appearance: auto;
}
h1 {
  color: #FFF;
font-size: 46px;
font-style: normal;
font-weight: 700;
line-height: 100%; /* 46px */
letter-spacing: -0.92px;
margin: 0 0 24px 0;
}

.desc {
  color: #FFF;
font-size: 18px;
font-style: normal;
font-weight: 400;
line-height: 120%; /* 21.6px */
letter-spacing: -0.36px;
margin-bottom: 32px;
}
.form-consent a {
  color: #2ea8ff;
  text-decoration: none;
}

.form-consent a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .form-consent {
    display: flex;
    flex-direction: row; /* чекбокс слева, текст справа */
    align-items: center; /* ✅ выравниваем по вертикали */
    justify-content: flex-start;
    gap: 10px; /* ✅ расстояние между чекбоксом и текстом */
    width: 100%;
    font-size: 11.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    flex-wrap: nowrap; /* ✅ не ломаем на отдельные строки */
    margin-top: 8px;
  }

  /* контейнер для текста */
  .form-consent .text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    white-space: normal; /* ✅ разрешаем перенос */
    overflow-wrap: break-word;
  }

  .form-consent input[type='checkbox'] {
    flex-shrink: 0;
    transform: scale(0.9);
    accent-color: #2ea8ff;
    margin: 0;
  }

  .form-consent a {
    color: #4db8ff;
    text-decoration: none;
  }

  .form-consent a:hover {
    text-decoration: underline;
  }
  
  .success-card {
    flex-direction: column;
   
    gap: 14px;
    padding: 20px;
    min-height: auto;
  }

  .success-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 6px;
  }

  .success-text h2 {
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    line-height: 1.15;
    margin-bottom: 14px;
  }

  .success-text button {
    font-size: 15px;
    padding: 10px 26px;
  }

  /* Цветочек справа — делаем меньше */
  .success-card::after {
    width: 180px;
    height: 200px;
    right: -20px;
    bottom: -10px;
    opacity: 0.85;
  }

  /* Центрируем текст и кнопку */
  .success-text {
    align-items: center;
  }

  /* Чтобы карточка влезала ровно */
  .success-screen {
    padding: 20px;
  }
}

/* === ОБЩИЙ АДАПТИВ === */
@media (max-width: 768px) {
  body {
    padding: 20px;
  }

  form {
    padding: 0 !important;
  }

  .form-container {
    flex-direction: column;
    gap: 32px;
  }

  .form-actions {
    align-items: center;
    text-align: center;
  }

  .form-consent {
    white-space: normal;
    flex-wrap: wrap;
    justify-content: center;
  }
  h1 {
    font-size: 24px;
  }
}

/* === ТЕЛЕФОН (.iti) — стиль в едином дизайне с инпутами === */
.iti {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  overflow: visible;
}

.iti:focus-within {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 6px rgba(46, 168, 255, 0.4);
}

/* === Блок с флагом === */
.iti__flag-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 10px;
  padding-right: 8px;
  cursor: pointer;
  position: relative;
}

.iti__selected-flag {
  background: rgba(255, 255, 255, 0.08) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  margin-right: 6px;
  padding-right: 20px; /* добавляем место под стрелку */
  border-radius: 6px 0 0 6px;
  position: relative;
}

/* === Новая стрелочка ▼ (тонкая chevron) === */
.iti__selected-flag::after {
  content: '▾'; /* символ стрелки */
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  transition: transform 0.2s ease, color 0.2s ease;
  pointer-events: none;
}

.iti__flag-container[aria-expanded='true'] .iti__selected-flag::after {
  transform: translateY(-50%) rotate(180deg);
  color: #4db8ff;
}

/* === Поле ввода телефона === */
.iti input {
  flex: 1;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  color: #fff;
  font-size: 15px;
  padding: 12px 14px;
  line-height: 1.4;
  width: 100%;
  box-sizing: border-box;
  padding-left: 90px !important;
}

.iti input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* === Список стран === */
.iti__country-list {
  background: rgba(10, 20, 40, 0.95);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 14px;
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.iti__country {
  padding: 8px 12px;
  transition: background 0.2s ease;
}

.iti__country:hover {
  background: rgba(255, 255, 255, 0.18);
}

.iti__dial-code {
  color: rgba(255, 255, 255, 0.7);
}

/* === Убираем системные стрелки на iOS/Chrome === */
#phone::-webkit-inner-spin-button,
#phone::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* === FIX для Windows Chrome выпадашки select === */
select {
  /*background-color: #f2f4f8; /* светлый фон */
  /*color: #000; /* тёмный текст */
  border: none;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 15px;
  appearance: none; /* убираем системный стиль */
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: background 0.2s ease, color 0.2s ease;
}

select:focus {
  outline: none;
  /*background-color: #fff;*/
  box-shadow: 0 0 0 2px rgba(100, 150, 255, 0.6);
}

/* для выпадающего списка (Windows Chrome) */
select option {
  background-color: #fff !important;
  color: #000 !important;
}

.hidden {
 opacity: 0;
}

/* === БАННЕР УСПЕХА === */
#successScreen {
  position: fixed;
  inset: 0;
  display: flex !important;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #011b39 0%, #052b57 100%);
  color: white;
  text-align: center;
  padding: 6vh 2rem;
  box-sizing: border-box;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  z-index: 999999;
}

#successScreen.active {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* === Карточка === */
.success-card {
  background: #fff;
  color: #000;
  border-radius: 0.9rem;
  padding: 3rem 3.2rem;
  display: flex;
 flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
  max-width: min(48rem, 85%);
  width: 100%;
  position: relative;
  margin: 0 1rem;
  position: relative;
  overflow: hidden;
}

.success-icon {
  width: 4.5rem;
  height: 4.5rem;
  background: url("Frame 131.png") no-repeat center / contain;
  flex-shrink: 0;
}

.success-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.success-text h2 {
  color: #24a148;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-align: left;
}

.success-text button {
  background: #001f4f;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 0.6rem;
  padding: 0.9rem 2rem;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease;
}

.success-text button:hover {
  background: #0040a1;
}

.success-art {
  background: url("e_1.png") no-repeat center / contain;
  width: 8rem;
  height: 8rem;
  opacity: 0.9;
  position: absolute;
  right: -1rem;
  bottom: 0;
}

/* === Мобила === */
@media (max-width: 480px) {
  #successScreen {
    padding: 18px;
  }

  .success-card {
    flex-direction: column;
 
    padding: 20px;
    gap: 14px;
  }

  .success-icon {
    width: 56px;
    height: 56px;
  }

  .success-text h2 {
    font-size: 18px;
    text-align: center;
  }

  .success-text button {
    font-size: 15px;
    padding: 10px 24px;
  }

  .success-text {
    align-items: center;
  }
}
