/* Registration Page Specific Styles */
.registration-page {
  background: transparent;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  /* top-align so the card never feels vertically “squished” */
  padding: 32px 20px;
  /* a bit more top padding than before */
  box-sizing: border-box;
}


/* ——— Header title + logo (responsive, no overlap) ——— */
.title-logo-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  /* keep title perfectly centered while logo sits on the right */
  align-items: center;
  width: 100%;
}

.title-logo-container h1.registration-title {
  grid-column: 2;
  margin: 0;
  text-align: center;
}

.title-logo-container .header-logo {
  grid-column: 3;
  justify-self: end;
  height: 40px;
  width: auto;
}


/* Unified “card” width that matches the visual density of login, while giving step 1 room for two columns */
.registration-window {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
  width: 100%;
  max-width: 1040px;
  /* was 1000px; gives step 1 more breathing room */
  padding: 28px;
  /* was 30px; slightly tighter, matches login feel */
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  /* always center the card */
}


.registration-header {
  text-align: center;
  margin-bottom: 10px;
}

.registration-body {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  /* was 20px then 16px later; keep 16px consistently */
}

/* When panels collapse to single column (e.g., step 2/3), keep the core form at a “full” readable width */
.centralized-content,
.personal-info-container,
.organization-section {
  max-width: 800px;
  /* gives forms a confident, not-narrow look */
}


.left-panel,
.right-panel {
  flex: 1;
  padding: 20px;
}

