/* Add this at the very beginning of 1.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #333;
}

.registration-page {
  position: relative;
  display: flex;
  height: 100vh;
  width: 100%;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  background-color: #f8f9fa;
  gap: 10px;
  padding: 10px 10px;
}

.registration-left,
.registration-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}


.registration-left {
  flex: 0.8;
  position: relative;
  /* background-image: url('/leftImage.png');  <-- now set inline in JS */
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 10px;
  overflow: hidden;
  min-width: 0;
  height: 100%;
  min-height: 100%;
}

.registration-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%; /* Ensure right section takes full height */
}

/* Adjust the right content to align with left */
.right-content {
  padding: 0 1.5rem 1rem 0; /* Remove top padding */
  max-width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  height: 100%; /* Make right content fill full height */
  justify-content: flex-start; /* Align content to top */
}

/* Fix logo section alignment */
.logos-container {
  display: flex;
  margin-top: 0.1rem; /* Match the top of the left image */
  margin-bottom: 0.5rem;
  padding-left: 2rem; /* Add some left padding */
  padding-right: 2rem; /* Add some right padding */
}

/* Make sure images don't overflow their containers */
img {
  max-width: 100%;
  height: auto;
}

.logos-container.one-logo {
  justify-content: center;
  align-items: center;
}

.logos-container.two-logos {
  justify-content: space-between;
  align-items: center;
}

.logo-center img {
  max-width: 300px;
  height: auto;
}

/* Add to the existing failure page styles */
.failure-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 5px;
  font-size: 60px;
}

.failure-icon svg,
.failure-icon i {
  font-size: 50px;
  display: block;
}

.failure-icon i {
  color: #ef4444; /* General failure red */
}

/* Negative decline styling */
.failure-page-wrapper:has(.failure-box [data-failure-type="negative"]) .failure-icon i,
.failure-page-wrapper:has(.failure-box [data-failure-type="negative"]) .failure-icon svg {
  color: #f59e0b; /* Warning orange for negative decline */
}

  .failure-details ul {
    text-align: left;
    margin: 15px 0;
    padding-left: 20px;
  }

  .failure-details li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #525f7f;
  }

.success-details ul {
  text-align: left;
  margin: 15px 0;
  padding-left: 20px;
}

.success-details li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.success-details h3 {
  font-size: 1.1rem;
  color: #334155;
  margin: 1rem 0;
}

  .info-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
    line-height: 1;
  }

  .info-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.5em;
    pointer-events: none;
  }


.logo-center,
.logo-left,
.logo-right img {
  max-width: 250px;
  max-height: 120px;
  height: auto;
}

.page-indicator-container {
  width: 100%;
  max-width: 800px;
  margin: 8px auto;
  padding: 0 10px;
}

.page-indicator {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  position: relative;
  padding-top: 8px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  z-index: 2;
  position: relative;
}


.page-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #E2E8F0;
  transition: all 0.3s ease;
  margin-top: 2px;
}

