#stonefort-registration {
    max-width: 700px;
    margin: 20px auto;
    padding: 12px 40px 5px 40px;
    background: #fff;
    border: 0px solid #ddd;
    border-radius: 8px;
    font-family: Helvetica, Arial, sans-serif;
    color: #333;
}

input#password {
    height: 40px !important;
}
input#confirm_password {
    height: 40px !important;
}
span.select2-selection.select2-selection--single {
    height: 40px !important;
}
#stonefort-registration h3 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
}
#stonefort-registration label {
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
    margin-top: 20px !important;
}


#stonefort-registration input,
#stonefort-registration select,
#stonefort-registration button {
    width: 100%;
    padding: 10px 10px 10px 10px !important; /* space for flags */
    
    
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}
#stonefort-registration input{
	padding: 0.5rem 0.75rem 0.5rem 0.75rem !important;
    background-color: rgb(248 248 248 / var(--tw-bg-opacity, 1));
    border-radius: 0.375rem;
}
.country-select {
    width: 100% !important;
    margin-bottom: 20px;
}

#stonefort-registration .row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
#stonefort-registration .col {
    flex: 1;
    min-width: 48%; /* Ensure 50% width for nationality and country */
}

/* Phone field full width */
#stonefort-registration #phone {
    width: 100% !important;
    padding-left: 50px; /* space for flag */
    box-sizing: border-box;
}

/* Align intlTelInput container to full width */
.iti {
    width: 100% !important;
}

/* Center the button text */
#stonefort-registration .buttons-row {
    display: flex;
    justify-content: space-between; /* equal spacing */
    gap: 10px;
    margin-top: 10px;
}

#stonefort-registration .buttons-row button {
    flex: 1; /* make all buttons equal width */
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    background: #e0e0e0;
    border-radius: 6px;
    border: 1px solid #ccc;
    color: #333;
    cursor: pointer;
}

#stonefort-registration .buttons-row button:hover {
    background: #d5d5d5;
}

#stonefort-registration .submit-btn {
    background: #96B1D0;
    color: #fff;
    cursor: pointer;
}
#stonefort-registration .submit-btn:hover {
    background: #1E4862;
}
#stonefort-message {
    margin: 10px 0;
    font-weight: bold;
}
.iti__flag-container {
    left: 10px;
}

#stonefort-registration .checkbox {
    display: flex;
    align-items: flex-start; /* Align checkbox and text at the top */
    gap: 10px; /* Space between checkbox and text */
    margin-bottom: 15px;
}

#stonefort-registration .checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 2px 0 0 0; /* Small alignment tweak */
    flex-shrink: 0; /* Prevent checkbox from shrinking */
}

#stonefort-registration .checkbox span {
    display: inline-block;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}


/* Modal Background */
/* Modal Background */
.modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Modal Content */
/* Modal Background */
.modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Modal Content */
.modal-content {
    background: #fff;
    padding: 15px 30px 25px 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh; /* Limit height */
    overflow-y: auto; /* Enable vertical scrolling */
    margin: auto;
    text-align: left; 
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: popupFade 0.3s ease;
    color: #000;
    font-size: 14px; 
    line-height: 1.6;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* Custom Scrollbar */
.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 3px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
    background: #888;
}

/* Close Button */
.close-btn {
    position: sticky;
    top: 0;
    margin-left: auto;           /* push to right */
    display: block;
    width: fit-content;
  
    font-size: 24px;
    font-weight: bold;
    color: #555;
    background: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}
.close-btn:hover {
    color: #000;
}

/* Smooth Fade Animation */
@keyframes popupFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}



#stonefort-registration label span.required-star {
    color: red;
    font-weight: bold;
}

#stonefort-registration #nationality,
#stonefort-registration #country{
  padding-left: 40px !important;
}

#stonefort-registration #phone {
  padding-left: 90px !important;
}

.password-wrapper {
  position: relative;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
  padding-right: 40px;
  height: 45px;
  box-sizing: border-box;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  color: #888;
  z-index: 2;
}

.toggle-password:hover {
  color: #000;
}

.validation-message {
  margin-top: 5px;
  font-size: 13px;
  color: red;
}
.validation-error {
 height: 0px !important;
 
 margin-bottom:15px !important;
   
}
#password-rules {
  list-style: none;
  margin: 13px 0 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.6;
}

#password-rules li {
  color: #dc3545; /* red */
}

#password-rules li.valid {
  color: #28a745; /* green */
}


input[type="password"] {
  -webkit-appearance: none;
  appearance: none;
}

.signin-button {
  display: inline-block;
  color: #0077b6 !important;
  text-decoration: underline !important;
  text-underline-offset: 5px !important;
  font-weight: bold;
}

.signin-button:hover {
color: #000;
}






/* Fix Select2 dropdown overlap/rendering issue */
.select2-container {
    position: relative;
    z-index: 10;
}

.select2-container--default .select2-selection--single {
    height: 45px; /* Match your input field height */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal;
    padding-left: 5px;
    color: #333;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    top: 0;
    right: 10px;
}


.select2-container--default .select2-selection--single {
	background-color: rgb(248 248 248 / var(--tw-bg-opacity, 1));
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem 0.5rem 0.75rem !important;
   
}

.select2 .select2-container .select2-container--default .select2-container--focus {
	 padding: 0.5rem 0.75rem 0.5rem 0.75rem !important;
}


#stonefort-registration input.dob {
  padding: 0.65rem 0.75rem !important;
  background-color: rgb(248 248 248 / var(--tw-bg-opacity, 1));
  border-radius: 0.375rem;
  font-size: 14px;
  height: 40px;
  box-sizing: border-box;
 overflow: hidden !important;
  width: 100% !important;
}



@media (max-width: 768px) {


  #stonefort-registration input.dob {
    width: 100% !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  #stonefort-registration .col,
  #stonefort-registration .col.cont {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
  }
  
    input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
  }

  #stonefort-registration {
    padding: 12px 15px 10px 15px !important;
  }

  #stonefort-registration .row {
    flex-direction: column;
    gap: 12px; /* Reduce gap for tighter spacing */
  }

  #stonefort-registration .col {
    min-width: 100%; /* Stack fields full-width */
  }

  #stonefort-registration input,
  #stonefort-registration select,
  #stonefort-registration button {

    margin-bottom: 0;
  }


  #stonefort-registration .checkbox {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
  }

  .select2-container--default .select2-selection--single {
    height: 45px !important;
    padding: 0.5rem 0.75rem !important;
  }
  .first-name {
  margin-bottom: -15px;
}
.pass {
	  margin-bottom: -15px;
}
.nat {
	margin-bottom: -15px;
}
.cont {
	margin-bottom: -15px;
}


.addr {
	margin-bottom: -15px;
}
#stonefort-registration .buttons-row button {
	padding: 5px 0;
    font-size: 11px;
}
#stonefort-registration h3 {
margin-bottom: 5px;
}
svg.e-font-icon-svg.e-eicon-chevron-right {
	font-size: 25px !important;
    margin-top: 41px !important;
}
svg.e-font-icon-svg.e-eicon-chevron-left {
	font-size: 25px !important;
    margin-top: 41px !important;
}


}