.right-panel {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.left-panel {
  border-right: 2px solid;
  border-image: linear-gradient(to bottom, #007BFF, #0056b3) 1;
}

.left-panel h3,
.right-panel h3 {
  margin-bottom: 15px;
  text-align: center;
}

.right-panel h3 {
  margin-bottom: 0px;
  /* Reduced from 15px */
}

.account-btn {
  width: 100%;
  padding: 15px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #007BFF, #0056b3);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s ease;
}

.account-btn:hover {
  background: linear-gradient(135deg, #0056b3, #003f7f);
}

.features-list {
  list-style-type: none;
  padding: 0;
  margin-bottom: 10px;
}


.registration-footer {
  text-align: center;
  margin-top: 20px;
}

.account-type-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.signal-line {
  width: 2px;
  height: 40px;
  /* Adjust this value if you need a longer/shorter connector */
  background: linear-gradient(180deg, #007BFF, #0056b3);
  position: relative;
  overflow: hidden;
}

.signal-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: signalPulseVertical 2s infinite;
}

@keyframes signalPulseVertical {
  0% {
    top: -100%;
  }

  50% {
    top: 100%;
  }

  100% {
    top: 100%;
  }
}

/* Pricing Page Specific Styles */
.pricing-pitch {
  margin-top: 10px;
  font-size: 0.95em;
  text-align: center;
  color: #333;
}

.pricing-pitch a {
  color: #007BFF;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.pricing-pitch a:hover {
  color: #0056b3;
}

/* captcha styles */
.captcha-container {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.account-btn.selected {
  /* Remove any border styling and use a glow effect instead */
  box-shadow: 0 0 10px #007BFF;
}


.proceed-container {
  margin-top: 10px;
  text-align: center;
}

.proceed-button {
  padding: 10px 20px;
  background: linear-gradient(135deg, #007BFF, #0056b3);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s ease;
}

.proceed-button:hover {
  background: linear-gradient(135deg, #0056b3, #003f7f);
}

.registration-title {
  font-size: 2em;
  /* Adjust size as needed */
  color: #007BFF;
  /* Theme color */
  margin: 0;
  font-weight: bold;
}

.modern-divider {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, #007BFF, #0056b3);
  margin: 20px 0;
}

.recaptcha-instruction {
  font-size: 0.95em;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
}

.account-subtext {
  font-size: 0.9em;
  color: #555;
  text-align: center;
  margin-bottom: 10px;
}

/* Ensure each feature has enough left padding for the check mark */
.features-list li {
  position: relative;
  /* Increase padding to create room for the background while preserving space for the check mark */
  padding: 12px 15px 12px 40px;
  /* Top, Right, Bottom, Left */
  margin-bottom: 20px;
  background: linear-gradient(135deg, #f7fcff, #e6f2ff);
  /* A subtle light blue gradient */
  border-radius: 4px;
}

/* Create a Square check mark icon on the left */
.features-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid #007BFF;
  border-radius: 4px;
  /* Changed from 50% to 4px for a square shape */
  text-align: center;
  line-height: 16px;
  /* Adjusted for centering the check mark */
  color: #007BFF;
  font-weight: bold;
}

/* New styling for account type description */
.account-description {
  font-size: 1em;
  color: #007BFF;
  /* Updated to our theme blue */
  margin-bottom: 15px;
  text-align: center;
  padding: 0 10px;
}

.account-type-name {
  font-weight: bold;
  color: #0056b3;
  /* A slightly darker blue for emphasis */
}

/* Divider above the email input */
.input-divider-top {
  width: 60%;
  margin: 10px auto;
  border: none;
  border-top: 1px solid #ccc;
}

/* Email input container */
.email-input-container {
  width: 60%;
  margin: 10px auto;
  position: relative;
}

/* Label positioned at the top left */
.email-label {
  display: block;
  text-align: left;
  font-size: 0.9em;
  color: #007BFF;
  margin-bottom: 4px;
}

/* Redesigned email input field: shorter and thicker */
#insurer-email {
  width: 100%;
  height: 40px;
  padding: 8px;
  font-size: 1em;
  border: none;
  outline: none;
}

/* Bottom border for the email input field */
.email-input-border {
  border-bottom: 2px solid #007BFF;
  margin-top: 2px;
}

/* Error message styling below input */
.error-message {
  color: red;
  font-size: 0.8em;
  margin-top: 4px;
  text-align: left;
}

/* Style for the privacy policy link */
.privacy-policy-link {
  color: #007BFF;
  text-decoration: none;
  font-weight: bold;
}

.privacy-policy-link:hover {
  text-decoration: underline;
}

/* Icon representing "open in new window" */
.external-link-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23007BFF' d='M14 3l7 7-1.414 1.414L16 7.828V20h-2V7.828l-3.586 3.586L9 10l7-7z'/%3E%3C/svg%3E") no-repeat center center;
  background-size: contain;
}


.email-info-text {
  text-align: center;
  margin-top: 20px;
}

.verify-email-button {
  display: block;
  margin: 20px auto;
  /* Centers the button horizontally and adds vertical spacing */
  padding: 15px 30px;
  font-size: 1.1em;
  background: linear-gradient(135deg, #007BFF, #0056b3);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.verify-email-button:hover {
  background: linear-gradient(135deg, #0056b3, #003f7f);
  transform: translateY(-2px);
}

.verify-email-button::after {
  content: "";
  display: inline-block;
  margin-left: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
  width: 8px;
  height: 8px;
}


/* ───────── Modern Stepper (numbers → checkmarks, animated track) ───────── */
.stepper {
  position: relative;
  padding: 6px 0 0;

  /* theming vars */
  --dot-size: 28px;
  /* must match .stepper-dot width/height */
  --dot-border: 2px;
  /* must match .stepper-dot border width */
  --connector-h: 4px;
  /* track thickness */
  --progress-color-start: #60a5fa;
  /* modern blue */
  --progress-color-end: #0ea5e9;
  /* cyan-blue blend */
}


/* dynamic step count driven by a CSS variable (defaults to 5) */
.stepper {
  --step-count: 5;
}

.stepper-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(var(--step-count), minmax(0, 1fr));
  gap: 0;
  padding: 0 8px;
  margin: 0 0 8px;
  position: relative;
  /* layer above the connectors */
  z-index: 2;
}

/* helpful hook classes the JS will toggle; makes intent explicit */
.stepper.is-4steps {
  --step-count: 4;
}

.stepper.is-5steps {
  --step-count: 5;
}


.stepper-item {
  position: relative;
  text-align: center;
  white-space: nowrap;
}

.stepper-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 9999px;
  background: #e6eef8;
  color: #223050;
  font-weight: 700;
  border: 2px solid #c7d7f2;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.stepper-dot {
  position: relative;
  z-index: 3;
  /* keep dots above connector lines */
}


.stepper-item.active .stepper-dot {
  background: linear-gradient(135deg, #007BFF, #0056b3);
  color: #fff;
  border-color: transparent;
  transform: scale(1.05);
}

.stepper-item.completed .stepper-dot {
  background: #0ea5e9;
  /* tasteful blue-green complete */
  color: #fff;
  border-color: transparent;
}

.stepper-label {
  display: block;
  margin-top: 6px;
  font-size: 0.86rem;
  color: #223050;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── NEW: Draw connectors ONLY between step centers ───────────────────────── */

/* Base, unfilled connector from the previous dot center → this dot center.
   It exists on every item except the first (there's nothing to connect on the left). */
.stepper-item:not(:first-child)::before,
.stepper-item:not(:first-child)::after {
  content: '';
  position: absolute;
  /* Center the connector on the dot’s true vertical center (dot + border) */
  top: calc((var(--dot-size) + (2 * var(--dot-border))) / 2 - (var(--connector-h) / 2));
  left: -50%;
  width: 100%;
  /* previous center → this center */
  height: var(--connector-h);
  border-radius: 999px;
}

.stepper-item:not(:first-child)::before {
  background: #e6eef8;
  /* unfilled segment */
  z-index: 1;
  /* behind the dots */
}

.stepper-item:not(:first-child)::after {
  background: linear-gradient(90deg, var(--progress-color-start), var(--progress-color-end));
  width: 0;
  /* animate to 100% */
  z-index: 2;
  /* still behind dots (dots are z=3) */
  transition: width .3s ease;
}


/* When a step is either the current (active) or already passed (completed),
     we fill the connector from the previous step fully. */
.stepper-item.completed:not(:first-child)::after,
.stepper-item.active:not(:first-child)::after {
  width: 100%;
}


/* Compact labels/dots for phones */
@media (max-width: 600px) {
  .stepper {
    --dot-size: 24px;
    /* phone-sized dots */
    /* no --track-top needed anymore */
  }

  .stepper-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .stepper-label {
    font-size: 0.68rem;
  }
}

/* Disable legacy/stray track element so only segment connectors render */
.stepper-track {
  display: none !important;
}



/* Consistent step-panel rhythm across steps (desktop/tablet/phone) */
.step-panel {
  min-height: 560px;
}

@media (max-width: 900px) {
  .step-panel {
    min-height: 520px;
  }
}

@media (max-width: 600px) {
  .step-panel {
    min-height: 480px;
  }
}


/* New CSS for highlighting fields with errors */
.error-highlight {
  border: 2px solid red !important;
  animation: shake 0.3s;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  50% {
    transform: translateX(5px);
  }

  75% {
    transform: translateX(-5px);
  }

  100% {
    transform: translateX(0);
  }
}

/* Shake-only animation without red border */
.shake-only {
  animation: shake 0.3s;
}

/* ----- Modern “sent” hero (image + text) ----- */
.sent-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 16px;
  max-width: 640px;
  text-align: left;
}

.sent-hero-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex: 0 0 56px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.sent-hero-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sent-title {
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 700;
  color: #0056b3;
}

.sent-subtitle {
  font-size: 0.95rem;
  color: #007BFF;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .sent-hero {
    gap: 10px;
    padding: 0 4px;
  }

  .sent-hero-img {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .sent-title {
    font-size: 1.05rem;
  }

  .sent-subtitle {
    font-size: 0.95rem;
  }
}


/* ----- Verification Code Container and Inputs ----- */
#verification-code-container {
  display: flex;
  justify-content: center;
  /* Centers the inputs */
  gap: 15px;
  /* Increased gap for a modern look */
  margin-bottom: 20px;
  /* Adds spacing below the inputs */
}

.code-digit {
  width: 50px;
  /* Increase width from 40px to 50px */
  height: 50px;
  /* Make inputs square and larger */
  text-align: center;
  font-size: 1.5em;
  /* Bigger font for better visibility */
  border: 2px solid #007BFF;
  /* Matches your theme blue */
  border-radius: 4px;
  outline: none;
  transition: border-color 0.3s ease;
}

.code-digit:focus {
  border-color: #0056b3;
  /* Slightly darker blue when focused */
}

.success-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #e6ffe6;
  /* Light green background */
  color: #2d662d;
  /* Dark green text */
  padding: 20px 40px;
  border: 1px solid #2d662d;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 16px;
  z-index: 1000;
  text-align: center;
}

/* Organization Section Styles */
.organization-section {
  width: 90%;
  margin: 20px auto;
  /* 20px top margin and auto left/right to center */
  text-align: center;
}

.organization-panels {
  display: flex;
  flex-wrap: nowrap;
  /* Force the panels to stay side by side */
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.org-panel-label {
  flex: 0 0 calc(50% - 10px);
  /* Each panel takes half minus 10px to account for the 20px gap */
  display: block;
  border: 1px solid #007BFF;
  border-radius: 8px;
  padding: 15px;
  background: #f7fcff;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
  margin: 0;
}



.organization-section h2 {
  font-size: 1.5em;
  color: #007BFF;
  margin-bottom: 15px;
}


.org-panel-label input[type="radio"] {
  margin-right: 10px;
}

.org-panel-label:hover {
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.6);
}

.org-panel-title {
  font-size: 1.2em;
  color: #0056b3;
  margin-bottom: 10px;
  font-weight: bold;
}

.org-panel .panel-description {
  font-size: 0.95em;
  color: #003366;
  margin-bottom: 10px;
}

.org-panel-content {
  margin-top: 10px;
  text-align: left;
}

/* Center the label for the Select Organization dropdown */
.org-panel-content label.field-label {
  display: block;
  text-align: center;
}

.org-panel-content select,
.org-panel-content input {
  width: 100%;
  padding: 10px;
  font-size: 1em;
  border: 2px solid #007BFF;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s ease;
}

.org-panel-content select:focus,
.org-panel-content input:focus {
  border-color: #0056b3;
}

/* NEW: Specific styling for the Select Organization dropdown field */
.org-panel-content input#existing-org {
  width: 100%;
  /* Ensures full width within the panel */
  box-sizing: border-box;
  /* Includes padding in the width */
  margin: 0 auto;
  /* Center the element within its container */
  display: block;
  padding: 10px;
  /* Match the generic padding */
  border: 2px solid #007BFF;
  border-radius: 6px;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

.org-panel-content input#existing-org:focus {
  border-color: #0056b3;
}



/* NEW: Personal Info Grid Layout for Account Details (Updated with CSS Grid) */
.personal-info-container {
  width: 90%;
  margin: 0 auto 20px auto;
  text-align: center;
}

.personal-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  justify-items: center;
}

.form-field {
  width: 100%;
}

.field-label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #007BFF;
}

