﻿/* =========================================================
   GRIDS (NHB) – NewSite.css (Optimized Rewrite)
   Date: 2026-03-13
   Notes:
   - Preserves visual design & class names from your previous sheet
   - Removes expensive attribute substring selectors and wide universal selectors
   - Merges duplicated :root tokens; trims heavy transitions
   - Adds .color-maroon and .otp-align-fix utility classes
   - Keeps OTP/CAPTCHA and legacy float layout intact
   ========================================================= */

/* ---------------------------------
   Design tokens (merged :root)
--------------------------------- */
:root {
    /* Brand & palette */
    --nhb-navy: #003366;
    --nhb-navy-2: #0059b3;
    --nhb-deep-blue: #002B45;
    --nhb-slate: #2D3942;
    --nhb-deep-maroon: #7B0000;
    /* Panels, tabs, neutrals */
    --panel-bg: #F2F6FA; /* replaces #F7E3E7 */
    --tab-bg: #3B556A;
    --text-dark: #0A0A0A;
    --neutral-600: #605e5c;
    --neutral-500: #8a8886;
    --neutral-400: #c8c6c4;
    /* Buttons */
    --btn-primary: #0078D4;
    --btn-primary-hover: #106EBE;
    /* Captcha & Fluent tokens */
    --captcha-w: 280px;
    --captcha-h: 110px;
    --captcha-pad: 8px;
    --captcha-radius: 6px;
    --captcha-border: 1px;
    --captcha-border-color: #8a8886;
    --captcha-shadow: 0 1px 2px rgba(0,0,0,0.06);
    --captcha-shadow-focus: 0 0 0 2px rgba(0,120,212,0.30);
    --fluent-primary: #0078d4;
    --fluent-primary-hover: #106ebe;
    --fluent-primary-pressed: #005a9e;
    --fluent-neutral-bg: #f3f2f1;
    --fluent-neutral-bg-hover: #e1dfdd;
    --fluent-neutral-border: #8a8886;
    --fluent-neutral-text: #323130;
    --fluent-danger: #d13438;
    --fluent-danger-hover: #a4262c;
    --fluent-danger-pressed: #8e1b20;
    --fluent-focus: rgba(0,120,212,0.5);
    --radius: 6px;
    --transition: 120ms ease;
    --shadow-rest: 0 1px 2px rgba(0,0,0,0.06);
    --shadow-focus: 0 0 0 3px var(--fluent-focus);
}

/* ---------------------------------
   Base reset-ish
--------------------------------- */
html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: Arial, "Segoe UI", sans-serif;
    font-size: 10pt;
    color: #000;
    padding-left: 0;
}

* {
    box-sizing: border-box;
}

img {
    border: none;
    max-width: 100%;
    height: auto;
}

table {
    border-collapse: collapse;
}

.tableDiv, tableDiv {
    border: 1px solid #000;
}

.disclaimer {
    color: red;
    font-weight: bold;
}

.alert {
    font-size: 10.5pt;
    font-style: italic;
}

/* ---------------------------------
   Layout containers
--------------------------------- */
.main {
    width: 1000px;
}

header.header {
    width: 100%;
    max-width: 100%;
    margin: 0;
    background-color: var(--panel-bg);
}

.headerLeft {
    float: left;
    width: 130px;
    height: 130px;
}

.headerRight {
    float: left;
    width: 770px;
    height: 130px;
    text-align: center;
    line-height: 45px;
}

.headerLeft1 {
    float: left;
    width: 310px;
    height: 130px;
}

.headerRight1 {
    float: left;
    width: 690px;
    height: 130px;
    text-align: center;
    line-height: 45px;
}

.clearBoth {
    clear: both;
}

/* ---------------------------------
   Navigation / tabs / user strip
--------------------------------- */
.menu {
    color: #fff;
    width: 1000px;
    height: 30px;
    line-height: 30px;
    text-align: left;
    background-color: var(--nhb-deep-blue) !important; /* lock with footer */
}

.tab {
    width: 128px;
    height: 25px;
    line-height: 25px;
    float: left;
    border: 1px solid #fff;
    background-color: #003B5C !important;
    color: #fff !important;
}

.user {
    float: left;
    width: 218px;
    height: 30px;
    line-height: 30px;
    border: 1px solid #fff;
    background-color: var(--nhb-deep-blue) !important;
    color: #fff !important;
    text-align: right;
}
/* NAV COLOR LOCK – wipe legacy gradients/images */
.menu, .menu .chromestyle, .menu #chromemenu, .menu #chromemenu ul,
.menu #chromemenu li, .menu #chromemenu a {
    background: none !important;
    background-image: none !important;
    filter: none !important;
}

    .menu, .menu .chromestyle, .menu #chromemenu, .menu #chromemenu ul {
        background-color: var(--nhb-deep-blue) !important;
    }

        .menu #chromemenu li, .menu #chromemenu a {
            background-color: var(--nhb-deep-blue) !important;
        }

            .menu #chromemenu a, .menu #chromemenu a:link, .menu #chromemenu a:visited {
                color: #fff !important;
                text-decoration: none;
            }

                .menu #chromemenu a:hover, .menu #chromemenu a:focus {
                    color: #fff !important;
                    background-color: #003B5C !important;
                }

        .menu .chromestyle, .menu #chromemenu {
            border: none !important;
            box-shadow: none !important;
        }

        .menu .navbar-nav {
            background: none !important;
            background-color: transparent !important;
        }

