* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", sans-serif;
}

header {
  width: 95%;
  display: flex;
  justify-content: space-between;
  position: fixed;
  left: 50%;
  top: 35px;
  transform: translate(-50%, -50%);
  align-items: center;
  z-index: 10 !important;
  border-radius: 20px;
  padding: 10px;
}

#logo {
  background-color: white !important;
  border-radius: 50%;
  width: 60px;
  height: 60px;
}

#nav-ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-list a {
  color: white !important;
  text-decoration: none;
  font-weight: 500;
}

.nav-list a:visited {
  color: white !important;
}

#nav-ul a.active {
  border-bottom: 2px solid #f15a24;
}

header button {
  background-color: #e28225;
  border: none;
  color: white;
  padding: 10px 15px;
  border-radius: 20px;
  cursor: pointer;
}

#menu-icon {
  width: 25px;
  display: none;
}

#close-icon {
  display: none;
}

#logo2,
#menu-icon2 {
  display: none;
}

/* scroll to top */
#scrollToTopBtn {
  position: fixed;
  bottom: 40px;
  right: 20px;
  z-index: 99;
  background-color: #f15a24;
  color: white;
  border: none;
  outline: none;
  padding: 10px 14px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: none; /* Hidden by default */
  transition: opacity 0.3s ease;
}

#scrollToTopBtn:hover {
  background-color: #d3471b;
}

/* Modal container */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#msg {
  width: 50%;
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000; /* Ensures it's above other elements */
  padding: 10px;
  border-radius: 5px;
  text-align: center;
}

/* Modal content box */
.modal-content {
  background: linear-gradient(to right, #9c3d7d, #e28225);
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
}

/* Add this to ensure form scrolls inside modal with custom scrollbar */
.modal-content form {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 5px;
}

/* Modern Scrollbar Styling for WebKit */
.modal-content form::-webkit-scrollbar {
  width: 10px;
}

.modal-content form::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.modal-content form::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.modal-content form::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Firefox scroll styling */
.modal-content form {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.6) rgba(255, 255, 255, 0.1);
}

/* Modal Header */
.modal-content h2 {
  color: white;
  margin-bottom: 20px;
  text-align: center;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

/* Submit button */
.submit-btn {
  padding: 12px 20px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  background-color: #9c3d7d;
  color: white;
  border-radius: 5px;
}

/* Form Styling */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.textarea {
  width: 100%;
  height: 110px !important;
  border-radius: 8px;
  outline: none;
  border: 1px solid #ccc;
  padding: 10px;
  box-sizing: border-box;
  color: black;
}

label {
  color: white;
  /* font-weight: bold; */
}

input,
select {
  padding: 10px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 14px;
  background-color: white;
}

.other {
  background-color: inherit;
  border-bottom: 2px solid white;
  border-radius: 0px;
  color: white;
}

.other::placeholder {
  color: white !important;
}

input[type="checkbox"] {
  width: auto;
}

.checkbox-label {
  font-weight: normal;
}

/* responsive design */
@media (max-width: 800px) {
  #logo {
    width: 80px;
  }

  .nav-list a {
    font-size: 13px;
  }

  header button {
    padding: 8px 12px;
    font-size: 13px;
  }
}

@media (max-width: 750px) {
  #logo {
    display: none;
  }

  #menu-icon {
    display: none;
  }

  #close-icon {
    display: block;
    position: absolute;
    right: 40px;
    top: 60px;
    color: white;
    font-size: 20px;
  }

  header {
    flex-direction: column;
    gap: 20px;
    top: 120px;
    background-color: #9c3d7d !important;
    border-bottom-left-radius: 250px;
    border-top-right-radius: 50px;
    padding-bottom: 30px;
    z-index: 2;
    display: none;
    justify-content: center;
  }

  #logo {
    position: absolute;
    left: 8px;
  }

  #logo2 {
    display: block;
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: white !important;
    border-radius: 50%;
    width: 60px;
    height: 60px;
  }

  #menu-icon2 {
    display: block;
    width: 50px;
    height: 50px;
    position: fixed;
    top: 15px;
    right: 25px;
    background: white;
    border-radius: 50%;
    padding: 5px;
  }

  #nav-ul {
    margin: 50px auto 10px;
    flex-direction: column;
    justify-content: center;
    text-align: center !important;
    width: 58%;
  }

  .nav-list a {
    color: white !important;
  }

  #btn-holder {
    margin: auto;
    width: 18%;
  }

  header button {
    margin: auto;
    width: 100%;
  }
  
  
#msg {
  width: 80%;
}
}

@media screen and (max-width: 600px) {
  .modal-content {
    padding: 20px;
  }

  button {
    font-size: 14px;
    padding: 10px 16px;
  }
}

@media (max-width: 650px) {
  #btn-holder {
    width: 28%;
  }
}

@media (max-width: 450px) {
  #btn-holder {
    width: 30%;
  }
  #btn-holder button {
    font-size: 12px;
  }
}

@media (max-width: 350px) {
  header {
    border-bottom-left-radius: 150px;
  }
  #btn-holder {
    width: 40%;
  }
}

@media (max-width: 250px) {
  #btn-holder {
    width: 50%;
  }
}
