/* Общие стили модальных окон */
.rf-modal {
position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Убедимся, что окно сверху */
  overflow-y: auto; /* Вертикальная прокрутка при необходимости */
}

.rf-modal-content {
color: #252525;
background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  position: relative;
  z-index: 10000; /* Выше, чем оверлей */
  max-height: 90vh; /* Ограничиваем высоту (90% высоты экрана) */
  overflow-y: auto; /* Прокрутка внутри окна */
}

.rf-modal-content a {
  color: #a895a8;
}
.rf-modal-content a:hover {
  color: #a895a8;
}

.rf-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #555;
}

.rf-modal-close:hover { color: #000; }

/* Стили полей */
.rf-field {
  margin-bottom: 1rem;
}

.rf-field label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.rf-req {
  color: #d32f2f;
  font-weight: bold;
}

.rf-checkbox {
  margin: 1rem 0;
}

/* Кнопка отправки */
.rf-button-send {
  padding: 0.7rem 1.4rem;
  background-color: #a895a8;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.rf-button-send:hover {
  background-color: #837283;
}

.rf-modal-content a {
  color: #a895a8!important;
}
.rf-modal-content a:hover {
  color: #837283!important;
}