button.disabled {
  opacity: 0.5 !important;
}

.cuo-onboarding-container {
  margin: 30px auto;
  padding: 15px;
}

.cuo-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 24px;
  transition: transform 0.2s ease-in-out;
}

.cuo-card:hover {
  transform: translateY(-4px);
}

.cuo-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 16px;
  text-align: center;
}

.cuo-form-group {
  margin-bottom: 16px;
}

.cuo-form-group label {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.cuo-form-group input:not([type="checkbox"]):not([type="radio"]),
.cuo-form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  color: #1f2937;
}

.cuo-form-group input:not([type="checkbox"]):not([type="radio"]):focus,
.cuo-form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.cuo-form-group textarea {
  padding-left: 10px;
  font-size: 16px;
  resize: vertical;
  min-height: 40px;
}

.cuo-button {
  display: inline-block;
  background: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-right: 8px;
  padding: 8px 12px;
}

.cuo-button:hover {
  background: #2563eb;
}

.cuo-next-button {
  display: inline-block;
  background: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  padding: 8px 12px;
}

.cuo-next-button:hover {
  background: #2563eb;
}

.cuo-prev-button {
  background: #6b7280;
}

.cuo-prev-button:hover {
  background: #4b5563;
}

.cuo-save-button {
  background: #10b981;
}

.cuo-save-button:hover {
  background: #059669;
}

.cuo-logout-button {
  background: transparent;
  margin-bottom: 0.8rem;
  border: 1px solid #dc3545;
  color: #dc3545;
  padding: 0.375rem 0.75rem;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  font-size: 0.8rem;
}

.cuo-logout-button:hover {
  background: #dc3545;
  color: #ffffff;
}

.cuo-form-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.cuo-nav-button {
  flex: 1;
  padding: 2px 0px;
  background: #e5e7eb;
  color: #374151;
  border: none;
  border-radius: 3px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  padding: 8px 12px;
}

.cuo-nav-button:hover {
  background: #d1d5db;
}

.cuo-nav-button.active {
  background: #3b82f6;
  color: #ffffff;
}

.cuo-nav-button.disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.6;
}

.cuo-form-section {
  display: none;
}

.cuo-form-section.active {
  display: block;
}

.cuo-error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-bottom: 16px;
  text-align: center;
}

.cuo-success {
  color: #00a32a;
  font-size: 0.875rem;
  margin-bottom: 16px;
  text-align: center;
}

.error-notice {
  font-size: 0.9rem;
  font-weight: 600;
  border-left-color: #dc2626 !important;
  padding: 11px 15px;
  border: 1px solid #c3c4c7;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
  border-left-width: 4px;
  margin-bottom: 40px;
  margin-top: 30px;
}

.success-notice {
  font-size: 0.9rem;
  font-weight: 600;
  border-left-color: #00a32a !important;
  padding: 11px 15px;
  border: 1px solid #c3c4c7;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
  border-left-width: 4px;
  margin-bottom: 40px;
  margin-top: 30px;
}

.cuo-status {
  font-size: 1.3rem;
  color: #374151;
  margin-bottom: 0.8rem;
  margin-left: 0.4rem;
  text-align: center;
}

.cuo-form-group ul {
  margin-top: 8px;
  padding-left: 20px;
}

.cuo-form-group ul li {
  margin-bottom: 8px;
}

.cuo-form-group ul li a {
  color: #3b82f6;
  text-decoration: none;
}

.cuo-form-group ul li a:hover {
  text-decoration: underline;
}

.cuo-subtab-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.cuo-subtab-button {
  padding: 8px 16px;
  background: #e5e7eb;
  color: #374151;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s;
}

.cuo-subtab-button:hover {
  background: #d1d5db;
}

.cuo-subtab-button.active {
  background: #10b981;
  color: #ffffff;
}

.cuo-subtab-content {
  display: none;
}

.cuo-subtab-content.active {
  display: block;
}

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

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

.cuo-form-group {
  flex: 1 1 48%;
  display: flex;
  flex-direction: column;
}

.radio-inline-group {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 8px;
}

.radio-inline-group label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
}

.reference-container {
  background-color: #f9f9f94d;
  padding: 15px;
  border-radius: 10px;
  margin: 1rem 0;
  box-shadow: 1px 3px 5px #bebaba;
}

.reference-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.reference-left,
.reference-right {
  flex: 1 1 45%;
}

.reference-left textarea {
  min-height: 106px;
}

.bg-warning {
  background-color: #ffc107;
  color: #000;
}

.bg-warning:hover {
  background-color: #ffca2c;
}

/* Loader */
.form-loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(212, 212, 212, 0.4);
  z-index: 9999;
  display: none;
  /* hidden by default */
  justify-content: center;
  align-items: center;
  flex-direction: column;
  /* critical for centering */
  display: flex;
  backdrop-filter: blur(1px);
}

.form-loader-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #ffffff;
  border-top: 5px solid #0073aa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.form-loader-text {
  margin-top: 15px;
  color: #666;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {

  .reference-left,
  .reference-right {
    flex: 1 1 100%;
  }
}

@media (max-width: 768px) {
  .cuo-form-group {
    flex: 1 1 100%;
  }
}