/* Generic input styling – similar to organization inputs */
.form-field input {
  width: 100%;
  padding: 12px;
  font-size: 1em;
  border: 2px solid #007BFF;
  border-radius: 6px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.form-field input:focus {
  border-color: #0056b3;
  outline: none;
}


/* Input with status */
.input-with-status {
  position: relative;
}

.input-with-status input {
  width: 100%;
  padding-right: 40px;
  /* extra space for the status icon */
}

.status-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  pointer-events: none;
  display: none;
  /* Initially hidden */
}



/* New styles for the password confirmation field */

/* Requirements indicator styling */
.password-requirements {
  font-size: 14px;
  color: #555;
  margin-top: 2px;
  /* Use the same reduced gap */
  padding: 8px;
  background-color: #f9f9f9;
  border-left: 4px solid #007BFF;
  border-radius: 4px;
}


/* radio button styling */

input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.centered-org-inputs {
  text-align: center;
  padding: 10px;
  /* adds spacing from panel borders */
}

.centered-org-inputs input {
  margin: 0 auto;
  display: block;
  width: 80%;
  /* Adjust as needed */
  margin-bottom: 10px;
}



/* Custom Dropdown Styles */
.custom-dropdown .dropdown-container {
  position: relative;
  width: 100%;
}

.custom-dropdown .dropdown-container input {
  width: 100%;
  padding: 12px 50px 12px 12px;
  /* Extra right padding for the toggle arrow */
  border: 2px solid #007BFF;
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
  outline: none;
}

