
/* General Popup Overlay */
.popup-container {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 20px;
}

/* Main Popup Box */
.popup-content {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0,0,0,0.3);
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  position: relative;
}

/* Close Button */
.close {
  top: 10px;
  right: 15px;
  font-size: 26px;
  color: #000000;           /* Change from white to black for better visibility */
  background: #fff;      /* Add white background */
  border-radius: 50%;    /* Make it circular */
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  position: absolute;    /* Ensure positioned absolutely */
  z-index: 10000;        /* Bring on top */
}


/* Left Image Section */
.popup-image {
  flex: 1 1 50%;
  background: #f5f5f5;
}
.popup-image img {
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

/* Form Section */
.popup-form-wrapper {
  flex: 1 1 40%;
  padding: 35px;
  padding-right: 30px;
  
}
.popup-form-wrapper h3 {
  margin-bottom: 20px;
  font-weight: 700;
  color: #333;
}
.popup-form-wrapper label {
  display: block;
  margin-top: 10px;
  font-weight: 500;
}
.popup-form-wrapper label span {
  color: red;
}
.popup-form-wrapper input,
.popup-form-wrapper select,
.popup-form-wrapper textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 15px;
}
.popup-form-wrapper input[type="submit"] {
  background: linear-gradient(to right, #cd0003, #010164);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  margin-top: 15px;
  border: none;
}

/* Hide Other textarea initially */
#otherServiceContainer {
  display: none;
}

/* Responsive Design */
@media (max-width: 767px) {
  .popup-content {
    flex-direction: column;
    width: 80%;
    height: auto;
    max-height: 95vh;
    overflow-y: auto;
    margin: 0 10px;
    border-radius: 10px;
  }

  .popup-image {
    display: none; /* Hide image to save space */
  }

  .popup-form-wrapper {
    flex: 1 1 100%;
    padding: 20px;
  }

  .popup-form-wrapper h3 {
    font-size: 20px;
    text-align: center;
  }

  .popup-form-wrapper input,
  .popup-form-wrapper select,
  .popup-form-wrapper textarea {
    font-size: 14px;
  }

  .popup-form-wrapper input[type="submit"] {
    font-size: 16px;
    padding: 12px;
  }

  .close {
    top: 10px;
    right: 10px;
    font-size: 24px;
    width: 32px;
    height: 32px;
    line-height: 32px;
  }


  .popup-content {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0,0,0,0.3);
  max-width: 300px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  /* overflow: hidden; */
  position: relative;
}

}