/* DD Form */
.form-group {
  display: flex;
  margin-bottom: 15px;
  align-items: flex-start;
}

.form-group label {
  width: 200px;
  font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="date"] {
  flex: 1;
  padding: 5px;
  background-color: #dce5ff;
  border: 1px solid #ccc;
  height: 28px;
}

.form-check {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.form-check input[type="checkbox"] {
  margin-right: 5px;
}

.form-check-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.check-note {
  margin-left: 200px;
  font-weight: bold;
  margin-bottom: 5px;
}

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

.info-text {
  margin: 20px 0;
}

/* for subtabs */

.nav-tabs .nav-item {
  margin-right: 10px;
  /* Space between individual tabs */
}

.nav-tabs .nav-link {
  color: #333;
  /* Default text color */
  background-color: #f8f9fa;
  /* Default background color */
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
}

.nav-tabs .nav-link.active {
  color: #fff;
  /* White text for active tab */
  background-color: #007bff;
  /* Blue background for active tab, matching main tab */
  border-color: #007bff;
}

.nav-tabs .nav-link:hover {
  color: #0056b3;
  /* Hover effect */
  background-color: #e9ecef;
}

.asj-fs-7 {
  font-size: 0.9rem;
}

/* for biometric form */

/* .form-container {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.form-label {
  font-weight: 500;
  color: #333;
}
.form-control {
  border-radius: 6px;
}
.note {
  font-size: 0.9rem;
  color: #666;
} */

/* Biometric form */
/* .form-container {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
}

.note {
  font-size: 0.95rem;
  color: #6c757d;
}

.test-experience-row,
.mobile-screening-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.aligned-fields {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
}

.company-field {
  flex: 1 1 45% !important;
  min-width: 300px !important;
} */

.mb-4 {
  margin-bottom: 4rem !important;
}

.form-check-label {
  font-weight: 600;
  color: rgba(33, 37, 41, 0.6);
}

fieldset {
  border: 1px solid #ccc !important;
  padding: 15px !important;
  margin-bottom: 20px !important;
  border-radius: 5px !important;
}

/* For all input placeholders */
input::placeholder {
  font-size: 0.8em;
  /* Or any specific pixel value like 12px */
}

textarea::placeholder {
  font-size: 0.8em;
}

::placeholder {
  color: #b5b5b5 !important;
}

/* list tyle for contract sub-points */
ul.ul-style-alpha {
  list-style: lower-alpha !important;
  /* a, b, c */
}

.bootstrap-select>.dropdown-toggle {
  display: inline-block;
  width: 100%;
  height: calc(2.25rem + 2px);
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.compact-checklist .form-check {
  margin-bottom: 0.4rem;
}

.compact-checklist label {
  font-size: 0.95rem;
  line-height: 1.3;
}

@media screen and (min-width: 780px) {
  .cuo-onboarding-container {
    max-width: 90%;
    margin: 0 auto;
    /* center the container */
  }
}

/* Read-only textarea styling for clearer non-editable state */
textarea[readonly],
textarea[readonly].form-control {
  background-color: #e9ecef;
  opacity: 1;
  /* override Bootstrap disabled opacity */
}

textarea[readonly]:focus,
textarea:read-only:focus {
  outline: none;
  box-shadow: none;
}

/* Password Toggle Styling */
.cuo-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.cuo-password-wrapper input {
  padding-right: 45px !important;
}

#cuo-toggle-password {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: #6b7280;
  padding: 0;
  user-select: none;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  z-index: 10;
  transition: color 0.15s ease;
}

#cuo-toggle-password:hover {
  color: #3b82f6;
}

/* Premium Verified Redirect Modal Glassmorphism Styling */
.cuo-verified-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.4); /* Slate 900 tint */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: cuoFadeIn 0.3s ease-out forwards;
}

.cuo-verified-modal {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15), 
              inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  padding: 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  transform: scale(0.9);
  animation: cuoScaleIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
}

.cuo-verified-icon-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px auto;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.3);
  transform: rotate(-10deg);
  animation: cuoBounceIcon 1.2s ease infinite alternate;
}

.cuo-verified-icon {
  width: 40px;
  height: 40px;
  color: #ffffff;
}

.cuo-verified-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.cuo-verified-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 30px;
}

.cuo-verified-btn {
  display: inline-block;
  width: 100%;
  padding: 14px 28px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
  transition: all 0.25s ease;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}

.cuo-verified-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.6);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.cuo-verified-btn:active {
  transform: translateY(0);
}

.cuo-verified-close {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none !important;
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 12px;
}

.cuo-verified-close:hover {
  color: #64748b;
  text-decoration: underline !important;
}

@keyframes cuoFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cuoScaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes cuoBounceIcon {
  0% { transform: translateY(0) rotate(-10deg); }
  100% { transform: translateY(-6px) rotate(5deg); }
}

/* Dark mode preferences support */
@media (prefers-color-scheme: dark) {
  .cuo-verified-modal {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 
                inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  }
  .cuo-verified-title {
    color: #f8fafc;
  }
  .cuo-verified-text {
    color: #cbd5e1;
  }
  .cuo-verified-close:hover {
    color: #cbd5e1;
  }
}