/*------------------------------+
 | Site: TradingBlock           |
 | Part: Application stylesheet |
 +------------------------------*/

/* Imports
=====================================================================*/
/* Use relative paths for CSS imports to support feature branch deployments.
When CSS is served from /TBFE-1955-2/styles/master.css, relative imports
(e.g., reset.css) resolve to /TBFE-1955-2/styles/reset.css correctly. */
@import url(reset.css);
@import url(fontawesome.css);
@import url(https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css);


/* Basics
=====================================================================*/
:root {
    --blue-dark: #001236;
    --blue-dark-lighten: #1a2847;
    --field-bg: #2a3a5a;
    --field-border: 2px solid #3a4a6a; /* match unified input default */
    --field-border-on: 2px solid #0066cc; /* match unified input focus */
    --gold: #f6ce28;
    --red: #ec4d5c;
    --teal: #19bab4;
    --teal-light: #02fff6;
    --text: #ffffff;
    
    /* Dimensions */
    --corner-radius: 8px; /* normalized radius */
    --gap: 20px;
    --icon-size: 19px;
    --check-size: 21px;
}

a, a:not([href]):not([tabindex]) { color: var(--teal); transition: all 0.1s ease-in-out; }
a:hover { color: var(--teal-light); }
body { 
  background: #001236; 
  color: var(--text); 
  font-family: Poppins, sans-serif; 
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0; 
  padding: 0; 
}

html { 
  font-size: 15px; 
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0; 
  padding: 0; 
}