.page-dot.active {
  background: linear-gradient(to right, #334F6C, #334F6C);
  transform: scale(1.2);
}

.step-label {
  font-size: 0.6rem;
  color: #718096;
  font-weight: 500;
}

.step-label.active {
  color: #334F6C;
}

.page-lines {
  position: absolute;
  top: 1px;
  left: 25px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  z-index: 1;
  padding: 0 ;
}

.page-line {
  height: 2px;
  flex: 1;
  background-color: #E2E8F0;
  transition: all 0.3s ease;
  margin: 0; /* Space between lines and dots */
}

.page-line.active {
  background: linear-gradient(to right, #334F6C, #334F6C);
}

.step-item.clickable {
  cursor: pointer;
}

.step-item.clickable:hover .page-dot {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

.step-item.clickable:hover .step-label {
  color: #1976d2;
  transition: color 0.2s ease;
}

.value-with-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eye-toggle {
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 0.25rem;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  min-height: 20px;
  border-radius: 3px;
  transition: background-color 0.2s;
}

.eye-toggle:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.eye-toggle:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}


.form-container {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 0px 20px 20px 20px; /* Reduced top padding */
  margin: 0 0;
}

.form-container h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

/* Make form rows responsive */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
  margin-bottom: .5rem; /* Add this line to increase space between rows */

}


/* Form groups should wrap as needed */
.form-group {
  flex: 1 1 250px; /* Grow, shrink, and have a basis of 250px */
  min-width: 0; /* Critical for preventing overflow */
  max-width: 100%;
  margin-bottom: 0.1rem; /* Reduced margin to account for error message space */

}


.form-group label {
  font-size: 0.65rem;
  color: #4a5568;
  font-weight: 500;
  display: block;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

/* Icon positioning within input groups */
.input-group i,
.input-group svg {
  position: absolute;
  left: 0.75rem;
  color: #6c757d;
  font-size: .65rem;
  pointer-events: none;
}


.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem 0.6rem 2.25rem; /* Reduced vertical padding */
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 0.65rem; /* Slightly smaller font size */
  line-height: 1.3; /* Tighter line height */
  transition: border-color 0.2s;
  height: 30px; /* Fixed height for inputs */
  box-sizing: border-box;
}


.input-group input:focus,
.select-input:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.select-input {
  height: 30px !important; /* Make sure select boxes are the same height */
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: white;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  /* Force scrollbar for Safari and other browsers */
  overflow-y: auto;
  /* Safari-specific hack */
  -webkit-overflow-scrolling: touch;
  /* Optional: set max-height for dropdown */
  max-height: 200px;
  /* Add a right border as a visual scroll indicator for Safari */
  box-shadow: inset -6px 0 6px -6px #f1f1f1;
  scrollbar-width: thin;
  scrollbar-color: #ccc #f1f1f1;
}

/* Webkit scrollbar styling for Safari */
.select-input::-webkit-scrollbar {
  width: 8px;
  background: #f1f1f1;
}
.select-input::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.welcome-text {
  position: relative;
  z-index: 1;
  padding: 20px;
}

.welcome-text h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.welcome-text p {
  font-size: 1.1rem;
  max-width: 400px;
  margin: 0 auto;
}

.form-subtitle {
  text-align: center;
  color: #2d2f36;
  margin-bottom: 0rem;
  font-size: 1rem;
}

.terms {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.terms input[type="checkbox"] {
  margin: 0;
  width: auto;
}

.terms label {
  font-size: 0.85rem;
  color: #718096;
  margin: 0;
}

.button-group {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  margin: 10px 10px 0 0;
  width: 100%;
}

.prebutton-group {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 10px 10px 0 0;
  width: 100%;
}

.back-button,
.continue-button {
  display: flex;
  align-items: center;
  gap: 0.4rem; /* Reduced spacing */
  background-color: #30404c;
  color: white;
  border: none;
  border-radius: 6px; /* Smaller radius */
  padding: 0.5rem 1.25rem; /* Reduced padding */
  font-size: 0.8rem; /* Smaller font */
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  box-shadow: 0 3px 6px rgba(58, 134, 255, 0.15);
  text-align: center;
}

.back-button {
  background: white;
  color: #334F6C;
  border: 2px solid #334F6C;
  text-align: center;
}

.back-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.back-button:not(:disabled):hover {
  background: #F8FAFC;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.continue-button:hover {
  background-color: #212838;
  transform: translateY(-1px); /* Reduced movement */
  box-shadow: 0 4px 8px rgba(58, 134, 255, 0.2);
}

.login-link {
  position: absolute;
  bottom: 0.5rem; /* Adjust this value to match the bottom of the left image */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  text-align: right;
  margin: 0; /* Remove any margins */
  padding: 0; /* Remove any padding */
  font-size: 0.6rem;
  color: #6c757d;
}


.login-link a {
  color: #30404c;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.login-link a:hover {
  color: #212838;
  text-decoration: underline;
}


/* Confirmation Page Styles */
.confirmation-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
  align-items: flex-start; /* This prevents equal height stretching */
}

.confirmation-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.confirmation-section {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 10px;
  height: fit-content;
}

.confirmation-section h3 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 18px;
}

.confirmation-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.confirmation-item {
  display: flex;
  flex-direction: row;
  gap: 5px;
}

