/* Минимальные стили для модальных окон - первая версия + центрирование */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
  display: block;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 0 auto;
  max-width: 500px;
  pointer-events: none;
  top: 50%;
  transform: translateY(-50%);
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: 0.5rem;
  outline: 0;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
}

.modal-header {
  display: flex;
  justify-content: flex-end;
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 1.5rem;
}

/* Стили для кнопки закрытия */
.btn-close {
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
  border: 0;
  border-radius: 0.5rem;
  opacity: 0.6;
  width: 1em;
  height: 1em;
  cursor: pointer;
  padding: 0.25rem;
  transition: opacity 0.15s;
}

.btn-close:hover {
  opacity: 1;
}

/* Заголовок */
.modal-body h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 500;
  line-height: 1.3;
}

.text-center {
  text-align: center;
}

/* Стили для формы */
.modal .form-floating {
  position: relative;
  margin-bottom: 1rem;
}

.modal .form-floating input {
  height: 60px;
  width: 100%;
  padding: 20px 12px 6px 12px;
  font-size: 16px;
  line-height: 1.2;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  box-sizing: border-box;
}

.modal .form-floating label {
  position: absolute;
  top: 0;
  left: 0;
  padding: 18px 12px;
  font-size: 16px;
  color: #6c757d;
  pointer-events: none;
  transition: all 0.2s ease;
}

.modal .form-floating input:focus ~ label,
.modal .form-floating input:not(:placeholder-shown) ~ label {
  transform: scale(0.85) translateY(-12px);
  padding: 8px 12px;
}

.modal .form-floating input::placeholder {
  color: transparent;
}

/* Кнопка отправки */
.modal-body .btn,
.modal-body .btn-primary,
.modal-body button[type="submit"] {
  display: inline-block;
  width: 100%;
  background-color: #ffe100;
  border: 1px solid #ffe100;
  color: #212529;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 0.375rem;
  box-sizing: border-box;
  margin: 0;
}

.modal-body .btn:hover,
.modal-body .btn-primary:hover,
.modal-body button[type="submit"]:hover {
  background-color: #e6ca00;
  border-color: #e6ca00;
  color: #212529;
}