/* ==========================================================================
   QBX Guest & Authentication Design System
   Institutional palette: #1e5a99, #17487c, #f4f7fa, #0f172a, #cbd5e1
   ========================================================================== */

html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body.qbx-guest-body {
    background: linear-gradient(180deg, #eef4fb 0%, #f4f7fa 240px, #f4f7fa 100%) no-repeat #f4f7fa;
    color: #0f172a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Guest Navbar Base (also covers standalone public modules like atti/giustificativi) */
body.qbx-guest-body .qbx-navbar {
    background: #1e5a99;
    border: none;
    border-bottom: 1px solid #16467a;
    min-height: 52px;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.14);
}

body.qbx-guest-body .qbx-nav-inner {
    width: 100%;
    padding: 0 16px;
}

body.qbx-guest-body .qbx-navbar .navbar-brand {
    height: 52px;
    padding: 10px 16px;
    margin-left: 0 !important;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.2px;
    width: auto;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

body.qbx-guest-body .qbx-navbar .navbar-brand span:first-of-type {
    overflow: hidden;
    text-overflow: ellipsis;
}

body.qbx-guest-body .qbx-nav-brand-badge {
    display: inline-block;
    flex-shrink: 0;
    padding: 2px 7px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.34);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

body.qbx-guest-body .qbx-navbar .navbar-nav > li > a {
    padding-top: 15px;
    padding-bottom: 15px;
    color: #eaf2fb !important;
    font-size: 13px;
    font-weight: 500;
}

body.qbx-guest-body .qbx-navbar .navbar-nav > li > a:hover,
body.qbx-guest-body .qbx-navbar .navbar-nav > li > a:focus {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

body.qbx-guest-body .qbx-navbar .navbar-nav > .active > a {
    color: #ffffff !important;
    background: #17487c !important;
}

body.qbx-guest-body .qbx-navbar .navbar-toggle {
    border-color: rgba(255, 255, 255, 0.35);
    margin-top: 9px;
}

body.qbx-guest-body .qbx-navbar .navbar-toggle:hover,
body.qbx-guest-body .qbx-navbar .navbar-toggle:focus {
    background-color: #17487c;
}

body.qbx-guest-body .qbx-navbar .navbar-toggle .icon-bar {
    background-color: #ffffff;
}

/* Guest Footer Base (for standalone modules too) */
body.qbx-guest-body .qbx-footer {
    min-height: 36px;
    height: auto;
    padding: 8px 0;
    background-color: #f8fafc;
    border-top: 1px solid #cbd5e1;
    font-size: 12px;
    color: #475569;
    display: flex;
    align-items: center;
    z-index: 1025;
}

body.qbx-guest-body .qbx-footer-inner {
    width: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

body.qbx-guest-body .qbx-footer-inner a {
    color: #1e5a99;
    font-weight: 600;
}

/* Guest Navbar CTA & active state */
body.qbx-guest-body .qbx-navbar .navbar-nav > li > a.qbx-nav-login-btn {
    margin: 9px 0 9px 8px;
    padding: 6px 14px !important;
    background: #ffffff !important;
    color: #1e5a99 !important;
    border-radius: 5px;
    font-weight: 700;
    line-height: 1.4;
    border: 1px solid rgba(255, 255, 255, 0.9);
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

body.qbx-guest-body .qbx-navbar .navbar-nav > li > a.qbx-nav-login-btn:hover,
body.qbx-guest-body .qbx-navbar .navbar-nav > li > a.qbx-nav-login-btn:focus,
body.qbx-guest-body .qbx-navbar .navbar-nav > li.active > a.qbx-nav-login-btn,
body.qbx-guest-body .qbx-navbar .navbar-nav > li.active > a.qbx-nav-login-btn:hover,
body.qbx-guest-body .qbx-navbar .navbar-nav > li.active > a.qbx-nav-login-btn:focus {
    background: #e8f1fb !important;
    color: #17487c !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

body.qbx-guest-body .qbx-navbar .navbar-nav > li > a.qbx-nav-login-btn i,
body.qbx-guest-body .qbx-navbar .navbar-nav > li > a.qbx-nav-login-btn svg {
    color: #1e5a99 !important;
    margin-right: 4px;
}

/* Guest Main Shell */
body.qbx-guest-body .qbx-guest-shell {
    width: 100%;
    max-width: 1120px;
    min-height: calc(100vh - 36px);
    margin: 0 auto;
    padding: 84px 20px 64px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
}

.qbx-guest-alerts {
    width: 100%;
    max-width: 780px;
    margin: 0 auto 16px;
}

.qbx-guest-alerts:empty {
    display: none;
    margin: 0;
}

.qbx-guest-alerts .alert {
    border-radius: 8px;
    border-left-width: 4px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    margin-bottom: 12px;
}

/* Width Wrappers */
.qbx-auth-wrap {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

.qbx-auth-wrap--md {
    max-width: 640px;
}

.qbx-auth-wrap--lg {
    max-width: 780px;
}

.qbx-guest-wide {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

/* Auth Card */
.qbx-auth-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-top: 3px solid #1e5a99;
    border-radius: 10px;
    padding: 32px 30px 26px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.qbx-auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.qbx-auth-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.qbx-auth-logo {
    max-height: 46px;
    max-width: 240px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.qbx-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #e8f1fb;
    border: 1px solid #bfdbfe;
    color: #1e5a99;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.qbx-auth-title {
    margin: 0 0 6px 0;
    font-size: 21px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.qbx-auth-subtitle {
    margin: 0;
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.45;
}

/* Form Fields inside Guest/Auth Cards */
.qbx-auth-card .form-group {
    margin-bottom: 16px;
}

.qbx-field-label,
.qbx-auth-card .control-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    text-align: left;
}

.qbx-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.qbx-input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
    pointer-events: none;
    z-index: 4;
    width: 16px;
    text-align: center;
    transition: color 0.15s ease;
}

.qbx-input-wrap:focus-within .qbx-input-icon {
    color: #1e5a99;
}

.qbx-input,
.qbx-auth-card .form-control.qbx-input {
    width: 100%;
    height: 42px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    padding: 0 12px 0 38px;
    font-size: 14px;
    color: #0f172a;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.qbx-input.qbx-input--plain,
.qbx-auth-card .form-control.qbx-input--plain {
    padding: 0 12px;
}

.qbx-input.qbx-input--textarea,
.qbx-auth-card textarea.form-control.qbx-input {
    height: auto;
    min-height: 112px;
    padding: 10px 12px;
    line-height: 1.5;
    resize: vertical;
}

.qbx-input.qbx-input--has-toggle,
.qbx-auth-card .form-control.qbx-input--has-toggle {
    padding-right: 40px;
}

.qbx-input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.qbx-input:focus,
.qbx-auth-card .form-control:focus {
    border-color: #1e5a99;
    box-shadow: 0 0 0 3px rgba(30, 90, 153, 0.14);
    outline: none;
}

.qbx-input--upper {
    text-transform: uppercase;
}

.qbx-pwd-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px 8px;
    font-size: 13px;
    line-height: 1;
    border-radius: 5px;
    z-index: 5;
    outline: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.qbx-pwd-toggle:hover {
    color: #1e5a99;
    background: #eef4fb;
}

.qbx-field-hint {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    line-height: 1.4;
}

.qbx-auth-card .help-block,
.qbx-auth-card .help-block-error {
    font-size: 12px;
    margin-top: 5px;
    margin-bottom: 0;
}

.qbx-auth-card .has-error .qbx-input,
.qbx-auth-card .has-error .form-control {
    border-color: #dc2626;
}

.qbx-auth-card .has-error .qbx-input:focus,
.qbx-auth-card .has-error .form-control:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.qbx-auth-card .has-error .qbx-input-icon {
    color: #dc2626;
}

.qbx-auth-card .has-error .help-block-error {
    color: #dc2626;
}

/* Kartik Widget Integration inside Auth Cards */
.qbx-auth-card .select2-container--krajee .select2-selection--single {
    height: 42px;
    padding: 8px 28px 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    box-shadow: none;
    font-size: 14px;
    color: #0f172a;
}

.qbx-auth-card .select2-container--krajee .select2-selection--single .select2-selection__arrow {
    height: 40px;
}

.qbx-auth-card .select2-container--krajee.select2-container--focus .select2-selection,
.qbx-auth-card .select2-container--krajee.select2-container--open .select2-selection {
    border-color: #1e5a99;
    box-shadow: 0 0 0 3px rgba(30, 90, 153, 0.14);
}

.qbx-auth-card .kv-password-input .input-group-addon,
.qbx-auth-card .kv-password-input .input-group-btn > .btn {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #475569;
}

.qbx-auth-card .kv-password-input .form-control {
    height: 42px;
    border: 1px solid #cbd5e1;
    box-shadow: none;
    font-size: 14px;
}

.qbx-auth-card .kv-password-input .kv-scorebar-border {
    margin-top: 6px;
}

/* Row Between (Remember me + Forgot password) */
.qbx-auth-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 4px 0 18px;
}

.qbx-auth-row-between .form-group {
    margin-bottom: 0;
}

.qbx-auth-row-between .checkbox {
    margin: 0;
}

.qbx-auth-row-between .checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
    padding-left: 0;
    cursor: pointer;
}

.qbx-auth-row-between .checkbox input[type="checkbox"] {
    position: static;
    margin: 0;
    width: 15px;
    height: 15px;
    accent-color: #1e5a99;
    cursor: pointer;
}

.qbx-auth-link {
    font-size: 13px;
    font-weight: 600;
    color: #1e5a99;
    text-decoration: none;
}

.qbx-auth-link:hover,
.qbx-auth-link:focus {
    color: #17487c;
    text-decoration: underline;
}

/* Primary & Secondary Buttons */
.qbx-btn-submit {
    width: 100%;
    height: 42px;
    background: #1e5a99;
    border: 1px solid #17487c;
    border-radius: 7px;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.qbx-btn-submit:hover,
.qbx-btn-submit:focus {
    background: #17487c;
    border-color: #133b66;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(30, 90, 153, 0.22);
}

.qbx-btn-submit.is-loading {
    opacity: 0.85;
    pointer-events: none;
}

.qbx-btn-auto {
    width: auto;
    padding: 0 20px;
}

.qbx-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 42px;
    padding: 0 18px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    color: #1e293b !important;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.qbx-btn-secondary:hover,
.qbx-btn-secondary:focus {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #1e5a99 !important;
}

/* Card Footer Links */
.qbx-auth-divider {
    margin: 20px 0 14px;
    border-top: 1px solid #e2e8f0;
}

.qbx-auth-footer-links {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Candidate Portal Box */
.qbx-candidate-card {
    margin-top: 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #0f766e;
    border-radius: 8px;
    padding: 16px 18px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.qbx-candidate-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.qbx-candidate-card-head i,
.qbx-candidate-card-head svg {
    color: #0f766e;
}

.qbx-candidate-card-text {
    font-size: 12.5px;
    color: #475569;
    margin: 0 0 12px 0;
    line-height: 1.45;
}

.qbx-candidate-card-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.qbx-candidate-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.qbx-candidate-btn--teal {
    background: #ecfdf5;
    border: 1px solid #99f6e4;
    color: #0f766e !important;
}

.qbx-candidate-btn--teal:hover {
    background: #d1fae5;
    color: #115e59 !important;
}

.qbx-candidate-btn--blue {
    background: #e8f1fb;
    border: 1px solid #bfdbfe;
    color: #1e5a99 !important;
}

.qbx-candidate-btn--blue:hover {
    background: #dbeafe;
    color: #17487c !important;
}

/* Callouts */
.qbx-callout {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 7px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 18px;
    border: 1px solid #cbd5e1;
}

.qbx-callout-icon {
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 14px;
}

.qbx-callout--info {
    background: #f0f6fc;
    border-color: #bfdbfe;
    border-left: 4px solid #1e5a99;
    color: #1e293b;
}

.qbx-callout--info .qbx-callout-icon {
    color: #1e5a99;
}

.qbx-callout--warn {
    background: #fffbeb;
    border-color: #fde68a;
    border-left: 4px solid #d97706;
    color: #78350f;
}

.qbx-callout--warn .qbx-callout-icon {
    color: #d97706;
}

.qbx-callout--danger {
    background: #fef2f2;
    border-color: #fecaca;
    border-left: 4px solid #dc2626;
    color: #7f1d1d;
}

.qbx-callout--danger .qbx-callout-icon {
    color: #dc2626;
}

/* Form Sections (Signup) */
.qbx-form-section {
    margin-bottom: 22px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
}

.qbx-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 12px;
    padding-bottom: 0;
}

.qbx-form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #1e5a99;
    margin: 0 0 14px 0;
}

/* GDPR Consent Box */
.qbx-consent-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.qbx-consent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.qbx-consent-header-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
}

.qbx-consent-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #cbd5e1;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.qbx-consent-item:last-child {
    margin-bottom: 0;
}

.qbx-consent-item.is-required {
    border-left-color: #1e5a99;
}

.qbx-consent-item.has-error {
    border-color: #fca5a5;
    border-left-color: #dc2626;
    background: #fef2f2;
}

.qbx-consent-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.qbx-consent-text {
    font-size: 12.5px;
    color: #334155;
    line-height: 1.5;
    margin: 0 0 8px 0;
}

.qbx-consent-item .form-group {
    margin-bottom: 0;
}

.qbx-badge-req,
.qbx-badge-opt {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.qbx-badge-req {
    background: #e8f1fb;
    color: #1e5a99;
}

.qbx-badge-opt {
    background: #f1f5f9;
    color: #64748b;
}

/* Captcha Flex Row */
.qbx-captcha-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.qbx-captcha-img-box {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    cursor: pointer;
    min-height: 42px;
}

.qbx-captcha-img-box img {
    display: block;
    max-height: 36px;
    width: auto;
}

.qbx-captcha-input-box {
    flex: 1 1 auto;
    min-width: 0;
}

/* Hero & Feature Grid (Guest Home & About) */
.qbx-hero-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-top: 3px solid #1e5a99;
    border-radius: 10px;
    padding: 32px 30px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    margin-bottom: 18px;
}

.qbx-hero-logo {
    max-width: 280px;
    max-height: 58px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 14px;
}

.qbx-hero-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.qbx-hero-lead {
    max-width: 680px;
    margin: 0 auto 22px;
    font-size: 14.5px;
    color: #475569;
    line-height: 1.6;
}

.qbx-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.qbx-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.qbx-feature-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 20px 18px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.qbx-feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #e8f1fb;
    color: #1e5a99;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 12px;
}

.qbx-feature-title {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.qbx-feature-text {
    margin: 0;
    font-size: 13px;
    color: #475569;
    line-height: 1.55;
}

/* Contact Page 2-Column Layout */
.qbx-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(270px, 1fr);
    gap: 18px;
    align-items: start;
}

.qbx-info-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-top: 3px solid #1e5a99;
    border-radius: 10px;
    padding: 32px 26px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.qbx-info-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 18px;
}

.qbx-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    color: #334155;
    line-height: 1.45;
}

.qbx-info-list li:last-child {
    border-bottom: none;
}

.qbx-info-list-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #eef4fb;
    color: #1e5a99;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.qbx-info-list-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    margin-bottom: 1px;
}

.qbx-info-list a {
    color: #1e5a99;
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}

.qbx-info-list a:hover {
    text-decoration: underline;
}

/* CNS Check List & Numbered Step List */
.qbx-cns-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.qbx-cns-section-title {
    margin: 0 0 10px 0;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 7px;
}

.qbx-cns-section-title i,
.qbx-cns-section-title svg {
    color: #1e5a99;
}

.qbx-check-list,
.qbx-step-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.qbx-check-list li,
.qbx-step-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
    margin-bottom: 8px;
}