.confirmation-item .label {
  font-weight: 600;
  color: #666;
  font-size: 12px;
}

.confirmation-item .value {
  color: #333;
  font-size: 12px;
}

.terms-confirmation {
  margin: 5px 0;
  padding: 5px;
  background: #f8f9fa;
  border-radius: 8px;
}

.terms-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.terms-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.terms-checkbox label {
  font-weight: 600;
  color: #333;
  cursor: pointer;
}

.terms-description {
  color: #666;
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
  padding-left: 30px;
}

.success-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px auto 24px auto;
  width: 100%;
}

.success-icon i {
  color: #28a745;
  font-size: 50px;
  display: block;
}
.close-button-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.close-button {
  background: linear-gradient(to right, #334F6C, #334F6C);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 48px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.close-button:hover {
  background: #22334a;
}
.error-message {
  color: #e53e3e;
  font-size: 0.7rem;
  text-align: left;
  margin-top: 2px;
  margin-bottom: 4px; /* Add bottom margin to prevent overlap with next field */
  line-height: 1.2; /* Tighter line height */
  display: block; /* Ensure it's a block element */
}
.continue-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #bfc8d6; /* Optional: lighter background for disabled */
  color: #f8f9fa;      /* Optional: lighter text */
}

/* Pre-Registration Page Styles */
.pre-registration-container {
  max-width: 90%;
  margin: 0 auto;
}


.pre-registration-header {
  text-align: center;
  margin-bottom: 1rem; /* Reduced margin */

}

.email-icon-container {
  background: linear-gradient(135deg, #334F6C 0%, #4A6990 100%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px auto 5px;
  color: white;
  box-shadow: 0 10px 15px -3px rgba(51, 79, 108, 0.2);
}

.email-icon-container i {
  font-size: 15px;
}

.pre-registration-container h2 {
  font-size: 1rem; /* Smaller heading */
  font-weight: 700;
  color: #334F6C;
  margin-bottom: 8px;
}

.pre-registration-container .form-subtitle {
  font-size: 12px;
  color: #272e3b;
  max-width: 450px;
  margin: 0 auto 5px;
  line-height: 1.6;
}

.verification-steps {
  margin-bottom: 2rem; /* Reduced from 2.5rem */
}


.verification-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem; /* Reduced spacing */

}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Significantly smaller */
  height: 32px; /* Significantly smaller */
  background-color: rgba(58, 134, 255, 0.1);
  border-radius: 8px; /* Smaller radius */
  color: #30404c;
  margin-right: 0.75rem; /* Reduced margin */
  flex-shrink: 0;
}


.step-icon i {
  color: #334F6C;
  font-size: 10px;
}

.step-content h4 {
  margin: 0;
  font-size: 0.6rem; /* Smaller heading */
}

.step-content h3 {
  font-size: 0.85rem; /* Reduced size */
  font-weight: 600;
  margin-bottom: 0.2rem; /* Reduced spacing */
}


.step-content p {
  color: #6c757d;
  font-size: 0.65rem; /* Smaller text */
}


.pre-registration-form {
  margin-bottom: 10px;
}

.pre-registration-input {
  height: 80px;
  font-size: 14px !important;
}

.pre-registration-button {
  height: 35px !important;
  width: 50% !important;
  font-size: 10px !important;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pre-registration-button i {
  font-size: 12px;
}

.security-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #f0f9ff;
  border-radius: 8px;
  padding: 10px;
  margin-top: 2px;
  border-left: 4px solid #334F6C;
}

.security-note i {
  color: #334F6C;
  font-size: 14px;
}
.security-note-account {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #f0f9ff;
  border-radius: 8px;
  padding: 10px;
  margin-top: 2px;
  border-left: 4px solid #334F6C;
}

.security-note-account p {
  color: #334155;
  font-size: 12px;
  margin: 0;
}

.security-note-account i {
  color: #334F6C;
  font-size: 14px;
}

.security-note p {
  color: #334155;
  font-size: 12px;
  margin: 0;
}

/* Email Sent Screen */
.email-sent-container {
  text-align: center;
  padding: 15px;
}