/* ---------------------------------
   Content & footers
--------------------------------- */
.content {
    width: 1000px;
    min-height: 395px;
    vertical-align: middle;
    padding-top: 25px;
    color: var(--nhb-slate);
    /* Avoid full justification to reduce layout work on long text */
    /* text-align: justify; */
}

.contentmain {
    width: 1000px;
    min-height: 395px;
    vertical-align: middle;
    padding-top: 25px;
    color: #2D3942;
    /* text-align: justify; */
}

.footer, .footer2, .footer3 {
    width: 1000px;
    text-align: center;
    font-size: 10pt;
    background: none;
    background-color: var(--nhb-deep-blue);
    color: #fff;
    border: none;
    font-weight: bold;
}

.footer {
    height: 38px;
    line-height: 38px;
}

.footer2 {
    height: 40px;
    line-height: 38px;
}

.footer3 {
    height: 38px;
    line-height: 38px;
}

/* ---------------------------------
   Text blocks (preserved for layout parity)
--------------------------------- */
.text2 {
    margin: 5px;
    width: 240px;
    height: 35px;
    float: left;
    color: #000;
    font-weight: bold;
    text-align: left;
    display: inline-block;
}

.text21 {
    margin: 1px;
    width: 240px;
    height: 25px;
    float: left;
    font-weight: bold;
    text-align: left;
    display: inline-block;
}

.text215 {
    margin: 1px;
    width: 240px;
    height: 50px;
    float: left;
    font-weight: bold;
    text-align: left;
    display: inline-block;
}

.text111 {
    width: 25px;
    float: left;
    vertical-align: top;
}

.text210 {
    margin: 1px;
    width: 285px;
    height: 35px;
    float: left;
    font-weight: bold;
    text-align: left;
    display: inline-block;
    overflow: hidden;
}

.text210m {
    margin: 1px;
    width: 300px;
    height: 170px;
    float: left;
    font-weight: bold;
    text-align: left;
    display: inline-block;
    overflow: hidden;
}

.text2102 {
    margin: 1px;
    width: 355px;
    height: 35px;
    float: left;
    font-weight: bold;
    text-align: left;
}

.text21023 {
    margin: 1px;
    width: 640px;
    height: 90px;
    float: left;
    font-weight: bold;
    text-align: left;
}

.text21010 {
    margin: 1px;
    width: 215px;
    height: 25px;
    float: left;
    font-weight: bold;
    text-align: left;
    display: inline-block;
    overflow: hidden;
}

.text222 {
    margin: 1px;
    width: 300px;
    height: 25px;
    float: left;
    font-weight: bold;
    text-align: left;
    display: inline-block;
}

.text222hindi {
    margin: 1px;
    width: 300px;
    height: 60px;
    float: left;
    font-weight: bold;
    text-align: left;
    display: inline-block;
}

.text211 {
    margin: 1px;
    width: 265px;
    height: 30px;
    float: left;
    font-weight: bold;
    text-align: left;
    display: inline-block;
}

.text212 {
    margin: 1px;
    width: 285px;
    height: 55px;
    float: left;
    font-weight: bold;
    text-align: left;
    display: inline-block;
}

.text2123 {
    margin: 1px;
    width: 285px;
    height: 85px;
    float: left;
    font-weight: bold;
    text-align: left;
    display: inline-block;
}

.text9 {
    margin: 2px;
    width: 35px;
    height: 20px;
    float: left;
    font-weight: bold;
    font-size: 9pt;
    text-align: left;
    display: inline-block;
}

.text10 {
    margin: 2px;
    width: 85px;
    height: 20px;
    float: left;
    font-weight: bold;
    font-size: 8pt;
    text-align: left;
    display: inline;
}

.text11 {
    margin: 2px;
    width: 115px;
    height: 20px;
    float: left;
    font-weight: bold;
    font-size: 8pt;
    text-align: left;
    display: inline-block;
}

.text {
    margin: 5px;
    width: 190px;
    height: 30px;
    float: left;
    font-weight: bold;
    text-align: left;
    display: inline-block;
}

.text20 {
    margin: 2px;
    width: 190px;
    height: 30px;
    float: left;
    font-weight: bold;
    text-align: left;
}

.text3 {
    margin: 3px;
    width: 300px;
    height: 20px;
    float: left;
    font-weight: bold;
    font-size: 9pt;
    text-align: left;
    display: inline-block;
}

