/*
 |----------------------------------------------------------------------------
 | OperaOne ERP - public UI (landing / login / register)
 |----------------------------------------------------------------------------
 | Palette: royal blue + gold.
 | Sits on top of vendor.css (Bootstrap 3 + AdminLTE + FontAwesome 5) and never
 | touches the authenticated admin theme. Bilingual: LTR (en) + RTL (ar).
 |
 | NOTE ON HEADING COLOURS
 | There is deliberately NO blanket `body.aq-public h1 {color}` rule. A blanket
 | rule outranks component rules like `.aq-hero h1` on specificity, which is
 | what previously rendered dark headings on dark backgrounds. Every heading
 | colour below is set by its own component.
 */

:root {
    --aq-primary: #1e3a8a;
    --aq-primary-deep: #152a63;
    --aq-primary-darker: #0e1c47;
    --aq-primary-light: #2a4fb8;
    --aq-primary-soft: rgba(30, 58, 138, .08);

    --aq-gold: #d4a13a;
    --aq-gold-dark: #b8862a;
    --aq-gold-light: #e8bf62;
    --aq-gold-soft: rgba(212, 161, 58, .15);

    --aq-ink: #16233a;
    --aq-muted: #5c6b82;
    --aq-line: #e2e8f2;
    --aq-surface: #ffffff;
    --aq-surface-alt: #f5f7fb;

    --aq-on-dark: #ffffff;
    --aq-on-dark-muted: rgba(255, 255, 255, .78);
    --aq-on-dark-faint: rgba(255, 255, 255, .58);

    --aq-radius: 10px;
    --aq-shadow-sm: 0 1px 2px rgba(14, 28, 71, .06);
    --aq-shadow: 0 2px 6px rgba(14, 28, 71, .06), 0 12px 32px rgba(14, 28, 71, .10);
}

/* ---------------------------------------------------------------- base --- */