.custom-dropdown .dropdown-container button.dropdown-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.custom-dropdown .dropdown-container .arrow-icon {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #007BFF;
}

/* Divider between the input text and the arrow */
.custom-dropdown .dropdown-container::before {
  content: "";
  position: absolute;
  right: 35px;
  /* Adjust as needed so the divider is positioned just left of the arrow */
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 70%;
  background-color: #007BFF;
  pointer-events: none;
}

.custom-dropdown .dropdown-container .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 2px solid #007BFF;
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  /* Hidden by default */
  z-index: 100;
  margin: 0;
  padding: 0;
  list-style: none;
}

.custom-dropdown .dropdown-container .dropdown-menu li {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #f0f8ff;
}

.custom-dropdown .dropdown-container .dropdown-menu li:last-child {
  border-bottom: none;
}

.custom-dropdown .dropdown-container .dropdown-menu li:hover {
  background-color: #f0f8ff;
}

.centralized-content {
  width: 90%;
  margin: 0 auto;
}

/* Eye Toggle Button Using Image */
.toggle-password-btn {
  position: absolute;
  right: 40px;
  /* Move further left than before so it doesn't conflict with native browser icons */
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Ensure the image inside the button fits nicely */
.toggle-password-btn img {
  display: block;
  width: 24px;
  height: 24px;
}

/* Tooltip for Password Visibility */
.toggle-password-btn:hover::after {
  content: "Password Visibility";
  position: absolute;
  top: -30px;
  /* Position the tooltip above the button */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 12px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show tooltip on hover */
.toggle-password-btn:hover::after {
  opacity: 1;
}

/* New Summary View Styles */
.summary-view {
  max-width: 800px;
  width: 90%;
  padding: 30px;
  background: #ffffff;
  /* White background */
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
}


.summary-view .centralized-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.summary-view .summary-section {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.1);
  margin-bottom: 20px;
}

.summary-view h2 {
  color: #007BFF;
  margin-bottom: 15px;
}

.clear-btn {
  background: transparent;
  border: 1px solid #007BFF;
  /* Use your theme color */
  border-radius: 4px;
  color: #007BFF;
  cursor: pointer;
  font-size: 0.9em;
  padding: 4px 8px;
}

.clear-btn:hover {
  background-color: #007BFF;
  color: #fff;
}

.org-header-container {
  position: relative;
  text-align: center;
  margin-bottom: 20px;
  /* Added bottom margin to prevent overlap */
}


.org-header-container h2 {
  margin: 0;
}

.clear-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.privacy-block {
  background: #f7fcff;
  /* light blue gradient background (or a solid color from your palette) */
  border: 1px solid #007BFF;
  /* theme blue border */
  border-radius: 8px;
  padding: 15px;
  margin: 20px auto;
  text-align: center;
  max-width: 60%;
  font-size: 0.9em;
  color: #333;
}

.privacy-block a.privacy-policy-link {
  color: #007BFF;
  font-weight: bold;
  text-decoration: none;
}

.privacy-block a.privacy-policy-link:hover {
  text-decoration: underline;
}

/* Add arrow to the "Next" button on the Account Details page */
#finish-account-details::after {
  content: "";
  display: inline-block;
  margin-left: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
  width: 8px;
  height: 8px;
}

