.custom-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.custom-spinner {
  width: 40px;
  height: 40px;
  border: 5px solid #ddd;
  border-top-color: #2681ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.custom-preloader p {
  margin-top: 10px;
  font-size: 1em;
  color: #333;
  font-weight: 500;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


#assessment-form, #interview-form, #complete-profile-form, #apply-visa-form, #application-form, #application-interview-form, #book-interview-form, #visa-interview-form {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    font-family: sans-serif;
    box-sizing: border-box;
}
#check-status-form, #request-code-form, #register-form, #login-form, #upload-pptphoto-form, #check-booking-form, #check-application-form, #affiliate-register-form, #affiliate-login-form, #payment-onboarding-form, #upload-profile-form, #payment-creation-form, #edit-interview-form, #request-verification-link-form, #request-reset-pwd-form, #reset-pwd-form {
    max-width: 500px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    font-family: sans-serif;
    box-sizing: border-box;
}
#assessment-form label, #check-status-form label, #request-code-form label, #interview-form label, #register-form label, #login-form label, #upload-pptphoto-form label, #check-booking-form label, #application-form label, #check-application-form label, #application-interview-form label, #affiliate-register-form  label, #affiliate-login-form label, #payment-onboarding-form label, #upload-profile-form label, #crypto-transactions-data-entry-form label, #book-interview-form label, #payment-creation-form label, #edit-interview-form label, #visa-interview-form label, #request-verification-link-form label, #request-reset-pwd-form label, #reset-pwd-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}
#assessment-form input:not(.intl-tel-input),
#assessment-form select, #check-status-form input, #request-code-form input, #status-card select, #status-card input, #interview-form input, #interview-form select, #interview-form textarea, #register-form input, #login-form input, #complete-profile-form input, #apply-visa-form input, #apply-visa-form select, #upload-pptphoto-form input, #check-booking-form input, #application-form input:not(.intl-tel-input), #application-form select, #check-application-form input, #application-status-card input, #application-interview-form textarea, #application-interview-form input, #application-interview-form select, #affiliate-register-form input, #affiliate-login-form input, #payment-onboarding-form input, #payment-onboarding-form select, #upload-profile-form input, #crypto-transactions-data-entry-form input, #crypto-transactions-data-entry-form  select, #book-interview-form input, #payment-creation-form input, #payment-creation-form select, #edit-interview-form input, #visa-interview-form input, #visa-interview-form textarea, #visa-interview-form select, #request-verification-link-form input, #request-reset-pwd-form input, #reset-pwd-form input {
    width: 100%;
    margin-bottom: 15px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.intl-tel-input {
    width: 100%; /* ensures full-width */
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

#assessment-form button, #check-status-form button, #request-code-form button, #status-card button, #interview-form button, #register-form button, #login-form button, #complete-profile-form button, #apply-visa-form button, #upload-pptphoto-form button, #check-booking-form button, #application-form button, #check-application-form button, #application-status-card button, #application-interview-form button, #affiliate-register-form button, #affiliate-login-form button, #payment-onboarding-form button, #upload-profile-form button, #crypto-transactions-data-entry-form button, #book-interview-form button, #payment-creation-form button, #visa-interview-form button, #request-verification-link-form button, #request-reset-pwd-form button, #reset-pwd-form button {
    background-color: #2681ff;
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}
#assessment-form button:hover, #check-status-form  button:hover, #request-code-form button:hover, #status-card button:hover, #interview-form button:hover, #register-form button:hover, #login-form button:hover, #complete-profile-form:hover, #apply-visa-form button:hover, #upload-pptphoto-form button:hover, #check-booking-form button:hover, #application-form button:hover, #check-application-form button:hover, #application-status-card button:hover, #application-interview-form button:hover, #affiliate-register-form  button:hover, #affiliate-login-form button:hover, #payment-onboarding-form button:hover, #upload-profile-form button:hover, #crypto-transactions-data-entry-form button:hover, #book-interview-form button:hover, #payment-creation-form button:hover, #visa-interview-form button:hover, #request-verification-link-form button:hover, #request-reset-pwd-form button:hover, #reset-pwd-form button:hover {
    opacity: 0.9;
}

.custom-btn { 
  background-color: #2681ff; 
  color: #ffffff; 
  border: none; 
  padding: 10px 15px; 
  border-radius: 4px; 
  cursor: pointer; 
  font-size: 16px; 
  transition: background 0.3s;
  white-space: normal;       /* Allow text to wrap */
  word-wrap: break-word;     /* Break long words if needed */
  max-width: 100%;           /* Prevent overflow */
  text-align: center;        /* Center text */
  display: inline-block;     /* Keeps button width flexible */
  line-height: 1.3;          
} 