.textDropDown {
    width: 200px;
    height: 20px;
    float: left;
    display: inline-block;
}

/* ---------------------------------
   Panels / logins
--------------------------------- */
.login {
    width: 540px;
    height: 160px;
    background-color: #ADBACE;
    border: 1px solid #6B869C;
    text-align: center;
    margin: 30px;
    padding-left: 25px;
    padding-top: 20px;
    color: #000;
}

.Adminlogin {
    width: 500px;
    height: 300px;
    background-color: #ADBACE;
    border: 1px solid #6B869C;
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px;
    padding: 20px 25px;
    text-align: center;
}

.login2 {
    width: 462px;
    background-color: #E6E6E6;
    border: 1px solid #6B869C;
    text-align: center;
    padding: 20px 40px 0 20px;
    color: #000;
}

#DivMain {
    display: flex;
    align-items: center;
}

.login3 {
    width: 400px;
    height: 70px;
    background-color: #E6E6E6;
    border: 1px solid #6B869C;
    text-align: center;
    padding: 20px 40px 0 20px;
    color: #000;
}

.login2forHindi {
    width: 400px;
    height: 200px;
    background-color: #ADBACE;
    border: 1px solid #6B869C;
    text-align: center;
    padding: 40px;
    color: #000;
}

/* Pink panels -> soft grey-blue with maroon border */
.changePassword, .userMaster, .modelMaster, .balanceSheet2, .balanceSheet, .companyMaster, .complaintTypeMaster, .transactionFormComplaintDetail {
    background-color: var(--panel-bg);
    border: 1px solid var(--nhb-deep-maroon);
    color: var(--text-dark);
}

.changePassword {
    width: 470px;
    height: 200px;
    text-align: center;
    margin: 40px;
    padding-left: 50px;
    padding-top: 20px;
}

.userMaster {
    width: 470px;
    height: 400px;
    margin: 40px;
    text-align: center;
    padding-left: 50px;
    padding-top: 20px;
}

.modelMaster {
    width: 470px;
    height: 600px;
    margin: 20px;
    text-align: center;
    padding-left: 50px;
    padding-top: 10px;
}

.balanceSheet2 {
    width: 630px;
    margin: 20px;
    text-align: center;
    padding: 10px 50px 0 50px;
    font-size: 10pt;
}

.balanceSheet {
    width: 630px;
    height: 680px;
    margin: 20px;
    text-align: center;
    padding: 10px 50px 0 50px;
    font-size: 10pt;
}

.companyMaster {
    width: 495px;
    height: 350px;
    margin: 30px 40px;
    text-align: left;
    padding-left: 75px;
    padding-top: 25px;
}

.complaintTypeMaster {
    width: 470px;
    height: 220px;
    margin: 30px 40px;
    text-align: left;
    padding-left: 75px;
    padding-top: 25px;
}

.transactionFormComplaintDetail {
    width: 895px;
    height: 600px;
    margin: 30px 40px;
    text-align: center;
    padding-left: 25px;
}

.login {
    height: auto !important;
    min-height: 200px !important; /* optional */
}

/* ---------------------------------
   Buttons
--------------------------------- */
.button {
    color: #fff;
    background-color: var(--btn-primary);
    font-size: 8pt;
    font-weight: bold;
    line-height: 20px;
    height: 22px;
    border: 1px solid var(--btn-primary);
}

    .button:hover {
        background-color: var(--btn-primary-hover);
    }

/* Fluent buttons */
.btn, .btn-modern, .btn-secondary, .btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 18px;
    border-radius: var(--radius);
    font: 600 15px/1 "Segoe UI", Arial, sans-serif;
    border: 1px solid transparent;
    cursor: pointer;
    box-shadow: var(--shadow-rest);
    transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn-modern, .btn-primary {
    background-color: var(--fluent-primary);
    border-color: var(--fluent-primary);
    color: #fff;
}

    .btn-modern:hover, .btn-primary:hover {
        background-color: var(--fluent-primary-hover);
        border-color: var(--fluent-primary-hover);
    }

    .btn-modern:active, .btn-primary:active {
        background-color: var(--fluent-primary-pressed);
        border-color: var(--fluent-primary-pressed);
        transform: translateY(.5px);
    }

.btn-secondary {
    background-color: var(--fluent-neutral-bg);
    border-color: var(--fluent-neutral-border);
    color: var(--fluent-neutral-text);
}

    .btn-secondary:hover {
        background-color: var(--fluent-neutral-bg-hover);
        border-color: #605e5c;
    }

    .btn-secondary:active {
        background-color: #d2d0ce;
        border-color: #605e5c;
        transform: translateY(.5px);
    }

