/* === Общий стиль страницы === */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  -webkit-text-size-adjust: 100%;
  -webkit-overflow-scrolling: touch;
  -webkit-user-select: none; /* Safari, Chrome */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE/Edge */
  user-select: none;         /* Современные браузеры */
}


/* === Верхняя панель === */
.top-bar {
  width: 100%;
  padding: 15px 10px;
  background: #007aff;
  color: #fff;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 500;
  box-sizing: border-box;
}

/* === Попап регистрации === */
.popup {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.popup.show {
  opacity: 1;
  pointer-events: auto;
}

.popup-content {
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: none;
  transform: translateY(100%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.popup.show .popup-content {
  transform: translateY(0);
}

/* Заголовок статуса */
.request-status {
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 10px;
}

/* Поля ввода */
input {
margin: 5px 0px ;
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}




/* Красная рамка для пустого или неверного поля */

input:invalid {
    border: 0.5px solid red;
    background-color: #fff3f3;
}

/* ⬅️ НОВЫЙ СЕЛЕКТОР для полей, валидируемых JS (Телефон, Город) */
input[aria-invalid="true"] {
    border: 0.5px solid red !important;
    background-color: #fff3f3 !important;
}

/* Когда фокус на поле */
input:invalid:focus {
  outline: none;
  box-shadow: 0 0 10px rgb(0, 0, 0);
}

/* Плавное появление рамки */
input {
  transition: all 0.2s ease;
}



/* Кнопка */
.button-row {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  gap: 10px;
}

button {
  flex: 1;
  padding: 14px;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: #007aff;
  color: #fff;
  transition: background 0.2s;
}

button:hover {
  background: #005fcc;
}



.info-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 300px;
}


/* --- Стили для стрелки и контейнера --- */



/* --- Контейнер и поле ввода --- */

.city-wrapper {
    position: relative; 
    display: flex; /* Обеспечивает, что дочерние элементы выстраиваются в ряд */
    align-items: center;
}

.person-city {
    flex-grow: 1; 
    padding-right: 35px !important; /* Важно: отступ для стрелки */
    /* Остальные ваши стили для input */
}

/* --- Стилизация и анимация стрелки --- */

.city-dropdown-icon {
    position: absolute;
    right: 10px;
    width: 18px;
    height: 18px;
    fill: #555;
    transition: transform 0.3s ease; 
    cursor: pointer; /* чтобы курсор менялся */
    pointer-events: auto; /* клики теперь проходят */
}


/* Стиль при открытом списке (класс добавляется через JS) */
.city-dropdown-icon.rotated {
    transform: rotate(180deg); 
    fill: #007bff; /* Можно изменить цвет при активации */}

.city-wrapper {
  position: relative;
  width: 100%;
}

.city-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-top: none;
  max-height: 180px;
  overflow-y: auto;
  z-index: 10;
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.city-list li {
  padding: 8px 10px;
  cursor: pointer;
}

.city-list li:hover {
  background-color: #f0f0f0;
}

/* === Адаптив для маленьких экранов === */
@media (max-width: 360px) {
  .popup-content {
    padding: 15px;
    max-width: 95%;
  }

  input, button {
    font-size: 14px;
    padding: 12px;
  }

  .top-bar {
    font-size: 1.1rem;
    padding: 12px 8px;
  }
}

@media (max-height: 500px) {
  .popup-content {
    max-height: 80vh;
    padding: 15px;
  }

  input, button {
    padding: 10px;
    font-size: 14px;
  }
}
