/* General Styles */
body {
  font-family: 'Open Sans', sans-serif;
  margin: 0; /* Removes all default margins from the body */
  padding: 0; /* Removes all default padding from the body */
  box-sizing: border-box;
}

header {
  margin: 0; /* Ensure no margin for the header */
  padding: 0; /* Ensure no padding for the header */
}

/* Sticky Header */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 2px solid #76BC21;
  padding: 10px 0;
  margin: 0; /* Removes any potential margin */
}

.main-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.main-menu .logo img {
  height: 90px;
}

.menu-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-links li {
  margin: 0 20px;
}

.menu-links a {
  text-decoration: none;
  color: #202945;
  font-weight: 700;
  font-size: 1.2rem;
}

.menu-links a:hover {
  color: #76BC21;
}

.quote-icon {
  display: flex;
  align-items: center;
  position: relative;
}

.quote-icon img {
  height: 40px;
  margin-right: 5px;
}

#cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #76BC21;
  color: #fff;
  font-size: 0.9rem;
  padding: 3px 8px;
  border-radius: 50%;
}

/* Hero Section */
#hero {
  position: relative;
  background: url('../img/Hero-image.jpg') center/cover no-repeat;
  height: 60vh; /* Reduced height from full viewport to 60% of viewport */
  text-align: center;
  color: white;
  margin: 0;
  padding: 0;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 20px;
}

.hero-content h1 {
  font-size: 2.5rem; /* Slightly reduced heading size */
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.btn-primary {
  background-color: #76BC21;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #5A951A;
}
/* Product Header Section */
#product-header {
  text-align: center;
  padding: 50px 20px;
  background-color: #f7f7f7;
}

#product-header h1 {
  font-size: 2.5rem;
  color: #202945;
  margin-bottom: 15px;
}

#product-header p {
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 20px;
}

#product-header .btn-primary {
  padding: 10px 20px;
  background-color: #76BC21;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}

#product-header .btn-primary:hover {
  background-color: #5A951A;
}


/* About Section */
#about {
  padding: 50px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff; /* White background for About Us */
}

.about-container {
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  max-width: 50%;
  padding-right: 20px;
}

.about-text h2 {
  font-size: 2rem;
  color: #202945;
  margin-bottom: 15px;
}

.about-text p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 20px;
}

.about-image {
  flex: 1;
  max-width: 50%;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
}

/* Buttons (Consistent Design) */
.btn-primary {
  background-color: #76BC21;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1rem;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #5A951A;
}
/* Modal Pop-Up */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 600px;
  text-align: left;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 90%;
  max-height: 80vh; /* Limit the modal height to 80% of the viewport */
  overflow: hidden; /* Prevent the entire modal from overflowing */
  display: flex;
  flex-direction: column; /* Flexible layout for header, content, and footer */
}

@media (max-width: 600px) {
  .modal-content {
    padding: 15px;
  }
}

.modal-content h2 {
  color: #202945;
  margin-bottom: 15px;
}

.modal-content ul {
  list-style-type: none;
  padding: 0;
}

.modal-content ul li {
  font-size: 1rem;
  color: #444;
  margin-bottom: 10px;
}

/* Scrollable Content for Quote Items */
#quote-items {
  flex-grow: 1; /* Take up remaining space in the modal */
  overflow-y: auto; /* Enable vertical scrolling */
  padding-right: 10px; /* Add space for scrollbar */
  max-height: calc(80vh - 200px); /* Adjust height dynamically based on modal size */
}

.close-modal {
  font-size: 1.5rem;
  color: #444;
  float: right;
  cursor: pointer;
}

/* Products Overview Section */
#products-overview {
  padding: 50px 20px;
  background-color: #e8f5e9; /* Light green background for Products */
  text-align: center;
}

#products-overview h2 {
  font-size: 2rem;
  color: #202945;
  margin-bottom: 15px;
}

