/* Basic Reset and Font */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #f4f7f9;
  flex-direction: column;
 
  /* Softer background */
}

#formContainer {
  display: none;
}

.vm-jpm-logo {
  position: absolute;
  left: 10px;
  top: 10px;
}

.vm-jpm-logo img {
  filter: drop-shadow(2px 2px 15px rgba(0, 0, 0, 0.377));
  width: 20dvw;
  margin: 0 auto;
  display: block;
  max-width: 289px;
}

.vm-container {
  min-width: 320px;
  width: 100%;
  max-width: 500px;
  z-index: 1;
  /* Slightly wider container */
  background: #fff;
  border-radius: 16px;
  /* More rounded corners */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  /* Enhanced shadow */
  overflow: hidden;
}

.vm-progress-steps {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 30px 40px 20px 40px;
  /* Padding around progress bar */
}

.vm-step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.vm-step-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 100%;
  height: 2px;
  background-color: #ddd;
  /* transform: translateX(); */
  z-index: -1;
}

.vm-step-circle {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #ddd;
  color: #777;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s;
  border: 2px solid #ddd;
  /* Added border */
}

.vm-step-title {
  margin-top: 8px;
  color: #555;
  font-size: 0.85rem;
}

.vm-step-item.vm-active .vm-step-circle {
  background-color: #f01432;
  color: white;
  border-color: #f01432;
  /* Active border color */
}

.vm-step-item.vm-active .vm-step-title {
  color: #f01432;
  font-weight: 600;
}


.vm-form-container {
  display: none;
  padding-top: 0 !important;
  padding: 30px 40px;
  /* Adjusted padding */
  display: flex;
  flex-direction: column;
  color: #333;
  /* height: 650px; */
  overflow: auto;
}

h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #f01432;
  font-size: 2rem;
  /* Slightly larger heading */
}

.vm-step {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  transform: translateX(20px);
}

.vm-step.vm-active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.vm-form-group {
  margin-bottom: 22px;
  /* Increased spacing */
}

.vm-form-group label {
  display: block;
  margin-bottom: 10px;
  /* Increased label margin */
  font-weight: 500;
  color: #444;
  /* Darker label color */
}

/* Style for required labels */
.vm-form-group label.vm-required::after {
  content: " *";
  /* Add asterisk for required fields */
  color: red;
}

input,
select {
  width: 100%;
  padding: 14px;
  /* Slightly larger input padding */
  border: 1px solid #ccc;
  /* Lighter border */
  border-radius: 10px;
  /* More rounded inputs */
  margin-top: 6px;
  /* Increased input margin */
  font-size: 1rem;
  color: #333;
  transition: border-color 0.3s;
  background-color: #f9f9f9;
  /* Light input background */
}

input:focus,
select:focus {
  outline: none;
  border-color: #f01432;
  box-shadow: 0 0 0 2px rgba(42, 82, 152, 0.15);
  /* More pronounced focus shadow */
  background-color: #fff;
  /* White background on focus */
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
  background-repeat: no-repeat;
  background-position-x: 98%;
  /* Adjusted arrow position */
  background-position-y: center;
  padding-right: 35px;
  /* Adjusted for arrow */
}

button {
  padding: 14px 30px;
  /* Larger button padding */
  border: none;
  border-radius: 10px;
  /* More rounded buttons */
  background-color: #f01432;
  color: white;
  font-weight: 500;
  /* Slightly lighter font weight for buttons */
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s ease-in-out;
  /* Added transform transition */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /* Added button shadow */
  font-size: 1rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  gap: 5px;
  /* Button font size */
}

button:hover {
  background-color: #d00f2f;
  /* Darker hover color */
  transform: translateY(-2px);
  /* Slight lift on hover */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  /* Enhanced shadow on hover */
}

.vm-button-group {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  /* Increased button group margin */
}

.vm-button-group button.vm-back-btn {
  background-color: #e8e8e8;
  /* Softer grey for back button */
  color: #666;
}

.vm-button-group button.vm-back-btn:hover {
  background-color: #d0d0d0;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.vm-progress-container {
  background-color: #f0f0f0;
  border-radius: 10px;
  margin-top: 12px;
  /* Increased progress bar margin */
  height: 10px;
  /* Slightly thicker progress bar */
}

.vm-progress-bar {
  background-color: #4caf50;
  border-radius: 10px;
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
}

.vm-password-strength {
  font-size: 0.9rem;
  margin-top: 6px;
  /* Increased password strength margin */
  color: #777;
  text-align: right;
}

.vm-form-preview {
  margin-top: 0px;
  /* Increased preview margin */
  padding: 25px;
  /* Increased preview padding */
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #fafafa;
  /* Softer preview background */
}

.vm-form-preview h3 {
  margin-bottom: 18px;
  /* Increased preview heading margin */
  color: #f01432;
  font-size: 1.vm-3rem;
  /* Larger preview heading */
}

.vm-form-preview p {
  margin-bottom: 10px;
  /* Increased preview paragraph margin */
  line-height: 1.7;
  /* Increased line height for readability */
  font-size: 1rem;
  /* Slightly larger preview text */
}

.vm-agreement {
  display: flex;
  align-items: flex-start;
  margin-top: 20px;
  /* Increased agreement margin */
}

.vm-agreement input[type="checkbox"] {
  width: auto;
  margin-right: 12px;
  /* Increased checkbox margin */
  height: 1rem;
  width: 1rem;
  /* Larger checkbox */
}

.vm-agreement label {
  font-size: 1rem;
  /* Agreement label font size */
  color: #555;
}

.vm-error-message {
  color: red;
  font-size: 0.9em;
  margin-top: 6px;
  /* Increased error message margin */
  animation: pulse 0.8s ease infinite;
  text-align: center;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.vm-input-icon {
  position: relative;
}

.vm-input-icon i {
  position: absolute;
  left: 20px;
  /* Adjusted icon position */
  top: 71%;
  transform: translateY(-50%);
  color: #aaa;
}

.vm-input-icon input,
.vm-input-icon select {
  padding-left: 45px;
  /* Adjusted padding for icon */
}

/* Country input dropdown */
.vm-select-container {
  position: relative;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.vm-select-input {
  width: 100%;
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  margin-top: 6px;
  font-size: 1rem;
  color: #333;
  transition: border-color 0.vm-3s;
  background-color: #f9f9f9;
}

.vm-select-input:hover {
  border-color: #cbd5e0;
}

.vm-select-input:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.2);
}

.vm-flag-img {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.vm-1);
  vertical-align: middle;
  margin-right: 8px;
}

.vm-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  max-height: 300px;
  overflow-y: auto;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.vm-1);
  display: none;
  z-index: 1000;
}

.vm-dropdown.vm-show {
  display: block;
}

.vm-dropdown-item {
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vm-dropdown-item:hover {
  background: #f7fafc;
}

.vm-dropdown-item.vm-hidden {
  display: none;
}

.vm-no-results {
  padding: 8px 16px;
  color: #718096;
  font-size: 14px;
}

/* Scrollbar styling */
.vm-dropdown::-webkit-scrollbar {
  width: 8px;
}

.vm-dropdown::-webkit-scrollbar-track {
  background: #f7fafc;
}

.vm-dropdown::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 4px;
}

/* Loading spinner on submit button */
#loadingIcon {
  display: none;
}

.fa-refresh {
  display: none;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);

  }

  100% {
    transform: rotate(360deg);

  }
}

.password-requirement {
  line-height: 15px;
  margin: 0;
  font-size: 12px;
  color: #7d7d7d;
}

.password-requirement span {
  color: rgb(255, 17, 0);
}