.btn-danger {
    background-color: var(--fluent-danger);
    border-color: var(--fluent-danger);
    color: #fff;
}

    .btn-danger:hover {
        background-color: var(--fluent-danger-hover);
        border-color: var(--fluent-danger-hover);
    }

    .btn-danger:active {
        background-color: var(--fluent-danger-pressed);
        border-color: var(--fluent-danger-pressed);
        transform: translateY(.5px);
    }

    .btn-modern:focus-visible, .btn-primary:focus-visible, .btn-secondary:focus-visible, .btn-danger:focus-visible {
        outline: none;
        box-shadow: var(--shadow-rest), var(--shadow-focus);
    }

    .btn-modern:disabled, .btn-primary:disabled, .btn-secondary:disabled, .btn-danger:disabled, [disabled].btn-modern, [disabled].btn-secondary, [disabled].btn-danger {
        cursor: not-allowed;
        opacity: .6;
        box-shadow: none;
        transform: none;
    }

.otp-page .btn-modern-wide {
    width: 470px;
    height: 50px;
    font-size: 20px;
}

.otp-page .btn-modern-medium {
    width: 400px;
    height: 50px;
    font-size: 20px;
}

.btn-50 {
    height: 50px;
    line-height: 50px;
    font-size: 20px;
}

/* ---------------------------------
   Links & titles
--------------------------------- */
.hyperlink, .hyperlink2 {
    text-decoration: none;
    border: 0;
}

a.hyperlink, a.hyperlink2, .microSubTitle, .microSubTitle2 {
    color: var(--nhb-navy) !important;
    font-weight: 400;
    text-decoration: underline;
}

    a.hyperlink:hover, a.hyperlink2:hover {
        color: var(--nhb-navy-2) !important;
    }

.contentRight a.hyperlink, .contentRight a.hyperlink2, .contentRight .microSubTitle, .contentRight .microSubTitle2 {
    font-weight: 400 !important;
}

.pageHeading {
    color: var(--nhb-deep-maroon);
    font-weight: bold;
}

.pageHeader {
    font-weight: bold;
    color: var(--nhb-deep-maroon);
    font-size: 12pt;
}

.headerTitle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 30px 10px;
    font-family: Impact, "Segoe UI", Arial, sans-serif;
    font-size: 19pt;
    color: #0A0A0A;
}

    .headerTitle p {
        margin: 0;
        line-height: 1.4;
    }

.headerTitle1 {
    font-family: Impact, "Segoe UI", Arial, sans-serif;
    font-size: 19pt;
    color: var(--nhb-navy);
}

.hTitle {
    font-size: 14pt;
    color: #0b0b0c;
}

.iTitle {
    font-size: 10pt;
    color: red;
    font-weight: bold;
    line-height: 35px;
}

.boxTitle {
    font-size: 12pt;
    color: #521C8C;
    line-height: 25px;
}

.microTitle {
    font-size: 8.5pt;
    color: #521C8C;
    line-height: 10px;
}

.title {
    font-size: 13pt;
    color: var(--nhb-navy) !important;
    line-height: 25px;
}

.red {
    color: red;
}

.pageHeading, .pageHeader, .title, .headerTitle1 {
    text-wrap: balance;
}

/* Utility class to replace inline maroon styles */
.color-maroon {
    color: var(--nhb-deep-maroon) !important;
}

/* ---------------------------------
   Content helpers & grids
--------------------------------- */
.contentPara {
    line-height: 22px;
    text-align: justify;
}

.tableStyle {
    border: 2px solid gray;
    padding: 15px;
    text-align: center;
    width: 250px;
}

.gridText {
    height: 18px;
    width: 200px;
}

.gridDropDown {
    height: 22px;
    width: 205px;
    text-align: left;
    padding: 2px;
}

.ddl {
    width: 150px;
}

.contentLeft {
    float: left;
    width: 665px;
    margin: 10px;
    color: #000;
}

.contentRight {
    float: left;
    width: 240px;
    margin: 10px;
    border: 2px solid #777;
    color: #000;
}

/* ---------------------------------
   Inputs (Fluent-aligned)
--------------------------------- */
.textbox {
    text-align: right;
    width: 200px;
    height: 18px;
}

.textLabel {
    text-align: center;
}

.textAmount {
    text-align: right;
}

.textboxEdit {
    text-align: left;
}

.dListLabel {
    width: 120px;
    float: left;
}

.dListText {
    width: 60px;
    float: left;
}

.SubTotalRowStyle {
    border: 1px solid black;
    background-color: #F5A9BC;
    font-weight: bold;
}

.GrandTotalRowStyle {
    border: 1px solid black;
    background-color: gray;
    font-weight: bold;
    color: #000;
}

.GroupHeaderStyle {
    border: 1px solid black;
    background-color: #81BEF7;
    font-weight: bold;
}

.Spliter {
    border-left: none;
    border-right: none;
    background-color: aqua;
}

.contentStyle {
    border: 2px double #6B869C;
    margin: 10px;
    padding: 10px;
}

.trdiv {
    width: 350px;
    height: 20px;
    vertical-align: top;
}