.custom-btn:hover { 
  opacity: 0.9; 
}

.custom-btn-success { 
  background-color: #28a745; 
  color: #ffffff; 
  border: none; 
  padding: 10px 15px; 
  border-radius: 4px; 
  cursor: pointer; 
  font-size: 16px; 
  transition: background 0.3s;
  white-space: normal;       /* Allow text to wrap */
  word-wrap: break-word;     /* Break long words if needed */
  max-width: 100%;           /* Prevent overflow */
  text-align: center;        /* Center text */
  display: inline-block;     /* Keeps button width flexible */
  line-height: 1.3;          
} 

.custom-btn-success:hover { 
  opacity: 0.9; 
}


.toggle-group {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* allows wrapping for long translations */
  gap: 10px; /* spacing when buttons wrap to new line */
  margin-bottom: 1rem;
}

.toggle-btn {
  position: relative;
  background: none;
  border: none;
  padding: 8px 16px;
  font-size: 16px;
  cursor: pointer;
  color: #333;
  transition: color 0.2s ease;
}

.toggle-btn:hover {
  color: #007bff;
}

.toggle-btn.active {
  color: #007bff;
  font-weight: 600;
}

/* underline effect */
.toggle-btn.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: #007bff;
  border-radius: 1px;
}


/* Hide the real file input */
.hidden {
  display: none;
}

.hidden-static {
  opacity: 0;
  position: absolute;
  z-index: -1;
}


/* Custom file wrapper */
.custom-file {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
  margin-bottom: 10px;

  /* 🔹 Border styling */
  border: 1px solid #ccc;     /* light gray border */
  border-radius: 6px;         /* rounded corners */
  padding: 8px 10px;          /* inner spacing */
  background-color: #fafafa;  /* subtle background */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Highlight on hover/focus */
.custom-file:hover,
.custom-file:focus-within {
  border-color: #007bff;
  box-shadow: 0 0 4px rgba(0, 123, 255, 0.25);
}

/* The button that triggers the file chooser */
.custom-file .file-btn {
  background-color: #007bff; /* Bootstrap blue */
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.custom-file .file-btn:hover {
  background-color: #0056b3;
}

/* The placeholder text (file name or "No file chosen") */
.custom-file .file-placeholder {
  font-size: 14px;
  color: #666;
  font-style: italic;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%; /* prevent very long names from breaking layout */
  display: block; /* ensures width applies properly */
  word-break: break-word; /* wrap long text if needed */
}

/* 🔹 Previous Button */
#assessment-form .prev-btn, #interview-form .prev-btn, #application-form .prev-btn, #application-interview-form .prev-btn, #visa-interview-form .prev-btn {
    background-color: #6c757d; /* gray */
}
#assessment-form .prev-btn:hover, #interview-form .prev-btn:hover, #application-form .prev-btn:hover, #application-interview-form .prev-btn:hover, #visa-interview-form .prev-btn:hover {
    background-color: #5a6268;
}

/* 🔹 Next Button */
#assessment-form .next-btn, #interview-form .next-btn, #application-form .next-btn, #application-interview-form .next-btn, #visa-interview-form .next-btn {
    background-color: #2681ff; /* main blue */
}
#assessment-form .next-btn:hover, #interview-form .next-btn:hover, #application-form .next-btn:hover, #application-interview-form .next-btn:hover, #visa-interview-form .next-btn:hover {
    background-color: #1a63c7;
}

/* 🔹 Submit Button */
#assessment-form .submit-btn, #interview-form .submit-btn, #application-form .submit-btn, #application-interview-form .submit-btn, #visa-interview-form .submit-btn {
    background-color: #28a745; /* green for success */
}
#assessment-form .submit-btn:hover, #interview-form .submit-btn:hover, #application-form .submit-btn:hover, #application-interview-form .submit-btn:hover, #visa-interview-form .submit-btn:hover {
    background-color: #218838;
}

.form-card {
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    background: #f9f9f9;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.form-title {
    text-align: center;
    margin-bottom: 20px;
}
.form-step {
    display: none;
}
.form-step.active {
    display: block;
}
#motivationalMessage {
    margin-bottom: 15px;
    font-weight: 500;
    text-align: center;
    font-size: 1rem;
    color: #333;
}
#progress {
    width: 100%;
    height: 15px;
    background-color: #e0e0e0; 
    overflow: hidden;
    margin-bottom: 1rem;
    border-radius: 10px;
}
#progressBar {
    height: 100%;
    width: 0%;
    background-color: #4441f5;
    text-align: center;
    line-height: 20px;
    color: white;
    font-size: small;
    transition: width 0.4s ease-in-out;
}
.is-invalid {
    border: 1px solid #dc3545;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-step .form-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 20px; /* spacing between fields */
}