.success-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #e6faff;
  /* light blue background for a modern look */
  color: #007BFF;
  /* theme blue for text */
  padding: 20px 40px;
  border: 2px solid #007BFF;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 16px;
  z-index: 1000;
  text-align: center;
  display: none;
}

.success-notification .checkmark {
  font-size: 24px;
  vertical-align: middle;
  margin-right: 10px;
  color: #007BFF;
}

.modern-error {
  background-color: #ffe6e6;
  /* Light red background */
  color: #cc0000;
  /* Bold red text */
  padding: 10px 15px;
  border: 1px solid #cc0000;
  border-radius: 4px;
  font-size: 0.9em;
  text-align: center;
  margin-top: 10px;
}

.modern-error-icon {
  font-size: 18px;
  vertical-align: middle;
  margin-right: 8px;
  color: #cc0000;
}

/* ———————————————————————————————————————————————
   MOBILE/TABLET RESPONSIVE OVERRIDES
   Keep desktop intact, fix phone/tablet layouts
   ——————————————————————————————————————————————— */

@media (max-width: 900px) {
  .registration-window {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    box-sizing: border-box;
  }

  /* Stack panels vertically on smaller screens */
  .registration-body {
    flex-direction: column;
    gap: 16px;
  }

  /* Convert the left divider to a bottom divider on mobile */
  .left-panel {
    border-right: 0;
    border-bottom: 2px solid;
    border-image: linear-gradient(to right, #007BFF, #0056b3) 1;
    padding-bottom: 16px;
  }

  .right-panel {
    padding-top: 8px;
  }

  /* Let key containers breathe to full width */
  .centralized-content,
  .personal-info-container,
  .organization-section {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  /* Inputs/blocks that were 60% → full width on mobile */
  .input-divider-top,
  .email-input-container,
  .privacy-block {
    width: 100%;
    max-width: 100%;
  }

  /* Allow organization panels to wrap (two → one across) */
  .organization-panels {
    flex-wrap: wrap;
    gap: 16px;
  }

  .org-panel-label {
    flex: 1 1 100%;
  }

  /* Keep the header logo slightly smaller on tablets */
  .title-logo-container .header-logo {
    height: 36px;
  }
}

@media (max-width: 600px) {
  .registration-page {
    padding: 12px;
  }

  .registration-title {
    font-size: 1.6em;
  }

  /* Keep progress dots from overflowing small phones */
  .progress-steps {
    max-width: 280px;
  }

  /* Make the 6-digit inputs fit on small screens */
  #verification-code-container {
    gap: 10px;
  }

  .code-digit {
    width: 44px;
    height: 44px;
    font-size: 1.2em;
  }

  /* Prevent the eye icon from colliding with native UI */
  .toggle-password-btn {
    right: 12px;
  }

  /* Slightly tighten feature list padding on narrow screens */
  .features-list li {
    padding: 12px 12px 12px 36px;
  }

  /* Smallest header logo size */
  .title-logo-container .header-logo {
    height: 32px;
  }
}

/* ===== MOBILE ACCOUNT TABS (horizontal, modern) ===== */
.account-tabs-mobile {
  display: none;
}

@media (max-width: 900px) {

  /* Hide the old vertical stack on phones; keep captcha & proceed below */
  .account-type-group {
    display: none;
  }

  .left-panel-heading {
    display: none;
  }

  .account-tabs-mobile {
    display: block;
    margin: 0 0 8px 0;
  }

  .account-tabs-mobile .tab-strip {
    position: relative;
    display: flex;
    gap: 8px;
    padding: 4px 4px 12px 4px;
    overflow-x: auto;
    scrollbar-width: thin;
    /* Firefox */
    -webkit-overflow-scrolling: touch;
  }

  .account-tabs-mobile .tab-btn {
    flex: 0 0 auto;
    padding: 10px 14px;
    border: none;
    border-radius: 9999px;
    background: #f0f6ff;
    color: #0056b3;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .15s ease, background .2s ease, color .2s ease;
  }

  .account-tabs-mobile .tab-btn:active {
    transform: scale(.98);
  }

  .account-tabs-mobile .tab-btn.active {
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: #fff;
  }

  .account-tabs-mobile .tab-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, #007BFF, #0056b3);
    transition: transform .25s ease, width .25s ease;
    will-change: transform, width;
  }
}

