/* Header */
.header-layout1 {
  width: 100%;
  background: rgba(255, 255, 255, 0.6); /* transparent white */
  backdrop-filter: blur(10px); /* adds blur effect */
  -webkit-backdrop-filter: blur(10px);   /* Safari support */
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  font-family: Arial, sans-serif;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001; /* Increased z-index to be above other content but below popup */
  height: 90px;
}


/* Container fix */
.header-container {
  max-width: 100%;  
  padding: 0 30px;  
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo fix */
.header-logo {
  margin-left: 0; 
  padding: 0;    
}

.header-logo img {
  max-height: 105px; 
  display: block;
  margin: 0;       
  padding: 0;      
}


body {
  margin: 0;
  padding-top: 100px; 
  padding-bottom: 70px; 
  font-family: 'Inter', sans-serif; 
}

/* Logo */

/* Navigation */
.main-menu ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 55px;
  margin: 0;
  padding: 0;
}

.main-menu ul li a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: #000;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

.main-menu ul li a:hover {
  color: #2a7d2e;
}

.main-menu ul li a.active {
  color: #2a7d2e; /* highlight */
}

.main-menu ul li a.active::after {
  width: 100%; /* underline stays */
}

/* Highlight Effect */
.main-menu ul li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 3px;
  background: #2a7d2e;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.main-menu ul li a:hover::after {
  width: 100%;
}

/* CTA Button */
.th-btn.style4 {
  display: inline-block;
  background: #f89c1c;
  color: #fff;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 8px 20px;   /* reduced size */
  
  margin-left: 40px;
}

.th-btn.style4:hover {
  background: #e58300;
}

.th-btn.style4 i {
  margin-left: 8px;
}

/* Hamburger */
.th-menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  color: #1c4e28;
  margin-left: 15px;
}

/* Responsive */
@media (max-width: 991px) {
  .header-center {
    display: none;
  }

  .header-button {
    display: none;
  }

  .th-menu-toggle {
    display: block; /* Show hamburger icon on mobile */
  }

  .main-menu {
    position: absolute;
    top: 90px; /* Adjust to be below the header height */
    left: 0;
    width: 100%;
    background: #fff; /* White background for the menu */
    padding: 20px;
    border-top: 1px solid #eee;
    display: none; /* Initially hidden on mobile */
    z-index: 999; /* Ensure it's above other content but below the popup */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Add a subtle shadow */
  }

  .main-menu.show {
    display: block; /* Show when 'show' class is added */
    background-color: rgba(255, 255, 255, 0.95); /* Added for debugging - make sure it's visible */
  }

  .main-menu ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .main-menu ul li a {
    font-size: 14px;
  }

  .main-menu ul li.cta-mobile {
    margin-top: 15px;
  }

  .main-menu ul li.cta-mobile a {
    display: inline-block;
    background: #f89c1c;
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
  }
}

/* Floating Buttons */
.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.float-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.call-btn {
  background-color: #25d366;
}

.whatsapp-btn {
  background-color: #128c7e;
}

.float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

/* ===== POPUP ===== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none; /* hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
}


.popup-overlay.active {
  display: flex; /* shows popup */
  /* Prevent the body from scrolling when the popup is active */
  overflow: hidden; 
}


.popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 500px;
  max-width: 95%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  position: relative;
  animation: popupFade 0.3s ease-in-out;
  box-sizing: border-box;
  max-height: 90vh; /* Set a maximum height relative to the viewport height */
  overflow-y: auto; /* Enable vertical scrolling for the content itself */
}

@keyframes popupFade {
  from {transform: scale(0.9); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}
.popup-close {
  position: absolute;
  top: 15px;
  right: 18px;
  font-size: 28px; /* Increased size for visibility */
  cursor: pointer;
  color: #333;
}

.popup-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #333;
}

.popup-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 0; /* Removed extra top margin */
}

.form-group {
  margin-bottom: 5px; /* Spacing between form groups */
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
  font-size: 15px;
}

.popup-form input[type="text"],
.popup-form input[type="email"],
.popup-form input[type="tel"],
.popup-form input[type="date"],
.popup-form input[type="time"],
.popup-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box; /* Ensures padding is included in width */
}

.popup-form button {
  background: #007bff; /* Changed button color to blue as in the image */
  color: #fff;
  border: none;
  padding: 12px 20px; /* Adjusted padding */
  border-radius: 6px; /* Adjusted border-radius */
  font-size: 16px; /* Adjusted font size */
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 20px;
}

.popup-form button:hover {
  background: #0056b3; /* Darker blue on hover */
}

.form-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

.form-row .form-group {
  flex: 1;
  min-width: 150px; /* Minimum width for date/time fields */
}

.time-group {
  position: relative;
}

.time-hint {
  position: absolute;
  bottom: -20px; /* Position below the input */
  left: 0;
  font-size: 12px;
  color: #777;
}

.error-message {
  color: #dc3545; /* Red for error messages */
  font-size: 12px;
  margin-top: 5px;
  display: none; /* Hidden by default */
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 6px;
  text-align: center;
  margin-top: 20px;
  display: none; /* Hidden by default */
}

/* Responsive adjustments for popup */
@media (max-width: 576px) {
  .popup-content {
    padding: 20px;
  }

  .popup-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .popup-close {
    font-size: 24px;
  }

  .form-row {
    flex-direction: column;
    gap: 10px;
  }

  .time-hint {
    position: static; /* Remove absolute positioning on small screens */
    margin-top: 5px;
    display: block;
  }
}
/* Hide mobile CTA by default */
.main-menu ul li.cta-mobile {
  display: none;
}

/* Show it only when in mobile view */
@media (max-width: 991px) {
  .main-menu ul li.cta-mobile {
    display: block;
    margin-top: 15px;
  }

  .main-menu ul li.cta-mobile button {
    width: 100%;
    text-align: center;
  }
}

/* Social Media Icons (Desktop) */
.social-icons {
  display: flex;
  gap: 15px;
  margin-left: 20px;
}

.social-icons a {
   color: #fff;;
  font-size: 18px;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #333;
}

/* Mobile menu social icons (hidden on desktop) */
.social-icons-mobile {
  display: none;
}

/* Show only desktop icons */
@media (max-width: 991px) {
  .social-icons {
    display: none; /* hide desktop icons on mobile */
  }

  .social-icons-mobile {
    display: flex;
    gap: 20px;
    margin-top: 20px;
  }

  .social-icons-mobile a {
    font-size: 20px;
    color: #fff;
    transition: color 0.3s;
  }

  .social-icons-mobile a:hover {
    color: #333;
  }
}