#completeProfileForm .form-fields, #applyVisaForm .form-fields, #crypto-transactions-data-entry-form .form-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 20px; /* spacing between fields */
}

/* Target all readonly inputs */
input[readonly] {
  background-color: #f5f5f5;   /* light gray background */
  color: #666;                 /* dimmed text color */
  border: 1px solid #ccc;      /* subtle border */
  cursor: not-allowed;         /* show user it's not editable */
}

/* Optional: add a slight italic or different font style */
input[readonly]::placeholder {
  font-style: italic;
  color: #999;
}

.form-step .form-fields .form-group {
    width: 100%; /* each item fills its grid cell */
}

.form-nav {
    margin-top: 20px;
    text-align: center;
    display: flex;
    justify-content: space-between; /* align to right */
    gap: 10px; /* space between buttons */
}

.form-nav button {
    flex: 0 0 auto; /* 🔹 no stretching */
    width: auto; /* auto-sized by content */
    min-width: 120px; /* consistent button size */
    padding: 10px 20px;
}

/* Style for the Forgot Code link */
.form-card a {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: #007bff; /* Bootstrap blue */
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.form-card a:hover {
  color: #0056b3; /* Darker blue on hover */
  text-decoration: underline;
}

#status-card {
  max-width: 700px;
  margin: 0 auto;
}

#application-status-card {
  max-width: 700px;
  margin: 0 auto;
  padding: 10px;
}

#user-portal-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px;
}

#status-card .logout-section {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}


#status-card .card, #application-status-card .card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 20px;
  margin: 20px auto;
  max-width: 700px;
  font-family: Arial, sans-serif;
}

#status-card .card-title, #application-status-card .card-title {
  font-size: 22px;
  margin-bottom: 15px;
  text-align: center;
  color: #333;
}

#status-card .card-section, #application-status-card .card-section {
  margin-bottom: 20px;
}

#status-card .card-section h3, #application-status-card .card-section h3 {
  font-size: 18px;
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
  color: #444;
}

#status-card .card-section p, #application-status-card .card-section p {
  margin: 4px 0;
  color: #555;
}

#status-card .card-section a, #application-status-card .card-section a {
  color: #0066cc;
  text-decoration: none;
}

#status-card .card-section a:hover, #application-status-card .card-section a:hover {
  text-decoration: underline;
}

#status-card .card-section .card-sub-section, #application-status-card .card-section .card-sub-section  {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

#status-card .card .card-body a, #application-status-card .card .card-body a {
  color: #0066cc;
  text-decoration: none;
}

#status-card .card .card-body a:hover, #application-status-card .card .card-body a:hover {
  text-decoration: underline;
}

#status-card .card .card-body button a, #application-status-card .card .card-body button a {
  color: #ffffff;
  text-decoration: none;
}

#status-card .card .card-body img, #application-status-card .card .card-body img {
    width: 100px;
    margin: 0 auto;
}

#status-card .card .card-body button, #application-status-card .card .card-body button {
    margin: 0 auto;
}

#status-card .card .card-body .close-msg-btn, #application-status-card .card .card-body .close-msg-btn {
    float: right;
}

#status-card .card .card-body #countdown, #application-status-card .card .card-body #countdown {
    font-size: xx-large;
}

#status-card .card .card-body, #application-status-card .card .card-body {
    text-align: center;
}

#status-card .card .card-body .badge-container, #application-status-card .card .card-body .badge-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    padding: 20px;
}

#status-card .card .card-body .badge.inactive, #application-status-card .card .card-body .badge.inactive {
    opacity: 0.5;
}

#status-card .card .card-body .badge, #application-status-card .card .card-body .badge {
    opacity: 1;
}

#status-card .card .card-body .badge img, #application-status-card .card .card-body .badge img {
    width: 60px;
}

#status-card .eligibility-bar, #application-status-card .eligibility-bar {
  width: 100%;
  height: 15px;
  background-color: #e0e0e0;
  border-radius: 12px;
  margin: 15px 0;
  overflow: hidden;
}

#status-card .eligibility-fill, #application-status-card .eligibility-fill {
  height: 100%;
  background: linear-gradient(90deg, #28a745, #218838);
  color: #fff;
  text-align: center;
  font-weight: bold;
  line-height: 15px;
  border-radius: 12px;
  transition: width 0.6s ease;
}