#products-overview .section-description {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.product-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.product-card {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  width: 300px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product-card img {
  height: 80px;
  margin-bottom: 15px;
}

.product-card h3 {
  font-size: 1.5rem;
  color: #202945;
  margin-bottom: 10px;
}

.product-card .btn-primary {
  margin-top: 10px;
}

.product-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}
/* Product Categories Section */
#product-categories {
  text-align: center;
  padding: 50px 20px;
  background-color: #e8f5e9;
}

#product-categories h2 {
  font-size: 2rem;
  color: #202945;
  margin-bottom: 30px;
}

.category-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.category-card {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  width: 300px;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.category-card img {
  height: 80px;
  margin-bottom: 15px;
}

.category-card h3 {
  font-size: 1.5rem;
  color: #202945;
}

.category-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}
/* Highlight selected product category card */
.category-card.selected {
  background-color: #76BC21; /* Brand green */
  color: white;
  border-color: #5A951A;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.category-card.selected:hover {
  background-color: #5A951A;
}

.category-card.selected:hover {
  background-color: #5A951A; /* Slightly darker green on hover */
}
/* ================================
   Product Configurations
================================ */

/* Panel Group Styles */
.panel-group {
  margin-bottom: 20px;
  border: none; /* Remove any outer border for groups */
  border-radius: 0; /* Ensure no rounding for single panels */
  overflow: visible !important; /* Allow content to flow naturally */
}

/* Panel Styles */
.panel {
  overflow: visible !important; /* Allow content to overflow */
  display: block; /* Ensure proper rendering */ 
  margin-bottom: 0;
  border: none; /* Remove borders around single panels */
  background-color: transparent; /* Ensure no background for panels */
}

/* Panel Header */
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background-color: #f9f9f9; /* Uniform background for headers */
  border: none; /* No borders in the header */
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.panel-header:hover {
  background-color: #f2f2f2; /* Subtle hover effect for better UX */
}

.panel-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: bold;
  color: #202945;
}

.panel-header .toggle {
  background-color: #76BC21;
  color: white;
  border: none;
  padding: 5px 10px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.panel-header .toggle:hover {
  background-color: #5a951a; /* Slightly darker green on hover */
}

/* Default state: collapsed */
.panel-content {
  max-height: 0; /* Fully collapsed by default */
  overflow: hidden; /* Hide overflowing content */
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Smooth expand/collapse */
  visibility: hidden; /* Hidden by default */
  opacity: 0; /* Fully transparent by default */
  display: block; /* Ensure it's always block to prevent display-related issues */
}

/* Expanded state: visible */
.panel-content.visible {
  max-height: 1000px; /* Large enough to fit the content */
  overflow: visible; /* Ensure content is visible */
  visibility: visible; /* Make content visible */
  opacity: 1; /* Fully opaque */
  display: block !important; /* Ensure it's block even if inherited styles set it to none */
}

/* Individual Items */
.individual-item {
  display: flex; /* Ensure flex layout */
  flex-wrap: wrap; /* Allow wrapping for smaller screens */
  gap: 10px; /* Add spacing between items */
  padding: 10px 0; /* Add padding for better readability */
  border-bottom: 1px solid #ddd; /* Add a separator between items */
}

.individual-item:last-child {
  border-bottom: none; /* Remove the bottom border for the last item */
}

.individual-item p {
  margin: 0;
  font-size: 1rem;
  color: #202945; /* Text color consistent with theme */
  flex: 2; /* Allow more space for text */
  word-wrap: break-word; /* Ensure long text wraps properly */
}

.individual-item input[type='number'] {
  width: 60px; /* Fixed width for consistency */
  margin: 0 10px; /* Add spacing between the input and other elements */
  padding: 5px; /* Padding for a larger clickable area */
  font-size: 1rem; /* Maintain consistency with other text */
  border: 1px solid #ddd; /* Default border */
  border-radius: 5px; /* Rounded corners for better aesthetics */
  outline: none; /* Remove default browser outline */
  transition: border-color 0.3s ease; /* Smooth transition for focus */
}

.individual-item input[type='number']:focus {
  border-color: #76BC21; /* Highlight with theme color on focus */
}

.individual-item .btn-primary {
  flex: 0 0 auto; /* Prevent button from stretching */
  padding: 5px 15px; /* Add padding for better clickability */
  font-size: 0.9rem; /* Slightly smaller font for buttons */
  background-color: #76BC21; /* Theme primary color */
  color: white; /* White text for contrast */
  border: none; /* Remove default browser border */
  border-radius: 5px; /* Rounded corners */
  cursor: pointer; /* Pointer cursor for interactivity */
  transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth hover effect */
}

.individual-item .btn-primary:hover {
  background-color: #5a951a; /* Darker shade of green for hover */
  transform: scale(1.05); /* Slight zoom for interactivity */
}

/* Empty State for Panel Content */
.panel-content.empty-state {
  text-align: center;
  font-size: 1rem;
  color: #888; /* Neutral gray color for empty state */
  padding: 10px;
  display: block !important; /* Ensure it is displayed */
}

/* Responsive Styles */
@media (max-width: 768px) {
  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-header h3 {
    margin-bottom: 5px;
  }

  .individual-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .individual-item p {
    flex: 1; /* Ensure proper wrapping for text */
    margin-bottom: 5px;
  }

  .individual-item input[type='number'] {
    width: 100%; /* Expand to full width */
    margin: 10px 0;
  }

  .add-to-quote {
    align-self: flex-end; /* Align button to the right */
  }
}

/* Contact Section */
#contact {
  padding: 50px 20px;
  background-color: #f7f7f7;
}