.trdivHome {
    width: 250px;
    line-height: 40px;
}

.hyperlinkImage {
    text-decoration: none;
    color: white;
    background-color: white;
    border: 0;
}

.txtInputLabel {
    margin: 1px 10px 1px 1px;
    width: 285px;
    height: 35px;
    float: left;
    font-weight: bold;
    text-align: left;
    display: inline-flexbox;
    overflow: hidden;
}

.txtInputContent {
    margin: -35px 1px 1px 1px;
    padding-left: 25px;
    width: 75%;
    height: auto;
    float: right;
    text-align: left;
    display: inline-block;
    position: relative;
    overflow: auto;
}

/* Modern input */
.myInput {
    width: 100%;
    padding: 6px 10px;
    height: 25px;
    font-size: 15px;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #201f1e;
    background-color: #fff;
    border: 1px solid #8a8886;
    border-radius: 4px;
    outline: none;
    transition: background-color .15s ease, border-color .15s ease; /* trimmed */
}

    .myInput:disabled, .myInput[disabled] {
        background-color: #f3f2f1;
        color: #a19f9d;
        border-color: #c8c6c4;
        cursor: not-allowed;
        opacity: 1;
    }

    .myInput:read-only {
        background-color: #faf9f8;
        color: #605e5c;
        border-color: #c8c6c4;
        cursor: default;
    }

    .myInput:hover {
        border-color: #605e5c;
        background-color: #faf9f8;
    }

    .myInput:focus {
        border-color: #0078d4;
        background-color: #f3f9ff;
        box-shadow: 0 0 0 2px rgba(0,120,212,.30);
    }

.myInput--lg {
    height: 30px;
    padding: 8px 12px;
    font-size: 16px;
}

.myInput--lgv {
    height: 35px;
    padding: 8px 12px;
    font-size: 17px;
}

.myInput--xl {
    height: 48px;
    padding: 10px 14px;
    font-size: 17px;
}

.myInput--fixed {
    width: 220px;
    height: 36px;
    font-size: 14px;
}