.qbx-check-list li:last-child,
.qbx-step-list li:last-child {
    margin-bottom: 0;
}

.qbx-check-icon {
    color: #0f766e;
    margin-top: 3px;
    flex-shrink: 0;
}

.qbx-step-num-badge {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #1e5a99;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Error & Session Closed Cards */
.qbx-error-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-top: 4px solid #dc2626;
    border-radius: 10px;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.qbx-error-icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: #fef2f2;
    color: #dc2626;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.qbx-error-trace {
    text-align: left;
    margin: 16px 0;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 12px;
    color: #334155;
    max-height: 220px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.qbx-error-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

/* Special User Company Picker */
.qbx-full-area.qbx-full-area--auth {
    padding: 84px 20px 64px;
}

.qbx-picker-toolbar {
    margin-bottom: 12px;
}

.qbx-picker-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    font-size: 12px;
    color: #475569;
}

.qbx-picker-count-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e8f1fb;
    color: #1e5a99;
    font-size: 11px;
    font-weight: 700;
}

.qbx-picker-list {
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.qbx-picker-list--expired {
    max-height: 220px;
    margin-top: 8px;
    background: #f8fafc;
}

.qbx-picker-item {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    border-left: 3px solid transparent;
    background: #ffffff;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.12s ease, border-left-color 0.12s ease;
}

.qbx-picker-item:last-child {
    border-bottom: none;
}

.qbx-picker-item:hover:not(.is-expired),
.qbx-picker-item:focus:not(.is-expired) {
    background: #eef4fb;
    border-left-color: #1e5a99;
    outline: none;
}

.qbx-picker-item.is-loading {
    background: #e8f1fb;
    border-left-color: #1e5a99;
}

.qbx-picker-item.is-expired {
    background: #f8fafc;
    cursor: default;
    opacity: 0.78;
}

.qbx-picker-item-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qbx-picker-item-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    word-break: break-word;
}

