/* Modal Styles */
/* Modal Styles */
.info-modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: slideDown 0.4s ease-in-out;
}

.info-modal-content {
  background: #ffffff;
  border-radius: 15px;
  max-width: 527px;
  padding: 20px 30px;
  position: relative;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-100%);
  animation: slideIn 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* Slide Out Animation */
@keyframes slideOut {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(-100%);
    opacity: 0;
  }
}

/* Slide In Animation */
@keyframes slideIn {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}



.close-btn {
  position: absolute;
  top: 0px;
  right: 0px;
  font-size: 36px;
  color: gray;
  cursor: pointer;
  padding: 0px 8px;
  transition: 0.3s;
  font-weight: 700;
}


/* Modal Title & Description */
.modal-title {
  margin: 0;
  font-size: 24px;
  color: #fff;
  text-align: center;
  background-color: #2ecc71;
}

.modal-desc {
  font-size: 18px;
  color: #000;
  text-align: center;
  margin: 13px;
}

/* Form Styles */
.modal-form-group {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  color: #000
}

label {
  /* background: #6c63ff;
  color: white; */
  font-size: 18px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

input {
  width: 100%;
  padding: 12px;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
  color: #000
}

input:focus {
  background: #eef;
  color: #000;
}

.info-modal-content input::placeholder {
  color: #000 !important;
  font-weight: 400;
}

.modal-submit-btn {
  width: 100%;
  background: #0074D9 !important;
  color: white !important;
  padding: 8px !important;
  border: none;
  border-radius: 27px !important;
  cursor: pointer;
  font-size: 20px !important;
  transition: all 0.3s ease-in-out,
}

.modal-submit-btn:hover {
  background-color: #31b95a !important;
}

.modal-form-group input:invalid {
  border-color: red;
}


.error-message {
  color: red;
  font-size: 12px;
  margin-bottom: 5px;
  display: block;
}

.error-border {
  border: 1px solid red;
  outline: none;
  /* Optional: removes focus outline */
}

.plan-free {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 10px 0;
  color: #000
}

.plan-free p{
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
}

.plan-free p span{
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #2ecc71;
  border-radius: 100%;
}


/* 
  ##Device = Desktops
  ##Screen = 1281px to higher resolution desktops
*/

@media (min-width: 1281px) {

  /* CSS */

}

/* 
  ##Device = Laptops, Desktops
  ##Screen = B/w 1025px to 1280px
*/

@media (min-width: 1025px) and (max-width: 1280px) {

  /* CSS */

}

/* 
  ##Device = Tablets, Ipads (portrait)
  ##Screen = B/w 768px to 1024px
*/

@media (min-width: 768px) and (max-width: 1024px) {

  /* CSS */

}

/* 
  ##Device = Tablets, Ipads (landscape)
  ##Screen = B/w 768px to 1024px
*/

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {

  /* CSS */

}

/* 
  ##Device = Low Resolution Tablets, Mobiles (Landscape)
  ##Screen = B/w 481px to 767px
*/

@media (min-width: 481px) and (max-width: 767px) {

  .modal-title {
    font-size: 21px;
  }
  
  .middle-sign {
    margin-left: -10% !important;
  }

  .middle-last {
    margin-left: -3% !important;
  }

  .header {
    height: 0 !important;
  }

  .info-modal input {
    padding: 4px
  }

  .modal-form-group {
    margin-bottom: 9px;
  }

  .error-message {
    margin-bottom: 0px;
    line-height: 19px;
  }

}

/* 
  ##Device = Most of the Smartphones Mobiles (Portrait)
  ##Screen = B/w 320px to 479px
*/

@media (min-width: 320px) and (max-width: 576px) {


  .modal-title {
    font-size: 21px;
    margin-top: 16px;
  }

  .plan-free {
    flex-wrap: wrap;
    column-gap: 16px;
  }

  .middle-sign {
    margin-left: -10% !important;
  }

  .middle-last {
    margin-left: -3% !important;
  }

  .header {
    height: 0 !important;
  }

  .info-modal input {
    padding: 4px 8px 4px 12px;
    height: 48px;
  }

  .modal-form-group {
    margin-bottom: 12px;
  }

  .error-message {
    margin-bottom: 0px;
    line-height: 15px;
  }

  .modal-submit-btn {
    font-size: 16px !important;
  }

  .info-modal {
    height: 100dvh;

  }

  .info-modal-content {
    height: max-content;
    max-width: 95%;
    padding: 8px;
    border-radius: 8px;
    overflow-y: auto;
  }
}

#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: white;
  font-size: 18px;
  z-index: 99999999;
}

#loadingOverlay p {

  color: #000 !important;
  line-height: 26px !important;
  margin: 0 50px 20px !important;
  font-weight: 700 !important;
  text-align: center;
}

/* Spinner Animation */
.spinner {
  width: 51px;
  height: 51px;
  border: 8px solid rgba(255, 255, 255, 0.3);
  border-top: 8px solid #2c3a90;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Button Spinner */
#buttonSpinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
  display: inline-block;
}

@media (max-width: 576px) {
  /* Fix for iOS overflow when keyboard appears */
  @supports (-webkit-touch-callout: none) {
    body.modal-open {
      position: fixed;
      width: 100%;
      height: 100%;
    }

    .info-modal {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      -webkit-overflow-scrolling: touch;
      overflow-y: auto;
      height: 100%;
    }

    /* Prevent zooming on input focus */
    input,
    select,
    textarea {
      font-size: 16px !important;
    }
  }
}