#status-card .close-msg-btn, #application-status-card .close-msg-btn {
    cursor: pointer;
}

#status-card  .instruction-list, #application-status-card .instruction-list {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px 25px;
    margin: 20px 0;
    list-style: none; /* remove default bullets */
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  }

#status-card .instruction-list li, #application-status-card .instruction-list li {
    position: relative;
    margin: 12px 0;
    padding-left: 35px; /* space for custom bullet */
  }

#status-card  .instruction-list li::before, #application-status-card .instruction-list li::before {
    content: "\f00c"; /* Font Awesome checkmark */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #2d89ef; /* nice blue accent */
    position: absolute;
    left: 0;
    top: 0;
  }

#status-card   .instruction-list strong, #application-status-card .instruction-list strong {
    color: #000;
}

.checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}
.checkmark circle {
    fill: #28a745;
    opacity: 0.2;
}
.checkmark path {
    stroke: #28a745;
    stroke-width: 4;
    stroke-linecap: round;
    fill: none;
    animation: draw 1s ease forwards 5s; /* Added 5s delay */
}
@keyframes draw {
    0% {
        stroke-dasharray: 0, 50;
    }
    100% {
        stroke-dasharray: 50, 0;
    }
}
.instruction-toggle {
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #007bff;
    padding: 10px;
    border-radius: 5px;
    background: #f0f0f0;
    transition: background 0.3s ease;
}
.instruction-list {
    text-align: left;
    list-style-type: disc;
    padding-left: 20px;
}

.btn_container {
    display: flex;
    align-items: space-between;
    margin-top: 20px;
    gap: 10px;
    flex-wrap: wrap;
}

#booking-status-card .card-container {
    max-width: 900px;
    margin: 30px auto;
    overflow: hidden;
    /* padding: 20px; */
}

#affiliate-portal-card, #affiliate-tasks-card, #affiliate-view-task-card, #crypto-transactions-data-entry-form, #affiliate-entries-card, #interview-status-card, #visa-status-card, #supporting-docs-card  {
  padding: 10px;
  max-width: 900px;
  margin: 0 auto;
}

#payment-partner-card, #payment-details-card, #process-payment-card {
  padding: 10px;
  max-width: 500px;
  margin: 0 auto;
}

#user-portal-card .profile-card, #visa-status-card .profile-card, #booking-status-card .profile-card, #affiliate-portal-card .profile-card, #affiliate-tasks-card .profile-card, #affiliate-view-task-card .profile-card, #crypto-transactions-data-entry-form .profile-card, #affiliate-entries-card .profile-card, #supporting-docs-card .profile-card, #interview-status-card .profile-card {
    max-width: 900px;
    margin: 10px auto;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    font-family: 'Segoe UI', sans-serif;
    background-color: #ffffff;
    overflow: hidden;
}

#payment-partner-card .profile-card, #payment-details-card .profile-card, #process-payment-card .profile-card {
    max-width: 500px;
    margin: 10px auto;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    font-family: 'Segoe UI', sans-serif;
    background-color: #ffffff;
    overflow: hidden;
}

#user-portal-card .card-header, #visa-status-card .card-header, #booking-status-card .card-header, #affiliate-portal-card .card-header, #affiliate-tasks-card .card-header, #supporting-docs-card .card-header, #interview-status-card .card-header  {
    margin: 0;
    font-size: 1.4rem;
    color: #2c3e50;
    background: radial-gradient(circle, #f5f5f5 0%, #d3d3d3 100%);
    border-bottom: 1px solid #ccc;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    padding: 15px 20px;
}

#affiliate-view-task-card .task-header, #crypto-transactions-data-entry-form .task-header, #affiliate-entries-card .task-header, #payment-partner-card .task-header, #payment-details-card .task-header, #process-payment-card .task-header  {
  display: flex;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 2px solid #ddd;
  align-items: center;
}

#payment-partner-card .outer-header, #payment-details-card .outer-header, #process-payment-card .outer-header  {
  text-align: center;
  padding: 10px;
}

#payment-details-card .btns-section  {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.timer-label {
  background-color: #ff4d01;
  color: white;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 8px;
  min-width: 60px;
  text-align: center;
  letter-spacing: 1px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  animation: pulseTimer 1s infinite alternate;
}

@keyframes pulseTimer {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.1);
    opacity: 0.9;
  }
}

