/*------------------------------+
 | 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.
Absolute paths would break in feature branch deployments where the base path
is prefixed with the branch name. */
@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: #33415e;
    --field-bg: #2a3a5a;
    --field-border: 2px solid #3a4a6a;
    --field-border-on: 2px solid #0066cc;
    --gold: #f6ce28;
    --red: #ba2618;
    --teal: #19bab4;
    --teal-light: #02fff6;
    --text: #666;
    
    /* Dimensions */
    --corner-radius: 8px;
    --gap: 20px;
    --icon-size: 19px;
    --check-size: 21px;
    
    /* Header alignment variables - matching account application */
    --header-padding: 16px;
}

a, a:not([href]):not([tabindex]) { color: var(--teal); transition: all 0.1s ease-in-out; }
a:hover { color: var(--blue-dark); }
body { background: var(--blue-dark); color: var(--text); font-family: Poppins, sans-serif; height: 100%; }
.login { font-family: Poppins, sans-serif; }
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; }
html { font-size: 15px; height: 100%; }
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: calc(var(--gap) * 2) var(--gap); }
section:last-child { border: 0; }
.login section { 
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
  background: transparent; 
  padding: 0 var(--gap) !important;
  overflow: visible;
}
.login 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: 1200px; }
main { background: white; display: flex; flex-direction: column; justify-content: center; min-height: 60vh; padding-top: 162px; }
main.login { background: var(--blue-dark); }


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

