body {
  font-family: Arial, Helvetica, "Nimbus Sans L", "Liberation Sans", "FreeSans", sans-serif !important;
}

/* Make mobile input full width */
.iti {
  width: 100% !important;
}

#mobile {
  width: 100% !important;
  /* padding: 10px; */
  font-size: 14px;
  box-sizing: border-box;
}

/* Smooth transitions for country code changes to reduce UI glitches */
.iti__selected-flag {
  transition: none !important; /* Disable transitions to prevent flickering */
}

.iti__country-list {
  transition: none !important;
}

.iti__flag {
  transition: none !important;
}

.iti__dial-code {
  transition: none !important;
}

.form-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  min-height: 100vh;
  padding: 20px;
}

.loader-text {
  font-size: 20px;
}

.form-wrapper .form-container {
  background: #fff;
  width: 100%;
  border-radius: 8px;
  padding: 35px;
  /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);*/
  /* font-family: Arial, sans-serif; */
}

/* Standalone browser view */
.form-container.browser-mode {
  max-width: 60%;
  margin: 0 auto;
}

/* Inside popup iframe */
.form-container.popup-mode {
  max-width: 100%;
  margin: 0;
}

.form-container form {
  margin-top: 30px;
}

.form-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  margin-top: 10px;
}

.form-logo img {
  height: 83px;
  width: 300px;
}

.form-title {
  font-size: 20px;
  text-align: center;
  font-weight: bold;
  margin: 10px;
  line-height: 125%;
}

.form-subtitle,
.form-presenter {
  text-align: center;
  font-size: 14px;
  color: #555;
  margin: 10px;
}

.form-presenter {
  margin-bottom: 40px;
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1 1 100%;
  /* default full width on small screens */
}

.form-wrapper .form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-group span.hint {
  font-size: 13px;
  color: #8c1d40;
  padding-top: 3px;
}

.form-wrapper .form-group label {
  font-size: 16px;
  margin-bottom: 6px;
  font-weight: 500;
}

.form-wrapper .form-group input,
.form-wrapper .form-group select {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.iti__search-input {
  padding: 8px 25px !important;
}

.form-wrapper .required {
  color: red;
  margin-left: 2px;
}

.form-wrapper .error {
  font-size: 14px;
  color: #dc3545;
  margin-top: 4px;
}

.form-wrapper .error_message {
  font-size: 14px;
  color: #dc3545;
  font-weight: bold;
  margin-top: 4px;
}

.form-wrapper .success_message {
  font-size: 14px;
  color: green;
  margin-top: 4px;
  font-weight: bold;
}

.form-checkbox {
  font-size: 16px;
  margin-bottom: 12px;
  margin-top: 20px;
  color: #212d3a;
}

.form-checkbox input {
  margin-right: 8px;
}

/* custom checkboxes */
.form-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: #8c1d40;
  cursor: pointer;
  margin-right: 8px;
}

.form-checkbox label {
  display: flex;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
}

.form-note {
  font-size: 15px;
  color: #212121;
  margin-top: 20px;
  line-height: 1.4em;
}

.form-note a {
  color: #8c1d40;
  text-decoration: underline;
}

.register-btn {
  width: 100px;
  float: right;
  /* background: #425563; */
  color: white;
  border: none;
  padding: 12px;
  border-radius: 20px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 16px;
  font-weight: 600;
  background-color: #8d1c40;

}

.register-btn:hover {
  /* background-color: #8d1c40; */
  /* background: #495e6d; */
  /* font-size: 18px; */
  /* transition: 0.1s ease-in-out; */
  transform: scale(1.05)
}

/* custom alert css starts here*/

.successDiv-ui {
  text-align: center;
  /* font-family: Arial, sans-serif; */
}

.error-alert {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: #f44336;
  color: #fff;
  padding: 15px 25px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: fadeInOut 3s ease forwards;
  /* font-family: Arial, sans-serif; */
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translate(-50%, -20px);
  }

  10% {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  90% {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
}

/* custom alert ends here */

/* loading mask starts here */
#loading-mask {
  display: none;
  /* hidden until JS shows it */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  /* font-family: Arial, sans-serif; */
}

#loading-mask p {
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 500;
}

.loader-bar {
  width: 80%;
  max-width: 400px;
  height: 12px;
  background: #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.loader-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg,
      #8C1D40 25%,
      #ad345a 25%,
      #ad345a 50%,
      #8C1D40 50%,
      #8C1D40 75%,
      #ad345a 75%);
  background-size: 40px 40px;
  animation: move-stripes 1s linear infinite;
  border-radius: 6px;
}

@keyframes move-stripes {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 40px 0;
  }
}

/* loading mask css ends here */

@media (min-width: 600px) {
  .form-row .form-group {
    flex: 1;
    /* side by side only on larger screens */
  }
}