#affiliate-view-task-card .overview-section, #payment-details-card .overview-section {
  background-color: #f9f9f9;            /* Light grey background */
  border: 1px solid #e0e0e0;            /* Soft border */
  border-left: 4px solid #007bff;       /* Accent outline for emphasis */
  border-radius: 10px;                  /* Smooth rounded corners */
  padding: 20px;                        /* Breathing room inside */
  margin: 20px 0;                       /* Space above and below */
  box-shadow: 0 2px 6px rgba(0,0,0,0.05); /* Gentle depth shadow */
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

#affiliate-view-task-card .overview-section:hover, #payment-details-card .overview-section:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);          /* Slight lift on hover */
}

#user-portal-card .card-section, #visa-status-card .card-section, #booking-status-card .card-section, #affiliate-portal-card .card-section, #affiliate-tasks-card .card-section, #affiliate-view-task-card .card-section, #crypto-transactions-data-entry-form .card-section, #affiliate-entries-card .card-section, #supporting-docs-card .card-section, #interview-status-card .card-section, #payment-partner-card .card-section, #payment-details-card .card-section, #process-payment-card .card-section {
    padding: 15px 20px;
    white-space: normal;       /* Allows text to wrap normally */
    overflow-wrap: break-word; /* Breaks long words if needed */
    word-break: break-word;
}

#payment-partner-card .labels-section, #payment-details-card .labels-section, #process-payment-card .labels-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: #333;
}

#payment-partner-card .labels-section p, #payment-details-card .labels-section p, #process-payment-card .labels-section p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fb;
  border: 1px solid #e3e6eb;
  padding: 8px 12px;
  border-radius: 8px;
  margin: 0;
}

#booking-status-card .card-content {
  padding: 15px 20px;
  white-space: normal;       /* Allows text to wrap normally */
  overflow-wrap: break-word; /* Breaks long words if needed */
  word-break: break-word;    /* Ensures long words don't overflow */
}

#booking-status-card .card-container-header {
  text-align: center;
}

#booking-status-card  .card-section h2, #booking-status-card .card-container-header h2  {
    position: relative;
    padding-bottom: 10px; /* space between text and underline */
    margin-bottom: 20px;  /* space between underline and next content */
    margin-top: 0;
    font-size: 20px;
    font-weight: bold;
    color: #333;
  }
  
#booking-status-card  .card-section h2::after, #booking-status-card .card-container-header h2::after {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 2px;
      background-color: #ccc;
  }

#booking-status-card .route-container img {
  width: 60px;
}

#booking-status-card .card-sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

#booking-status-card .route-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr; /* adjust ratios */
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

#booking-status-card .route-container .detail {
  display: flex;
  align-items: center;
  gap: 8px;
}

#booking-status-card .label {
  font-weight: bold;
  margin-right: 5px;
}

#booking-status-card .layover-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    font-weight: bold;
    font-size: 0.9rem;
    color: #555;
}

#booking-status-card .layover-separator hr {
    flex: 1;
    border: none;
    border-top: 1px solid #ccc;
    margin: 0 0.5rem;
}

#booking-status-card .layover-separator span {
    background: #f0f0f0;
    padding: 0.3rem 1rem;
    border-radius: 20px;
}

#booking-status-card .passenger-details-grid {
  display: flex;
  gap: 10px;
}

#booking-status-card .details-column {
  flex: 1;
}

#booking-status-card .details-column p {
  margin: 8px 0;
  color: #444;
}

#booking-status-card .details-column:first-child {
    border-right: 1px dashed #999; /* dashed vertical line */
    padding-right: 10px;
}

#booking-status-card .details-column:last-child {
    padding-left: 10px;
}

#booking-status-card .card-section .cost-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #ccc;
}

#booking-status-card .card-section .cost-row.total {
  border-bottom: none;
  margin-top: 10px;
  color: #3498db;
}

#visa-status-card .card-section .row, #affiliate-portal-card .card-section .row, #affiliate-view-task-card .card-section .row, #interview-status-card .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

#user-portal-card .quick-links, #affiliate-portal-card .quick-links, #supporting-docs-card .quick-links {
  list-style: none;          /* remove bullets */
  padding: 0;
  margin: 15px 0;
  display: grid;             /* neat grid layout */
  gap: 12px;                 /* spacing between items */
}

#user-portal-card .quick-links li, #affiliate-portal-card .quick-links li, #supporting-docs-card .quick-links li {
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f9f9f9;
  transition: all 0.3s ease;
}

#user-portal-card .quick-links li:hover, #affiliate-portal-card .quick-links li:hover, #supporting-docs-card .quick-links li:hover {
  background: #eaf3ff;       /* light blue hover */
  border-color: #0077ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

