/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  width: 40%;
  height: 30%;
  background: linear-gradient(135deg, #f9f9f9, #f5f5f5);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  transform: scale(0.8);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(to right, #1e5128, #f8c05a);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #1e5128, #2d7a3d);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(30, 81, 40, 0.3);
}

.modal-close:hover {
  transform: rotate(90deg);
  background: linear-gradient(135deg, #2d7a3d, #1e5128);
}

.modal-icon {
  font-size: 80px;
  color: #1e5128;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

.modal-title {
  font-size: 28px;
  color: #1e5128;
  margin-bottom: 15px;
  font-weight: 700;
}

.modal-message {
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
  max-width: 100%;
  line-height: 1.6;
}

.modal-button {
  background: linear-gradient(135deg, #1e5128, #2d7a3d);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 81, 40, 0.3);
}

.modal-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(30, 81, 40, 0.4);
  background: linear-gradient(135deg, #2d7a3d, #1e5128);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Demo styles - can be removed */
.demo-button {
  background: linear-gradient(135deg, #1e5128, #2d7a3d);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin: 50px auto;
  display: block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 81, 40, 0.3);
}

.demo-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(30, 81, 40, 0.4);
}

@media (max-width: 768px) {
  .modal-container {
    width: 60%;
    height: 30%;
  }
  .modal-title {
    font-size: 20px;
  }

  .modal-message {
    font-size: 14px;
  }

  .modal-button {
    font-size: 12px;
  }
}