/* Slightly tighten right panel on mobile so description sits closer to tabs */
@media (max-width: 600px) {
  .right-panel {
    padding-top: 4px;
  }
}

/* === New: trial tag under "100% free" (both desktop + mobile) === */
.trial-tag {
  display: none;
  /* toggled by JS */
  margin: 6px 0 12px 0;
  padding: 8px 12px;
  font-size: 0.92em;
  font-weight: 600;
  color: #0a3d91;
  background: linear-gradient(135deg, #e9f3ff, #d9eaff);
  border-left: 3px solid #007BFF;
  border-radius: 8px;
}

/* === New: mobile-only "Already have an account?" card === */
.already-card-mobile {
  display: none;
  /* only on mobile */
  margin: 10px 0 16px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
  text-align: center;
}

.already-card-mobile .already-card-title {
  font-weight: 700;
  color: #003f7f;
  margin-bottom: 8px;
}

.already-card-mobile .already-card-btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 9999px;
  border: 2px solid #0056b3;
  text-decoration: none;
  font-weight: 600;
  color: #0056b3;
  transition: background .25s, color .25s;
}

.already-card-mobile .already-card-btn:hover {
  background: #0056b3;
  color: #fff;
}

/* === New: "Show more / Show less" button for truncated descriptions (mobile only) === */
.show-toggle {
  display: inline-block;
  margin-left: 8px;
  background: none;
  border: none;
  font-weight: 700;
  color: #0056b3;
  cursor: pointer;
  text-decoration: underline;
}

.desc-compact {
  color: #003f7f;
}

.desc-full {
  color: #003f7f;
}

/* === Mobile logic: hide inline "already have" text; show the card === */
@media (max-width: 900px) {

  /* Hide legacy inline link inside the left panel, keep captcha */
  .already-inline {
    display: none !important;
  }

  /* Show the new modern card beneath the description */
  .already-card-mobile {
    display: block;
  }
}

/* --- Registration reCAPTCHA spacing tighten (desktop) --- */
.account-tabs-mobile {
  margin-bottom: 8px;
}

.left-panel .recaptcha-instruction {
  margin-top: 8px;
  margin-bottom: 8px;
}

.left-panel .captcha-container {
  margin-top: 6px;
}

/* keep the left/right columns tighter overall */
.registration-body {
  gap: 16px;
}


/* --- Already-have-account card is mobile-only and now sits at the very bottom --- */
@media (min-width: 769px) {
  .already-card-mobile {
    display: none;
  }
}

/* --- Smart truncation wrapper for mobile --- */
.smart-collapsible {
  display: block;
  text-align: left;
  width: 100%;
  max-width: 720px;
  margin: 0 auto 10px;
}

.smart-collapsible .preview {
  font-size: 0.95rem;
  color: #223050;
  line-height: 1.6;
}

.smart-collapsible .toggle {
  display: inline-block;
  margin-top: 8px;
  background: transparent;
  border: none;
  color: #007BFF;
  font-weight: 600;
  cursor: pointer;
}

.smart-collapsible .full {
  display: none;
}

.smart-collapsible.expanded .preview {
  display: none;
}

.smart-collapsible.expanded .full {
  display: block;
}

