* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f7f7f7;
  color: #222;
  overflow-x: hidden;
}

/* HEADER */
.main-header {
  border-radius: 0 0 10px 10px;
  width: 100%;
  background: #ffffff;
  padding: 6px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1000;
}

.header-flex { width: 100%; padding: 0 20px; margin: 0 auto; height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }

.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 78px;
  overflow: visible;
}

.logo a {
  display: inline-flex;
  align-items: center;
  height: 78px;
}

.logo img {
  height: 60px;
  
  width: auto;
  display: block;
  object-fit: contain;
  
  transform-origin: left center;
}

.navbar {
  display: flex;
  justify-content: center;
}

.menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 42px;
}

.menu li {
  display: inline-block;
}

.menu a {
  text-decoration: none;
  color: #1f1f1f;
  font-size: 18px;
  font-weight: 600;
  transition: 0.3s ease;
}

.menu a:hover,
.menu a.active {
  color: red;
}

/* --- SUBMENU DROPDOWN STYLES --- */
.has-dropdown {
  position: relative;
}
.has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 6px;
}
.has-dropdown > a i {
  font-size: 12px;
  transition: 0.3s;
}
.has-dropdown:hover > a i {
  transform: rotate(180deg);
}
.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px); /* Centers the wide menu */
  width: max-content; /* Adapts to horizontal width */
  background: #fff;
  list-style: none;
  padding: 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  
  /* Horizontal Grid Layout (4 columns) */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 25px;
}
.has-dropdown:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.submenu li {
  width: 100%;
}
.submenu a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: #444;
  font-weight: 500;
  transition: 0.3s;
  border-radius: 5px;
  white-space: nowrap; /* Keeps items strictly on one line */
}
.submenu a:hover {
  background: #fff3f3;
  color: red;
  padding-left: 18px; /* Subtle horizontal slide effect */
}