button { appearance: normal; background: none; border: 0; color: var(--teal); padding: 0; transition: all 0.05s ease-in-out; }
button:hover { opacity: 0.7; }
em { font-style: italic; }
hr { background: rgba(0, 0, 0, 0.15); border: 0; clear: both; color: rgba(0, 0, 0, 0.15); height: 1px; margin: 2rem 0; }
img { max-width: 100%; }
section { border-bottom: 1px solid rgba(0, 0, 0, 0.15);  padding-bottom: .5rem !important; }
section:last-child { border: 0; }
table { border-collapse: collapse; width: 100%; }
td { border-bottom: 1px solid rgba(255, 255, 255, 0.2); color: #fff; padding: 0.3em 1em 0.3em 0; }
tr:last-child td { border: 0; }
td, th { font-size: 0.75rem; }
th { color: rgba(255, 255, 255, 0.5); }


/* Layout
=====================================================================*/
.content { 
  margin: 0 auto; 
  max-width: 2200px; 
  /* Align content with header elements */
  padding-left: 16px;
  padding-right: 16px;
}

/* Root app container - ensures proper layout structure */
#root > div {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Calculate header height more accurately */
:root {
  --header-subheader-height: 43px;
  --header-nav-padding: 20px;
  --header-nav-content-height: 40px; /* Approximate height of nav content */
  --header-total-height: calc(var(--header-subheader-height) + var(--header-nav-padding) + var(--header-nav-content-height));
  /* Add variables for header alignment */
  --header-logo-width: 150px;
  --header-contact-width: 120px;
  --header-padding: 16px;
}

/* Align content with header elements */
.content {
  margin: 0 auto;
  padding-left: var(--header-padding);
  padding-right: var(--header-padding);
}

/* Ensure form content aligns properly */
.form-content {
  max-width: 536px;
  margin: 0 auto;
  /* Align with header content */
  padding-left: var(--header-padding);
  padding-right: var(--header-padding);
}

/* Mobile adjustments for header alignment */
@media (max-width: 940px) {
  :root {
    --header-logo-width: 110px;
    --header-contact-width: 100px;
    --header-padding: 12px;
  }
  
  .content {
    padding-left: var(--header-padding);
    padding-right: var(--header-padding);
  }
  
  .form-content {
    padding-left: var(--header-padding);
    padding-right: var(--header-padding);
  }
  
  .container-fluid {
    padding-left: var(--header-padding);
    padding-right: var(--header-padding);
  }
  
  .home-title-section .container-fluid {
    max-width: calc(100vw - (var(--header-logo-width) + var(--header-contact-width) + (var(--header-padding) * 4)));
    margin: 0 auto;
  }
  
  .footer .content {
    padding-left: var(--header-padding);
    padding-right: var(--header-padding);
  }
}

/* Ensure subheader content aligns with main content */
.subheader .content {
  align-items: center;
  display: flex;
  justify-content: space-between;
  /* Match main content padding */
  padding-left: var(--header-padding);
  padding-right: var(--header-padding);
  margin: 0 auto;
  max-width: 1200px; /* Center content with max-width similar to older white version */
}

/* Ensure container-fluid aligns with header content */
.container-fluid {
  padding-left: var(--header-padding);
  padding-right: var(--header-padding);
}

/* Ensure home page content aligns properly */
.home-title-section .container-fluid {
  width: calc(100vw - (var(--header-logo-width) + var(--header-contact-width) + (var(--header-padding) * 4)));
  margin: 0 auto;
}

main { 
  background: #001236; 
  display: flex; 
  flex-direction: column; 
  justify-content: flex-start; 
  flex: 1;
  min-height: 0; 
  padding-top: var(--header-actual-height, var(--header-total-height)); 
  padding-bottom: 0; 
}

/* Add this new CSS rule */
main.home-page {
    padding-top: 60px;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    main.home-page {
        padding-top: 40px;
        padding-bottom: 0;
    }
}

@media (max-width: 600px) {
    main.home-page {
        padding-top: 20px;
        padding-bottom: 0;
    }
}

/* Chrome-specific fixes for header rendering */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  /* Chrome-specific adjustments */
  .header {
    /* Ensure proper rendering in Chrome */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
  
  main {
    /* Slightly reduce padding for Chrome to account for rendering differences */
    padding-top: calc(var(--header-actual-height, var(--header-total-height)) - 5px);
    padding-bottom: 0;
  }
  
  /* Mobile Chrome adjustments */
  @media (max-width: 940px) {
    main {
      padding-top: calc(var(--header-actual-height, var(--header-total-height)) - 3px);
      padding-bottom: 0;
    }
  }
}

/* Additional browser compatibility */
@supports (-webkit-appearance: none) {
  /* WebKit browsers (Chrome, Safari) */
  .header {
    /* Prevent sub-pixel rendering issues */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
}


/* Content
=====================================================================*/

/* Footer */
.contact-email { display: block; margin-bottom: 0.5em; text-decoration: none; }
.contact-email, .contact-email:hover { color: var(--teal); }
.disclaimer { color: rgba(255, 255, 255, 0.45); line-height: 1.35; }
.disclaimer a { color: rgba(255, 255, 255, 0.53); font-weight: 700; }
.footer { 
  color: rgba(255, 255, 255, 0.71); 
  padding: calc(var(--gap) * 2) var(--gap) 0 var(--gap);
  margin: 0;
  padding-bottom: 1rem !important;
}

.footer .content {
  /* Align footer content with header */
  padding-left: var(--header-padding);
  padding-right: var(--header-padding);
  margin: 0 auto;
  max-width: 1200px; /* Center content with max-width similar to older white version */
}
.footer-heading { color: #fff; font-size: 0.9375rem; letter-spacing: 0.1em; line-height: 1.2; margin-bottom: 10px; text-transform: uppercase; }
.footer-teaser { display: flex; gap: 3rem; max-width: 100%; align-items: stretch; }
.footer-teaser-primary { 
  flex: 0 0 auto; 
  width: 20%; 
  min-width: 200px; 
  font-size: 1.0625rem; 
  display: flex; 
  flex-direction: column; 
  align-self: stretch;
  justify-content: space-between;
}
.footer-teaser-secondary { 
  flex: 1 1 auto; 
  font-size: 0.875rem; 
  line-height: 1.35; 
  display: flex; 
  flex-direction: column; 
  align-self: stretch;
}
.footer-teaser-secondary .disclaimer { 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
}
.external { color: var(--teal);  }   
.external:hover { color: var(--teal); text-decoration: underline }

/* Mobile-specific styles for header and footer to span full width */
@media (max-width: 767px) {
  /* Make header content span full width on small mobile screens */
  .header .content,
  .subheader .content,
  .nav .content {
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  /* Make footer content span full width on small mobile screens */
  .footer .content {
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  /* Ensure header and footer backgrounds span full width */
  .header,
  .subheader,
  .nav,
  .footer {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
  }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
  .header .content,
  .subheader .content,
  .nav .content,
  .footer .content {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* Forms */
.card {
  background-color: transparent !important;
  border: none !important;
}

.fields-title { 
  color: #ffffff; 
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  font-family: 'Poppins', sans-serif !important;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

/* Responsive breakpoints */
@media (max-width: 768px) {
  .fields-title {
    font-size: 1rem;
  }
}

@media (min-width: 1200px) {
  .fields-title {
    font-size: 1.25rem;
  }
}

.form-footer .form-content { display: flex; justify-content: space-between; }
.form-footer-panel { flex: 0 0 auto; width: 48%; }
.form-content { margin: 0 auto; max-width: 536px; }
.form-group { margin-bottom: 1rem; }

/* Open Account and application form steps: fix input alignment when floating label is hidden.
   Label is hidden when filled; ensure no extra padding/transform for the old floating label.
   Applies to form fields outside user-creation-section (e.g. InvestingProfile, AccountInformation).
   align-items: stretch so value-container fills control height for react-select's absolute centering. */
.flabel .select__control,
.flabel .sq__control {
  align-items: stretch !important;
}
.flabel.filled .select__control,
.flabel.on .select__control,
.flabel.filled .sq__control,
.flabel.on .sq__control {
  padding-top: 0 !important;
}
.flabel.filled .select__indicator,
.flabel.on .select__indicator,
.flabel.filled .sq__indicator,
.flabel.on .sq__indicator {
  transform: none !important;
}
.flabel .select__value-container,
.flabel .sq__value-container {
  padding-top: 0 !important;
  height: 100% !important;
  align-self: stretch !important;
  position: relative !important;
}

/* Override App.css position:static – ensure dropdown values are always vertically centered.
   Applies to ALL flabel dropdowns (Home, Apply/Open Account, InvestingProfile, etc.). */
.flabel .basic-multi-select .select__single-value,
.flabel .basic-multi-select .select__placeholder,
.flabel .basic-multi-select .sq__single-value,
.flabel .basic-multi-select .sq__placeholder {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
}
/* Keep value visible when menu is open (react-select may hide it by default) */
.flabel .basic-multi-select .select__control--is-focused .select__single-value,
.flabel .basic-multi-select .select__control--menu-is-open .select__single-value,
.flabel .basic-multi-select .sq__control--is-focused .sq__single-value,
.flabel .basic-multi-select .sq__control--menu-is-open .sq__single-value {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Reinforce on mobile viewport – ensure no floating-label padding on small screens. */
@media (max-width: 768px) {
  .flabel.filled .select__control,
  .flabel.on .select__control,
  .flabel.filled .sq__control,
  .flabel.on .sq__control {
    padding-top: 0 !important;
    display: flex !important;
    align-items: stretch !important;
  }
  .flabel .select__value-container,
  .flabel .sq__value-container {
    padding-top: 0 !important;
    height: 100% !important;
    align-self: stretch !important;
  }
}

/* Touch devices (real mobile) – narrow desktop emulation has pointer:fine, real mobile has pointer:coarse. */
@media (pointer: coarse) {
  .flabel.filled .select__control,
  .flabel.on .select__control,
  .flabel.filled .sq__control,
  .flabel.on .sq__control {
    padding-top: 0 !important;
    display: flex !important;
    align-items: stretch !important;
  }
  .flabel.filled .select__indicator,
  .flabel.on .select__indicator,
  .flabel.filled .sq__indicator,
  .flabel.on .sq__indicator {
    transform: none !important;
  }
  .flabel .select__value-container,
  .flabel .sq__value-container {
    padding-top: 0 !important;
    height: 100% !important;
    align-self: stretch !important;
  }
}

/* Investment Background: uniform experience and trades/year inputs on mobile/small screens */
.experience-input-row .col {
  flex: 1 1 0;
  min-width: 0;
}
.experience-input-row .col .flabel,
.experience-input-row .col .basic-multi-select {
  width: 100%;
  min-width: 0;
}
.experience-input-row .col .select__control {
  min-width: 0;
}

/* Date input: single native date picker for cleaner mobile UX */
.date-input-single {
  display: block;
  position: relative;
  min-height: 48px;
}
.date-input-single .flabel-value {
  display: flex;
  align-items: center;
  min-height: 48px;
  position: relative;
}
/* Placeholder overlay - match other flabel inputs */
.date-input-single .flabel-title {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
}
.date-input-native {
  background: none !important;
  border: 0;
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  padding: 1rem 2.75rem 1rem 1rem;
  width: 100%;
  min-height: 48px;
  -webkit-appearance: none;
  appearance: none;
  position: relative;
}
/* Hide native placeholder when empty - we use our own MM/DD/YYYY overlay */
.date-input-single:not(.filled):not(.on) .date-input-native {
  color: transparent;
}
.date-input-single:not(.filled):not(.on) .date-input-native::-webkit-date-and-time-value {
  color: transparent;
}
/* Web: show native calendar icon */
.date-input-native::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.8;
  filter: invert(1);
}
/* Match select dropdown chevron position (padding-right: 12px) and styling */
.date-input-chevron {
  display: none; /* Hidden on web; shown on mobile only */
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  pointer-events: none;
  font-size: 0.875rem;
}
.date-input-single.disabled .date-input-chevron {
  opacity: 0.5;
}
.date-input-native::-webkit-date-and-time-value {
  text-align: left;
  color: inherit;
}
.date-input-native:focus {
  outline: none;
}
.date-input-native:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* Ensure native date input displays correctly on mobile */
@media (max-width: 768px) {
  .date-input-single,
  .date-input-single .flabel-value {
    min-height: 52px;
  }
  .date-input-native {
    font-size: 16px; /* Prevents iOS zoom on focus */
    min-height: 52px;
    padding: 1rem 2.75rem 1rem 1rem;
  }
  /* Mobile: hide native icon, show custom chevron to match other account app dropdowns */
  .date-input-native::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 2.75rem;
    height: 100%;
    cursor: pointer;
  }
  .date-input-chevron {
    display: block;
  }
}

.home-title-container {
    max-width: 1200px;
    display: flex;
    padding: 40px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
}

.home-title-container ul {
  justify-content: center;
  align-items: center;
}

.home-title-section li {
    list-style-position: inside;
    text-indent: 0.5em;
}

.home-title-container li {
  font-weight: 400 !important;
}

.home-title-container li:before {
    content: "•";
    color: #0071e3;
    font-size: 20px;
}

.home-title-container h1 {
    font-size: 36px;
    font-weight: 700 !important;
    margin-bottom: 10px;
    line-height: 1.2;
}

.home-title-container {
    font-family: 'Poppins', sans-serif;
    color: #002642;
    line-height: 1.6;
    padding: 20px;
}

.home-title-container .subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    font-weight: 400 !important;
}

@media (max-width: 600px) {
    .home-title-container {
        padding: 30px 20px;
        flex-direction: column;

    }
    .home-title-container h1 {
        font-size: 28px;
    }
    .home-title-container .subtitle {
        font-size: 16px;
    }
}

  
  .home-title-container .protection-text {
    font-size: 14px;
    font-weight: 500 !important;
    margin-top: 2rem;
  }
  
  .home-title-container .protection-text p {
    margin-bottom: 0.5rem;
  }

  .home-title-container .protection-text-small {
    font-size: 12px;
    font-weight: 400 !important;
    color: #666;
    margin-top: .5rem;
  }
  
  .home-title-container .btn {
    padding: 0.75rem 2rem;
    border-radius: 4px;
  }
  
  
  .home-title-container .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
  }
  
  .home-title-container .btn-outline-primary:hover {
    color: #fff;
  }
  
  .home-title-container .btn-outline-primary {
    color: #002642;
    border-color: #002642;
  }

  .home-title-container img {
    border-radius: 20px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, filter 0.3s ease;
  }
  
  .home-title-container img:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1); /* Slight brightness boost */
  }

  .home-title-container .col-6:last-child {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  
  .home-title-container .col-6:last-child img {
    max-width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .home-title-container .col-6:last-child {
      margin-top: 2rem;
    }
    
    .home-title-container .col-6:last-child img {
      width: 100%;
    }
  }


    /* Buttons */
    .btn { border-radius: 100px; font-weight: bold; letter-spacing: 0.07em; padding: 0.5em 1em; text-transform: uppercase; transition: all 0.2s ease-in-out; }
    .btn-block.btn-icon .tb-icon { position: absolute; right: 1em; top: 50%; transform: translateY(-50%); }
    .btn.invalid, .btn-block.invalid { border-color: var(--red); }
    .btn-primary.disabled, .btn-primary:disabled { cursor: not-allowed;  background: #ccc; }
    .btn-icon { position: relative; }
    .btn-link, .btn-link:hover { color: #0066cc; }
    .btn-learn-more .btn-learn-more:hover {color: var(--teal)}
    .btn-white, .btn-white:hover { color: #ffffff; }
    .stepper .btn-white { color: #ffffff; }
    .btn-primary, .btn-primary:hover { background: var(--teal); border-color: var(--teal); color: #fff !important; }
    .btn-primary:hover { opacity: 0.7; }
    .btn-outline-dark { 
  border: var(--field-border); 
  color: rgba(255, 255, 255, 0.7); 
  background-color: transparent;
  border-width: 2px;
}
.btn-outline-dark:hover { 
  background: #2a3a5a; 
  color: #ffffff; 
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
    .btn-virtual { background: var(--gold); }
    .btn-service-level { background: var(--blue); color: white; font-size: 1rem; padding: 0.5em 1em; width: 80%; font-weight: bold; border-radius: 5px; }
    .btn-outline-warning { border: 1px solid var(--gold); background: var(--gold); color: #000; }
    .btn-outline-warning:hover {  background: #fff; color: #666; }
    
    /* Checklists */
    .checklist { list-style: none; margin-left: 0; padding: 0; }
    .checklist .checkcontainer { position: absolute; left: 0; top: 0; }
    .checklist label { cursor: pointer; display: block; color: #ffffff; }
    .checklist label:hover .checkcontainer .checkbox, .checklist label:hover .checkcontainer .radiobtn { border: 1px solid #3a4a6a; }
    .checklist > li { margin-bottom: 0.75em; padding-left: calc(var(--check-size) + 10px); position: relative; }
    .checklist-descriptions .mute { display: block; }
    .checklist-icons > li { padding-left: calc((var(--check-size) + 10px) * 2) }
    .checklist-icons .checklist-icon { position: absolute; left: calc(var(--check-size) + 10px); }
    
    /* Dropdowns */
    .dropdown-body { min-width: 300px; padding: 0.5em 1em; }
    .dropdown-body a { color: var(--teal); }
    
    /* Errors */
    .error { color: var(--red); }
    .error-list { list-style: disc; margin-left: 1.5em; }
    
    /* Floating labels */
    .flabel { border: var(--field-border); border-radius: var(--corner-radius); position: relative; transition: box-shadow .2s ease, border-color .2s ease; }
    .flabel.invalid { border: 2px solid var(--red); }
    .flabel.on {border: var(--field-border-on); box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1); }
    .flabel .flabel-input:focus { outline: none; } /* prevent inner outline causing double border */
    /* Placeholder-style: label hidden when filled; when empty, label is large and centered like input text */
    .flabel-input { background: none; border: 0; display: block; padding: 1rem; width: 100%; color: #ffffff; }
    /* Ensure value stays vertically centered when filled (label hidden) – guards against any asymmetric overrides */
    .flabel.filled .flabel-input,
    .flabel.on .flabel-input { padding: 1rem; }
    
    /* Override browser autofill styles */
    .flabel-input:-webkit-autofill,
    .flabel-input:-webkit-autofill:hover,
    .flabel-input:-webkit-autofill:focus,
    .flabel-input:-webkit-autofill:active {
        -webkit-text-fill-color: #ffffff !important;
        -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
        box-shadow: 0 0 0px 1000px transparent inset !important;
        transition: background-color 5000s ease-in-out 0s;
        caret-color: #ffffff !important;
    }
    
    /* Standard autofill (for Firefox and other browsers) */
    .flabel-input:autofill {
        background-color: transparent !important;
        color: #ffffff !important;
    }
    
    /* For dark theme sections specifically */
    .flabel-input:-webkit-autofill {
        background-color: transparent !important;
        -webkit-text-fill-color: #ffffff !important;
    }
    
    .flabel-title { color: #cecece; font-size: 1rem; left: 1rem; margin: 0; position: absolute; top: 50%; transform: translateY(-50%); transition: all 0.2s ease-in-out; pointer-events: none; }
    .flabel.disabled { cursor: pointer; opacity: 0.5; }
    
        /* Icon */
        .flabel-icon { position: absolute; right: 1em; top: 50%; transform: translateY(-50%); }
        
        /* Number input spinner buttons - hide native spinners */
        .flabel-input[type="number"] {
            -moz-appearance: textfield;
            appearance: textfield;
            padding-right: 3rem; /* Make room for custom buttons */
        }
        
        .flabel-input[type="number"]::-webkit-inner-spin-button,
        .flabel-input[type="number"]::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        
        /* Custom number input buttons */
        .flabel-value {
            position: relative;
        }
        
        .flabel-number-buttons {
            position: absolute;
            right: 0.75rem;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            flex-direction: column;
            gap: 2px;
            z-index: 1;
        }
        
        .flabel-number-button {
            background: var(--field-bg);
            border: 1px solid #3a4a6a;
            border-radius: 3px;
            color: var(--teal);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 18px;
            width: 22px;
            padding: 0;
            transition: all 0.2s ease-in-out;
            line-height: 1;
        }
        
        .flabel-number-button:hover:not(:disabled) {
            background: var(--teal);
            border-color: var(--teal);
            color: #ffffff;
        }
        
        .flabel-number-button:active:not(:disabled) {
            background: var(--teal-light);
            transform: scale(0.95);
        }
        
        .flabel-number-button:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }
        
        .flabel-number-button i {
            font-size: 0.7rem;
        }
        
        /* Adjust icon position when number buttons are also present (icon and buttons are siblings) */
        .flabel:has(.flabel-number-buttons) .flabel-icon {
            right: 3.5rem;
        }
        
        /* Nested */
        .flabel-multi .flabel { background: none; border: 0; }

        /* Target all Security Challenge Answer inputs */
        .flabel .flabel-input[id^="securityChallenges["][id$=".answer"] {
            padding-top: 27px;
        }
        /* login-info-section uses compact fixed-height fields - override with simple centering */
        .login-info-section .flabel-input[id^="securityChallenges["][id$=".answer"] {
            padding: calc((48px - 1.5rem) / 2) 1rem;
        }
        @media (max-width: 768px) {
            .login-info-section .flabel-input[id^="securityChallenges["][id$=".answer"] {
                padding: calc((56px - 1.5rem) / 2) 1rem;
            }
        }
        .login-info-section .flabel.filled .select__control,
        .login-info-section .flabel.on .select__control,
        .login-info-section .flabel.filled .sq__control,
        .login-info-section .flabel.on .sq__control { padding-top: 0; }
        .login-info-section .flabel.filled .select__indicator,
        .login-info-section .flabel.on .select__indicator,
        .login-info-section .flabel.filled .sq__indicator,
        .login-info-section .flabel.on .sq__indicator { transform: none; }
        /* Match suffix-col select centering for security question dropdown (sq__) and credential dropdowns (select__) */
        .user-creation-section .login-info-section .select__control,
        .user-creation-section .login-info-section .sq__control {
            height: 48px !important;
            min-height: 48px !important;
            display: flex !important;
            align-items: stretch !important;
        }
        @media (max-width: 768px) {
            .user-creation-section .login-info-section .select__control,
            .user-creation-section .login-info-section .sq__control {
                height: 56px !important;
                min-height: 56px !important;
            }
        }
        .user-creation-section .login-info-section .select__input-container,
        .user-creation-section .login-info-section .sq__input-container {
            margin: 0 !important;
            padding: 0 !important;
        }
        .user-creation-section .login-info-section .basic-multi-select .select__value-container,
        .user-creation-section .login-info-section .basic-multi-select .sq__value-container {
            padding: 0 12px !important;
            height: 100% !important;
            align-self: stretch !important;
            position: relative !important;
            flex: 1;
            min-width: 0;
            overflow: visible !important;
        }
        .user-creation-section .login-info-section .select__control--is-focused .select__single-value,
        .user-creation-section .login-info-section .select__control--menu-is-open .select__single-value,
        .user-creation-section .login-info-section .sq__control--is-focused .sq__single-value,
        .user-creation-section .login-info-section .sq__control--menu-is-open .sq__single-value {
            visibility: visible !important;
            opacity: 1 !important;
        }

        /* Prefixes */
        .flabel:before {
            font-size: 1.2rem;
            content: attr(data-prefix);
            left: 0;
            opacity: 0.5;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            transition: all 0.2s ease-in-out;
        }
        
        .flabel.filled .flabel:before, .flabel.on .flabel:before { opacity: 1; transform: translateY(-25%); }
        
    /* React-select */
    .flabel .select__control { background: none; border: 0 !important; box-shadow: none !important; color: #ffffff; }
        /* Label is hidden when filled, so no extra padding/transform needed - keeps value centered */
        .flabel.filled .select__control, .flabel.on .select__control { padding-top: 0; }
        /* Prevent year from truncating in multi-date fields */
        .flabel-multi .select__single-value { max-width: none !important; }
        .flabel-multi .select__value-container { overflow: visible !important; }
        .flabel.filled .select__indicator, .flabel.on .select__indicator { transform: none; }
        
        .flabel .select__control--is-focused,
        .flabel .select__control--is-focused:hover,
        .flabel .select__control--menu-is-open { background: none; border: 0 !important; box-shadow: none; }
        
        .flabel .select__indicator-separator { display: none; }
        .flabel .select__value-container { padding-left: calc(1rem - 2px); }
        .select__menu { margin-top: 0 !important; overflow: hidden; }
        .select__menu hr { margin: 0; }
        .select__option--is-focused { background: rgba(0, 102, 204, 0.1) !important; }
        .select__option--is-selected { background: var(--blue-dark-lighten) !important; color: #fff; }
        .select__menu { background: #1a2847 !important; z-index: 1000 !important; }
        .select__option { color: #ffffff !important; }
        .select__placeholder { color: rgba(255, 255, 255, 0.5) !important; }
        .select__single-value { color: #ffffff !important; }
        .select__input-container { color: #ffffff !important; }
    
    /* Help */
.field-help { float: right; margin-right: -270px; width: 47%; }
.form-help-below { float: none; width: 100%; margin: 0; }
    
        /* Helpful form groups */
        .form-group-help { align-items: center; display: flex; }
        .form-group-help-action { flex: 0 0 auto; font-size: 2rem; margin-left: 0.5rem; }
        .form-group-help-content { flex: 1 1 auto; }
    
    /* Radio buttons and checkboxes */
    .checkcontainer {
        cursor: pointer;
        display: inline-block;
        position: relative;
        height: var(--check-size);
        vertical-align: -0.25em;
        width: var(--check-size);
    }
    
    .checkcontainer .checkbox, .checkcontainer .radiobtn {
        background: #2a3a5a;
        border: 2px solid #3a4a6a;
        height: 100%;
        position: absolute;
        transition: all 0.05s ease-in-out;
        width: 100%;
    }
    
    .checkcontainer input { opacity: 0; position: absolute; }
    .checkcontainer input:checked + .radiobtn, .checkcontainer input:checked + .checkbox { background: var(--teal); border-color: var(--teal); }
    
        /* Checkboxes */
        .checkcontainer .checkbox { border-radius: var(--corner-radius); }
        
        .checkcontainer .checkbox:after {
            border: 1px solid #fff;
            border-width: 0 4px 4px 0;
            content: "";
            height: 100%;
            left: 50%;
            position: absolute;
            transform: scale(0);
            transition: all 0.05s ease-in-out;
            top: 50%;
            width: 60%;
        }
        
        .checkcontainer input:checked + .checkbox:after { transform: translate(-50%, -53%) scale(0.6) rotate(45deg); }
        
        /* Radio buttons */
        .checkcontainer .radiobtn { border-radius: 100%; }
        
        .checkcontainer .radiobtn:after {
            background: #fff;
            border-radius: 100%;
            content: "";
            height: 100%;
            left: 0;
            position: absolute;
            top: 0;
            transform: scale(0);
            transition: all 0.05s ease-in-out;
            width: 100%;
        }
        
        .checkcontainer input:checked + .radiobtn:after { transform: scale(0.4); }
    
    /* Removable form groups */
    .form-group-removable { position: relative; }
    .form-group-removable .remove { position: absolute; right: 1em; }
    .form-group-removable-titled .remove { top: 0; }
    .form-group-removable-untitled .remove { top: 50%; transform: translateY(-50%); }
    
    /* Steppers */
    .stepper { background: var(--field-bg); border: var(--field-border); border-radius: var(--corner-radius); padding: 4px; }
    .stepper .btn { border-radius: 3px !important; font-weight: normal; letter-spacing: normal; text-transform: none; }
    .stepper .btn-link:hover { background: rgba(0, 0, 0, 0.1); text-decoration: none; }
    .stepper .btn-active { background: var(--blue); cursor: default; }

/* Single-option stepper (e.g. RQD Limited only) - full width at all screen sizes */
.stepper-single-option .btn-group {
  display: grid;
  grid-template-columns: 1fr;
}
.stepper-single-option .btn-group .btn {
  width: 100%;
  min-width: 0;
}

/* Stepper overflow fix for mobile/small screens (Employment Type, etc.) */
@media (max-width: 768px) {
  .stepper .btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .stepper-single-option .btn-group {
    grid-template-columns: 1fr;
  }
  .stepper .btn-group .btn {
    flex: none;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Touch devices (real mobile) – narrow desktop emulation has pointer:fine.
   Apply stepper grid layout on touch devices so formatting works on actual phones/tablets
   even when viewport reporting differs from browser devtools. */
@media (pointer: coarse) {
  .stepper .btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .stepper-single-option .btn-group {
    grid-template-columns: 1fr;
  }
  .stepper .btn-group .btn {
    flex: none;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

    /* Valid */
    .valid { color: var(--teal); }

/* Header */
.header { left: 0; position: fixed; top: 0; width: 100%; z-index: 2; }

    /* Application navigation */
    .nav { background: #1a2847; display: block; padding: var(--gap); }
    .nav .content {
      /* Align navigation content with header */
      padding-left: var(--header-padding);
      padding-right: var(--header-padding);
      max-width: 1200px;
      margin: 0 auto;
    }
    .nav ul { margin: 0; }
    .nav-indicators .nav-future { background: rgba(255, 255, 255, 0.35); }
    .nav-indicators .nav-past, .nav-indicators .nav-present { background: var(--teal-light); }
    .nav-indicators .nav-step { height: 6px; }
    .nav-indicators, .nav-labels { display: flex; justify-content: center; }
    .nav-labels { font-size: 0.86rem; font-weight: bold; }
    .nav-labels .nav-future { color: #ffffff; }
    .nav-labels .nav-past, .nav-labels .nav-present { color: var(--teal-light); }
    .nav-labels .nav-step:not(.nav-past), .nav-labels .nav-step a { padding: 1em; }
    .nav-past { opacity: 0.6; }
    .nav-step { flex: 0 0 auto; width: calc((100%) / 8); }
    .nav-step a { color: inherit; display: block; }
    .nav-step a:hover { background: rgba(255, 255, 255, 0.2); text-decoration: none; }
    .nav-toggle { color: #fff; display: none; flex: 0 0 auto; font-size: 1.3rem; padding-right: var(--gap); }
    
    /* Subheader */
    .subheader { background: #001236; color: #fff; }
    .subheader a { color: #fff; }
    .subheader button { color: #fff; }
    .subheader .content { 
      align-items: center; 
      display: flex; 
      justify-content: space-between; 
      /* Match main content alignment */
      padding-left: var(--header-padding);
      padding-right: var(--header-padding);
      margin: 0 auto;
      max-width: 1200px; /* Center content with max-width similar to older white version */
    }
    .subheader .dropdown-body a { color: var(--teal); }
    .subheader .logo { height: 43px; width: 150px; }
    .subheader .logo * { height: 100%; }
    .subheader .logo a { align-items: center; display: flex; }
    .subheader .logo svg { width: 100%; }
    .subheader .logo-mark { display: block; flex: 0 0 auto; margin-right: 4px; padding-bottom: 21%; position: relative; width: 43px; }
    .subheader .logo-mark svg { left: 0; padding: 6px; position: absolute; top: 0; }
    .subheader .logo-text { padding-top: 4px; }
    
        /* Utility nav */
        .nav-utilities a { color: #fff; }
        .nav-utilities li { margin-left: 1rem; }
        .nav-utilities ul { display: flex; list-style: none; margin: 0; }

/* Icons */
.add-icon .fa-stack-2x { color: #e5e7eb; }

    /* TradingBlock */
    .tb-icon { display: inline-block; height: var(--icon-size); position: relative; vertical-align: -3px; width: var(--icon-size); }
    .tb-icon-sm { height: calc(var(--icon-size) * 0.8); width: calc(var(--icon-size) * 0.8); }
    .tb-icon-lg { height: calc(var(--icon-size) * 1.3); width: calc(var(--icon-size) * 1.3); }
    .tb-icon-2x { height: calc(var(--icon-size) * 1.5); width: calc(var(--icon-size) * 1.5); }
    .tb-icon svg { height: 100%; left: 0; position: absolute; top: 0; width: 100%; }
    
        /* Counter */
        .tb-icon-counter { display: inline-block; position: relative; }
        
        .tb-icon-counter-value {
            background: #fff;
            border: 3px solid var(--blue-dark);
            border-radius: 1em;
            color: var(--blue-dark);
            font-size: 0.75rem;
            font-weight: bold;
            line-height: 1;
            padding: 0.1em 0.3em;
            position: absolute;
            right: -5px;
            top: -4px;
        }
        
        .tb-icon-counter-value-notifications { background: var(--yellow); }
        
        /* Stacked */
        .tb-icon-stack { position: relative; vertical-align: -4px; }
        .tb-icon-stack .tb-icon-stack-1x { height: calc(var(--icon-size) * 0.6); left: 50%; top: 50%; transform: translate(-50%, -50%); width: calc(var(--icon-size) * 0.6); }
        .tb-icon-stack .tb-icon-stack-1x, .tb-icon-stack .tb-icon-stack-2x { display: inline-block; position: absolute; }
        .tb-icon-stack .tb-icon-stack-2x { height: 100%; left: 0; top: 0; width: 100%; }
        
            /* Icon-specific overrides */
            .tb-icon-clipboard .tb-icon-stack-1x { transform: translate(-50%, -30%); }

/* Login */
.login { background: var(--teal); color: #fff; min-height: 0; padding-top: 52px; }
.login a { color: #000; }
.login .form-content { max-width: 100%; }
.login hr { background: rgba(255, 255, 255, 0.3); color: rgba(255, 255, 255, 0.3); }
.login-container { align-items: center; display: flex; justify-content: space-between; }
.login-primary { flex: 0 0 auto; max-width: 380px; }
.login-secondary { flex: 1 1 auto; text-align: right; }

/* Muted text */
.mute { color: rgba(255, 255, 255, 0.7); font-size: 0.8rem; line-height: 1.4; }
/* Text Size */
.txt-sm { font-size: 0.8125rem; }
/* Small Warning */
.small-warning { color: var(--red); font-size: 1rem; font-weight: bold; }

/* Risk level */
.risk-level { display: inline-block; height: 1.5em; position: relative; vertical-align: -0.3em; width: 1.5em; }
.risk-level-base { left: 0; opacity: 0.15; position: absolute; top: 0; }
.risk-level-value { color: var(--teal); left: 0; overflow: hidden; position: absolute; top: 0; }
.risk-level-0 { display: none; }
.risk-level-1 { width: 25%; }
.risk-level-2 { width: 43%; }
.risk-level-3 { width: 66%; }
.risk-level-4 { width: 100%; }

.highlighted-list-item {
    background-color: #ff0; /* Yellow background */
    color: #000; /* Black text */
    font-weight: bold; /* Bold text */
    padding: 10px; /* Some padding */
    margin: 5px 0; /* Some margin */
    border-radius: 5px; /* Rounded corners */
}

/* Steps */
.step-title { padding: calc(var(--gap) * 1.9) 0 var(--gap); padding-bottom: 0 !important;}
.step-title h1 { font-size: 2.625rem; font-weight: 300; line-height: 1.2; margin: 0 0 0.5em; }

/* Virtual trading */
.env-virtual header .nav { display: none; }
.env-virtual .logo-mark { background: var(--gold); margin-right: calc(var(--gap) / 2); }
.env-virtual main { padding-top: 50px; }


/* Breakpoints
=====================================================================*/
@media (max-width: 1080px) {
    /* Content */
        /* Forms */
            /* Help */
            .field-help { float: none; margin: 0; width: auto; }
            .trade-auth-type-form-group .field-help { margin-bottom: 1rem; }

  /* Application navigation */
  .nav { padding: calc(var(--gap) / 2) var(--gap); position: relative; }
  .nav .content { align-items: center; display: flex; }
  
  .nav-labels {
      background: var(--blue-dark-lighten);
      left: 0;
      display: block;
      opacity: 0;
      position: absolute;
      top: 0;
      transition: all 0.1s ease-in-out;
      transform: translateY(-100%);
      visibility: hidden;
      width: 100%;
      z-index: 100;
  }
  
  .nav-labels .nav-step { width: auto; }
  .nav-labels br { display: none; }
  .nav-indicators { flex: 1 1 auto; }
  .nav-menu-open .nav-labels { opacity: 1; transform: translateY(50px); visibility: visible; }
  .nav-toggle { display: block; }
  .nav .nav-indicators.nav-indicators-entity { margin-left: -70px; }
}

@media (max-width: 940px) {
    /* Basics */
    html { font-size: 15px; }
    
    /* Update header height for mobile */
    :root {
      --header-subheader-height: 29px;
      --header-nav-padding: 10px;
      --header-nav-content-height: 30px;
      --header-total-height: calc(var(--header-subheader-height) + var(--header-nav-padding) + var(--header-nav-content-height));
    }
    
    main { 
      padding-top: var(--header-actual-height, var(--header-total-height));
      padding-bottom: var(--gap);
    }
    section { padding: var(--gap); }
    
    /* Content */
        /* Footer */
        .footer-teaser { display: block; }
        .footer-teaser-primary, .footer-teaser-secondary { width: auto; }
        
        /* Header */
            /* Subheader */
            .nav-utilities { font-size: 0.9rem; }
            .nav-utilities li { margin-left: 0.7rem; }
            .subheader .logo { height: 29px; width: 110px; }
            .subheader .logo-mark { width: 30px; }
            .subheader .logo-mark svg { padding: 3px; }
            .subheader .content {
              padding-left: var(--header-padding);
              padding-right: var(--header-padding);
            }
            
            .nav .content {
              padding-left: var(--header-padding);
              padding-right: var(--header-padding);
            }
        
        /* Login */
        .login-container { display: block; }
        .login-primary { margin: 0 auto 3rem; }
        .login-primary, .login-secondary { width: auto; }
        
        /* Steps */
        /* .step-title { padding: var(--gap); } */
        .step-title h1 { font-size: 1.6rem; }
}

/* Service Levels */
.service-options-container { font-size: 80%; line-height: normal;}
.service-level-title { color: #ffffff; font-size: 1.1rem; text-align: center; }

/* Center Service Level header on larger screens */
@media (min-width: 992px) {
  .step-title--service-level { text-align: center; }
}

/* Spacing beneath first service card when stacked vertically */
@media (max-width: 767.98px) {
  .service-options-container .row > [class*="col-"]:first-child .service-card {
    margin-bottom: 1.25rem;
  }
}

/* Touch devices (real mobile) – reinforce spacing between stacked cards */
@media (pointer: coarse) and (max-width: 767.98px) {
  .service-options-container .row > [class*="col-"]:first-child .service-card {
    margin-bottom: 1.25rem !important;
  }
}

@media (min-width: 576px) { 
    .service-options-container { font-size: 100%; }
 }
 @media (min-width: 992px) { 
    .service-options-container { font-size: 120%; }
    .service-level-title { font-size: 1.4rem; }
 }

/* Service cards and dark modal styling for Service Level step */
.service-card {
  background: #0b1a3b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #ffffff;
}
.service-card .h4 { color: #ffffff; font-weight: 600; }
.service-card .btn-service-level { width: 100%; }

/* Learn more modal dark theme */
.service-level-modal .modal-content {
  background: #0b1a3b;
  color: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.service-level-modal .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.service-level-modal .modal-title { color: #ffffff; }
.service-level-modal .btn-close { filter: invert(1); opacity: 0.8; }
.service-level-modal .modal-body { color: rgba(255, 255, 255, 0.9); }
.service-level-modal .modal-footer { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.service-level-modal .btn.btn-secondary {
  border: var(--field-border);
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
}
.service-level-modal .btn.btn-secondary:hover {
  background: var(--blue-dark-lighten);
  color: #ffffff;
}
.service-level-modal .btn-primary,
.service-level-modal .btn.btn-primary {
  background: #0066cc;
  color: #ffffff;
  border: none;
}
.service-level-modal .btn-primary:hover,
.service-level-modal .btn.btn-primary:hover {
  background: #0052a3;
  color: #ffffff;
}
.service-level-modal p {
  color: rgba(255, 255, 255, 0.9);
}

/* Home Page */

.home-title-section h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.home-title-section .subtitle {
    font-size: 1.25rem;
    margin: 1.5rem 0;
    color: var(--gray-700);
}

.home-title-section ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.home-title-section ul li {
    margin: 0.75rem 0;
    font-size: 1.1rem;
    color: var(--blue-dark);
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}

.home-title-section ul li::before {
    content: "•";
    display: inline-block;
    margin-right: 0.75rem;
    color: var(--blue);
    font-size: 1.2em;
    line-height: 1;
}

.home-title-section .button-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.home-title-section .protection-text {
    margin: 2rem 0 1rem;
}

.home-title-section .protection-text p {
    font-weight: 500;
    color: var(--gray-700);
}

.home-title-section .protection-text-small p {
    font-size: 0.875rem;
    color: var(--gray-600);
}

@media (max-width: 767px) {
    .home-title-section {
        padding: 2rem 0;
    }

    .home-title-section h1 {
        font-size: 2rem;
    }

    .home-title-section .button-container {
        max-width: 100%;
        gap: 0.75rem;
    }

    .home-title-section .col-md-6:last-child {
        margin-top: 2rem;
    }
}

.home-title-container {
  max-width: 1200px;
  display: flex;
  padding: 40px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
}

.home-title-container ul {
justify-content: center;
align-items: center;
}

.home-title-container li {
font-weight: 400 !important;
}

.home-title-container li:before {
  content: "•";
  color: #0071e3;
  font-size: 20px;
}

.home-title-container h1 {
  font-size: 36px;
  font-weight: 700 !important;
  margin-bottom: 10px;
  line-height: 1.2;
}

.home-title-container {
  font-family: 'Poppins', sans-serif;
  color: #002642;
  line-height: 1.6;
  padding: 20px;
}

.home-title-container .subtitle {
  font-size: 18px;
  margin-bottom: 30px;
  font-weight: 400 !important;
}

@media (max-width: 600px) {
  .home-title-container {
      padding: 30px 20px;
      flex-direction: column;

  }
  .home-title-container h1 {
      font-size: 28px;
  }
  .home-title-container .subtitle {
      font-size: 16px;
  }
}


.home-title-container .protection-text {
  font-size: 14px;
  font-weight: 500 !important;
  margin-top: 2rem;
}

.home-title-container .protection-text p {
  margin-bottom: 0.5rem;
}

.home-title-container .protection-text-small {
  font-size: 12px;
  font-weight: 400 !important;
  color: #666;
  margin-top: .5rem;
}

.home-title-container .text-success {
  color: #28a745;
  font-weight: 500;
  animation: fadeIn 0.3s ease-in-out;
}

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

.home-title-container .btn {
  padding: 0.875rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease-in-out;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}


.home-title-container .btn-primary {
  background-color: #007bff;
  border-color: #007bff;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.home-title-container .btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
  transform: translateY(-1px);
}

.home-title-container .btn-outline-primary:hover {
  color: #fff;
}

.home-title-container .btn-outline-primary {
  color: #002642;
  border-color: #002642;
  background-color: transparent;
  border-width: 2px;
}

.home-title-container .btn-outline-primary:hover {
  background-color: #002642;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 38, 66, 0.2);
}

.home-title-container img {
  border-radius: 20px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease, filter 0.3s ease;
}

.home-title-container img:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  filter: brightness(1.1); /* Slight brightness boost */
}

.home-title-container .col-6:last-child {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.home-title-container .col-6:last-child img {
  max-width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .home-title-container .col-6:last-child {
    margin-top: 2rem;
  }
  
  .home-title-container .col-6:last-child img {
    width: 100%;
  }
}

/* This is to hide the browser eye icon on the password fields on Microsoft Edge. */
input[type="password"]::-ms-reveal {
    display: none;
}

.camera {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.result {
    position: relative;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    display: none;
}

.result.hasPhoto{
    display: flex;
}

.cameraCanvas {
    width: 100%;
    max-width: 100%;
    height: auto;
}

.takePhoto {
    position: relative;
    
    appearance: none;
    border: none;
    outline: none;

    width: 200px;

    margin: 5px 0 0 0;
    padding: 8px 16px;
    background-color: #001236;
    background-position: 0%;
}

.hidden {
    display: none;
  }

  .section-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center; /* Centers items horizontally */
    gap: 20px;
  }
  
  .section-list .item {
    padding: 10px;
  }

  @media (max-width: 1024px) {
    .hide-ipad-or-smaller {
      display: none;
    }
  }
  .thumbnail {
    width: 150px;  /* Fixed width for consistent sizing */
    min-height: 180px; /* Allow height to grow for content */
    display: flex; /* Enables flexbox for better child element control */
    flex-direction: column; /* Stack elements vertically */
    align-items: stretch; /* Stretch children to full width */
    overflow: hidden; /* Prevents content from overflowing */
    border-radius: 12px; /* Rounded corners */
    border: 2px solid #ffffff; /* White border */
    background-color: var(--blue-dark); /* Dark blue background matching page */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
    transition: all 0.2s ease-in-out;
    position: relative; /* Helps with absolute positioning inside */
    text-align: center;
    word-wrap: break-word; /* Ensures words break within the width */
    margin: 0 8px 16px 0; /* Spacing between thumbnails */
  }

  .thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }

  /* Clickable area for viewing document */
  .thumbnail > button:first-of-type {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: transparent;
    border: none;
    padding: 12px;
    cursor: pointer;
    min-height: 120px;
  }

  /* Content area for icon/image */
  .thumbnail > button:first-of-type > div {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    margin-bottom: 8px;
  }

  /* Image thumbnails */
  .thumbnail img {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain; /* Prevents distortion while maintaining aspect ratio */
    display: block;
    border-radius: 4px;
  }

  /* PDF icons */
  .thumbnail i {
    font-size: 3.5rem; /* Slightly larger for better visibility */
    line-height: 1;
    display: block;
    margin-bottom: 8px;
  }

  /* Filename text */
  .thumbnail span {
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 11px;
    color: var(--text);
    text-align: center;
    padding: 4px 0;
    line-height: 1.3;
    display: block;
  }

  /* Delete button */
  .thumbnail > button:last-of-type {
    width: 100%;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--red);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    padding: 8px;
    transition: background-color 0.2s ease;
  }

  .thumbnail > button:last-of-type:hover {
    background-color: #d43d4d;
  }

  .thumbnail > button:last-of-type i {
    color: #ffffff;
    font-size: 1.2rem;
    margin: 0;
  }


/* Style update for react-bootstrap progress bar. */
.progress-bar {
  background-color: var(--teal);
}

.d-flex {
  display: flex;
}

.justify-content-center {
  justify-content: center;
}

.justify-content-space-between {
  justify-content: space-between;
}

.justify-content-flex-end {
  justify-content: flex-end;
}

.align-items-center {
  align-items: center;
}

.flex-direction-col {
  flex-direction: column;
}

.align-items-flex-start {
  align-items: flex-start;
}

.flex-1 {
  flex: 1;
}

.error-wrapper .error {
  margin-bottom: 0;
}

.error-wrapper {
  padding: 0 var(--gap);
}

#status-page-main-content-section-unset {
  padding: 0;
  border-bottom: 0;
}

/* Targeted fix for 768px-1024px layout */
@media (min-width: 768px) and (max-width: 1024px) {
    .home-title-container h1 {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 8px;
    }
    
    .home-title-container .subtitle {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .home-title-container ul li {
        font-size: 14px;
        margin: 8px 0;
    }
    
    .home-title-container .protection-text {
        font-size: 12px;
        width: 100%;
        margin-top: 2rem;
        clear: both;
    }
    
    .home-title-container .protection-text-small {
        font-size: 11px;
        width: 100%;
    }
    
    .home-title-container .col-md-6:first-child {
        padding-right: 15px;
    }
    
    .home-title-container .col-md-6:last-child {
        padding-left: 15px;
    }
    
    .home-title-container img {
        max-width: 100%;
        height: auto;
        min-height: 400px;
        object-fit: cover;
    }

    /* Button container fixes for tablet view */
    .home-title-container .button-container {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
        width: 100%;
        max-width: 100%;
    }

    .home-title-container .button-container .btn {
        width: 100%;
        max-width: none;
        margin-bottom: 0;
    }

    /* Make disclaimer text full width */
    .home-title-container .protection-text,
    .home-title-container .protection-text-small {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        clear: both;
    }

    .home-title-container .protection-text p,
    .home-title-container .protection-text-small p {
        width: 100%;
        max-width: 100%;
    }
}

/* User Creation Form Styles */
.user-creation-section {
  padding: calc(var(--gap) * 2) var(--gap);
  padding-bottom: 0 !important;
}

.user-creation-section .card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease-in-out;
  height: 100%;
}

.user-creation-section .card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-creation-section .card-body {
  padding: calc(var(--gap) * 1.5);
}

.user-creation-section .card-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif !important;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  line-height: 1.3;
}

.user-creation-section .card-title i {
  color: #001236;
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.user-creation-section h4 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif !important;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.user-creation-section h5 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif !important;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.user-creation-section .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.875rem;
  line-height: 1.4;
}

.user-creation-section .text-muted.small {
  font-size: 0.8rem;
}

.user-creation-section .list-unstyled {
  list-style: none;
  padding: 0;
  margin: 0;
}

.user-creation-section .list-unstyled li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  font-size: 0.875rem;
  line-height: 1.4;
}

.user-creation-section .list-unstyled li:last-child {
  margin-bottom: 0;
}

.user-creation-section .list-unstyled li i {
  margin-right: 0.5rem;
  margin-top: 0.1rem;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.user-creation-section .text-success {
  color: var(--teal) !important;
}

.user-creation-section .text-danger {
  color: var(--red) !important;
}

.user-creation-section .btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 100px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: all 0.2s ease-in-out;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-creation-section .btn-lg i {
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

.user-creation-section .btn-primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff !important;
}

.user-creation-section .btn-primary:hover {
  opacity: 0.7;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(25, 186, 180, 0.3);
}

.user-creation-section .form-group {
  margin-bottom: 1rem;
}

.user-creation-section .form-group:last-child {
  margin-bottom: 0;
}

/* Responsive adjustments for user creation form */
@media (max-width: 768px) {
  .user-creation-section {
    padding: var(--gap);
  }
  
  .user-creation-section .card-body {
    padding: var(--gap);
  }
  
  .user-creation-section .card-title {
    font-size: 1rem;
  }
  
  .user-creation-section h4 {
    font-size: 0.95rem;
  }
  
  .user-creation-section h5 {
    font-size: 0.9rem;
  }
  
  .user-creation-section .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .user-creation-section .row > div {
    margin-bottom: 1rem;
  }
  
  .user-creation-section .row > div:last-child {
    margin-bottom: 0;
  }
  
  .user-creation-section .card {
    height: auto;
  }
}

/* Security Question Styling */
.user-creation-section .security-question-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.user-creation-section .security-question-number {
  background: #0066cc;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.user-creation-section .security-question-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin-left: 1rem;
}

/* Enhanced form field styling */

/* Home user-creation inputs: align outlines with unified inputs */
.user-creation-section .flabel {
  border: 2px solid #e0e0e0; /* default gray */
  border-radius: 8px;
  transition: box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.user-creation-section .flabel:hover {
  border-color: #b3d9ff; /* subtle hover like inputs */
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.08);
}

.user-creation-section .flabel.filled {
  border-color: var(--teal); /* teal highlight when filled */
  box-shadow: 0 0 0 3px rgba(25, 186, 180, 0.1);
}

/* Keep blue focus while typing even when value is filled */
.user-creation-section .flabel.on,
.user-creation-section .flabel.filled.on {
  border-color: #0066cc; /* focused blue */
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.user-creation-section .flabel-title {
  color: #cecece;
  font-weight: 500;
  z-index: 999;
}

.user-creation-section .flabel-input {
  color: #ffffff !important;
  font-size: 0.95rem;
  border: 0 !important; /* prevent inner border (avoids double border) */
  box-shadow: none !important;
}

.user-creation-section .flabel-input::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
  font-style: italic;
}

/* Ensure react-select inside home floating labels does not draw its own border */
.user-creation-section .flabel .select__control {
  background: #001236 !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Enhanced card styling */
.user-creation-section .card {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
}

.user-creation-section .card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Smooth transition container when redirecting from Home */
.user-creation-section .redirecting-lock {
  transition: min-height 300ms ease, opacity 300ms ease;
}
.user-creation-section .redirecting-lock.fade-out { opacity: 0.6; }

/* Improved button styling */
.user-creation-section .btn-lg {
  background: linear-gradient(135deg, var(--teal) 0%, #15a8a2 100%);
  border: none;
  box-shadow: 0 4px 15px rgba(25, 186, 180, 0.3);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.user-creation-section .btn-lg:hover {
  background: linear-gradient(135deg, #15a8a2 0%, var(--teal) 100%);
  box-shadow: 0 6px 20px rgba(25, 186, 180, 0.4);
}


.user-creation-section .list-unstyled li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease-in-out;
}

.user-creation-section .list-unstyled li:last-child {
  border-bottom: none;
}

.user-creation-section .list-unstyled li:hover {
  background: rgba(25, 186, 180, 0.05);
  padding-left: 0.5rem;
  border-radius: 4px;
}

/* Improved spacing and typography */
.user-creation-section .card-title {
  position: relative;
  padding-bottom: 0.75rem;
}

.user-creation-section .card-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 3px;
  background: #0066cc;
  border-radius: 2px;
}

.user-creation-section h4 {
  position: relative;
  padding-bottom: 0.5rem;
}

.user-creation-section h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2rem;
  height: 2px;
  background: var(--teal);
  border-radius: 1px;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .user-creation-section .security-question-number {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }
  
  .user-creation-section .card-title::after,
  .user-creation-section h4::after {
    width: 2rem;
  }
}

/* Progress Bar Styling */
.user-creation-section .form-progress {
  margin-bottom: 1.5rem;
}

.user-creation-section .progress-bar {
  width: 100%;
  height: 8px;
  background: #e1e5e9;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.user-creation-section .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal) 0%, #15a8a2 100%);
  border-radius: 4px;
  transition: width 0.3s ease-in-out;
}

.user-creation-section .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.user-creation-section .btn:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Error Message Styling */
.user-creation-section .alert-danger {
  border: 2px solid var(--red);
  background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
  animation: errorShake 0.5s ease-in-out;
}

.user-creation-section .alert-danger .alert-heading {
  color: var(--red);
  font-weight: 600;
  display: flex;
  align-items: center;
}

.user-creation-section .alert-danger .alert-heading i {
  color: var(--red);
  font-size: 1.1em;
}

.user-creation-section .alert-danger .btn-close {
  background: none;
  border: none;
  color: var(--red);
  font-size: 1.2rem;
  padding: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  opacity: 0.7;
}

.user-creation-section .alert-danger .btn-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.user-creation-section .alert-danger .btn-close:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.3);
  border-radius: 4px;
}

/* Security Question Dropdown Styling */
.user-creation-section .security-question-header {
  font-weight: 600;
  color: var(--primary);
}

.user-creation-section .security-question-number {
  background: #001236;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.user-creation-section .Select__control--is-focused {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 1px var(--primary) !important;
}

.user-creation-section .Select__control--menu-is-open {
  border-color: var(--primary) !important;
}

.user-creation-section .Select__option--is-selected {
  background-color: var(--primary) !important;
  color: white !important;
}

.user-creation-section .Select__option--is-focused {
  background-color: rgba(0, 123, 255, 0.1) !important;
}

.user-creation-section .Select__single-value {
  color: var(--dark) !important;
  font-weight: 500 !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  line-height: 1.4 !important;
  max-width: 100% !important;
  overflow: visible !important;
  text-overflow: unset !important;
  display: block !important;
  width: 100% !important;
}

.user-creation-section .Select__placeholder {
  color: #6c757d !important;
}

.user-creation-section .Select__control {
  border-radius: 8px !important;
  border: 1px solid #ced4da !important;
  min-height: 38px !important;
  max-height: none !important;
  height: auto !important;
}

.user-creation-section .Select__value-container {
  padding: 8px 12px !important;
  min-height: 38px !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  text-overflow: unset !important;
}

.user-creation-section .Select__input-container {
  height: auto !important;
  min-height: 20px !important;
}

.user-creation-section .Select__menu {
  max-height: 200px !important;
  overflow-y: auto !important;
}

.user-creation-section .Select__option {
  white-space: normal !important;
  word-wrap: break-word !important;
  line-height: 1.4 !important;
  padding: 8px 12px !important;
}

.user-creation-section .Select__option--is-focused {
  background-color: rgba(0, 123, 255, 0.1) !important;
}

.user-creation-section .Select__option--is-selected {
  background-color: var(--teal) !important;
  color: white !important;
}

.user-creation-section .Select__control:hover {
  border-color: #adb5bd !important;
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Personal Information Section Styling */
.user-creation-section .personal-info-section {
  padding: 0;
}

.user-creation-section .field-group {
  transition: all 0.2s ease-in-out;
  margin-bottom: 1.5rem;
}

/* Fix email field alignment */
.user-creation-section .field-group .row {
  align-items: stretch;
}

.user-creation-section .field-group .col-md-6 {
  display: flex;
  flex-direction: column;
}

.user-creation-section .field-group .col-md-6 .form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.user-creation-section .field-group .col-md-6 .form-group .flabel {
  height: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
}

/* Ensure Select fills flabel-value for vertical alignment with text inputs */
.user-creation-section .flabel .flabel-value {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-height: 48px;
}
.user-creation-section .flabel .basic-multi-select {
  flex: 1;
  min-height: 48px;
}

.user-creation-section .field-group:last-child {
  margin-bottom: 0;
}

/* .user-creation-section .field-group:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
} */

.user-creation-section .field-group-title {
  color: var(--blue-dark);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
  position: relative;
}

.user-creation-section .field-group-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 3rem;
  height: 2px;
  background: #0066cc;
  border-radius: 1px;
}

.user-creation-section .field-group-title i {
  color: #001236;
  font-size: 0.9rem;
}

.user-creation-section .field-group .row.g-3 {
  margin: 0;
}

.user-creation-section .field-group .row.g-3 > [class*="col-"] {
  padding: 0.75rem;
}

/* Enhanced spacing for form groups within field groups */
.user-creation-section .field-group .form-group {
  margin-bottom: 0;
}

.user-creation-section .field-group .form-group:last-child {
  margin-bottom: 0;
}

/* Stacked fields styling */
.user-creation-section .stacked-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Name and suffix inline styling */
.name-suffix-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.lastname-col {
  flex: 1 1 auto;
  min-width: 0;
}

.lastname-col .form-group {
  margin-bottom: 0;
}

.suffix-col {
  flex: 0 0 110px;
  min-width: 0;
  margin-top: 0;
}

/* Match lastname and suffix heights – both 48px with centered content */
.name-suffix-row .lastname-col .flabel,
.name-suffix-row .suffix-col .flabel {
  min-height: 48px;
}

.name-suffix-row .lastname-col .flabel-input {
  min-height: 48px;
  padding: calc((48px - 1.5rem) / 2) 1rem;
  box-sizing: border-box;
}

.suffix-col .form-group {
  margin-bottom: 0;
}

/* Make the suffix field label match other labels */
.suffix-col .flabel-title {
  /* Inherit from .user-creation-section .flabel-title which is already defined */
  opacity: 1;
  z-index: 999;
}



/* Ensure the dropdown control matches the input height */
.suffix-col .select__control {
  height: 48px !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: stretch !important;
}

/* Override filled state padding-top (was for floating label; label now hidden when filled) */
.suffix-col .flabel.filled .select__control,
.suffix-col .flabel.on .select__control {
  padding-top: 0 !important;
}

.suffix-col .select__input-container {
  margin: 0 !important;
  padding: 0 !important;
}

.suffix-col .select__indicators {
  padding-right: 12px !important;
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0;
}

/* Override filled state indicator transform that affects other dropdowns */
.suffix-col .flabel.filled .select__indicator,
.suffix-col .flabel.on .select__indicator {
  transform: none !important;
}

/* Value container: fill control height for react-select's absolute centering */
.suffix-col .select__value-container {
  padding: 0 12px !important;
  height: 100% !important;
  align-self: stretch !important;
  position: relative !important;
  flex: 1;
  min-width: 0;
  overflow: visible !important;
}

/* Center the value; let react-select's default position:absolute + top:50% + translateY work */
.suffix-col .select__single-value,
.suffix-col .select__placeholder {
  text-align: center;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.5;
}

/* Ensure value stays visible when control is focused or menu is open */
.suffix-col .select__control--is-focused .select__single-value,
.suffix-col .select__control--menu-is-open .select__single-value {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Suffix field: ensure value is always visible (react-select may hide when menu open) */
.suffix-col .select__single-value {
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
}

/* Ensure name-suffix-row has proper spacing and no clipping */
.name-suffix-row {
  margin-bottom: 0;
  overflow: visible;
}

/* Make sure labels don't get cut off */
.lastname-col .flabel,
.suffix-col .flabel {
  overflow: visible;
}

.user-creation-section .stacked-fields .form-group {
  margin-bottom: 0;
}

.user-creation-section .stacked-fields .form-group:last-child {
  margin-bottom: 0;
}

/* Responsive adjustments for field groups */
@media (max-width: 768px) {
  .user-creation-section .field-group {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .user-creation-section .field-group-title {
    font-size: 0.95rem;
  }

  /* Match taller mobile field height for name-suffix row */
  .name-suffix-row .lastname-col .flabel,
  .name-suffix-row .suffix-col .flabel {
    min-height: 56px;
  }

  .name-suffix-row .lastname-col .flabel-input {
    min-height: 56px;
    padding: calc((56px - 1.5rem) / 2) 1rem;
  }

  .name-suffix-row .suffix-col .select__control {
    height: 56px !important;
    min-height: 56px !important;
  }
}

/* Error display styling */
.user-creation-section .alert-danger {
  background: linear-gradient(135deg, #fee 0%, #fcc 100%);
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  color: #721c24;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.user-creation-section .alert-danger .alert-heading {
  color: #721c24;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.user-creation-section .alert-danger p {
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Security Question Full Width Layout */
.security-question-container {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease-in-out;
}

.security-question-container:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.security-question-fields {
  width: 100%;
}

.security-question-fields .form-group {
  width: 100%;
}

/* Ensure dropdown has proper width and spacing */
.security-question-fields .flabel {
  width: 100%;
  min-width: 100%;
}

.security-question-fields .select__menu {
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
}

/* Better spacing for security question sections */
.security-question-container:last-child {
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .security-question-container {
    padding: 1rem;
  }
}