/* Footer */
.contact-email { display: block; margin-bottom: 3em; 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); background: transparent; }
.login .footer { 
  background: transparent; 
  padding: 1rem var(--gap) !important;
}
.login .footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-underline-offset: 2px;
}
.login .footer a:hover {
  color: var(--teal-light);
  text-decoration-color: var(--teal-light);
}
.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; justify-content: space-between; }
.footer-teaser-primary { flex: 0 0 auto; width: 20%; font-size: 1.0625rem }
.footer-teaser-secondary { flex: 0 0 auto; font-size: 0.875rem; width: 75%; }
.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 */
.fields-title { color: var(--blue-dark); font-size: 1.1rem; font-weight: bold; }
.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; }

    /* 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 { background: #ccc; }
    .btn-icon { position: relative; }
    .btn-link, .btn-link:hover { color: var(--blue-dark); }
    .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: #666; }
    .btn-outline-dark:hover { background: var(--field-bg); color: #666; }
    .btn-virtual { background: var(--gold); }
    
    /* Checklists */
    .checklist { list-style: none; margin-left: 0; padding: 0; }
    .checklist .checkcontainer { position: absolute; left: 0; top: 0; }
    .checklist label { cursor: pointer; display: block; }
    .checklist label:hover .checkcontainer .checkbox, .checklist label:hover .checkcontainer .radiobtn { border: 1px solid #666; }
    .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; }
    
    /* Errors */
    .error { color: var(--red); }
    .warning {
        color: var(--orange);
    }
    
    /* Floating labels */
    .flabel { background: var(--field-bg); border: var(--field-border); border-radius: var(--corner-radius); position: relative; }
    .flabel.invalid { border: 2px solid var(--red); margin: -1px; }
    .flabel.filled { background: #fff; }
    .flabel.on { background: #fff; border: var(--field-border-on); margin: -1px; }
    .flabel.on .flabel-title, .flabel.filled .flabel-title { font-size: 0.8rem; top: 4px; transform: translateY(0); }
    .flabel-input { background: none; border: 0; display: block; padding: 1.25rem 1rem 0.45rem; width: 100%; }
    /* When filled/focused, label is hidden – use uniform padding so value is vertically centered */
    .flabel.filled .flabel-input,
    .flabel.on .flabel-input { padding: 1rem; }
    .flabel-title { color: #999; left: 1rem; margin: 0; position: absolute; top: 50%; transform: translateY(-50%); transition: all 0.2s ease-in-out; }
    .flabel.disabled { cursor: pointer; opacity: 0.5; }
    
        /* Icon */
        .flabel-icon { position: absolute; right: 1em; top: 50%; transform: translateY(-50%); }
        
        /* Nested */
        .flabel-multi .flabel { background: none; border: 0; }
        
        /* 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 – fix dropdown alignment when floating label is hidden (filled/focused).
           Match application-ui: no extra padding/transform, vertically center value. */
        .flabel .select__control { background: none; border: 0; min-height: 48px; align-items: stretch !important; }
        .flabel.filled .select__control, .flabel.on .select__control { padding-top: 0 !important; }
        .flabel.filled .select__indicator, .flabel.on .select__indicator { transform: none !important; }
        .flabel .select__value-container { padding-top: 0 !important; height: 100% !important; align-self: stretch !important; position: relative !important; }
        .flabel .basic-multi-select .select__single-value,
        .flabel .basic-multi-select .select__placeholder {
          position: absolute !important;
          top: 50% !important;
          transform: translateY(-50%) !important;
          margin: 0 !important;
        }
        .flabel .basic-multi-select .select__control--is-focused .select__single-value,
        .flabel .basic-multi-select .select__control--menu-is-open .select__single-value {
          visibility: visible !important;
          opacity: 1 !important;
        }
        
        .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 hr { margin: 0; }
        .select__menu { background: #1a2847 !important; z-index: 1000 !important; margin-top: 0 !important; }
        .basic-multi-select .select__menu { overflow: hidden !important; }
        .select__option.select__option--is-focused { background: rgba(0, 102, 204, 0.1) !important; }
        .select__option.select__option--is-selected { background: #1a2847 !important; color: #fff; }
        .select__option { color: white !important; background: transparent !important; }
        .select__single-value { color: white !important; }
        .select__input { color: white !important; }
    
    /* Help */
    .field-help { float: right; margin-right: -270px; width: 47%; }
    
        /* 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: var(--field-bg);
        border: var(--field-border);
        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 .btn-white { color: white; }
    .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; }
    .stepper .btn-active:hover { opacity: 1; border-color: #343a40; }
    .stepper .btn:disabled:hover { opacity: 0.65; border-color: #343a40 !important; }

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

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

    /* Application navigation */
    .nav { background: var(--blue-dark-lighten); display: block; padding: var(--gap); }
    .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: space-between; }
    .nav-labels { font-size: 0.86rem; font-weight: bold; text-transform: uppercase; }
    .nav-labels .nav-future { color: rgba(255, 255, 255, 0.7); }
    .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% - 40px) / 7); }
    .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: var(--blue-dark); color: #fff; }
    .subheader a { color: #fff; }
    .subheader button { color: #fff; }
    .subheader .content { 
      align-items: center; 
      display: flex; 
      justify-content: space-between;
      padding-left: var(--header-padding);
      padding-right: var(--header-padding);
      margin: 0 auto;
      max-width: 2200px;
    }
    .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(--blue-dark); 
  color: #fff; 
  padding-top: 52px; 
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.login .content {
  padding-top: 0;
  padding-bottom: 0;
}

/* Ensure the login wrapper uses flexbox - handled via inline styles in component */
.env-virtual {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.login main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 0;
  padding-bottom: 0;
  overflow: visible;
}

.login .footer {
  margin-top: 2rem;
  flex-shrink: 0;
  width: 100%;
}
.login a { 
  color: rgba(255, 255, 255, 0.9); 
  text-decoration: none;
  transition: all 0.1s ease-in-out; 
}
.login a:hover { 
  color: var(--teal-light); 
  text-decoration: underline;
  text-decoration-color: var(--teal-light);
  text-underline-offset: 2px;
}
.login .form-content { max-width: 100%; }
.login hr { background: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.2); }
.login .content { background: transparent; }
.login-container { 
  align-items: center; 
  display: flex; 
  justify-content: space-between;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.login-primary { 
  flex: 0 0 auto; 
  max-width: 380px; 
  background: transparent;
  padding: 0;
  border-radius: 8px;
  margin-top: 0;
  margin-bottom: 0;
}
.login-primary h1 { 
  color: #ffffff; 
  font-size: clamp(24px, 4vw, 28px);
  margin-bottom: 1rem;
}
.login-primary p { 
  color: rgba(255, 255, 255, 0.9); 
  line-height: 1.5;
  margin-bottom: 1rem;
}

.login-primary p a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.1s ease-in-out;
}

.login-primary p a:hover {
  color: var(--teal-light);
  text-decoration: underline;
  text-decoration-color: var(--teal-light);
  text-underline-offset: 2px;
}

.login-primary p:last-child {
  margin-bottom: 0;
}
.env-virtual .login-primary h1 { color: var(--gold); }
.login-secondary { 
  flex: 1 1 auto; 
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Add left margin to hero image on larger screens when columns are side-by-side */
@media (min-width: 941px) {
  .login-secondary {
    margin-left: 3rem;
  }
}

.login-secondary img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
}

/* Make image taller and more prominent on larger screens */
@media (min-width: 941px) {
  .login-secondary img {
    max-height: 600px;
    min-height: 400px;
    width: auto;
    object-fit: contain;
  }
}

/* Login Form Styling - Match Account Application Exactly */
.login .flabel {
  border: var(--field-border);
  border-radius: var(--corner-radius);
  position: relative;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  background: var(--blue-dark);
  box-sizing: border-box;
  display: block;
  width: 100%;
  overflow: hidden;
}

.login .flabel.invalid {
  border: 2px solid var(--red);
}

.login .flabel.on {
  border: var(--field-border-on);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.login .flabel .flabel-input:focus {
  outline: none;
}

.login .form-group {
  margin-bottom: 1rem;
  position: relative;
  overflow: visible !important;
  padding: 0;
  box-sizing: border-box;
}

.login form {
  overflow: visible;
}

.login-primary {
  overflow: visible;
}

.login-container {
  overflow: visible;
}

.login .content {
  overflow: visible;
}

.login .flabel-input {
  color: #ffffff;
  background: var(--blue-dark);
}

.login .flabel-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

/* Override browser autofill styles for login */
.login .flabel-input:-webkit-autofill,
.login .flabel-input:-webkit-autofill:hover,
.login .flabel-input:-webkit-autofill:focus,
.login .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;
}

.login .flabel-input:autofill {
  background-color: transparent !important;
  color: #ffffff !important;
}

.login .flabel-title {
  color: #cecece;
  font-weight: 500;
}


.login .error {
  color: var(--red);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: block;
}

/* Login Button Styling */
.login .btn-block.btn-light {
  background: #0f68cc;
  border-color: #0f68cc;
  color: #fff !important;
  border-radius: var(--corner-radius);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  min-height: 48px;
  box-shadow: 0 2px 8px rgba(25, 186, 180, 0.15);
}

.login .btn-block.btn-light:hover:not(:disabled) {
  background: #15a8a2;
  border-color: #15a8a2;
  opacity: 1;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 16px rgba(25, 186, 180, 0.25);
}

.login .btn-block.btn-light:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(25, 186, 180, 0.2);
}

.login .btn-block.btn-light:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.login .btn-virtual {
  background: var(--gold);
  border-color: var(--gold);
  color: #000 !important;
}

.login .btn-virtual:hover:not(:disabled) {
  background: #e6c025;
  border-color: #e6c025;
  color: #000 !important;
}

/* Login Loading Spinner */
.login .spinner {
  color: var(--teal);
}

.login .loading-text {
  color: rgba(255, 255, 255, 0.9);
  margin-left: 1rem;
}

/* Login Alert Styling */
.login .alert-danger {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid var(--red);
  border-radius: var(--corner-radius);
  color: var(--red);
  padding: 1rem;
}

.login .alert-danger h4 {
  color: var(--red);
  margin-bottom: 0;
}

/* Reset Password */
.forgot-password-login-link {
    color: var(--teal) !important;
}
.forgot-password-login-link:hover {
    color: var(--teal-light) !important;
    opacity: 1 !important;
}

/* Muted text */
.mute { color: #666; font-size: 0.8rem; line-height: 1.4; }

/* 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%; }

/* Steps */
.step-title { padding: calc(var(--gap) * 1.9) 0 var(--gap); text-align: center; }
.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; }

/* Market Data Questionnaire */
.market-data-questionnaire .form-content, .mobile-market-data-questionnaire .form-content {
    max-width: 100%;
}
.market-data-questionnaire .content, .mobile-market-data-questionnaire .content {
    max-width: 800px;
}
.market-data-questionnaire {
    display: flex;
    justify-content: flex-start;
    padding-top: 43px
}
.market-data-questionnaire h1, .mobile-market-data-questionnaire h1 {
    text-align: center;
    margin-bottom: 25px;
}
.market-data-questionnaire .professional-user-fees {
  border: 1px solid var(--field-bg) !important;
  background-color: var(--field-bg) !important;
}
.market-data-questionnaire .exchange-data-agreement-link {
  color: var(--teal);
}
.market-data-questionnaire .flabel {
  overflow: unset !important;
}
/* Mobile version of Market Data Questionnaire */
.mobile-market-data-questionnaire {
  padding-top: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
}
.mobile-market-data-questionnaire .loading-wrapper, .mobile-market-data-questionnaire .error-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.mobile-market-data-questionnaire .error-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mobile-market-data-questionnaire .error-content-wrapper p {
  text-align: center;
}
.mobile-market-data-questionnaire .error-content-wrapper i {
  font-size: 3em;
}

 .modal-header {
  padding: 20px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: #f8f9fa; /* A light grey that is not too stark */
  color: #333; /* A dark grey for text that is less harsh than black */
}

.modal-title {
  font-size: 24px; /* Ensure the font size is large enough to stand out but not too large */
  font-weight: normal; /* Avoid using bold if not necessary */
}

.modal-header .close {
  font-size: 30px; /* Make sure the close button is easy to see and click */
}

.modal-body {
  padding: 20px;
  background-color: #fff; /* Use white or off-white for the body to keep it clean and professional */
  color: #333; /* Dark grey text for readability */
  line-height: 1.5; /* This improves readability */
}

.modal-footer {
  padding: 20px;
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6; /* A subtle border to separate the footer from the content */
}

.modal-footer button {
  padding: 10px 20px;
  background-color: #007bff; /* A professional blue color for primary buttons */
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out; /* Transition for a smoother hover effect */
}

.modal-footer button:hover {
  background-color: #0056b3; /* A darker blue for the hover state */
}

.modal-content {
  border-radius: 5px; /* Rounded corners for a modern look */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Animations */
.fadeIn {
    animation: fadeIn 1s forwards;
}

.fadeOut {
    animation: fadeOut 0.2s forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Breakpoints
=====================================================================*/
@media (max-width: 1080px) {
    /* Content */
        /* Forms */
            /* Help */
            .field-help { float: none; margin: 0; width: auto; }
}

@media (max-width: 940px) {
    /* Basics */
    html { font-size: 15px; }
    
    :root {
      --header-padding: 12px;
    }
    
    main { padding-top: 98px; }
    section { padding: var(--gap); }
    
    /* Content */
        /* Footer */
        .footer-teaser { display: block; }
        .footer-teaser-primary, .footer-teaser-secondary { width: auto; }
        
        /* Header */
            /* 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; }
            
            /* 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);
            }
        
        /* Login */
        .login-container { display: block; }
        .login-primary { margin: 0 auto 3rem; }
        .login-primary, .login-secondary { width: auto; }
        
        /* Steps */
        .step-title h1 { font-size: 1.6rem; }
}

/* Reset Password Confirmation */
.reset-password-confirmation .password-reset-form-group-password-field .field-help {
    float: unset;
    margin-right: 0;
    width: 100%;
    font-size: 0.9rem;
}

.reset-password-confirmation .password-reset-form-group-password-field .asterisk, .password-requirements-header, .validation-timing-note {
    color: white;
}

.reset-password-confirmation .password-reset-form-group-password-field .password-requirements-header {
    font-size: 1rem;
}

.reset-password-confirmation .password-reset-form-group-security-answer-field {
    .flabel {
        border: 2px solid var(--red);
        margin: -1px;
    }
}
/* Reset Password Confirmation */

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

.home-title-section h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--blue-dark);
}

.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;
    gap: 1rem;
    margin-top: 3rem;
    flex-direction: row;

}

.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 {
        flex-direction: column;
        gap: 1rem;  
        align-items: center;
    }

    .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 .btn {
  padding: 0.75rem 2rem;
  border-radius: 4px;
}


.home-title-container .btn-primary {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--blue-dark) !important;
}

.home-title-container .virtual-trading-btn {
  color: var(--blue-dark) !important;
}

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

.home-title-container .btn-primary:hover {
  background-color: var(--blue-dark);
  border-color: var(--blue-dark);
}

.home-title-container .btn-primary:hover a {
  color: #fff !important;
}

.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%;
  }
}

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



@media (max-width: 864px) {
  main.vt-home-page {
      padding-top: 60px;
      padding-bottom: 60px;
  }
}

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