/* Modern org-email advice card */
.org-email-advice {
  background: linear-gradient(135deg, #f5faff, #eef5ff);
  border: 1px solid #cfe3ff;
  border-left: 4px solid #007BFF;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 6px auto 14px;
  width: 60%;
}

.org-email-advice .advice-title {
  font-weight: 700;
  color: #0056b3;
  margin-bottom: 2px;
}

.org-email-advice .advice-copy {
  margin: 0;
  font-size: 0.95em;
  color: #223050;
}

/* Mobile: full width */
@media (max-width: 900px) {
  .org-email-advice {
    width: 100%;
  }
}

/* --- Inline warning used under legal-name when mismatched --- */
.inline-warning {
  margin: 6px auto 8px;
  max-width: 720px;
  font-size: 0.92rem;
  color: #8a1f11;
  background: #fff2f2;
  border: 1px solid #f1b4b4;
  border-left: 4px solid #cc0000;
  border-radius: 8px;
  padding: 10px 12px;
}

/* Dropdown scroll polish on mobile */
.custom-dropdown .dropdown-container .dropdown-menu {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Keep progress optics tidy on very small screens */
@media (max-width: 380px) {
  .progress-steps {
    max-width: 220px;
  }

  .registration-title {
    font-size: 1.4em;
  }
}

/* Ensure the registration window never feels narrow on tall phones */
@media (max-width: 900px) {
  .registration-window {
    min-width: 0;
  }
}

/* ——— Organization domain badge (slim, under input) ——— */
.domain-badge {
  /* Hidden by default; your JS adds .is-visible */
  display: none;
  margin: 6px auto 4px;
  width: 80%;
  /* matches your centered-org-inputs inputs width */
  max-width: 720px;
  box-sizing: border-box;

  padding: 8px 10px;
  border-radius: 9999px;
  font-size: 12.5px;
  line-height: 1.2;
  border: 1px solid transparent;
  user-select: none;
  text-align: center;

  opacity: 0;
  transform: translateY(-2px);
  transition: opacity .2s ease, transform .2s ease;
}

.domain-badge.is-visible {
  display: flex;
  /* its own row (no inline push) */
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 1;
  transform: translateY(0);
}

.domain-badge__check {
  font-weight: 800;
  font-size: 0.95em;
  line-height: 1;
}

.domain-badge__text {
  font-weight: 600;
  letter-spacing: .1px;
}

/* Theme: success (Domain matched) */
.domain-badge--success {
  background: #e8f8ed;
  /* soft green */
  color: #147c3f;
  /* success text */
  border-color: #bde5c6;
  /* success border */
  box-shadow: 0 1px 0 rgba(0, 0, 0, .02) inset;
}

@media (max-width: 380px) {
  .domain-badge {
    font-size: 11.5px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .domain-badge--success {
    background: #0f2a1a;
    color: #9ae6b4;
    border-color: #1f4f30;
  }
}

/* High contrast / forced colors (Windows HC) */
@media (forced-colors: active) {
  .domain-badge {
    border-color: ButtonText;
  }

  .domain-badge__check {
    color: ButtonText;
  }
}

/* ——— Review & Create (Step 4) ——— */
.review-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin: 0 auto 16px;
  max-width: 800px;
  background: linear-gradient(135deg, #f5faff, #eef5ff);
  border: 1px solid #cfe3ff;
  border-left: 4px solid #007BFF;
  border-radius: 12px;
}

.review-hero__icon {
  font-size: 28px;
  line-height: 1;
  transform: translateY(-1px);
}

.review-hero__text h2 {
  margin: 0;
  color: #0056b3;
  font-size: 1.25rem;
  font-weight: 800;
}

.review-hero__sub {
  margin: 2px 0 0;
  color: #223050;
  font-size: .95rem;
}

/* Cards grid (two columns on wide, 1 column on mobile) */
.review-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  /* left card slightly wider */
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto 14px;
}

.review-card {
  background: #fff;
  border: 1px solid #e6eef8;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(16, 42, 67, .06);
  min-width: 0;
  /* prevent overflow of grid children */
}

.review-card__title {
  margin: 0 0 10px 0;
  color: #0056b3;
  font-weight: 800;
  font-size: 1.05rem;
}

/* Key/value list inside review cards */
.kv-list {
  display: grid;
  row-gap: 10px;
  margin: 0;
  padding: 0;
}

.kv-list .kv-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  /* was 160px; gives more room to the value */
  column-gap: 12px;
  align-items: start;
}

.kv-list dt {
  margin: 0;
  font-weight: 700;
  color: #234;
  word-break: break-word;
}

.kv-list dd {
  margin: 0;
  color: #223050;
  overflow-wrap: anywhere;
  word-break: break-word;
}


/* Keep long emails on ONE line without wrapping */
#summary-email {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  /* prevents layout blowout if someone pastes a huge address */
  text-overflow: ellipsis;
  /* will not appear for normal addresses; safety only */
}

/* Subtle separators between rows for a modern look */
.kv-list .kv-item+.kv-item {
  border-top: 1px dashed #e6eef8;
  padding-top: 8px;
}

/* Chip styling (you already use .chip on Account Type) */
.chip {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 9999px;
  background: #eef5ff;
  color: #0056b3;
  font-weight: 700;
  font-size: .85rem;
}

/* Actions row */
.review-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.review-actions__cta {
  min-width: 220px;
}

.review-actions__hint {
  margin: 4px 0 0;
  font-size: .92rem;
  color: #334;
}

/* Safety: ensure the page never scrolls sideways */
.registration-page,
.registration-window {
  overflow-x: hidden;
}