.email-sent-icon {
  font-size: 40px;
  color: #10b981;
  margin-bottom: 10px;
  animation: fadeIn 0.5s ease-out;
}

.email-sent-container h2 {
  font-size: 18px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 10px;
}

.email-sent-container p {
  font-size: 12px;
  color: #6B7280;
  max-width: 450px;
  margin: 0 auto 5px;
}

.instructions {
  margin-bottom: 15px !important;
  line-height: 1.6;
}

.email-sent-details {
  background-color: #f8fafc;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.detail-item i {
  color: #334F6C;
  font-size: 20px;
  min-width: 20px;
}

.detail-item p {
  margin: 0;
  text-align: left;
  font-size: 14px;
}

.resend-button {
  background: none;
  border: 2px solid #334F6C;
  color: #334F6C;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.resend-button:hover {
  background-color: #f1f5f9;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}


/* Modern Email Input Styles */
.input-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #374151;
}

.modern-input-container {
  display: flex;
  position: relative;
  height: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
  transition: all 0.2s ease;
  background: #ffffff;
  overflow: hidden;
}

.modern-input-container:focus-within {
  border-color: #4a6cf7;
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.15);
}

.input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  color: #6b7280;
  background-color: #f9fafb;
  border-right: 1px solid #e0e0e0;
}

.modern-input {
  flex: 1;
  height: 100%;
  padding: 0 14px;
  border: none;
  outline: none;
  font-size: 12px;
  color: #1f2937;
}

.modern-input::placeholder {
  color: #9ca3af;
}

.input-error {
  border-color: #ef4444;
}

.modern-input-container:has(.input-error) {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}



.input-help-text {
  font-size: 14px;
  color: #6b7280;
  margin-top: 6px;
}

