body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f4f6f8;
  color: #222;
}

* {
  box-sizing: border-box;
}

.header {
  background: black;
  padding: 18px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 6px white;
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 20px;
}

.logo {
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
  color: white;
}

.modern {
  flex: 1;
  display: flex;
  justify-content: center;
}

.modern input {
  width: 55vw;
  max-width: 450px;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 50px;
  font-size: 14px;
  outline: none;
}

.page-title {
  padding: 16px;
  background: #fff;
  border-bottom: 1px solid #e2e2e2;
}

.page-title h2 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
}

.filter-dropdown {
  margin: 11px;
  position: relative;
  display: inline-block;
}

.filter-btn {
  padding: 8px 14px;
  background: black;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  color: white;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: #fff;
  top: 45px;
  left: 0;
  min-width: 180px;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  z-index: 1000;
}

.dropdown-item {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 15px;
  border-bottom: 1px solid #f3f3f3;
}

.dropdown-item:hover {
  background: #f5f5f5;
}

.dropdown-menu.show {
  display: block;
}

.service-list {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

.service-img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #f8f8f8;
  padding: 10px;
}

.service-info {
  padding: 12px;
  flex: 1;
}

.service-info h3 {
  font-size: 17px;
  margin: 0 0 6px;
  font-weight: 600;
}

.service-info p {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.price-box .price {
  font-size: 17px;
  font-weight: bold;
  color: #008a1e;
}

.book-btn {
  margin-top: 10px;
  padding: 10px 14px;
  background: black;
  color: white;
  border: none;
  width: 100%;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .2);
  transition: transform 0.3s ease;
}

.book-btn:hover {
  background: #333;
  box-shadow: 5px 5px 2px 0 rgba(0, 0, 0, .2);
  transform: scale(1.03);
}

.noresult {
  display: none;
  text-align: center;
  font-size: 33px;
  margin-top: 20px;
  font-weight: bold;
  height: 46vh;
}

/* Popup Styles */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.popup-content {
  background: #fff;
  width: 90%;
  max-width: 500px;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.popup-content h2 {
  margin-top: 0;
  color: #333;
  margin-bottom: 20px;
}

.popup-content label {
  display: block;
  margin: 10px 0 5px;
  font-weight: 500;
  color: #555;
}

.popup-content input,
.popup-content textarea,
.popup-content select {
  width: 100%;
  margin: 0 0 15px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.popup-content input:focus,
.popup-content textarea:focus,
.popup-content select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.submit-btn {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border: none;
  border-radius: 8px;
  background: #28a745;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: #218838;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  background: none;
  border: none;
  padding: 0;
}

.close-btn:hover {
  color: #000;
}

/* Confirmation Popup */
.confirmation-icon {
  font-size: 60px;
  color: #28a745;
  text-align: center;
  margin: 20px 0;
}

.confirmation-popup p {
  text-align: center;
  margin: 10px 0;
  color: #555;
}

.ok-btn {
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  border: none;
  border-radius: 8px;
  background: #007bff;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

.ok-btn:hover {
  background: #0056b3;
}

/* REVIEW SECTION */
.review-section {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
}

.btn {
  background: rgb(255, 255, 24);
  color: black;
  border: none;
  padding: 12px 24px;
  margin: 10px 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
}

.btn:hover {
  background: rgb(252, 252, 109);
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
}

.hidden {
  display: none;
}

.form-container {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.form-container input,
.form-container textarea {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.star-rating {
  display: flex;
  font-size: 28px;
  margin: 10px 0;
}

.star {
  cursor: pointer;
  color: #ccc;
  margin-right: 5px;
}

.star.selected,
.star:hover {
  color: gold;
}

.review-card {
  background: #fff;
  padding: 20px;
  margin-top: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.review-info {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.review-name {
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

.review-address {
  font-size: 14px;
  color: #666;
}

.review-date {
  font-size: 13px;
  color: #999;
}

.review-stars {
  color: gold;
  margin-bottom: 10px;
  font-size: 20px;
}

.review-text {
  line-height: 1.6;
  color: #333;
}

/* Footer */
.footer-container {
  width: 100%;
  background-color: black;
  color: white;
  padding: 30px 20px;
  text-align: center;
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffd700;
}

.copyright {
  margin: 5px 0;
  color: #ccc;
}

.contact-info {
  margin-top: 15px;
  color: #aaa;
  font-size: 14px;
}

/* Service Detail Popup */
.uc-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.uc-popup.active {
  display: flex;
}

.uc-popup-box {
  width: 80%;
  max-width: 750px;
  max-height: 80vh;
  background: #fff;
  border-radius: 12px;
  overflow-y: auto;
  padding: 25px;
  position: relative;
}

.uc-popup-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 32px;
  cursor: pointer;
  color: #333;
}

.uc-popup-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.uc-popup-title {
  font-size: 24px;
  margin: 15px 0 6px;
  color: #333;
}

.uc-popup-desc {
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

.uc-popup-price {
  font-size: 22px;
  font-weight: 600;
  margin: 15px 0;
  color: #02764c;
}

.uc-popup-btn {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  background: #028a4b;
  color: white;
  cursor: pointer;
  transition: 0.25s;
  margin-top: 20px;
}

.uc-popup-btn:hover {
  background: #01743f;
}

.uc-popup-box h3 {
  margin-top: 20px;
  color: #333;
}

.uc-popup-box ul {
  padding-left: 20px;
  margin: 10px 0;
}

.uc-popup-box li {
  margin: 5px 0;
  line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .service-card {
    flex-direction: row;
    padding: 8px;
  }

  .service-img {
    width: 40%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
  }

  .service-info {
    width: 60%;
    padding: 0 10px;
  }

  .service-info h3 {
    font-size: 13px;
  }

  .uc-popup-box {
    width: 95%;
    padding: 15px;
  }

  .uc-popup-img {
    height: 200px;
  }

  .popup-content {
    padding: 20px;
  }
}

/* Loading Spinner */
.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* No results message styling */
.noresult {
  display: none;
  text-align: center;
  font-size: 18px;
  color: #ff4444;
  margin: 40px 20px;
  padding: 20px;
  background-color: #fff5f5;
  border-radius: 10px;
  border: 1px solid #ffcccc;
  font-weight: bold;
}

/* Ensure dropdown works properly */
.dropdown-menu.show {
  display: block;
}