*{
  font-family: sans-serif;
  padding: 0;
}
html,body{
  margin: 0;
  overflow-x: hidden;
  max-width: 100%;
}

/* main section  */
.main{
    margin-top: 70px;
}
.main1{
    background-color: #c9f8cf;
    text-align: center;
    padding: 55px;
    h1{
        font-size: 40px;
        color:#253512;
    }
    p{
        font-size: 20px;
    }
}
 /* Contact Details Block */
.main2 {
  max-width: 700px;
  margin: 20px auto;
  background: #253512;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  font-size: 18px;
  line-height: 1.8;
  color: #ffffff;
}

.main2 p {
  margin: 10px 0;
}
/* Contact Section Base */
.contact-animated-section {
  padding: 60px 60px;
  gap: 40px;
  background: linear-gradient(145deg, #f3faff, #ffffff);
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-container {
  display: flex;
  gap: 30px;
  width: 100%;
  flex-wrap: wrap;
}

/* Embedded Map Styling */
.contact-map {
  flex: 1;
  height: 440px;
  border: 2px solid green;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Form Styling */
.contact-form {
  flex: 1;
  background: linear-gradient(to bottom right, #ffffff, #23511e);
  padding: 10px 30px;
  height: 420px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  animation: slideInRight 1.2s ease forwards;
  opacity: 0;
}

.contact-form h2 {
  font-size: 26px;
  margin-bottom: 20px;
  text-align: center;
  color: #00661f;
}

.contact-form form .form-group {
  margin-bottom: 10px;
  position: relative;
  
}

.contact-form input,
.contact-form textarea {
  width: 92%;
  padding: 14px 16px;
  border: none;
  outline: none;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: #f0fbff;
  box-shadow: 0 0 12px rgba(0, 160, 255, 0.5);
}

.contact-form button {
  width: 98%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(to right, #7ef780, #0e421e);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.4s ease;
}

.contact-form button:hover {
  box-shadow: 0 0 18px rgba(17, 54, 16, 0.6);
}

/* Animation */
@keyframes slideInRight {
  0% {
    transform: translateX(80px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive */
/* ---------------- Responsive ---------------- */

@media (max-width: 1025px) {
  .main1 h1 {
    font-size: 36px;
  }

  .main1 p {
    font-size: 18px;
  }

  .main2 {
    padding: 25px;
    font-size: 17px;
  }

  .contact-form {
    width: 90%;
    height: auto;
    padding: 20px;
  }

  .contact-map {
    height: 450px;
  }

  .contact-form input,
  .contact-form textarea {
    width: 91%;
  }

  .contact-form button {
    width: 98%;
  }
}

@media (max-width: 769px) {
  .main1 h1 {
    font-size: 30px;
  }

  .main1 p {
    font-size: 16px;
  }

  .main2 {
    padding: 20px;
    font-size: 16px;
  }

  .contact-animated-section {
    
    padding: 40px 20px;
    gap: 30px;
  }

  
  .contact-map,
  .contact-form {
    width: 90%;
    /* flex: none; */
  }

  .contact-map {
    height: 450px;
  }

  .contact-form {
    padding: 20px;
  }
}

@media (max-width: 426px) {
  .main1 h1 {
    font-size: 26px;
  }

  .main1 p {
    font-size: 15px;
  }

  .main2 {
    padding: 18px;
    font-size: 15px;
  }
.contact-container {
    flex-direction: column;
  }

  .contact-animated-section {
    flex-direction: column;
    padding: 30px 15px;
    gap: 20px;
  }

  .contact-map {
    height: 300px;
    width: 100%;
    border-width: 1px;
  }

  .contact-form {
    width: 90%;
    padding: 18px;
  }

  .contact-form h2 {
    font-size: 22px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 12px;
    font-size: 14px;
  }

  .contact-form button {
    padding: 12px;
    font-size: 14px;
  }
}

/* floationg whatsapp  */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .floating-whatsapp .icon-container {
    background-color: #25D366;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 1.5s infinite cubic-bezier(0.66, 0, 0, 1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  @keyframes pulse {
    to {
      box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
  }

  @media screen and (max-width: 545px) {
  
  .floating-whatsapp .icon-container {
    width: 40px;
    height: 40px;
  }
  .floating-whatsapp {
    bottom: 15px;
    right: 15px; 
  }
}

/* overlay form  */

body.modal-open {
      overflow: hidden;
      position: fixed;
      width: 100%;
    }
    #overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.5);
      backdrop-filter: blur(2px);
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }
    #popup {
      position: relative;
      width: 380px;
      background: linear-gradient(135deg, #16311c, #dff6e2);
      border-radius: 10px;
      padding: 30px 30px;
      box-shadow: 0 10px 25px rgba(0,0,0,0.2);
      animation: fadeIn 0.3s ease-out;
    }
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(-20px); }
      to { opacity: 1; transform: translateY(0); }
    }
    #popup .close {
      position: absolute;
      top: 12px; right: 12px;
      font-size: 24px;
      color: #121111;
      cursor: pointer;
      transition: color 0.2s;
    }
    #popup .close:hover {
       color: #555;
       }
    #popup h2 {
      text-align: center;
      margin-bottom: 20px;
      color: #133011;
    }
    .input-group {
      position: relative;
      margin: 16px 10px;
    }
    .input-group label {
      position: absolute;
      top: -8px;
      left: 12px;
      background: #8aab8d;
      padding: 0 4px;
      font-size: 13px;
      color: #214121;
    }
    .input-group input,
    .input-group textarea {
      width: 85%;
      background-color: rgb(234, 240, 235);
      padding: 12px 40px 12px 12px;
      border: 1px solid #cccccc;
      border-radius: 6px;
      transition: border-color 0.3s, box-shadow 0.3s;
    }
    .input-group input:focus,
    .input-group textarea:focus {
      box-shadow: 0 0 8px rgba(90,74,255,0.2);
      outline: none;
    }
    .input-group textarea { 
      resize: vertical;
       min-height: 80px; 
      }
    .input-group .icon {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      color: #aaa;
      font-size: 18px;
    }
    .submit-btn {
      width: 100%;
      background: #2f4723;
      color: white;
      padding: 14px;
      border: none;
      border-radius: 6px;
      font-size: 16px;
      cursor: pointer;
      margin-top: 12px;
      transition: background 0.3s, box-shadow 0.3s;
    }
    .submit-btn:hover {
      background: #4b644f;
      box-shadow: 0 4px 12px rgba(90,74,255,0.3);
    }
@media screen and (max-width: 769px) {
  #popup {
    width: 70%;
   max-width: 340px; 
    padding: 15px;
  }
  
}
@media screen and (max-width: 426px) {
  #popup {
    width: 80%;
    }
  .input-group input,
    .input-group textarea {
      width: 83%;
}
}
@media screen and (max-width: 361px) {
  #popup {
    width: 80%;
    }
    .input-group input,
    .input-group textarea {
      width: 78%;
}
}
