#hd-after-payment-modal,
#hd-middle-modal,
#error-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.hd-model-container,
.error-model-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.hd-modal-overlay,
.error-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hd-modal,
.error-modal {
  position: relative;
  background: #fff;
  width: 90%;
  max-width: 515px;
  padding: 50px;
  text-align: center !important;
}

.hd-modal {
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 20px;
  border-bottom-left-radius: 20px;
}
.error-modal {
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  border-bottom-left-radius: 20px;
}

.hd-modal h3 {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
}
#hd-after-payment-form {
  margin-top: 30px;
  border: 1px solid #b4b4b4;
  border-radius: 20px;
  padding: 24px;
}

/* ------------------------------ */

.hd-modal-new {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
}

.hd-modal-new-content {
  position: relative;
  background: #fff;
  max-width: 420px;
  margin: 15% auto;
  padding: 24px;
  border-radius: 8px;
  text-align: center !important;
}
.hd-modal-new-content img {
  width: 250px;
}

.payment-bar {
  position: absolute;
  top: -30px;
  left: 0;
  width: 100%;
  padding: 10px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;

  display: flex;
  justify-content: center;
  align-items: center;

  background-color: #0d468b;
  color: #fff;
  font-weight: bold;
  font-size: 20px;
}

.payment-bar p {
  margin: 0;
}
.payment-bar .ref-id {
  font-weight: 400;
  font-size: 16px;
}

.hd-modal-new-content h3 {
  margin-top: 20px;
  color: #202020;
  text-align: center;
  font-family: Outfit;
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}
.hd-modal-new-content p {
  margin-top: 20px;
  color: #000;
  text-align: center;
  font-family: Outfit;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.hd-modal-new-close,
.error-close {
  position: absolute;
  right: 20px;
  top: 0px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  box-shadow: none !important;
  font-size: 3rem;
}

.error-message{
  
}

.hd-modal-new-button {
  margin: 30px auto 0;
  background: #fff;
  border: 1px solid #00a912;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* ---------------------------- */

.hd-final-modal-container {
  border: 1px solid #b4b4b4;
  background: #fff;
  padding: 24px;
  border-radius: 20px;
}
#hd-final-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#hd-final-form .form-control,
#hd-final-form .iti {
  height: 55px;
  width: 100%;
}

#hd-final-form-submit {
  margin-top: 10px;
}

@media screen and (max-width: 767px) {
  .hd-modal {
    padding: 50px 20px 20px 20px;
  }
  .payment-bar {
    top: -50px;
  }
  .payment-bar .ref-id {
    display: block;
  }
}

/* ---------------------- */

#hd-payment-form,
#hd-after-payment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #475569;
}

#hd-payment-form .form-group,
#hd-after-payment-form .form-group {
  width: 100%;
}

#hd-payment-form .form-control,
#hd-payment-form .iti,
#hd-after-payment-form .form-control {
  width: 100%;
  min-height: 48px;
}

#hd-payment-form .language,
#hd-after-payment-form .language {
  margin-top: 10px;
  display: flex;
  justify-content: start;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

#hd-after-payment-form .language {
  margin-bottom: 10px;
}

#hd-after-payment-form .radio,
#hd-payment-form .radio {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

#hd-payment-form .radio .custom-radio,
#hd-after-payment-form .radio .custom-radio {
  width: 16px;
  height: 16px;
  accent-color: #0d468b; /* Bootstrap primary */
}

#hd-payment-form .radio label,
#hd-after-payment-form .radio label {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  color: #475569;
}

#hd-payment-form #hd-checkout-btn,
#hd-after-payment-form #hd-after-payment-submit {
  margin-top: 10px;
}

#hd-payment-form .form-group .whatsapp-no {
  font-size: 20px;
  font-weight: 600;
}

#hd-payment-form .form-group .iti {
  margin-top: 10px;
}