.contact-header {
  text-align: center;
  margin-bottom: 30px;
}

.contact-header h2 {
  font-size: 2rem;
  color: #202945;
  margin-bottom: 10px;
}

.contact-description {
  font-size: 1rem;
  color: #444;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Ensures proper alignment */
  flex-wrap: wrap; /* Ensures responsiveness */
  max-width: 1200px;
  margin: 0 auto; /* Centers the container */
  gap: 20px; /* Adds spacing between form and image */
}

.contact-form-section {
  flex: 1;
  max-width: 50%; /* Restricts to half width on larger screens */
  padding-right: 20px;
}

.contact-form {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-image-section {
  flex: 1;
  max-width: 50%; /* Restricts to half width on larger screens */
}

.contact-image-section img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column; /* Stacks form and image vertically */
    align-items: center; /* Centers the content */
  }

  .contact-form-section,
  .contact-image-section {
    max-width: 100%; /* Full width for both sections */
  }

  .contact-image-section {
    margin-top: 20px; /* Adds spacing between the form and the image */
  }
}
/* Pop-up Message Styles */
#popup-message {
  display: none;
  background: #76BC21;
  color: white;
  padding: 20px;
  border-radius: 5px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1000;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


/* Form Input Styling */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  color: #202945;
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #76BC21;
}

textarea {
  resize: none;
}

.btn-primary {
  background-color: #76BC21;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #5A951A;
}


/* Footer */
#footer {
  background-color: #202945;
  color: white;
  padding: 40px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-logo {
  flex: 1;
  max-width: 30%;
  text-align: center;
}

.logo-wrapper {
  background-color: white; /* Add a white background behind the logo */
  padding: 10px;
  border-radius: 10px; /* Rounded edges for aesthetics */
  display: inline-block; /* Shrinks the wrapper to fit the logo */
}

.footer-logo img {
  height: 80px; /* Increased size for better visibility */
  width: auto;
}

.footer-links,
.footer-contact {
  flex: 1;
  max-width: 30%;
}

.footer-links h3,
.footer-contact h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #76BC21;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
}

.footer-links ul li a:hover {
  color: #76BC21;
}

.footer-contact p {
  margin: 5px 0;
  font-size: 1rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid #444;
  font-size: 0.9rem;
  color: #aaa;
}