.pre-registration-button {
  margin-top: 2px;
  background: linear-gradient(to right, #30404c, #30404c);
  transition: all 0.2s ease;
  border: none;
  height: 45px;
  font-weight: 500;
  border-radius: 8px;
  width: 100%;
}

.pre-registration-button:hover:not(:disabled) {
  background: linear-gradient(to right, #2a2a3b, #363845);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.25);
}

.pre-registration-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-group {
  margin-bottom: 5px;
}




/* Add these styles if you use the class-based approach */

/* For desktop view, keep address fields on one row */
.address-row {
  display: flex;
  flex-wrap: nowrap !important; /* Override the form-row flex-wrap */
  gap: 1rem;
  width: 100%;
}

.address-row .form-group {
  min-width: 0; /* Allows content to shrink below min-content if needed */
}

.city-group {
  flex: 2; /* City takes twice as much space */
}

.state-group,
.zip-group {
  flex: 1; /* State and zip take equal space */
}
.failure-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 5px;
  font-size: 60px;
}

/* Fix logo centering for screens less than 743px */
@media (max-width: 743px) {
  .logos-container.one-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .logo-center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .logo-center img {
    max-width: 250px;
    height: auto;
  }
}

@media (max-width: 650px) {

  .back-button {
    display: flex;
    align-items: center;
    gap: 0.4rem; /* Reduced spacing */
    background-color: #30404c;
    color: #6c757d;
    border-radius: 6px; /* Smaller radius */
    padding: 0.5rem 1.25rem; /* Reduced padding */
    font-size: 0.8rem; /* Smaller font */
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #dee2e6;
    transition: background-color 0.2s, transform 0.2s;
    box-shadow: 0 3px 6px rgba(58, 134, 255, 0.15);
    align-items: center;
  }

  .back-button:hover {
    background-color: #e9ecef;
  }

}


@media (max-width: 768px) {
  .registration-page {
    padding: 15px 10px;
    gap: 10px;
  }

  .registration-left {
    display: none;
  }

  .right-content {
    padding: 10px 1rem 1rem 1rem ; /* Adjust padding for smaller screens */
  }
  .form-container {
    flex: 1;
    padding-bottom: 0; /* Remove padding from form container bottom */
    overflow-y: auto;
  }

  .form-row {
    flex-direction: column;
    gap: 15px;
  }

  .form-group {
    width: 100%;
  }

  /* Button styling */
  .button-group {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
  }

  .back-button,
  .continue-button {
    display: flex;
    align-items: center;
    gap: 0.4rem; /* Reduced spacing */
    background-color: #30404c;
    color: white;
    border: none;
    border-radius: 6px; /* Smaller radius */
    padding: 0.5rem 1.25rem; /* Reduced padding */
    font-size: 0.8rem; /* Smaller font */
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    box-shadow: 0 3px 6px rgba(58, 134, 255, 0.15);
  }

  .back-button {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;

  }

  .back-button:hover {
    background-color: #e9ecef;
  }

  .continue-button:hover {
    background-color: #212838;
  }


  .confirmation-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start; /* This prevents equal height stretching */
  }



  .confirmation-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .confirmation-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .confirmation-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  /* For single items that should span full width */
  .confirmation-row:last-child:not(:empty) {
    grid-template-columns: 1fr;
  }

  @media (max-width: 768px) {
    .confirmation-row {
      grid-template-columns: 1fr;
    }
  }
  .confirmation-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  /* For single items that should span full width */
  .confirmation-row:has(.confirmation-item:only-child) {
    grid-template-columns: 1fr;
  }

  /* Success and Failure Page Styles */



  /* Shared wrapper for success and failure pages */
  .success-page-wrapper,
  .failure-page-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: calc(100vh - 40px);
    background-color: #f8f9fa;
    overflow: hidden;
    padding: 20px;
  }

  .success-box,
  .failure-box {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative; /* Resolves section overlap */
  }

  /* Icon Styling */
  .failure-icon i {
    font-size: 4rem;
    margin-bottom: 10px;
    display: block;
  }


  .failure-icon i {
    color: #ef4444; /* Failure red */
  }

  /* Title Styling */
  .success-title,
  .failure-title {
    font-size: 2rem;
    text-align: center;
    align-content: center;
    font-weight: 700;
    color: #334155; /* Darker neutral */
    margin-bottom: 5px;
  }

  /* Message Styling */
  .success-message,
  .failure-message {
    font-size: 1.1rem;
    color: #6b7280; /* Neutral text */
    margin-bottom: 20px;
    line-height: 1.6;
  }

  /* Detail boxes for success and failure */
  .success-details,
  .error-details,
  .failure-details {
    background: #f3f4f6; /* Light background */
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
  }

  .success-details p,
  .error-details p,
  .failure-details p {
    font-size: 0.95rem;
    color: #525f7f; /* Subtle text color */
    margin: 8px 0;
    line-height: 1.5;
  }

  .success-details strong,
  .error-details strong,
  .failure-details strong,
  .failure-details b {
    color: #1f2937; /* Stronger emphasis */
  }

  .failure-details h3 {
    font-size: 1.1rem;
    color: #334155;
    margin: 1rem 0;
  }

  /* Buttons */
  .action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
  }

  .success-button,
  .failure-button {
    background-color: #10b981; /* Success green */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .failure-button {
    background-color: #ef4444; /* Failure red */
  }

  .success-button:hover,
  .failure-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  }

  .light-button {
    background: white;
    color: #4b5563; /* Neutral */
    border: 2px solid #d1d5db; /* Light gray */
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .light-button:hover {
    border-color: #6b7280; /* Slightly darker gray */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }


  .back-button:hover {
    background: #FEE2E2; /* Light red background */
  }
  .continue-button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

}

/* Media Queries */
@media (max-width: 768px) {
  .verification-steps {
    padding: 10px;
  }
.back-button,.continue-button {
  text-align: center;
}
  .verification-step {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .email-sent-details {
    padding: 15px;
  }

  .logo-section img {
    max-width: 150px; /* Smaller on tablets */
  }

  .form-container {
    flex: 1;
    padding-bottom: 0;
    overflow-y: auto;
  }

  /* Fix form row gap for tablets */
  .form-row {
    flex-direction: column;
    gap: 0.5rem !important; /* Use !important to override */
    margin-bottom: 0.3rem !important;
  }

  /* Control form group height */
  .form-group {
    flex: 0 1 auto !important; /* This overrides the flex: 1 1 250px */
    margin-bottom: 0.5rem !important;
    min-height: auto !important;
    height: auto !important;
  }

  .address-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .address-row .form-group {
    width: 100%;
  }

  /* Failure page tablet styles */
  .failure-page-wrapper {
    padding: 10px;
    height: auto;
    min-height: 100vh;
    align-items: flex-start;
    padding-top: 20px;
  }

  .failure-box {
    padding: 20px 15px;
    max-width: none;
    margin: 0;
    border-radius: 8px;
  }

  .failure-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
  }

  .failure-message {
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.5;
  }

  .failure-icon {
    margin-bottom: 15px;
  }

  .failure-icon svg {
    font-size: 40px !important;
  }

  .failure-details {
    padding: 15px;
    margin: 15px 0;
    font-size: 0.9rem;
  }

  .failure-details h3 {
    font-size: 1rem;
    margin: 0.8rem 0;
  }

  .failure-details ul {
    padding-left: 1.2rem;
    margin: 0.8rem 0;
  }

  .failure-details li {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .failure-details p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 8px 0;
  }
}

@media (max-width: 576px) {
  .logo-section img {
    max-width: 120px; /* Even smaller on phones */
  }

  .button-group {
    flex-direction: column;
  }

  .back-button,
  .continue-button {
    width: 100%;
    max-width: 100%;
  }
  /* Further reduce form row gap for small phones */
  .form-row {
    gap: 0.3rem !important;
    margin-bottom: 0.2rem !important;
  }

  .form-group {
    margin-bottom: 0.3rem !important;
  }

  .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
  }

  .ssn-input {
    width: 100%;
    padding: 10px 40px 10px 30px; /* space for icons */
    font-size: 1rem;
  }

  .input-icon-left {
    position: absolute;
    left: 10px;
    color: #888;
    pointer-events: none;
  }

  .eye-button {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
  }


}