body.aq-public {
    background: var(--aq-surface);
    color: var(--aq-ink);
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.aq-public[dir="rtl"] {
    font-family: "Segoe UI", Tahoma, "Traditional Arabic", Arial, sans-serif;
}

/* Base link colour. NOTE: `body.aq-public a` has specificity (0,1,2), which
   beats any single-class component rule like `.aq-nav-link` or `.aq-btn-ghost`.
   Every component that sits on a dark background therefore restates its colour
   with a `body.aq-public` prefix below - do not "simplify" those away. */
body.aq-public a {
    color: var(--aq-primary);
}

body.aq-public a:hover,
body.aq-public a:focus {
    color: var(--aq-primary-light);
    text-decoration: none;
}

.aq-section {
    padding: 76px 0;
}

.aq-section--alt {
    background: var(--aq-surface-alt);
    border-top: 1px solid var(--aq-line);
    border-bottom: 1px solid var(--aq-line);
}

.aq-section-head {
    margin-bottom: 46px;
    text-align: center;
}

.aq-eyebrow {
    color: var(--aq-gold-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.aq-section-head h2 {
    color: var(--aq-ink);
    font-size: 31px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0 0 12px;
}

.aq-section-head p {
    color: var(--aq-muted);
    font-size: 16px;
    margin: 0 auto;
    max-width: 660px;
}

.aq-rule {
    background: var(--aq-gold);
    border-radius: 2px;
    height: 3px;
    margin: 0 auto 18px;
    width: 54px;
}

/* -------------------------------------------------------------- buttons --- */

.aq-btn {
    border: 1px solid transparent;
    border-radius: var(--aq-radius);
    cursor: pointer;
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    padding: 13px 28px;
    text-align: center;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.aq-btn + .aq-btn { margin-left: 10px; }
[dir="rtl"] .aq-btn + .aq-btn { margin-left: 0; margin-right: 10px; }

body.aq-public .aq-btn-gold {
    background: var(--aq-gold);
    color: #241d09;
}

body.aq-public .aq-btn-gold:hover,
body.aq-public .aq-btn-gold:focus {
    background: var(--aq-gold-light);
    box-shadow: 0 8px 22px rgba(212, 161, 58, .34);
    color: #241d09;
}

body.aq-public .aq-btn-primary {
    background: var(--aq-primary);
    color: #fff;
}

body.aq-public .aq-btn-primary:hover,
body.aq-public .aq-btn-primary:focus {
    background: var(--aq-primary-light);
    box-shadow: 0 8px 22px rgba(30, 58, 138, .28);
    color: #fff;
}

body.aq-public .aq-btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
}

body.aq-public .aq-btn-ghost:hover,
body.aq-public .aq-btn-ghost:focus {
    background: rgba(255, 255, 255, .14);
    border-color: #fff;
    color: #fff;
}

body.aq-public .aq-btn-outline {
    background: transparent;
    border-color: var(--aq-primary);
    color: var(--aq-primary);
}

body.aq-public .aq-btn-outline:hover,
body.aq-public .aq-btn-outline:focus {
    background: var(--aq-primary);
    color: #fff;
}

/* --------------------------------------------------------------- navbar --- */

.aq-nav {
    background: var(--aq-primary-darker);
    padding: 14px 0;
}

.aq-nav-inner {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
}

body.aq-public .aq-brand {
    align-items: center;
    color: #fff;
    display: inline-flex;
    font-size: 19px;
    font-weight: 700;
    gap: 10px;
}

body.aq-public .aq-brand:hover,
body.aq-public .aq-brand:focus { color: #fff; }

.aq-brand img { max-height: 38px; }

.aq-brand-mark {
    align-items: center;
    background: var(--aq-gold);
    border-radius: 9px;
    color: #26200c;
    display: inline-flex;
    font-size: 16px;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.aq-nav-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

body.aq-public .aq-nav-link {
    color: rgba(255, 255, 255, .9);
    font-weight: 600;
    padding: 8px 6px;
}

body.aq-public .aq-nav-link:hover,
body.aq-public .aq-nav-link:focus {
    color: var(--aq-gold-light);
}

/* ------------------------------------------------------ language picker --- */

.aq-lang { position: relative; }

.aq-lang select.aq-lang-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    height: 38px;
    padding: 0 34px;
}

.aq-lang select.aq-lang-select:focus {
    border-color: var(--aq-gold);
    outline: none;
}

.aq-lang select.aq-lang-select option {
    background: #fff;
    color: var(--aq-ink);
}

.aq-lang .aq-lang-globe,
.aq-lang .aq-lang-caret {
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.aq-lang .aq-lang-globe { left: 12px; }
.aq-lang .aq-lang-caret { right: 12px; }
[dir="rtl"] .aq-lang .aq-lang-globe { left: auto; right: 12px; }
[dir="rtl"] .aq-lang .aq-lang-caret { left: 12px; right: auto; }

.aq-lang--light select.aq-lang-select {
    background: #fff;
    border-color: var(--aq-line);
    color: var(--aq-ink);
}

.aq-lang--light .aq-lang-globe,
.aq-lang--light .aq-lang-caret { color: var(--aq-muted); }

/* ----------------------------------------------------------------- hero --- */

.aq-hero {
    background:
        radial-gradient(1200px 460px at 80% -10%, rgba(212, 161, 58, .22), transparent 60%),
        linear-gradient(158deg, var(--aq-primary-darker) 0%, var(--aq-primary-deep) 55%, var(--aq-primary) 100%);
    color: var(--aq-on-dark);
    overflow: hidden;
    padding: 88px 0 96px;
    position: relative;
}

[dir="rtl"] .aq-hero {
    background:
        radial-gradient(1200px 460px at 20% -10%, rgba(212, 161, 58, .22), transparent 60%),
        linear-gradient(202deg, var(--aq-primary-darker) 0%, var(--aq-primary-deep) 55%, var(--aq-primary) 100%);
}

.aq-hero h1 {
    color: var(--aq-on-dark);
    font-size: 47px;
    font-weight: 700;
    letter-spacing: -.015em;
    line-height: 1.16;
    margin: 0 0 20px;
}

.aq-hero h1 .aq-hl {
    color: var(--aq-gold-light);
}

.aq-hero-sub {
    color: var(--aq-on-dark-muted);
    font-size: 18px;
    margin: 0 0 32px;
    max-width: 580px;
}

.aq-pill {
    background: rgba(212, 161, 58, .16);
    border: 1px solid rgba(212, 161, 58, .45);
    border-radius: 999px;
    color: var(--aq-gold-light);
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 22px;
    padding: 6px 16px;
}

.aq-hero-cta { margin-bottom: 36px; }

.aq-hero-points {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aq-hero-points li {
    color: var(--aq-on-dark-muted);
    display: inline-block;
    font-size: 14px;
    margin: 0 22px 8px 0;
}

[dir="rtl"] .aq-hero-points li { margin: 0 0 8px 22px; }

.aq-hero-points i { color: var(--aq-gold); margin: 0 7px 0 0; }
[dir="rtl"] .aq-hero-points i { margin: 0 0 0 7px; }

/* hero side card */

.aq-hero-card {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    box-shadow: 0 26px 64px rgba(0, 0, 0, .3);
    padding: 24px;
}

.aq-hero-card-title {
    color: var(--aq-on-dark-faint);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.aq-stat {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 14px 16px;
}

.aq-stat:last-child { margin-bottom: 0; }
.aq-stat-label { color: var(--aq-on-dark-muted); font-size: 13px; }
.aq-stat-value { color: var(--aq-on-dark); font-size: 21px; font-weight: 700; }
.aq-stat i { color: var(--aq-gold); font-size: 19px; }

/* ------------------------------------------------------------ trust bar --- */

.aq-trust {
    background: var(--aq-primary-darker);
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 26px 0;
}

.aq-trust-item {
    color: var(--aq-on-dark-muted);
    font-size: 14px;
    text-align: center;
}

.aq-trust-item strong {
    color: var(--aq-gold-light);
    display: block;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.3;
}

/* ------------------------------------------------------------- features --- */

.aq-grid { display: flex; flex-wrap: wrap; }
.aq-grid > [class*="col-"] { display: flex; }

.aq-card {
    background: var(--aq-surface);
    border: 1px solid var(--aq-line);
    border-radius: 12px;
    box-shadow: var(--aq-shadow-sm);
    height: 100%;
    margin-bottom: 24px;
    padding: 26px 22px;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
    width: 100%;
}

.aq-card:hover {
    border-color: rgba(212, 161, 58, .6);
    box-shadow: var(--aq-shadow);
    transform: translateY(-3px);
}

.aq-card-icon {
    align-items: center;
    background: var(--aq-primary);
    border-radius: 10px;
    color: #fff;
    display: inline-flex;
    font-size: 19px;
    height: 46px;
    justify-content: center;
    margin-bottom: 16px;
    width: 46px;
}

.aq-card:hover .aq-card-icon {
    background: var(--aq-gold);
    color: #26200c;
}

.aq-card h3 {
    color: var(--aq-ink);
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
}

.aq-card p {
    color: var(--aq-muted);
    font-size: 14.5px;
    margin: 0;
}

.aq-card-tag {
    background: var(--aq-gold-soft);
    border-radius: 4px;
    color: var(--aq-gold-dark);
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    margin-bottom: 10px;
    padding: 2px 8px;
    text-transform: uppercase;
}

/* --------------------------------------------------------- how it works --- */

.aq-step {
    padding: 0 12px;
    text-align: center;
}

.aq-step-num {
    align-items: center;
    background: var(--aq-surface);
    border: 2px solid var(--aq-gold);
    border-radius: 50%;
    color: var(--aq-primary);
    display: inline-flex;
    font-size: 19px;
    font-weight: 700;
    height: 56px;
    justify-content: center;
    margin-bottom: 16px;
    width: 56px;
}

.aq-step h3 {
    color: var(--aq-ink);
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
}

.aq-step p {
    color: var(--aq-muted);
    font-size: 14.5px;
    margin: 0;
}

/* ---------------------------------------------------------- subscription --- */

.aq-plan {
    background: var(--aq-surface);
    border: 1px solid var(--aq-line);
    border-radius: 14px;
    box-shadow: var(--aq-shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 26px;
    padding: 30px 26px;
    position: relative;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
    width: 100%;
}

.aq-plan:hover {
    box-shadow: var(--aq-shadow);
    transform: translateY(-3px);
}

.aq-plan--featured {
    border-color: var(--aq-gold);
    border-width: 2px;
}

.aq-plan-badge {
    background: var(--aq-gold);
    border-radius: 999px;
    color: #26200c;
    font-size: 11px;
    font-weight: 700;
    left: 50%;
    letter-spacing: .08em;
    padding: 4px 16px;
    position: absolute;
    text-transform: uppercase;
    top: -12px;
    transform: translateX(-50%);
    white-space: nowrap;
}

.aq-plan-name {
    color: var(--aq-primary);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .06em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.aq-plan-price {
    align-items: baseline;
    color: var(--aq-ink);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.aq-plan-amount {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1;
}

.aq-plan-cycle {
    color: var(--aq-muted);
    font-size: 14px;
}

.aq-plan-trial {
    color: var(--aq-gold-dark);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
    min-height: 20px;
}

.aq-plan-desc {
    color: var(--aq-muted);
    font-size: 14px;
    margin-bottom: 18px;
}

.aq-plan-features {
    border-top: 1px solid var(--aq-line);
    flex: 1;
    list-style: none;
    margin: 0 0 22px;
    padding: 18px 0 0;
}

.aq-plan-features li {
    color: var(--aq-ink);
    font-size: 14.5px;
    margin-bottom: 10px;
    padding-left: 26px;
    position: relative;
}

[dir="rtl"] .aq-plan-features li { padding-left: 0; padding-right: 26px; }

.aq-plan-features li i {
    color: var(--aq-gold-dark);
    left: 0;
    position: absolute;
    top: 5px;
}

[dir="rtl"] .aq-plan-features li i { left: auto; right: 0; }

.aq-plan .aq-btn { width: 100%; }

/* --------------------------------------------------------------- ribbon --- */

.aq-ribbon {
    background:
        radial-gradient(800px 300px at 50% 0%, rgba(212, 161, 58, .2), transparent 65%),
        var(--aq-primary-darker);
    color: var(--aq-on-dark);
    padding: 60px 0;
    text-align: center;
}

.aq-ribbon h2 {
    color: var(--aq-on-dark);
    font-size: 29px;
    font-weight: 700;
    margin: 0 0 12px;
}

.aq-ribbon p {
    color: var(--aq-on-dark-muted);
    margin: 0 auto 28px;
    max-width: 640px;
}

/* --------------------------------------------------------------- footer --- */

.aq-footer {
    background: #0a1533;
    color: var(--aq-on-dark-faint);
    font-size: 14px;
    padding: 28px 0;
}

body.aq-public .aq-footer a { color: var(--aq-on-dark-muted); }
body.aq-public .aq-footer a:hover { color: #fff; }

/* links sitting on the dark hero / ribbon */
body.aq-public .aq-hero a:not(.aq-btn),
body.aq-public .aq-ribbon a:not(.aq-btn) { color: var(--aq-gold-light); }

/* ==========================================================================
   Auth pages (login / register / password reset)
   ========================================================================== */

body.aq-auth { background: var(--aq-surface-alt); }

.aq-auth-wrap {
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;
}

/* Flex items default to min-width:auto, so a wide child (the registration
   wizard) stops the column shrinking and the row overflows. LTR spills
   harmlessly to the right; RTL spills to the LEFT, off-screen, which rendered
   the Arabic registration page blank. min-width:0 lets the columns shrink. */
.aq-auth-brand,
.aq-auth-main {
    min-width: 0;
}

/* --- brand column --- */

.aq-auth-brand {
    background:
        radial-gradient(760px 340px at 26% 6%, rgba(212, 161, 58, .2), transparent 62%),
        linear-gradient(162deg, var(--aq-primary-darker) 0%, var(--aq-primary-deep) 60%, var(--aq-primary) 100%);
    color: var(--aq-on-dark);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 44px 46px;
    width: 40%;
}

.aq-auth-brand .aq-brand { font-size: 22px; }

.aq-auth-brand-body { padding: 44px 0; }

.aq-auth-brand-body h2 {
    color: var(--aq-on-dark);
    font-size: 31px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 16px;
}

.aq-auth-brand-body p {
    color: var(--aq-on-dark-muted);
    font-size: 16px;
    margin: 0 0 28px;
}

.aq-auth-list { list-style: none; margin: 0; padding: 0; }

.aq-auth-list li {
    color: var(--aq-on-dark-muted);
    margin-bottom: 13px;
    padding-left: 30px;
    position: relative;
}

[dir="rtl"] .aq-auth-list li { padding-left: 0; padding-right: 30px; }

.aq-auth-list li i {
    color: var(--aq-gold);
    left: 0;
    position: absolute;
    top: 5px;
}

[dir="rtl"] .aq-auth-list li i { left: auto; right: 0; }

.aq-auth-brand-foot {
    color: var(--aq-on-dark-faint);
    font-size: 13px;
}

/* --- form column --- */

.aq-auth-main {
    background: var(--aq-surface);
    display: flex;
    flex-direction: column;
    width: 60%;
}

.aq-auth-topbar {
    align-items: center;
    border-bottom: 1px solid var(--aq-line);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    padding: 16px 46px;
}

.aq-auth-topbar-text { color: var(--aq-muted); font-size: 14px; }
.aq-auth-topbar-text a { font-weight: 700; }

.aq-auth-body { flex: 1; padding: 40px 46px 48px; }

.aq-auth-inner { margin: 0 auto; max-width: 440px; width: 100%; }
.aq-auth-inner--wide { max-width: 940px; }

/* nothing inside the form column may force the column wider than it is */
.aq-auth-main,
.aq-auth-main .aq-auth-inner,
.aq-auth-main .wizard,
.aq-auth-main .wizard > .content,
.aq-auth-main .wizard > .content > .body {
    max-width: 100%;
}

.aq-auth-main .row { margin-left: 0; margin-right: 0; }

.aq-auth-head { margin-bottom: 28px; }

.aq-auth-head h1 {
    color: var(--aq-ink);
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 6px;
}

.aq-auth-head p { color: var(--aq-muted); margin: 0; }

/* --- form controls --- */

.aq-auth-main .form-group { margin-bottom: 18px; }

.aq-auth-main label,
.aq-auth-main .control-label {
    color: var(--aq-ink);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.aq-auth-main .form-control {
    background: #fff;
    border: 1px solid var(--aq-line);
    border-radius: 9px;
    box-shadow: none;
    color: var(--aq-ink);
    font-size: 15px;
    height: 46px;
    padding: 10px 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.aq-auth-main .form-control:focus {
    border-color: var(--aq-primary);
    box-shadow: 0 0 0 3px var(--aq-primary-soft);
}

.aq-auth-main .form-control::-webkit-input-placeholder { color: #97a3b6; }
.aq-auth-main .form-control::-moz-placeholder { color: #97a3b6; }
.aq-auth-main .form-control:-ms-input-placeholder { color: #97a3b6; }

.aq-auth-main .input-group { width: 100%; }

.aq-auth-main .input-group-addon {
    background: var(--aq-surface-alt);
    border: 1px solid var(--aq-line);
    border-radius: 9px 0 0 9px;
    color: var(--aq-primary);
    min-width: 44px;
}

[dir="rtl"] .aq-auth-main .input-group-addon { border-radius: 0 9px 9px 0; }

.aq-auth-main .input-group .form-control { border-radius: 0 9px 9px 0; }
[dir="rtl"] .aq-auth-main .input-group .form-control { border-radius: 9px 0 0 9px; }

/* select2 aligned with the native inputs */
.aq-auth-main .select2-container { width: 100% !important; }

.aq-auth-main .select2-container--default .select2-selection--single {
    border: 1px solid var(--aq-line);
    border-radius: 0 9px 9px 0;
    height: 46px;
}

[dir="rtl"] .aq-auth-main .select2-container--default .select2-selection--single {
    border-radius: 9px 0 0 9px;
}

.aq-auth-main .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--aq-ink);
    line-height: 44px;
    padding-left: 12px;
}

.aq-auth-main .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
}

/* file input (bootstrap-fileinput) */
.aq-auth-main .btn-file,
.aq-auth-main .fileinput-remove {
    background: var(--aq-primary);
    border-color: var(--aq-primary);
    border-radius: 9px;
    color: #fff;
}

.aq-auth-main .btn-file:hover {
    background: var(--aq-primary-light);
    border-color: var(--aq-primary-light);
    color: #fff;
}

.aq-auth-main .file-caption-main .form-control { border-radius: 9px 0 0 9px; }

/* primary submit */
.aq-auth-main .btn-primary,
.aq-auth-main .aq-submit {
    background: var(--aq-primary);
    border: 1px solid var(--aq-primary);
    border-radius: 9px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    height: 48px;
    padding: 12px 26px;
    transition: background-color .15s ease, box-shadow .15s ease;
    width: 100%;
}

.aq-auth-main .btn-primary:hover,
.aq-auth-main .btn-primary:focus,
.aq-auth-main .aq-submit:hover,
.aq-auth-main .aq-submit:focus {
    background: var(--aq-primary-light);
    border-color: var(--aq-primary-light);
    box-shadow: 0 8px 20px rgba(30, 58, 138, .26);
    color: #fff;
}

.aq-auth-main .help-block { color: #c0392b; font-size: 13px; margin-bottom: 0; }
.aq-auth-main .has-error .form-control { border-color: #e0796c; }

.aq-form-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.aq-form-row .checkbox { margin: 0; }
.aq-form-row label { font-weight: 500; margin: 0; }

/* password visibility toggle */
.aq-pw-wrap { position: relative; }

.aq-pw-toggle {
    background: none;
    border: 0;
    color: var(--aq-muted);
    cursor: pointer;
    padding: 4px 8px;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

[dir="rtl"] .aq-pw-toggle { left: 6px; right: auto; }
.aq-pw-toggle:focus { outline: none; }

/* --------------------------------------------------------------------------
   jQuery Steps wizard (business registration)
   login.js builds it with headerTag:'h3' / bodyTag:'fieldset'.
   transitionEffect is 'none', so bodies are laid out in normal flow here
   (the plugin's own CSS absolutely-positions them, which clipped the form).
   -------------------------------------------------------------------------- */

.aq-auth-main .wizard { overflow: visible; }

/* jQuery Steps hides its screen-reader-only labels with `left: -999em`.
   In LTR that is harmlessly off-screen, but in RTL it stretches the document
   ~16000px wide, and because RTL anchors the viewport to the document's right
   edge the window ends up over empty canvas - the Arabic registration page
   rendered blank. Swap it for the clip-based visually-hidden pattern, which
   takes no layout space in either direction. */
.aq-auth-main .wizard > .steps .current-info,
.aq-auth-main .wizard > .content > .title {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    left: auto;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    right: auto;
    white-space: nowrap;
    width: 1px;
}

/* bootstrap-fileinput leaves the native input at its intrinsic width (~1890px),
   which also overflows the RTL document. */
.aq-auth-main input[type="file"] {
    max-width: 100%;
}

.aq-auth-main .wizard > .steps {
    margin-bottom: 26px;
    width: 100%;
}

.aq-auth-main .wizard > .steps > ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.aq-auth-main .wizard > .steps > ul > li {
    flex: 1 1 0;
    float: none;
    min-width: 160px;
    width: auto;
}

.aq-auth-main .wizard > .steps a,
.aq-auth-main .wizard > .steps a:hover,
.aq-auth-main .wizard > .steps a:active {
    background: var(--aq-surface-alt);
    border: 1px solid var(--aq-line);
    border-radius: 10px;
    color: var(--aq-muted);
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    padding: 13px 16px;
    text-align: left;
}

[dir="rtl"] .aq-auth-main .wizard > .steps a,
[dir="rtl"] .aq-auth-main .wizard > .steps a:hover,
[dir="rtl"] .aq-auth-main .wizard > .steps a:active { text-align: right; }

.aq-auth-main .wizard > .steps .current a,
.aq-auth-main .wizard > .steps .current a:hover,
.aq-auth-main .wizard > .steps .current a:active {
    background: var(--aq-primary);
    border-color: var(--aq-primary);
    color: #fff;
}

.aq-auth-main .wizard > .steps .done a,
.aq-auth-main .wizard > .steps .done a:hover,
.aq-auth-main .wizard > .steps .done a:active {
    background: var(--aq-gold-soft);
    border-color: rgba(212, 161, 58, .55);
    color: var(--aq-gold-dark);
}

.aq-auth-main .wizard > .steps .number {
    align-items: center;
    background: rgba(0, 0, 0, .06);
    border-radius: 50%;
    display: inline-flex;
    font-size: 13px;
    height: 24px;
    justify-content: center;
    margin: 0 9px 0 0;
    width: 24px;
}

[dir="rtl"] .aq-auth-main .wizard > .steps .number { margin: 0 0 0 9px; }

.aq-auth-main .wizard > .steps .current .number {
    background: var(--aq-gold);
    color: #26200c;
}

.aq-auth-main .wizard > .steps .done .number {
    background: var(--aq-gold-dark);
    color: #fff;
}

/* Undo the plugin's own chrome: grey #eee panel, 0.5em margin, 35em
   min-height and overflow:hidden all fought the real form height.
   app.css also carries `.wizard > .content{background:#445867!important}` and
   `.wizard > .steps > ul > li{width:33.33%!important}` from the old dark auth
   theme, so these two need !important to win. Scoped to .aq-auth-main, which
   leaves the Superadmin "create business" wizard on its original styling. */
.aq-auth-main .wizard > .content {
    background: transparent !important;
    border-radius: 0;
    margin: 0;
    min-height: 0;
    overflow: visible;
    position: relative;
    width: auto;
}

.aq-auth-main .wizard > .steps > ul > li {
    width: auto !important;
}

/* Bodies are floated at 95% w/h by the plugin - put them back in flow at
   full size. The plugin toggles visibility with an inline display, so no
   extra hide rule is needed here. */
.aq-auth-main .wizard > .content > .body {
    background: var(--aq-surface);
    border: 1px solid var(--aq-line);
    border-radius: 12px;
    float: none;
    height: auto;
    margin: 0;
    padding: 24px 18px 10px;
    position: relative;
    width: 100%;
}

/* The plugin styles bare `input` inside a step body (display:block, grey
   1px border) at a higher specificity than .form-control - restate ours. */
.aq-auth-main .wizard > .content > .body input.form-control,
.aq-auth-main .wizard > .content > .body select.form-control {
    background: #fff;
    border: 1px solid var(--aq-line);
    border-radius: 0 9px 9px 0;
    display: block;
    height: 46px;
    width: 100%;
}

[dir="rtl"] .aq-auth-main .wizard > .content > .body input.form-control,
[dir="rtl"] .aq-auth-main .wizard > .content > .body select.form-control {
    border-radius: 9px 0 0 9px;
}

.aq-auth-main .wizard > .content > .body input.form-control:focus,
.aq-auth-main .wizard > .content > .body select.form-control:focus {
    border-color: var(--aq-primary);
    box-shadow: 0 0 0 3px var(--aq-primary-soft);
}

.aq-auth-main .wizard > .content > .body input.form-control.error {
    border: 1px solid #e0796c;
    color: var(--aq-ink);
}

.aq-auth-main .wizard > .content > .body label {
    display: block;
    margin-bottom: 6px;
}

.aq-auth-main .wizard > .content > .body label.error {
    margin-left: 0;
    margin-top: 5px;
}

[dir="rtl"] .aq-auth-main .wizard > .content > .body label.error { margin-right: 0; }

/* the fieldset IS the step body - no nested chrome */
.aq-auth-main fieldset { border: 0; margin: 0; padding: 0; }

.aq-auth-main fieldset legend {
    border: 0;
    color: var(--aq-ink);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    padding: 0 0 12px;
    width: 100%;
}

.aq-auth-main fieldset legend {
    border-bottom: 1px solid var(--aq-line);
}

.aq-auth-main fieldset legend i {
    color: var(--aq-gold-dark);
    margin: 0 9px 0 0;
}

[dir="rtl"] .aq-auth-main fieldset legend i { margin: 0 0 0 9px; }

/* next / previous */
.aq-auth-main .wizard > .actions {
    padding-top: 20px;
    width: 100%;
}

.aq-auth-main .wizard > .actions > ul {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
}

[dir="rtl"] .aq-auth-main .wizard > .actions > ul { flex-direction: row-reverse; }

.aq-auth-main .wizard > .actions > ul > li { float: none; margin: 0; }

.aq-auth-main .wizard > .actions a,
.aq-auth-main .wizard > .actions a:hover,
.aq-auth-main .wizard > .actions a:active {
    background: var(--aq-primary);
    border-radius: 9px;
    color: #fff;
    display: inline-block;
    font-weight: 600;
    padding: 12px 30px;
}

.aq-auth-main .wizard > .actions a:hover { background: var(--aq-primary-light); }

/* "previous" reads as the secondary action */
.aq-auth-main .wizard > .actions > ul > li:first-child a,
.aq-auth-main .wizard > .actions > ul > li:first-child a:hover {
    background: #fff;
    border: 1px solid var(--aq-line);
    color: var(--aq-ink);
}

[dir="rtl"] .aq-auth-main .wizard > .actions > ul > li:first-child a,
[dir="rtl"] .aq-auth-main .wizard > .actions > ul > li:first-child a:hover {
    background: #fff;
    border: 1px solid var(--aq-line);
    color: var(--aq-ink);
}

/* the final step's button is the real submit - make it gold */
.aq-auth-main .wizard > .actions > ul > li:last-child a {
    background: var(--aq-gold);
    color: #26200c;
}

.aq-auth-main .wizard > .actions > ul > li:last-child a:hover {
    background: var(--aq-gold-light);
    color: #26200c;
}

.aq-auth-main .wizard > .actions .disabled a,
.aq-auth-main .wizard > .actions .disabled a:hover,
.aq-auth-main .wizard > .actions .disabled a:active {
    background: #eef1f6;
    border-color: #eef1f6;
    color: #a3adbd;
    cursor: not-allowed;
}

/* jquery-validation messages */
.aq-auth-main label.error {
    color: #c0392b;
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-top: 5px;
}

.aq-auth-main .form-control.error { border-color: #e0796c; }

/* selected plan carried in from the landing page */
.aq-plan-callout {
    align-items: center;
    background: var(--aq-gold-soft);
    border: 1px solid rgba(212, 161, 58, .5);
    border-radius: 10px;
    color: var(--aq-ink);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 14px 18px;
}

.aq-plan-callout .aq-plan-callout-name {
    color: var(--aq-primary);
    font-weight: 700;
}

.aq-auth-foot {
    border-top: 1px solid var(--aq-line);
    color: var(--aq-muted);
    font-size: 13px;
    margin-top: 26px;
    padding-top: 18px;
    text-align: center;
}

/* ------------------------------------------------------------ responsive --- */

@media (max-width: 991px) {
    .aq-auth-brand,
    .aq-auth-main { width: 100%; }

    .aq-auth-brand { padding: 30px 26px; }
    .aq-auth-brand-body { padding: 24px 0; }
    .aq-auth-brand-body h2 { font-size: 25px; }

    .aq-auth-topbar,
    .aq-auth-body { padding-left: 24px; padding-right: 24px; }

    .aq-hero h1 { font-size: 35px; }
    .aq-hero-card { margin-top: 36px; }
    .aq-trust-item { margin-bottom: 16px; }
}

@media (max-width: 767px) {
    .aq-section { padding: 48px 0; }
    .aq-hero { padding: 54px 0 60px; }
    .aq-hero h1 { font-size: 29px; }
    .aq-hero-sub { font-size: 16px; }
    .aq-section-head h2 { font-size: 24px; }

    .aq-btn { display: block; width: 100%; }
    .aq-btn + .aq-btn { margin: 10px 0 0; }
    [dir="rtl"] .aq-btn + .aq-btn { margin: 10px 0 0; }

    .aq-auth-brand-body { display: none; }

    .aq-auth-main .wizard > .steps > ul > li { flex: 1 1 100%; }
    .aq-auth-main .wizard > .actions > ul { justify-content: stretch; }
    .aq-auth-main .wizard > .actions > ul > li { flex: 1; }
    .aq-auth-main .wizard > .actions a { display: block; text-align: center; }
}