#user-portal-card .quick-links a, #affiliate-portal-card .quick-links a, #supporting-docs-card .quick-links a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

#user-portal-card .quick-links a::before, #affiliate-portal-card .quick-links a::before, #supporting-docs-card .quick-links a::before {
  content: "→ ";             /* arrow indicator */
  color: #0077ff;
  font-weight: bold;
}

/* Base alert styling */
.custom-alert {
    position: relative;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 15px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    display: flex;
    align-items: start;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    animation: fadeIn 0.4s ease;
}

/* Alert types */
.custom-alert-success {
    background-color: #e9f7ef;
    border-left: 5px solid #2ecc71;
    color: #1b5e20;
}

.custom-alert-warning {
    background-color: #fff8e1;
    border-left: 5px solid #ff9800;
    color: #795548;
}

.custom-alert-danger {
    background-color: #fdecea;
    border-left: 5px solid #f44336;
    color: #b71c1c;
}

.custom-alert-info {
    background-color: #e8f4fd;
    border-left: 5px solid #2196f3;
    color: #0d47a1;
}

/* Close button */
.custom-alert-close {
    position: absolute;
    top: 8px;
    right: 12px;
    color: #555;
    font-size: 20px;
    cursor: pointer;
    font-weight: bold;
}

.custom-alert-close:hover {
    color: #000;
}

/* Message link styling */
.alert-link {
    color: #1976d2;
    text-decoration: none;
    font-weight: 600;
}

.alert-link:hover {
    text-decoration: underline;
}

/* Fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

label small {
  color: #888;
  font-size: 0.85em;
  font-style: italic;
}


/* Responsive table wrapper */
.table-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  -webkit-overflow-scrolling: touch; /* Smooth scroll for iOS */
}

/* Table base styling */
table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
  min-width: 800px; /* Prevent table from squishing too much */
}

/* Header styling */
thead {
  background-color: #f7f8fa;
  position: sticky;
  top: 0;
  z-index: 2;
}
thead th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e3e6ea;
  white-space: nowrap;
}

/* Table body styling */
tbody tr {
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.2s ease;
}
tbody tr:hover {
  background-color: #f9fafb;
}
tbody td {
  padding: 12px 16px;
  color: #555;
  vertical-align: middle;
  white-space: nowrap;
}

/* Zebra stripes */
tbody tr:nth-child(even) {
  background-color: #fcfcfd;
}

/* No tasks message */
.empty-table {
  text-align: center;
  padding: 20px;
  color: #777;
  font-style: italic;
}

/* --- Status badges --- */
.status-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85em;
  color: #fff;
  display: inline-block;
  text-align: center;
}
.status-cancelled { background: #e74c3c; }
.status-pending { background: #f1c40f; color: #000; }
.status-processing { background: #3498db; }
.status-completed { background: #2ecc71; }
.status-unknown { background: #7f8c8d; }

/* --- Action menu --- */
.action-menu {
  position: relative;
  display: inline-block;
}
.menu-toggle {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  color: #444;
}
.menu-toggle:hover {
  color: #000;
}
.menu-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 140px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 99;
}
.menu-dropdown a {
  display: block;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
  font-size: 13px;
}
.menu-dropdown a:hover {
  background: #f2f2f2;
}
.action-menu.active .menu-dropdown {
  display: block;
}

.qr-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.qr-modal-content {
  background: #fff;
  padding: 25px 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 340px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: fadeIn 0.2s ease-in-out;
  overflow-wrap: break-word;   /* ✅ Ensures long wallet addresses wrap */
  word-wrap: break-word;       /* ✅ Fallback for older browsers */
}

.qr-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
  color: #444;
}

#walletAddress {
  margin-top: 12px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  overflow-wrap: anywhere;     /* ✅ Breaks extremely long unbroken strings */
  word-break: break-all;       /* ✅ Ensures address never extends out */
}

.btn-copy {
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 15px;
  cursor: pointer;
  margin-top: 10px;
  font-weight: 500;
  width: 100%;
  max-width: 200px;
}

.btn-copy:hover {
  background: #0056b3;
}

#copyFeedback {
  color: green;
  font-size: 13px;
  margin-top: 8px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* 🔹 Menu styling */
#affiliate-view-task-card .menu-wrapper {
  position: relative;
  display: inline-block;
}

#affiliate-view-task-card .menu-toggle {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #444;
}

#affiliate-view-task-card .menu-toggle:hover {
  color: #007bff;
}

/* 🔹 Dropdown box */
#affiliate-view-task-card .action-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 30px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  z-index: 1000;
  overflow: hidden;
}