/* —— Mobile & Tablet fixes —— */
@media (max-width: 900px) {

  /* Collapse review grid to single column (fixes cards cropping) */
  .review-grid {
    grid-template-columns: 1fr;
  }

  /* Make the kv list friendlier on narrow screens */
  .kv-list .kv-item {
    grid-template-columns: 1fr;
  }

  .kv-list dt {
    margin-bottom: 2px;
  }

  /* Keep the registration window comfortably sized on mobile/tablet */
  .registration-window {
    max-width: 100%;
    padding: 16px;
  }

  /* Make sure hero + cards never exceed viewport width */
  .review-hero,
  .review-grid {
    width: 100%;
  }
}

/* === Solo mode for Individual accounts on Review & Create === */
.review-grid.solo-mode {
  grid-template-columns: 1fr;
  /* one column only */
  max-width: 1000px;
  /* matches default review-grid max */
  margin: 0 auto 14px;
  /* center it */
}

/* Align the actions row with the grid width when in solo mode */
.review-actions.solo-mode {
  max-width: 1000px;
  /* same width as the grid above */
  width: 100%;
  margin: 0 auto;
  /* center the actions */
}

/* Modern, professional link styling in the consent line */
.review-actions__hint a {
  color: #0056b3;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 86, 179, 0.25);
  transition: border-color .2s ease, color .2s ease;
}

.review-actions__hint a:hover {
  color: #003f7f;
  border-bottom-color: rgba(0, 63, 127, 0.45);
}


/* Align registration card width to match login “auth card” feel on small phones.
   (If your login uses a different width, tweak the 520px value below.) */
@media (max-width: 600px) {
  .registration-page .registration-window {
    width: 100%;
    max-width: 520px;
    /* matches common login card widths */
    margin: 0 auto;
    padding: 16px;
  }
}

/* END — Registration CSS tail */

/* ───────────────────────────────────────────────────────────
   REGISTRATION HEADER – mobile-safe spacing & back button
   (Desktop unchanged; Mobile uses grid placement—no overlap)
   ─────────────────────────────────────────────────────────── */
.registration-header {
  position: relative;
  /* anchor for absolute on desktop */
}

/* Grid: keep title centered, logo right-aligned */
.title-logo-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  /* title sits in center column */
  align-items: center;
  column-gap: 12px;
  width: 100%;
}

/* Title */
.title-logo-container h1.registration-title {
  grid-column: 2;
  margin: 0;
  text-align: center;
}

/* Logo on the right */
.title-logo-container .header-logo {
  grid-column: 3;
  justify-self: end;
  height: 40px;
  width: auto;
}

/* ---------- Desktop (>=901px) ----------
     Keep absolute placement; fix hover “jump” by
     preserving translateY(-50%) in all transforms. */
@media (min-width: 901px) {
  .title-logo-container .back-button {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 12px;
    /* larger hit area */
    min-height: 36px;
    /* consistent pill size */
    display: inline-flex;
    /* modern pill */
    align-items: center;
    gap: 6px;
    border: 1px solid #cfd8e3;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
    transition: transform .15s ease, box-shadow .15s ease;
    z-index: 5;
    /* <-- keeps it above any stepper layer */
    touch-action: manipulation;
    /* better tap on mobile desktops/tablets */
  }


  .title-logo-container .back-button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
  }

  .title-logo-container .back-button:active {
    transform: translateY(-50%) scale(.98);
  }
}

/* ---------- Mobile/Tablet (<=900px) ----------
     Make back button part of the grid so it never overlays
     the centered title. */
@media (max-width: 900px) {
  .title-logo-container .back-button {
    position: static;
    /* lives in the grid → no overlap */
    grid-column: 1;
    justify-self: start;
    align-self: center;
    padding: 8px 12px;
    /* larger hit area */
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #cfd8e3;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
    transition: box-shadow .15s ease;
    z-index: 5;
    /* <-- ensure always above stepper */
    touch-action: manipulation;
  }


  .title-logo-container .back-button:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
  }
}

/* Tighten on small phones: smaller logo/title, keep right edge clear */
@media (max-width: 600px) {
  .title-logo-container {
    column-gap: 10px;
    padding-right: 6px;
    /* ensures room at far-right edge */
  }

  .title-logo-container .header-logo {
    height: 28px;
  }

  .registration-title {
    font-size: 1.35rem;
  }
}

/* Slightly roomier on tablets */
@media (min-width: 601px) and (max-width: 1024px) {
  .title-logo-container .header-logo {
    height: 34px;
  }

  .registration-title {
    font-size: 1.6rem;
  }
}

/* Single wide Organization register panel */
.org-register-panel {
  border: 1px solid #007BFF;
  border-radius: 8px;
  background: #f7fcff;
  padding: 16px;
}

.org-register-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  align-items: start;
}

#organization-section {
  width: 90%;
  margin: 20px auto;
}

/* Override old two-panel rule (harmless if it remains) */
.organization-panels {
  display: block;
}

.org-panel-label {
  flex: 1 1 100%;
  max-width: 100%;
}