/* Configurations Section */
#product-configurations {
  padding: 50px 20px;
}

#product-configurations h2 {
  text-align: center;
  font-size: 2rem;
  color: #202945;
  margin-bottom: 20px;
}

.panel {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  transition: box-shadow 0.3s ease;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.panel-header p {
  font-size: 1.2rem;
  color: #202945;
  margin: 0;
}

.panel-header .toggle {
  cursor: pointer;
  background-color: #76BC21;
  color: white;
  border: none;
  padding: 5px 10px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
}

.panel-content {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
  display: none; /* Hidden by default */
}

.panel-content p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 10px;
}

.panel-content input[type='number'] {
  display: inline-block;
  vertical-align: middle;
  width: 60px;
  padding: 5px;
  font-size: 1rem;
  margin-right: 10px;
}

.panel-content .btn-primary {
  margin-top: 10px;
}

/* Quote Modal Enhancements */
#quote-modal .modal-content {
  max-width: 500px;
  margin: auto;
  padding: 20px 30px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  position: relative;
  text-align: left;
  font-family: 'Open Sans', sans-serif;
}

#quote-modal h2 {
  font-size: 1.8rem;
  color: #202945;
  margin-bottom: 20px;
  text-align: center;
}

#quote-modal h3 {
  font-size: 1.4rem;
  color: #202945;
  margin-bottom: 15px;
}

.quote-item {
  margin-bottom: 15px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 15px;
}

.quote-item:last-child {
  border-bottom: none;
}

.quote-item p {
  font-size: 1rem;
  color: #444;
  margin: 5px 0;
}

.quote-item .remove-quote-item {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.quote-item .remove-quote-item:hover {
  background-color: #d32f2f;
}

.quote-item input[type="number"] {
  width: 60px;
  padding: 5px;
  font-size: 1rem;
  margin-right: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#quote-form .form-group {
  margin-bottom: 15px;
}

#quote-form .form-group label {
  display: block;
  font-size: 0.9rem;
  color: #202945;
  margin-bottom: 5px;
}

#quote-form .form-group input {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
}

#quote-form .form-group input:focus {
  border-color: #76BC21;
  outline: none;
}

#quote-form .btn-primary {
  width: 100%;
  padding: 12px 20px;
  font-size: 1.1rem;
  background-color: #76BC21;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#quote-form .btn-primary:hover {
  background-color: #5A951A;
}

.close-quote-modal {
  font-size: 1.5rem;
  color: #444;
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-quote-modal:hover {
  color: #202945;
}

/* Add spacing between user info section and quote items */
#quote-items {
  margin-bottom: 20px;
}
/* Bubble Animation */
.bubble {
  position: fixed;
  background-color: #76BC21;
  color: white;
  border-radius: 50%;
  text-align: center;
  z-index: 1000;
  font-size: 0.9rem;
  line-height: 30px;
  width: 30px;
  height: 30px;
  opacity: 1;
  transition: all 0.7s ease;
}
/* Configuration Title Styling */
.clickable-title {
  font-weight: bold;
  cursor: pointer;
  color: #202945; /* Matches the theme color */
  transition: color 0.3s ease;
}

.clickable-title:hover {
  color: #76BC21; /* Hover color for interactivity */
}
.panel-content.empty-state {
  text-align: center;
  font-size: 1rem;
  color: #888;
  padding: 15px;
}

@media (max-width: 768px) {
  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-header p {
    margin-bottom: 5px;
  }

  .panel-content input[type='number'] {
    width: 100%;
  }
}
.error-message {
  color: #f44336;
  font-size: 0.9rem;
  margin-top: 5px;
}
.bubble {
  position: fixed;
  background-color: #76BC21;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 0.9rem;
  line-height: 30px;
  width: 30px;
  height: 30px;
  opacity: 1;
  transition: all 0.7s ease;
}

@keyframes bubble-animation {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.5);
    opacity: 0;
  }
}