/* For even smaller screens */
@media (max-width: 480px) {
  .form-row {
    gap: 0.2rem !important;
    margin-bottom: 0.2rem !important;
  }

  .form-group {
    margin-bottom: 0.3rem !important;
  }

  .back-button,
  .continue-button {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.4rem;
  }
  .pre-registration-button {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center;
  }
  /* Stack confirmation sections vertically on small screens */
  .confirmation-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
  }

  .confirmation-col {
    width: 100%;
  }

  .confirmation-section {
    margin-bottom: 15px;
  }

  /* Make confirmation items stack vertically on small screens */
  .confirmation-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .confirmation-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 5px;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
  }
  /* Fix login link positioning */
  .login-link {
    position: relative; /* Change from absolute/static to relative */
    margin-top: 1rem;
    margin-bottom: 1rem;
    width: 100%;
    text-align: left;
    padding: 0 0 0 0;
    bottom: auto; /* Remove bottom positioning */
    left: auto; /* Remove left positioning */
    transform: none; /* Remove transform */
  }
  .confirmation-item:last-child {
    border-bottom: none;
  }
  .right-content {
    padding: 10px 0.25rem 1rem 0.25rem; /* Match the desktop padding */
  }

  /* Failure page mobile styles */
  .failure-page-wrapper {
    padding: 5px;
    padding-top: 15px;
  }

  .failure-box {
    padding: 15px 10px;
    border-radius: 6px;
  }

  .failure-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    word-wrap: break-word;
  }

  .failure-message {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }

  .failure-icon svg {
    font-size: 35px !important;
  }

  .failure-details {
    padding: 12px;
    margin: 12px 0;
  }

  .failure-details h3 {
    font-size: 0.95rem;
    margin: 0.6rem 0;
  }

  .failure-details ul {
    padding-left: 1rem;
    margin: 0.6rem 0;
  }

  .failure-details li {
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    line-height: 1.3;
  }

  .failure-details p {
    font-size: 0.85rem;
    line-height: 1.3;
    margin: 6px 0;
  }

  .button-group {
    margin: 15px 0 0 0;
    padding: 0;
  }

  .continue-button {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

.left-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 5px;
    margin: 0;
    padding: 0;
    border: none;
}