#affiliate-view-task-card .action-menu.active {
  display: block;
}

#affiliate-view-task-card .action-menu a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s;
}

#affiliate-view-task-card .action-menu a:hover {
  background: #f5f5f5;
}

.error-box {
  background: #ffe5e5;
  border: 1px solid #ff5c5c;
  padding: 12px;
  border-radius: 8px;
  color: #b30000;
  font-weight: 500;
  text-align: center;
}

.error-message {
  color: #b30000;
  font-weight: 500;
  margin: 10px 0;
}

/* ===== Floating Button ===== */
.support-floating-btn {
    position: fixed;
    bottom: 90px; /* lift above cookie banner */
    right: 20px;
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-family: sans-serif;
    font-size: 14px;
    font-weight: 500;
    z-index: 1100; /* above cookie banner */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.2s;
}

.support-floating-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* ===== Modal Container ===== */
.support-ticket-modal {
    display: none;
    position: fixed;
    bottom: 160px;
    right: 20px;
    width: 350px;
    max-height: 500px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    overflow-y: auto;
    z-index: 9999;
    font-family: sans-serif;
}

/* ===== Modal Content ===== */
.support-modal-content {
    padding: 16px;
}

/* ===== Modal Header ===== */
.support-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.support-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.support-close-btn {
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    color: #333;
    transition: color 0.2s;
}

.support-close-btn:hover {
    color: #007bff;
}

/* ===== Form ===== */
.support-form {
    display: flex;
    flex-direction: column;
}

.support-form-group {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.support-form-group label {
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 14px;
}

.support-form-input {
    padding: 8px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.support-form-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 4px rgba(0,123,255,0.3);
}

/* ===== Submit Button ===== */
.support-submit-btn {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
}

.support-submit-btn:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

/* ===== Form Messages ===== */
.support-form-msg {
    margin-top: 10px;
    font-size: 13px;
}

.support-form-msg.success {
    color: green;
}

.support-form-msg.error {
    color: red;
}

.support-error-msg {
    padding: 20px;
    color: red;
    font-size: 14px;
    text-align: center;
}

/* Floating button and modal styles same as before... */

/* Ticket list */
.ticket-item {
    padding: 8px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}
.ticket-item:hover {
    background-color: #f0f0f0;
}

/* Ticket detail */
.ticket-comments {
    margin: 10px 0;
}
.comment {
    margin-bottom: 6px;
    font-size: 13px;
}
.comment.user {
    color: #007bff;
}
.comment.support {
    color: #28a745;
}
.comment span {
    font-size: 11px;
    color: #888;
    margin-left: 6px;
}

.support-menu-wrapper {
    position: relative;
    display: inline-block;
    margin-right: 8px;
}

.support-menu-btn {
    cursor: pointer;
    font-size: 18px;
    user-select: none;
}

.support-menu-dropdown {
    display: none;
    position: absolute;
    top: 24px;
    left: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 120px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 10000;
}

.support-menu-dropdown.show {
    display: block;
}

.support-menu-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
}

.support-menu-item:hover {
    background-color: #f0f0f0;
}


/* Reply form */
#replyForm textarea {
    width: 100%;
    padding: 6px;
    margin-bottom: 6px;
}
#replyForm input[type="file"] {
    margin-bottom: 6px;
}
#replyForm button {
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}
#replyForm button:hover {
    background-color: #0056b3;
}

.comment-notification-banner {
    position: fixed;
    bottom: 150px; /* Just above the Need Help button */
    right: 20px;
    background-color: #ffcc00;
    color: #222;
    font-weight: bold;
    font-size: 14px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    padding: 10px 15px;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    animation: pulseNotice 1.5s infinite;
}

.comment-notification-banner span {
    flex: 1;
}

.comment-notification-banner button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.comment-notification-banner button:hover {
    background-color: #0056b3;
}

@keyframes pulseNotice {
    0% { box-shadow: 0 0 0 0 rgba(255,204,0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255,204,0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255,204,0, 0); }
}

/* ============================
   CHAT CONTAINER + LAYOUT
============================ */
.chat-mode {
  display: flex;
  flex-direction: column;
  height: 80vh;
  max-height: 700px;
  border-radius: 16px;
  overflow: hidden;
  background: #f6f8fa;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.support-modal-header .back-btn {
  background: rgba(0, 102, 204, 0.85); /* solid blue background */
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.support-modal-header .back-btn:hover {
  background: rgba(0, 122, 255, 1); /* brighter blue on hover */
  transform: scale(1.05);
}


/* ============================
   MESSAGES AREA
============================ */
.chat-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #e9eef3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.no-thread-msg {
  text-align: center;
  color: #777;
  margin-top: 40px;
  font-size: 0.95rem;
}