select.myInput {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    line-height: 32px;
    padding-right: 32px;
    background-image: linear-gradient(45deg,transparent 50%,#605e5c 50%), linear-gradient(135deg,#605e5c 50%,transparent 50%), linear-gradient(to right,transparent,transparent);
    background-position: calc(100% - 18px) 14px, calc(100% - 12px) 14px, 100% 0;
    background-size: 6px 6px, 6px 6px, 2.5em 100%;
    background-repeat: no-repeat;
}

    select.myInput.myInput--lg {
        line-height: 40px;
        padding-right: 36px;
    }

    select.myInput.myInput--xl {
        line-height: 48px;
        padding-right: 40px;
    }

    select.myInput::-ms-expand {
        display: none;
    }

    select.myInput:hover {
        background-image: linear-gradient(45deg,transparent 50%,#323130 50%), linear-gradient(135deg,#323130 50%,transparent 50%), linear-gradient(to right,transparent,transparent);
    }

textarea.myInput {
    height: auto;
    min-height: 96px;
    line-height: 1.35;
    padding: 8px 12px;
    resize: vertical;
}

    textarea.myInput.myInput--lg {
        min-height: 128px;
    }

    textarea.myInput.myInput--xl {
        min-height: 168px;
    }

.input-rounded {
    width: 200px;
    padding: 6px 10px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid #8a8886;
    font-size: 15px;
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #fff;
    color: #201f1e;
    outline: none;
    transition: all .15s ease;
    text-align: center;
}

    .input-rounded:hover {
        border-color: #605e5c;
    }

    .input-rounded:focus {
        border-color: #0078d4;
        background-color: #f3f9ff;
        box-shadow: 0 0 0 2px rgba(0,120,212,.30);
    }

    .input-rounded.captcha-input {
        font-size: 45px;
        letter-spacing: .35em;
        font-weight: 700;
        height: 32px;
        line-height: 32px;
        text-indent: .25em;
    }

        .input-rounded.captcha-input:focus {
            letter-spacing: .28em;
            background-color: #edf3ff;
        }

.input-rounded--sm {
    width: 140px;
    height: 14px;
    padding: 4px 8px;
    font-size: 13px;
}

.input-rounded--xs {
    width: 120px;
    height: 12px;
    padding: 3px 6px;
    font-size: 12px;
}

.otp-page .input-rounded {
    height: 32px;
    width: 200px;
    padding: 8px 12px;
    font-size: 16px;
}

.otp-page select.input-rounded {
    line-height: 40px;
    padding-right: 36px;
}

.mobile-page .input-rounded {
    height: 50px;
    width: 450px;
    padding: 8px 12px;
    font-size: 36px;
    letter-spacing: 6px;
}

.mobile-page .input-rounded--sm {
    height: 35px;
    width: 320px;
    padding: 8px 12px;
    font-size: 25px;
    letter-spacing: 6px;
    border-radius: 4px;
    border: 1px solid #8a8886;
    text-align: center;
    transition: background-color .2s ease, border-color .2s ease;
}

    .mobile-page .input-rounded--sm:focus {
        background-color: #e6f0ff;
        border-color: #005a9e;
        outline: none;
    }

/* ---------------------------------
   Validators & focus visuals
--------------------------------- */
.validator-container {
    display: block;
    width: 240px;
    min-height: 28px;
    margin-top: 4px;
}

.validator-msg {
    display: block;
    color: red;
    font-size: 11px;
    line-height: 1.2;
    margin: 0;
    padding: 0;
}

/* WCAG 2.1 SC 1.4.3 – Accessible validation text */
.validator-msg {
    color: #B00020; /* Contrast ≈ 5.6 : 1 on #E6E6E6 */
    font-size: 0.875rem;
    line-height: 1.4;
}

    .validator-msg + .validator-msg {
        margin-top: 2px;
    }

    .validator-msg::before {
        content: "⚠ ";
        font-weight: 700;
    }

.validator-msg {
    min-height: 1.2em;
    display: block;
}

.validator-msg {
    display: block;
    min-height: 1.4em; /* reserves space even when hidden */
}

:focus {
    outline: 2px solid #0a58ca;
    outline-offset: 2px;
}

:focus-visible {
    outline: 3px solid #0a58ca;
    outline-offset: 3px;
}

.btn:focus, .btn:focus-visible, .button:focus, .button:focus-visible {
    outline: 3px solid #0a58ca;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(13,110,253,0.3);
}

/* ---------------------------------
   Captcha / audio
--------------------------------- */
.divCaptcha {
    float: left;
    height: 220px;
    width: 433px;
    background-image: url('images/captcha_back.png');
    background-repeat: no-repeat;
    padding-top: 1px;
}

.rcCaptchaAudioLink {
    margin-left: 20px;
    font-size: 16px;
    float: left;
    color: white;
    display: block;
    line-height: 1.5em;
    background-image: url('images/audio_but.png');
    background-repeat: no-repeat;
    height: 30px;
    padding-left: 40px;
    margin-top: 12px;
    width: 120px;
}

    .rcCaptchaAudioLink:hover {
        color: #F0F0F0;
    }

.rcCaptchaImage {
    float: left;
}

.qsfPanel {
    float: left;
    margin-left: 20px;
}

.errorMessage {
    margin-left: 30px;
    line-height: 20px;
}

.qsf-wrapper a.rcCaptchaAudioLink {
    color: #fff;
}

#audioCaptchaExample.demo-container {
    background: transparent;
    border: none;
}

.captcha-audio-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #8a8886;
    background-color: #f3f2f1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}

    .captcha-audio-btn svg {
        width: 18px;
        height: 18px;
        fill: #323130;
    }

    .captcha-audio-btn:hover {
        background-color: #e1dfdd;
        border-color: #605e5c;
    }

    .captcha-audio-btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(0,120,212,.4);
    }

/* Inline captcha row (narrowed to avoid wide universal selector) */
.captcha-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    text-align: center;
    float: none !important;
}

    .captcha-inline > img,
    .captcha-inline > .captcha-input,
    .captcha-inline > .captcha-refresh-btn {
        float: none !important;
    }

.captcha-img {
    width: 180px;
    height: 40px;
    object-fit: fill;
    background-color: transparent;
    border: 1px solid #8a8886;
    border-radius: 6px;
    padding: 5px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.captcha-refresh-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #8a8886;
    background-color: #f3f2f1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}

    .captcha-refresh-btn:hover {
        background-color: #e1dfdd;
        border-color: #605e5c;
    }

    .captcha-refresh-btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(0,120,212,0.4);
    }

    .captcha-refresh-btn svg {
        width: 18px;
        height: 18px;
        fill: #323130;
    }

    /* === ACCESSIBLE FOCUS FOR CAPTCHA REFRESH BUTTON === */
    /*.captcha-refresh-btn:focus,
    .captcha-refresh-btn:focus-visible {
        outline: 3px solid #0A58CA;*/ /* High-contrast blue */
    /*outline-offset: 3px;*/ /* Visible separation */
    /*box-shadow: none;*/ /* Remove weak legacy glow */
    /*}*/

    /* Optional: make focus even clearer on light backgrounds */
    /*.captcha-refresh-btn:focus-visible {
        background-color: #D6E8FF;*/ /* Light blue fill */
    /*border-radius: 50%;
    }*/

    /* === Accessible Focus Style: Refresh CAPTCHA === */
    /*.captcha-refresh-btn:focus,
    .captcha-refresh-btn:focus-visible {
        outline: 3px solid #003A8F;*/ /* Deep sea blue outline */
    /*outline-offset: 3px;
        background-color: #003A8F;*/ /* Deep sea blue fill */
    /*border-color: #003A8F;
    }*/

    /* Ensure the icon stays visible on dark background */
    /*.captcha-refresh-btn:focus-visible svg,
        .captcha-refresh-btn:focus-visible svg path {
            fill: #ffffff;*/ /* White icon for contrast */
    /*}*/

    /* =========================================================
        WCAG 2.4.7 / 2.4.11 – FINAL Focus Indicator
        Refresh CAPTCHA (keyboard only)
    ========================================================= */

    .captcha-refresh-btn:focus,
    .captcha-refresh-btn:focus-visible {
        outline: 3px solid #003A8F; /* Deep sea blue outline */
        outline-offset: 3px;
        background-color: #003A8F; /* Deep sea blue fill */
        border-color: #003A8F;
    }

    /* Ensure SVG icon contrast on dark background */
    .captcha-refresh-btn:focus-visible svg,
    .captcha-refresh-btn:focus-visible svg path {
        fill: #ffffff;
    }

    .captcha-refresh-btn:focus-visible {
        background-color: #003A8F !important;
    }

    /* Hover only when NOT focused via keyboard */
    .captcha-refresh-btn:hover:not(:focus-visible) {
        background-color: #e1dfdd;
    }



