.reservoir-modal {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(81, 158, 255, 0.25);
  position: relative;
}

.reservoir-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  font-size: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  line-height: 1;
  padding: 0;
}

.reservoir-modal__close:hover {
  background: #519eff;
  color: white;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 6px 20px rgba(81, 158, 255, 0.4);
}

.reservoir-modal__close:focus {
  outline: none;
}

.reservoir-modal__header {
  background: linear-gradient(135deg, #519eff 0%, #3d7fd9 100%);
  padding: 35px 30px 25px;
  text-align: center;
  position: relative;
}

.reservoir-modal__icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  backdrop-filter: blur(10px);
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.reservoir-modal__icon i {
  font-size: 32px;
  color: white;
}

.reservoir-modal__title {
  color: white;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
}

.reservoir-modal__image {
  position: relative;
  height: 350px;
  overflow: hidden;
}

.reservoir-modal__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reservoir-modal__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.reservoir-modal__content {
  padding: 30px 40px;
  background: white;
}

.reservoir-modal__subtitle {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
  text-align: center;
  line-height: 1.4;
}

.reservoir-modal__footer {
  padding: 0 40px 40px;
  background: white;
  text-align: center;
}

.reservoir-modal__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #519eff 0%, #3d7fd9 100%);
  color: white;
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px rgba(81, 158, 255, 0.3);
  border: none;
  position: relative;
  overflow: hidden;
}

.reservoir-modal__btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.reservoir-modal__btn:hover::before {
  left: 100%;
}

.reservoir-modal__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(81, 158, 255, 0.4);
  color: white;
  text-decoration: none;
}

.reservoir-modal__btn i {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.reservoir-modal__btn:hover i {
  transform: translateX(5px);
}

/* Modal backdrop customization */
.modal-backdrop.show {
  opacity: 0.7;
}

/* Animation */
.modal.fade .reservoir-modal {
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show .reservoir-modal {
  transform: scale(1);
}

/* Responsive */
@media (max-width: 768px) {
  .reservoir-modal__header {
    padding: 30px 20px 20px;
  }
  
  .reservoir-modal__icon {
    width: 60px;
    height: 60px;
  }
  
  .reservoir-modal__icon i {
    font-size: 28px;
  }
  
  .reservoir-modal__title {
    font-size: 20px;
  }
  
  .reservoir-modal__image {
    height: 250px;
  }
  
  .reservoir-modal__content {
    padding: 25px 20px;
  }
  
  .reservoir-modal__subtitle {
    font-size: 18px;
  }
  
  .reservoir-modal__footer {
    padding: 0 20px 30px;
  }
  
  .reservoir-modal__btn {
    padding: 14px 32px;
    font-size: 15px;
  }
}