.qbx-picker-item:hover:not(.is-expired) .qbx-picker-item-name {
    color: #1e5a99;
}

.qbx-picker-item-sub {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11.5px;
    color: #64748b;
}

.qbx-picker-license-ok {
    color: #0f766e;
    font-weight: 600;
}

.qbx-picker-enter {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 5px;
    background: #f1f5f9;
    color: #1e5a99;
    font-size: 12px;
    font-weight: 600;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.qbx-picker-item:hover:not(.is-expired) .qbx-picker-enter {
    background: #1e5a99;
    color: #ffffff;
}

.qbx-picker-empty {
    padding: 24px 14px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.qbx-picker-expired-wrap {
    margin-top: 12px;
}

.qbx-picker-expired-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 7px;
    background: #f8fafc;
    color: #475569;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.12s ease, border-color 0.12s ease;
}

.qbx-picker-expired-toggle:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.qbx-picker-expired-toggle.is-open .qbx-picker-expired-caret {
    transform: rotate(180deg);
}

.qbx-picker-expired-caret {
    transition: transform 0.15s ease;
}

.qbx-picker-expired-badge {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 11px;
    font-weight: 600;
}

/* Responsive Breakpoints */
@media (min-width: 768px) and (max-width: 991px) {
    body.qbx-guest-body .qbx-navbar .navbar-nav > li > a {
        padding: 15px 10px;
        font-size: 12.5px;
    }
    body.qbx-guest-body .qbx-navbar .navbar-nav > li > a.qbx-nav-login-btn {
        padding: 6px 11px !important;
        margin-left: 4px;
    }
}

@media (max-width: 860px) {
    .qbx-feature-grid,
    .qbx-contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    body.qbx-guest-body .qbx-navbar .qbx-nav-inner {
        padding: 0 12px;
    }
    body.qbx-guest-body .qbx-navbar .navbar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: row-reverse;
        margin: 0;
        width: 100%;
        min-height: 52px;
    }
    body.qbx-guest-body .qbx-navbar .navbar-header::before,
    body.qbx-guest-body .qbx-navbar .navbar-header::after {
        display: none;
    }
    body.qbx-guest-body .qbx-navbar .navbar-brand {
        float: none;
        padding: 10px 4px;
        max-width: calc(100% - 54px);
        flex: 1 1 auto;
    }
    body.qbx-guest-body .qbx-navbar .navbar-toggle {
        float: none;
        margin: 0;
        flex-shrink: 0;
    }
    body.qbx-guest-body .qbx-navbar .navbar-collapse {
        margin: 0 -12px;
        padding: 8px 12px 12px;
        background: #17487c;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.24);
        max-height: calc(100vh - 52px);
        overflow-y: auto;
    }
    body.qbx-guest-body .qbx-navbar .navbar-nav {
        margin: 0;
    }
    body.qbx-guest-body .qbx-navbar .navbar-nav > li > a {
        padding: 10px 12px;
        border-radius: 6px;
    }
    body.qbx-guest-body .qbx-navbar .navbar-nav > li > a.qbx-nav-login-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 100%;
        margin: 8px 0 0;
        padding: 10px 14px !important;
    }
    body.qbx-guest-body .qbx-footer {
        height: auto;
        min-height: 36px;
        padding: 6px 0;
    }
    body.qbx-guest-body .qbx-footer-inner {
        padding: 0 12px;
        justify-content: center;
        text-align: center;
        gap: 4px 12px;
        font-size: 11.5px;
    }
    body.qbx-guest-body .qbx-guest-shell,
    .qbx-full-area.qbx-full-area--auth {
        padding: 68px 14px 76px;
    }
    .qbx-auth-card,
    .qbx-hero-card,
    .qbx-info-card,
    .qbx-error-card {
        padding: 24px 18px;
    }
    .qbx-hero-logo {
        max-width: 220px;
        max-height: 46px;
    }
    .qbx-auth-logo {
        max-width: 200px;
        max-height: 40px;
    }
    .qbx-hero-title {
        font-size: 20px;
    }
    .qbx-auth-title {
        font-size: 19px;
    }
    .qbx-hero-lead {
        font-size: 13.5px;
        margin-bottom: 18px;
    }
}

@media (max-width: 560px) {
    body.qbx-guest-body .qbx-guest-shell,
    .qbx-full-area.qbx-full-area--auth {
        padding: 66px 10px 80px;
    }
    .qbx-picker-enter-lbl {
        display: none;
    }
    .qbx-auth-card,
    .qbx-hero-card,
    .qbx-info-card,
    .qbx-error-card {
        padding: 20px 15px;
        border-radius: 8px;
    }
    .qbx-hero-actions,
    .qbx-error-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .qbx-hero-actions .qbx-btn-submit,
    .qbx-hero-actions .qbx-btn-secondary,
    .qbx-error-actions .qbx-btn-submit,
    .qbx-error-actions .qbx-btn-secondary {
        width: 100%;
    }
    .qbx-candidate-card-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .qbx-candidate-btn {
        justify-content: center;
        width: 100%;
    }
    .qbx-auth-row-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .qbx-consent-header,
    .qbx-consent-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .qbx-captcha-row {
        flex-direction: column;
    }
    .qbx-captcha-img-box {
        justify-content: flex-start;
    }
}