.captcha-input {
    width: 150px;
    padding: 6px 10px;
    height: 32px;
    font-size: 15px;
    font-family: "Segoe UI", Arial, sans-serif;
    border: 1px solid #8a8886;
    border-radius: 4px;
    background-color: #fff;
    color: #201f1e;
    text-align: center;
    outline: none;
    transition: all .15s ease;
}

    .captcha-input:hover {
        border-color: #605e5c;
        background-color: #faf9f8;
    }

    .captcha-input:focus {
        border-color: #0078d4;
        background-color: #f3f9ff;
        box-shadow: 0 0 0 2px rgba(0,120,212,.30);
    }

.captcha-wrapper {
    float: none !important;
    clear: both !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.captcha-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    clear: both;
    width: 100%;
}

.captcha-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.captcha-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    float: none !important;
    clear: both !important;
    width: auto !important;
}

    .captcha-row > * {
        float: none !important;
    }

.captcha-refresh-btn {
    padding: 6px;
}

/* WCAG 2.4.7 – Refresh CAPTCHA focus indicator */
/* STRONG, AUDIT-SAFE focus for Refresh CAPTCHA */
/*.captcha-refresh-btn:focus,
    .captcha-refresh-btn:focus-visible {
        outline: 3px solid #0A58CA;
        outline-offset: 3px;*/
/* Critical additions */
/*background-color: #E7F1FF;*/ /* light blue fill */
/*border-radius: 6px;
    }*/

.captcha-inline,
.captcha-island {
    overflow: visible;
}

/* === STRONG, AUDIT-SAFE FOCUS FOR CAPTCHA REFRESH === */
/*.captcha-refresh-btn:focus,
.captcha-refresh-btn:focus-visible {
    outline: 3px solid #003A8F;*/ /* darker blue */
/*outline-offset: 2px;
    background-color: #D6E8FF;*/ /* visible light-blue fill */
/*border-radius: 8px;
}*/

.captcha-refresh-btn {
    padding: 8px; /* increases visible focus area */
    min-width: 36px;
    min-height: 36px;
}

/* Reinforce focus visibility via container */
/*.captcha-inline:focus-within {
    outline: 3px solid #003A8F;
    outline-offset: 4px;
    border-radius: 10px;
}*/
/* ✅ Explicitly neutralize container focus */
.captcha-inline:focus-within,
.captcha-island:focus-within {
    outline: none !important;
    box-shadow: none !important;
}

