.rent-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 35, 64, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.rent-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.rent-modal {
  background: #ffffff;
  max-width: 480px;
  width: 100%;
  padding: 46px 36px 36px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  overflow: hidden; /* обрезает полоску по скруглённым углам */
  transform: translateY(20px);
  transition: transform 0.4s ease;
  box-shadow: 0 20px 60px rgba(12, 35, 64, 0.35);
  font-family: 'Segoe UI', Arial, sans-serif;
}

.rent-modal-overlay.active .rent-modal {
  transform: translateY(0);
}

/* Верхняя полоска-акцент, как градиент в шапке сайта */
.rent-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, #1b4f8a, #2e86c1, #f5a623);
}

.rent-modal__badge {
  display: inline-block;
  background: #eaf3fb;
  color: #1b4f8a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.rent-modal__title {
  font-size: 24px;
  font-weight: 700;
  color: #12395f;
  line-height: 1.3;
  margin: 0 0 12px;
}

.rent-modal__text {
  font-size: 15px;
  line-height: 1.6;
  color: #5a6b7d;
  margin: 0 0 24px;
}

.rent-modal__btn {
  display: inline-block;
  background: #f5a623;
  color: #12395f;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 10px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.rent-modal__btn:hover {
  background: #ffb844;
  transform: translateY(-1px);
}

.rent-modal__email {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  color: #2e86c1;
}

.rent-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  background: #f2f5f8;
  border: none;
  border-radius: 50%;
  color: #5a6b7d;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rent-modal__close:hover {
  background: #1b4f8a;
  color: #ffffff;
}

@media (max-width: 480px) {
  .rent-modal {
    padding: 36px 20px 28px;
  }
  .rent-modal__title {
    font-size: 20px;
  }
}

.rent-modal__topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #1b4f8a, #2e86c1, #f5a623);
}