.services-calculate { font-family: 'Segoe UI', sans-serif; background: #f4f6f8; padding: 20px; max-width: 900px; margin: auto; }
  h1 { text-align: center; color: #1f8e3d; margin-bottom: 30px; }

  .card { background: white; padding: 20px; border-radius: 16px; box-shadow: 0 8px 20px rgba(0,0,0,0.05); margin-bottom: 20px; }
  
  label { font-weight: bold; margin-top: 15px; display: block; }

  .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
  .chip { padding: 8px 14px; border-radius: 20px; background: #e0e0e0; cursor: pointer; transition: 0.3s; }
  .chip.active { background: #1f8e3d; color: white; }

  .slider-container { display: flex; align-items: center; margin-top: 15px; gap: 10px; }
  .slider-container input[type=range] { flex: 1; }
  .slider-container input[type=text] { width: 120px; padding: 5px; border: 1px solid #ccc; border-radius: 8px; }
  .slider-container input[type=email] { width: 120px; padding: 5px; border: 1px solid #ccc; border-radius: 8px; }

  select, input[type="text"], input[type="email"], input[type="tel"] {
    width: 100%;height: auto; padding: 10px; margin-top: 8px; margin-bottom: 10px; border-radius: 8px; border: 1px solid #ccc;
  }


  .result { text-align: center; font-size: 26px; color: #1f8e3d; margin-top: 25px; transition: all 0.5s ease; }

  .warning { color: #d8000c; background: #ffd2d2; padding: 12px; border-radius: 10px; margin-top: 15px; text-align: center; display: none; }
  
  .slide-out { transform: translateX(-150%); opacity: 0; transition: all 0.5s ease; }
  .slide-in { transform: translateX(0); opacity: 1; transition: all 0.5s ease; }
 

.close-btn, .sending-btn {
  padding: 10px 20px;
  border: none;
  color: white;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.close-btn {
  background: #1f8e3d;
}
.close-btn:hover {
  background: #27a347;
}

.sending-btn {
 background: #6c757d;
 cursor: not-allowed;
}

/* Popup Overlay */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 99999 !important;
}

/* Popup Box */
.popup-box {
  background: white;
  padding: 30px;
  border-radius: 12px;
  min-width: 250px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transform: scale(0.8);
  transition: 0.3s ease;
}

/* Active State */
.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-overlay.active .popup-box {
  transform: scale(1);
}