/* ---------------------------------
   Utilities / a11y
--------------------------------- */
.off-screen {
    clip: rect(1px,1px,1px,1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
}

.skip-link {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    color: var(--nhb-navy);
    background: #fff;
    font-weight: 700;
}

    .skip-link:focus {
        position: static;
        width: auto;
        height: auto;
        padding: 8px 12px;
        background: #000;
        color: #fff;
        z-index: 1000;
        outline: 3px solid var(--nhb-navy);
    }

/* ---------------------------------
   Form alignment & login grid
--------------------------------- */
.rightAlignLabel {
    display: block;
    width: 130px;
    text-align: right;
    font-size: 16px;
    font-weight: 700;
}

.centreAlignLabel {
    display: block;
    text-align: center;
}

.otp-label-wrapper {
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
}

.otpLabel {
    display: inline-block;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.form-row {
    align-items: center;
    margin-bottom: 12px;
    font-weight: bold;
}

    .form-row > div {
        flex: 0 0 auto;
    }

    .form-row br {
        display: none;
    }

    .form-row .validator, .form-row .field-message {
        display: block;
        margin-top: 4px;
        font-size: 12px;
        color: #c00;
    }

.form-label {
    width: 120px;
    text-align: right;
    margin-right: 10px;
    font-weight: 600;
}

.login-form {
    width: 500px;
    padding: 20px 25px;
    background-color: #ADBACE;
    border: 1px solid #6B869C;
    font-family: "Segoe UI", Arial, sans-serif;
}

    .login-form .form-row {
        display: grid;
        grid-template-columns: 140px auto;
        column-gap: 10px;
        margin-bottom: 14px;
    }

    .login-form .rightAlignLabel {
        text-align: right;
        font-size: 16px;
        font-weight: 700;
        line-height: 36px;
    }

    .login-form .field {
        display: flex;
        flex-direction: column;
    }

    .login-form .myInput--fixed {
        width: 220px;
        height: 36px;
        font-size: 14px;
    }

    .login-form .validation-block {
        min-height: 14px;
        margin-top: 4px;
    }

    .login-form .validator, .login-form span[id*="Validator"] {
        display: block;
        font-size: 11px;
        color: red;
        line-height: 1.2;
    }

    .login-form br {
        display: none;
    }

.validation-block {
    min-height: 28px;
}

/* ---------------------------------
   OTP page scoped fixes
--------------------------------- */
#dvEMailOTP, #DivAlternate { /* anchors for specificity */
}

    #dvEMailOTP.text, #DivAlternate.text, #dvEMailOTP .text, #DivAlternate .text, .otp-container.text {
        margin: 0 !important;
        width: auto !important;
        height: auto !important;
        float: none !important;
        display: block !important;
        font-weight: 400 !important;
        text-align: inherit !important;
    }

    #dvEMailOTP .otp-container, #DivAlternate .otp-container {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
/* Add this class on the OTP container to avoid scanning inline styles */
.otp-align-fix * {
    float: none !important;
}

#dvEMailOTP .validator-msg, #DivAlternate .validator-msg {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.2;
    color: #c00;
}

#dvEMailOTP .mobile-page .input-rounded, #DivAlternate .mobile-page .input-rounded {
    height: 50px;
    width: 450px;
    padding: 8px 12px;
    font-size: 36px;
    letter-spacing: 6px;
    text-align: center;
}

#dvEMailOTP .captcha-inline.captcha-island, #DivAlternate .captcha-inline.captcha-island {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    text-align: center !important;
}

#dvEMailOTP .captcha-img, #DivAlternate .captcha-img {
    width: 240px !important;
    height: 50px !important;
}

#dvEMailOTP .captcha-input, #DivAlternate .captcha-input {
    width: 450px !important;
    max-width: 90vw !important;
}

#dvEMailOTP .btn-modern-wide, #DivAlternate .btn-modern-wide {
    width: 470px;
    height: 50px;
    font-size: 20px;
}

#dvEMailOTP .btn-modern-medium, #DivAlternate .btn-modern-medium {
    width: 400px;
    height: 50px;
    font-size: 20px;
}

/* ---------------------------------
   Reduced motion respect
--------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .btn, .btn-modern, .btn-secondary, .btn-danger {
        transition: none;
    }
}

/* ---------------------------------
   Responsive tweaks
--------------------------------- */
@media (max-width: 420px) {
    :root {
        --captcha-w: 300px;
        --captcha-h: 100px;
    }
}

/* OTP container must grow naturally */
#dvEMailOTP,
#dvEMailOTP .otp-container {
    height: auto !important;
    min-height: 0 !important
}

.proceed-wrap {
    margin-top: 24px;
    margin-bottom: 16px;
}

/* --- CRITICAL FIX: Allow OTP block to grow normally --- */
#dvEMailOTP,
#dvEMailOTP .otp-container {
    display: block !important; /* kill flex */
    height: auto !important; /* remove fixed height */
    min-height: 0 !important;
}

.validator-org {
    color: #B00020; /* Accessible red */
    font-weight: 700;
    margin-left: 2px;
}

/* Required-field indicator ONLY */
.required-star {
    color: #B00020; /* same accessible red */
    font-weight: 700;
    margin-left: 2px;
}

/* =========================================================
   ✅ FINAL, AUTHORITATIVE FIX – Refresh CAPTCHA Focus
   (Keyboard focus – WCAG 2.4.7 / 2.4.11)
========================================================= */
.captcha-refresh-btn:focus-visible,
.captcha-refresh-btn:focus {
    background-color: #003A8F !important;
    border-color: #003A8F !important;
    /* Kill earlier styles */
    box-shadow: none !important;
    outline: 3px solid #003A8F !important;
    outline-offset: 3px;
    /* Ensure background visibly paints */
    background-clip: padding-box;
}

    /* Icon contrast */
    .captcha-refresh-btn:focus-visible svg,
    .captcha-refresh-btn:focus-visible svg path {
        fill: #ffffff !important;
    }

/* Mouse hover MUST NOT override keyboard focus */
.captcha-refresh-btn:hover:not(:focus-visible) {
    background-color: #e1dfdd;
}