.header-btn {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.btn {
  display: inline-block;
  background: red;
  color: #fff;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 18px;
  transition: 0.3s ease;
}

.btn:hover {
  background: #c40000;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #222;
}

/* BANNER */
.detail-banner {
  position: relative;
  width: 100%;
  min-height: 900px;
  background: url("../images/Chemical Gypusm Powder.webp") center center/cover no-repeat;
  display: flex;
  align-items: center;
}

.enquiry-section {
  padding: 60px 20px;
  background: #f5f5f5;
  font-family: Arial, sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.enquiry-wrapper {
  background: #ffffff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.section-heading {
  text-align: center;
  margin-bottom: 30px;
}

.section-heading h2 {
  font-size: 32px;
  color: #111;
  margin-bottom: 10px;
}

.section-heading p {
  font-size: 16px;
  color: #666;
}

.step-card {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  padding: 40px;
  text-align: center;
}

.step-card h3 {
  font-size: 24px;
  margin-bottom: 25px;
}

.main-select-btn {
  background: #111;
  color: #fff;
  border: none;
  height: 55px;
  padding: 0 40px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.option-btn {
  padding: 15px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.option-btn:hover,
.option-btn.active,
.product-item:hover,
.product-item.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.product-list {
  margin-top: 30px;
  text-align: center;
}

.product-list h4 {
  font-size: 20px;
  margin-bottom: 20px;
}

.product-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.product-item {
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.product-details-form {
  margin-top: 30px;
  padding: 30px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
}

.product-details-form h4 {
  font-size: 22px;
  color: #111;
  margin-bottom: 20px;
  text-align: center;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.detail-box {
  display: flex;
  flex-direction: column;
}

.detail-box label {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
}

.detail-box input,
.detail-box select {
  width: 100%;
  height: 52px;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 15px;
  color: #333;
  background: #fff;
  outline: none;
}

.fixed-field input {
  background: #f1f1f1;
  color: #555;
  font-weight: 600;
}

.error-text {
  color: red;
  font-size: 13px;
  margin-top: 6px;
  min-height: 16px;
}

.form-action-wrap {
  margin-top: 30px;
  text-align: center;
}

.preview-btn {
  min-width: 180px;
  height: 52px;
  border: none;
  background: #111111;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
}

.preview-btn:hover {
  background: #000000;
}

.preview-section {
  margin-top: 35px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  padding: 30px;
}

.preview-section h4 {
  font-size: 24px;
  color: #111111;
  text-align: center;
  margin-bottom: 25px;
}

.preview-box {
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 14px;
  padding: 20px;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid #eeeeee;
}

.preview-row:last-child {
  border-bottom: none;
}

.preview-label {
  font-size: 15px;
  color: #666666;
  font-weight: 600;
}

.preview-value {
  font-size: 15px;
  color: #111111;
  text-align: right;
  font-weight: 500;
}

.preview-fixed-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  padding-top: 25px;
  margin-top: 20px;
}

.cancel-btn,
.edit-btn,
.confirm-btn {
  min-width: 150px;
  height: 50px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.cancel-btn {
  background: #ff0000;
  color: #ffffff;
}

.edit-btn {
  background: #c89b3c;
  color: #ffffff;
}

.confirm-btn {
  background: #86b40b;
  color: #ffffff;
}

.cancel-btn:hover {
  background: #ff0000;
}

.edit-btn:hover {
  background: #b88825;
}

.confirm-btn:hover {
  background: #86b40b;
}

.thankyou-section {
  margin-top: 35px;
}

.thankyou-box {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  padding: 50px 20px;
  text-align: center;
}

.thankyou-box h3 {
  font-size: 30px;
  color: #111111;
  margin-bottom: 12px;
}

.thankyou-box p {
  font-size: 18px;
  color: #555555;
}

.hidden {
  display: none;
}

@media (max-width: 991px) {
  .button-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-items {
    grid-template-columns: 1fr;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .enquiry-section {
    padding: 40px 15px;
  }

  .enquiry-wrapper {
    padding: 20px;
  }

  .step-card,
  .product-details-form,
  .preview-section {
    padding: 20px;
  }

  .button-grid {
    grid-template-columns: 1fr;
  }

  .main-select-btn,
  .preview-btn,
  .cancel-btn,
  .edit-btn,
  .confirm-btn {
    width: 100%;
  }

  .preview-row {
    flex-direction: column;
    gap: 8px;
  }

  .preview-value {
    text-align: left;
  }

  .preview-fixed-buttons {
    flex-direction: column;
  }
}
/* FOOTER */
.footer {
  background: #111;
  color: #fff;
  padding-top: 50px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr 1fr 1.5fr;
  gap: 30px;
}
.footer-box p i {
  color: red;
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

.footer-logo {
    width: 200px;
    height: auto;
    max-width: 100%;
  
  display: block;
  margin: -30px auto -90px;
}

.footer-text {
  font-size: 14px;
  line-height: 1.7;
  color: #ccc;
}

.footer-box h3 {
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-box p {
  font-size: 14px;
  line-height: 1.7;
  color: #ccc;
  margin-bottom: 8px;
}

/* SOCIAL */
.social-icons a {
  display: inline-block;
  margin-right: 10px;
  color: #fff;
  font-size: 16px;
  background: #222;
  padding: 10px;
  border-radius: 5px;
  transition: 0.3s;
}

.social-icons a:hover {
  background: red;
}

/* BOTTOM */
.footer-bottom {
  text-align: center;
  padding: 15px 0;
  background: #000;
  margin-top: 30px;
}

.footer-bottom p {
  font-size: 14px;
  color: #aaa;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
.footer-box p i {
  color: red;
  margin-right: 8px;
  width: 16px;
  text-align: center;
}
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
.footer-box p i {
  color: red;
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

  .footer-logo {
    margin: -30px auto -90px;
  }
}

.footer-box:first-child {
  text-align: center;
}

.footer-logo {
  display: block;
  margin: -30px auto -90px;
}

/* TEXT JUSTIFY */
.footer-text {
  text-align: justify;
  max-width: 350px;
  margin: 0 auto;
}







.footer-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-link:hover {
  color: red;
}

.footer-websites {
  margin-bottom: 12px;
  font-size: 15px;
  color: #ccc;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 15px;
}
@media (max-width: 767px) {
  .footer-websites {
    flex-direction: column;
    gap: 8px;
  }
  .footer-websites .sep {
    display: none;
  }
}

@media (max-width: 991px) {
  .submenu { position: static; transform: none; box-shadow: none; opacity: 1; visibility: visible; width: 100%; padding-left: 15px; margin-top: 10px; display: none;
    background: #f9f9f9;
    border-radius: 8px;
  }
  .has-dropdown:hover .submenu {
    transform: none;
  }
  .submenu a {
    padding: 10px 12px;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
  }
  .submenu a:last-child {
    border-bottom: none;
  }
}




@media (max-width: 991px) {
  
}









@media (max-width: 991px) {
  .header-flex {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }
}



@media (max-width: 991px) {
  .main-header { position: relative; }
  .navbar {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    margin-top: 0 !important;
  }
}



@media (max-width: 991px) {
  .logo img {
    transform: scale(2.5) !important;
    transform-origin: left center !important;
  }
}


@media (min-width: 992px) {
  .logo img {
    transform: scale(3.5) !important;
    transform-origin: left center !important;
  }
}




@media (max-width: 991px) {
  .detail-banner {
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 4 / 5 !important;
    background-size: cover !important;
    background-position: center !important;
    /* removed background-image */
  }
}



@media (max-width: 991px) {
  .menu-toggle { display: block !important; }
  .header-btn { display: none !important; }
  .navbar { 
    display: none !important; 
    position: absolute !important; 
    top: 100% !important; 
    left: 0 !important; 
    width: 100% !important; 
    background: #fff !important; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    z-index: 9999 !important;
  }
  .navbar.active { display: block !important; }
  .menu { 
    flex-direction: column !important; 
    align-items: flex-start !important; 
    gap: 0 !important; 
    padding: 0 !important; 
    margin: 0 !important;
    width: 100% !important;
  }
  .menu li {
    width: 100% !important;
    border-bottom: 1px solid #f1f1f1 !important;
  }
  .menu li a {
    display: block !important;
    width: 100% !important;
    padding: 15px 20px !important;
    text-align: left !important;
    color: #222 !important;
    font-size: 16px !important;
  }
}

@media (max-width: 991px) {
  .submenu { 
    position: static !important; 
    transform: none !important; 
    box-shadow: none !important; 
    opacity: 1 !important; 
    visibility: visible !important; 
    width: 100% !important; 
    padding-left: 15px !important; 
    display: block !important; 
    background: #f9f9f9 !important; 
  }
  .submenu a {
    border-bottom: 1px solid #ddd !important;
    font-size: 14px !important;
    padding: 10px 12px !important;
  }
}

/* QUICK LINKS */
.quick-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.quick-links li {
  margin-bottom: 10px;
}
.quick-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}
.quick-links a:hover {
  color: #ff3c00;
}