/* ============================
   CHAT BUBBLES
============================ */
.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  line-height: 1.4;
  font-size: 0.95rem;
  position: relative;
  word-wrap: break-word;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Support messages (left) */
.support-msg {
  align-self: flex-start;
  background: white;
  border-top-left-radius: 4px;
}

/* User messages (right) */
.user-msg {
  align-self: flex-end;
  background: #d1e7dd;
  border-top-right-radius: 4px;
}

/* Meta info (time + sender) */
.msg-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.75rem;
  color: #777;
  margin-bottom: 5px;
}

.msg-text {
  white-space: pre-wrap;
  color: #333;
}

.msg-attachment {
  margin-top: 8px;
  font-size: 0.85rem;
}

.msg-attachment a {
  color: #007bff;
  text-decoration: none;
}

.msg-attachment a:hover {
  text-decoration: underline;
}

/* ============================
   CHAT INPUT AREA
============================ */
.chat-reply-form {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: white;
  padding: 12px 16px;
  border-top: 1px solid #ddd;
  border-radius: 0 0 12px 12px;
  flex-wrap: wrap;
}

.chat-reply-form textarea {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px 10px;
  resize: vertical;
  min-height: 44px;
  max-height: 120px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.chat-reply-form textarea:focus {
  border-color: #007bff;
}

.attach-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #007bff;
  transition: 0.2s;
}

.attach-btn:hover {
  transform: scale(1.15);
}

.send-btn {
  background: #007bff; /* blue */
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.send-btn:hover {
  background: #3399ff;
  transform: scale(1.1);
}

.send-btn svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}


/* ============================
   SCROLLBAR (Optional)
============================ */
.chat-container::-webkit-scrollbar {
  width: 6px;
}
.chat-container::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 6px;
}
.chat-container::-webkit-scrollbar-thumb:hover {
  background: #888;
}

.file-preview-container {
  width: 100%;
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.file-preview-item {
  background: #e9f2ff;
  border: 1px solid #cce0ff;
  border-radius: 12px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #003366;
  position: relative;
}

.file-preview-item.image-preview {
  flex-direction: column;
  padding: 5px;
}

.file-preview-item img {
  max-width: 120px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.remove-file {
  cursor: pointer;
  color: #007bff;
  font-weight: bold;
  font-size: 1.1rem;
  margin-left: 5px;
}

.remove-file:hover {
  color: #0056b3;
}

/* cookie.css */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #f8f9fa; /* Softer light grey background */
    color: #333;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 600px;
    font-family: system-ui, sans-serif;
    font-size: 14px;
    z-index: 1000; /* slightly lower to stay below floating buttons */
    animation: fadeIn 0.4s ease;
}

.cookie-text {
    flex: 1;
    margin-right: 16px;
    line-height: 1.4;
}

.cookie-accept {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 14px;
}

.cookie-accept:hover {
    background: #0056b3;
}

.cookie-hide {
    animation: fadeOut 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(10px); }
}

.pill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* spacing between wrapped pills */
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    #assessment-form {
        padding: 15px;
    }
    .form-step .form-fields {
        grid-template-columns: 1fr;
    }
    #completeProfileForm .form-fields, #applyVisaForm .form-fields, #crypto-transactions-data-entry-form .form-fields {
        grid-template-columns: 1fr;
    }
    #status-card .card-section .card-sub-section, #application-status-card .card-section .card-sub-section   {
        grid-template-columns: 1fr;
    }
    #booking-status-card .route-container {
      grid-template-columns: 1fr; /* Stack everything in one column */
    }
    table {
      font-size: 13px;
    }
    thead th, tbody td {
      padding: 10px 12px;
    }
    .menu-dropdown {
      right: auto;
      left: 0;
    }
    .chat-mode {
    height: 90vh;
    border-radius: 0;
  }
  .chat-bubble {
    max-width: 90%;
  }
  .send-btn {
    width: 38px;
    height: 38px;
  }
  .cookie-banner {
      flex-direction: column;
      text-align: center;
      padding: 14px 16px;
      width: 95%;
      bottom: 10px;
      font-size: 13px;
  }

  .cookie-accept {
      width: 100%;
  }
  .support-floating-btn {
        bottom: 140px; /* more space above banner */
        right: 15px;
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 40px;
    }
  .support-ticket-modal {
    bottom: 190px;
  }
  .comment-notification-banner {
    bottom: 190px;
  }
}