/* ========================================================
   MasterStyle.css
   Jhansi Division Jal Sansthan, Jhansi
   Responsive Stylesheet for Master Page (_MasterWithOutLogin.cshtml)
   and Pages using it (Admin Login, Online Login, Forget Password, Contact, etc.)
   ======================================================== */

/* CSS Reset & Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --master-primary: #0379BD;
    --master-primary-dark: #025f94;
    --master-secondary: #008080;
    --master-accent-gold: #ffcc00;
    --master-bg-page: #f5f9fc;
    --master-bg-card: #eef7fc;
    --master-border-card: #bce8f1;
    --master-text-dark: #222222;
    --master-text-muted: #666666;
    --master-font: "Segoe UI", Arial, "Helvetica Neue", sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: var(--master-font);
    background-color: var(--master-bg-page);
    color: var(--master-text-dark);
    -webkit-font-smoothing: antialiased;
}

.master-body {
    background-color: var(--master-bg-page) !important;
}

/* Keyboard Accessible Focus Rings (WCAG 2.1 AA) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #0056b3 !important;
    outline-offset: 2px !important;
}

/* ========================================================
   0. GIGW ACCESSIBILITY TOP TOOLBAR (MATCHING USER SCREENSHOT)
   ======================================================== */
.gov-top-bar {
    width: 100%;
    background-color: #f7f9fa;
    border-bottom: 1px solid #dce1e6;
    padding: 4px 0;
    position: relative;
    z-index: 1000;
}

.gov-top-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.gov-top-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gov-tricolor-badge {
    display: flex;
    flex-direction: column;
    width: 14px;
    height: 10px;
    border-radius: 1px;
    overflow: hidden;
    box-shadow: 0 0 1px rgba(0,0,0,0.4);
}

    .gov-tricolor-badge .tri-saffron {
        background: #ff9933;
        flex: 1;
    }

    .gov-tricolor-badge .tri-white {
        background: #ffffff;
        flex: 1;
    }

    .gov-tricolor-badge .tri-green {
        background: #138808;
        flex: 1;
    }

.gov-state-text {
    font-size: 11.5px;
    font-weight: 600;
    color: #333333;
    letter-spacing: 0.2px;
}

.gov-top-right {
    display: flex;
    align-items: center;
}

.gov-access-controls {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

    .gov-access-controls > li {
        margin: 0;
        padding: 0;
        display: inline-flex;
        align-items: center;
    }

/* GIGW Button Style matching screenshot with blue border */
.gov-access-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #0b5cab;
    border: 1px solid #1a73e8;
    border-radius: 4px;
    padding: 2px 9px;
    font-size: 11.5px;
    font-weight: 500;
    text-decoration: none !important;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease-in-out;
    height: 25px;
    box-sizing: border-box;
}

    .gov-access-btn:hover {
        background: #e8f0fe;
        color: #08427b;
        border-color: #0d47a1;
    }

/* Hindi | English Bilingual Box (Matching Screenshot) */
.gov-lang-box {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #1a73e8;
    border-radius: 4px;
    height: 25px;
    padding: 0 6px;
    box-sizing: border-box;
}

.gov-lang-btn {
    background: transparent;
    border: none;
    padding: 0 3px;
    color: #0b5cab;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
}

    .gov-lang-btn:hover {
        color: #000000;
    }

    .gov-lang-btn.active {
        font-weight: 700;
        color: #000000;
        text-decoration: underline;
    }

.gov-pipe-sep {
    color: #1a73e8;
    font-size: 11px;
    margin: 0 2px;
}

/* Font Sizing / Zoom Buttons (A+, A, A-) */
.gov-font-box {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.gov-font-btn {
    min-width: 25px;
    padding: 2px 6px;
    font-weight: 600;
}

    .gov-font-btn.active {
        background: #0b5cab;
        color: #ffffff;
        border-color: #0b5cab;
    }

.fp-page-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 15px 30px 15px;
}
/* Accessible GIGW Modals */
.ots-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.ots-popup {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: otsFadeIn 0.25s ease-out;
}

@keyframes otsFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.sr-modal {
    max-width: 650px;
}

.ots-popup-header {
    background: var(--master-primary);
    color: #ffffff;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ots-popup-close-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.ots-popup-footer {
    padding: 12px 18px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.ots-btn-primary {
    background: var(--master-primary);
    color: #ffffff;
    border: none;
    padding: 7px 18px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.ots-btn-secondary {
    background: #6c757d;
    color: #ffffff;
    border: none;
    padding: 7px 16px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.sr-modal-body, .fb-modal-body {
    padding: 16px 20px;
    overflow-y: auto;
}

.sr-table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: 10px;
}

.sr-table {
    width: 100%;
    border-collapse: collapse;
}

    .sr-table th, .sr-table td {
        padding: 8px 10px;
        border: 1px solid #dee2e6;
        font-size: 12.5px;
    }

    .sr-table th {
        background: #e9ecef;
        font-weight: 600;
    }

.fb-form-group {
    margin-bottom: 12px;
}

    .fb-form-group label {
        display: block;
        font-size: 12.5px;
        font-weight: 600;
        margin-bottom: 4px;
        color: #333333;
    }

.fb-input, .fb-textarea {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #ccd0d5;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
}

/* ========================================================
   1. MASTER HEADER (RESPONSIVE)
   ======================================================== */
.master-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px 0;
}

.master-header-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.master-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
}

.master-logo-link {
    display: block;
    flex-shrink: 0;
    text-decoration: none !important;
}

.master-logo-img {
    height: 60px;
    max-height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.master-title-box {
    display: flex;
    flex-direction: column;
}

.master-toptext-img {
    height: 52px;
    max-height: 52px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.master-text-fallback {
    text-align: left;
}

.master-title-hi {
    font-size: 19px;
    font-weight: 700;
    color: #1a4d7c;
    margin: 0;
    line-height: 1.2;
}

.master-title-en {
    font-size: 14.5px;
    font-weight: 700;
    color: #1a4d7c;
    margin: 2px 0 0 0;
    letter-spacing: 0.5px;
}

.master-header-right {
    flex-shrink: 0;
    text-align: right;
}

.master-admin-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    padding: 2px 6px;
    transition: transform 0.2s ease;
}

    .master-admin-link:hover {
        transform: scale(1.05);
    }

.master-admin-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #330033;
    object-fit: cover;
    display: block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.master-admin-text {
    font-size: 11px;
    font-weight: 700;
    color: #008080 !important;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.master-admin-link:hover .master-admin-text {
    color: #005a5a !important;
    text-decoration: underline !important;
}

/* Legacy Header Support */
.header {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background: #ffffff;
}

/* ========================================================
   2. MASTER NAVBAR (RESPONSIVE WITH MOBILE HAMBURGER)
   ======================================================== */
.master-navbar, .nrs_menubd {
    width: 100%;
    background: linear-gradient(180deg, #3d3d3d 0%, #1e1e1e 100%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 900;
    border-top: 3px solid #ff9933;
}

.master-nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.master-nav-toggle {
    display: none;
    width: 100%;
    background: transparent;
    border: none;
    padding: 10px 15px;
    color: #ffffff;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    outline: none;
    gap: 8px;
}

.master-nav-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    margin: 3px 0;
    border-radius: 1px;
}

.master-nav-toggle-text {
    margin-left: 6px;
    letter-spacing: 0.5px;
}

.master-nav-menu, #nrs_menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
}

    .master-nav-menu > li, #nrs_menu > li {
        flex: 1 1 auto;
        text-align: center;
        position: relative;
        margin: 0;
        padding: 0;
        list-style: none !important;
        border-right: 1px solid rgba(255, 255, 255, 0.15);
    }

        .master-nav-menu > li:last-child, #nrs_menu > li:last-child {
            border-right: none;
        }

        .master-nav-menu > li > p, #nrs_menu > li > p {
            margin: 0;
            padding: 0;
            height: 100%;
        }

            .master-nav-menu > li > p > a,
            .master-nav-menu > li > p > span,
            #nrs_menu > li > p > a,
            #nrs_menu > li > p > span {
                display: flex;
                align-items: center;
                justify-content: center;
                height: 100%;
                color: #ffffff !important;
                font-size: 13px;
                font-weight: 600;
                padding: 10px 8px;
                text-decoration: none !important;
                white-space: nowrap;
                transition: background 0.15s ease, color 0.15s ease;
            }

        .master-nav-menu > li:hover > p > a,
        .master-nav-menu > li.active > p > a,
        #nrs_menu > li:hover > p > a,
        #nrs_menu > li.active > p > a {
            background: linear-gradient(180deg, #4f4f4f 0%, #2b2b2b 100%);
            color: var(--master-accent-gold) !important;
        }

.master-caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    vertical-align: middle;
    border-top: 4px solid #ffffff;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

/* Dropdown Sub-menus */
.master-dropdown-menu, #nrs_menu > li > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #2b2b2b;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
    list-style: none;
    margin: 0;
    padding: 4px 0;
    z-index: 10000;
    text-align: left;
    border-top: 2px solid #ff9933;
}

.master-nav-menu > li.master-has-dropdown:hover .master-dropdown-menu,
.master-nav-menu > li.master-has-dropdown:focus-within .master-dropdown-menu,
#nrs_menu > li:hover > ul {
    display: block;
}

.master-dropdown-menu li, #nrs_menu > li > ul > li {
    margin: 0;
    padding: 0;
    list-style: none !important;
}

    .master-dropdown-menu li a, #nrs_menu > li > ul > li a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 9px 15px;
        color: #ffffff !important;
        font-size: 12.5px;
        font-weight: 500;
        text-decoration: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        transition: background 0.15s ease;
    }

    .master-dropdown-menu li:last-child a, #nrs_menu > li > ul > li:last-child a {
        border-bottom: none;
    }

    .master-dropdown-menu li a:hover,
    .master-dropdown-menu li a:focus,
    #nrs_menu > li > ul > li a:hover {
        background: #444444;
        color: var(--master-accent-gold) !important;
    }

.master-ext-icon {
    font-size: 11px;
    margin-left: 4px;
    opacity: 0.8;
}

/* ========================================================
   3. MAIN CONTENT CONTAINER
   ======================================================== */
.master-main-content, .master-wrapper-page {
    flex: 1 0 auto;
    width: 100%;
    padding: 25px 0 40px 0;
}

.master-content-container, .master-wrapper-center {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========================================================
   4. LOGIN CARD & FORM STYLING (MATCHING IMAGE 3)
   ======================================================== */
.login-container {
    width: 100%;
    padding: 10px 0;
}

.login-card, .modal-content {
    background: #ffffff;
    /*max-width: 660px;*/
    margin: 15px auto 25px auto;
    border-radius: 6px !important;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid #cce5ff !important;
}

.login-card-header, .modal-header {
    background: var(--master-primary) !important;
    color: #ffffff !important;
    padding: 12px 20px !important;
    border-bottom: none !important;
    text-align: center;
}

.login-card-title, .modal-title {
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    margin: 0 !important;
}

.login-card-body, .panel-body.BACKCOLOR {
    background: var(--master-bg-card) !important;
    background-image: linear-gradient(180deg, #f0f8fc 0%, #e2f2fc 100%) !important;
    padding: 24px 28px !important;
    border: 1px solid var(--master-border-card) !important;
    border-top: none !important;
}

    .login-form .form-group, .panel-body.BACKCOLOR .form-group {
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

    .login-label, .panel-body.BACKCOLOR .control-label {
        color: #333333;
        font-size: 13.5px;
        font-weight: 600;
        text-align: right;
        padding-top: 7px;
    }

    .login-input, .panel-body.BACKCOLOR .form-control {
        height: 38px;
        font-size: 13px;
        border-radius: 0 4px 4px 0 !important;
        border: 1px solid #ccd0d5;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
        transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

        .login-input:focus, .panel-body.BACKCOLOR .form-control:focus {
            border-color: var(--master-primary);
            box-shadow: 0 0 0 3px rgba(3, 121, 189, 0.2);
            outline: none;
        }

.input-group {
    width: 100%;
    display: flex;
}

.input-group-addon {
    background: #f0f4f8;
    border: 1px solid #ccd0d5;
    border-right: none;
    border-radius: 4px 0 0 4px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--master-primary);
    min-width: 42px;
}

    .input-group-addon .blue {
        color: var(--master-primary);
        font-size: 14px;
    }

/* Captcha Area */
.captcha-img-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.captcha-img {
    height: 38px;
    max-height: 38px;
    border: 1px solid #bce8f1;
    border-radius: 4px;
    display: block;
    background: #ffffff;
}

.btn-refresh-captcha {
    background: #ffffff;
    border: 1px solid #ccd0d5;
    color: #555555;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}

    .btn-refresh-captcha:hover {
        background: #e6e6e6;
        color: #000000;
    }

/* Submit Button & Links */
.login-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 5px;
}

.btn-login-submit, #login {
    background-color: var(--master-primary) !important;
    border-color: var(--master-primary-dark) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    padding: 7px 22px !important;
    border-radius: 4px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

    .btn-login-submit:hover, #login:hover {
        background-color: var(--master-primary-dark) !important;
        transform: translateY(-1px);
    }

.login-forget-link, .panel-body.BACKCOLOR a {
    color: var(--master-primary) !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
}

    .login-forget-link:hover, .panel-body.BACKCOLOR a:hover {
        color: var(--master-primary-dark) !important;
        text-decoration: underline !important;
    }

.validation-msg {
    font-size: 12px;
    margin-top: 3px;
    display: block;
}

/* ========================================================
   5. GENERIC STYLES FOR OTHER PAGES USING MASTER
      (Contact Us, Registration, Forget Password, Bill Pay)
   ======================================================== */
.editorDemoTable {
    width: 100% !important;
    max-width: 800px;
    margin: 15px auto;
    border-collapse: collapse;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

    .editorDemoTable td, .editorDemoTable th {
        padding: 8px 12px;
        border: 1px solid #dddddd;
    }

    .editorDemoTable iframe {
        width: 100% !important;
        min-height: 200px;
        border: none;
    }

/* Generic form elements */
.width80 {
    width: 80% !important;
    margin-left: auto;
    margin-right: auto;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ========================================================
   6. FOOTER (RESPONSIVE)
   ======================================================== */
.master-footer, .footer {
    width: 100%;
    background: linear-gradient(180deg, #6c6c6c 0%, #4a4a4a 100%);
    padding: 14px 20px;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.12);
    border-top: 3px solid var(--master-primary);
    margin-top: auto;
}

.master-footer-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.master-footer-links, .footer p:first-child {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

    .master-footer-links a, .footer p:first-child a, .footer p:first-child span {
        color: #ffffff !important;
        font-size: 12.5px;
        text-decoration: none !important;
        font-weight: 500;
    }

        .master-footer-links a:hover, .footer p:first-child a:hover {
            color: var(--master-accent-gold) !important;
            text-decoration: underline !important;
        }

.master-footer-sep {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

.master-footer-copy, .footer .copy {
    color: #ffffff;
    font-size: 12px;
    margin: 0;
    font-weight: 500;
}

/* ========================================================
   7. RESPONSIVE BREAKPOINTS (TABLETS & PHONES)
   ======================================================== */

/* Tablet Screens (under 992px) */
@media (max-width: 991px) {
    .master-header-inner {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .master-branding {
        flex: 1 1 100%;
        justify-content: center;
        margin-bottom: 6px;
    }

    .master-header-right {
        margin-top: 4px;
    }

    /* Mobile Navigation Drawer */
    .master-nav-toggle {
        display: flex;
    }

    .master-nav-menu, #nrs_menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

        .master-nav-menu.master-menu-open, #nrs_menu.master-menu-open {
            display: flex;
        }

        .master-nav-menu > li, #nrs_menu > li {
            width: 100%;
            border-right: none;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            text-align: left;
        }

            .master-nav-menu > li > p > a,
            .master-nav-menu > li > p > span,
            #nrs_menu > li > p > a,
            #nrs_menu > li > p > span {
                padding: 12px 18px;
                white-space: normal;
                justify-content: flex-start;
            }

            .master-dropdown-menu, #nrs_menu > li > ul {
                position: static;
                display: none;
                box-shadow: none;
                background: #242424;
                border-top: none;
                padding: 0;
            }

            .master-has-dropdown.master-dropdown-open .master-dropdown-menu,
            #nrs_menu > li.master-dropdown-open > ul {
                display: block;
            }

            .master-dropdown-menu li a, #nrs_menu > li > ul > li a {
                padding-left: 30px;
            }

    .login-card, .modal-content {
        max-width: 90%;
    }
}

/* Mobile Screens (under 768px) */
@media (max-width: 767px) {
    .gov-top-container {
        flex-direction: column;
        align-items: center;
        padding: 4px 8px;
        gap: 6px;
    }

    .gov-top-left {
        justify-content: center;
        text-align: center;
    }

    .gov-top-right {
        width: 100%;
        justify-content: center;
    }

    .gov-access-controls {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px;
    }

    .gov-access-btn {
        padding: 2px 6px;
        font-size: 10.5px;
        height: 24px;
    }

    .gov-lang-box {
        height: 24px;
        padding: 0 4px;
    }

    .gov-lang-btn {
        font-size: 11px;
    }

    .master-header-inner {
        padding: 0 10px;
    }

    .master-logo-img {
        height: 48px;
        max-height: 48px;
    }

    .master-toptext-img {
        height: 42px;
        max-height: 42px;
    }

    .master-admin-img {
        width: 40px;
        height: 40px;
    }

    .master-admin-text {
        font-size: 9.5px;
    }

    /* Stack Form Labels and Inputs */
    .login-form .form-group, .panel-body.BACKCOLOR .form-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-label, .panel-body.BACKCOLOR .control-label {
        text-align: left !important;
        width: 100% !important;
        margin-bottom: 5px;
        padding-top: 0;
    }

    .login-form .col-sm-8,
    .login-form .col-sm-12,
    .panel-body.BACKCOLOR .col-sm-8,
    .panel-body.BACKCOLOR .col-sm-12,
    .col-sm-offset-4 {
        width: 100% !important;
        margin-left: 0 !important;
        padding-left: 0;
        padding-right: 0;
    }

    .login-card, .modal-content {
        max-width: 100%;
        margin: 10px 0;
    }

    .login-card-body, .panel-body.BACKCOLOR {
        padding: 18px 16px !important;
    }

    .login-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 12px;
    }

    .btn-login-submit, #login {
        width: 100%;
        padding: 10px 0 !important;
    }

    .login-forget-link {
        text-align: center;
        display: block;
    }

    .width80 {
        width: 100% !important;
    }

    /* Footer Mobile Alignment */
    .master-footer-inner {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .master-footer-links, .footer p:first-child {
        justify-content: center;
    }
}

/* Extra Small Phones (under 480px) */
@media (max-width: 480px) {
    .master-branding {
        flex-direction: column;
        text-align: center;
    }

    .master-logo-img {
        height: 42px;
        max-height: 42px;
    }

    .master-toptext-img {
        height: 36px;
        max-height: 36px;
    }

    .login-card-title, .modal-title {
        font-size: 15px !important;
    }

    .captcha-img-wrapper {
        flex-direction: row;
        width: 100%;
    }

    .captcha-img {
        width: calc(100% - 45px);
        object-fit: contain;
    }
}

/* ========================================================
   10. UNIVERSAL RESPONSIVE STYLES FOR ALL VIEWS USING MASTER
   (Registration, Pay Amount, History, Forget Password, Contact)
   ======================================================== */
.BACKCOLOR {
    background-color: #f7fafc !important;
}

.width80 {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.width100 {
    width: 100%;
}

.fieldset.scheduler-border, fieldset.scheduler-border {
    border: 1px solid #bce8f1 !important;
    padding: 12px 18px !important;
    margin: 0 0 18px 0 !important;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

legend.scheduler-border {
    font-size: 14px !important;
    font-weight: 700 !important;
    text-align: left !important;
    width: auto !important;
    padding: 0 10px !important;
    border-bottom: none !important;
    color: var(--master-primary) !important;
    margin-bottom: 0 !important;
}

/* Tables inside content views */
.table-responsive {
    width: 100%;
    margin-bottom: 15px;
    overflow-y: hidden;
    overflow-x: auto;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.editorDemoTable {
    width: 90% !important;
    max-width: 920px;
    margin: 15px auto !important;
    border-collapse: collapse !important;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #cce5ff !important;
    border-radius: 6px;
    overflow: hidden;
}

    .editorDemoTable td, .editorDemoTable th {
        padding: 10px 12px;
        border: 1px solid #e1e8ed !important;
        vertical-align: middle;
    }

    .editorDemoTable thead td {
        background: var(--master-primary);
        color: #ffffff !important;
    }

        .editorDemoTable thead td span strong {
            color: #ffffff !important;
        }

    .editorDemoTable iframe {
        width: 100% !important;
        height: 150px;
        border: 0;
        border-radius: 4px;
    }

/* Responsive adjustments across mobile & tablet */
@media (max-width: 767px) {
    .width80, .width100 {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .panel-body.BACKCOLOR {
        padding: 15px 12px !important;
    }

        .panel-body.BACKCOLOR .form-group {
            margin-left: 0 !important;
            margin-right: 0 !important;
            width: 100% !important;
        }

        /* Override inline styles on inputs like style="width:30%" */
        .panel-body.BACKCOLOR input[type="text"],
        .panel-body.BACKCOLOR input[type="password"],
        .panel-body.BACKCOLOR select,
        .panel-body.BACKCOLOR textarea {
            width: 100% !important;
            max-width: 100% !important;
        }

        .panel-body.BACKCOLOR .input-group {
            width: 100% !important;
        }

        .panel-body.BACKCOLOR .pull-right {
            float: none !important;
            text-align: center !important;
            width: 100% !important;
            margin: 12px 0 0 0 !important;
        }

        .panel-body.BACKCOLOR .col-sm-1,
        .panel-body.BACKCOLOR .col-sm-2,
        .panel-body.BACKCOLOR .col-sm-3,
        .panel-body.BACKCOLOR .col-sm-4,
        .panel-body.BACKCOLOR .col-sm-5,
        .panel-body.BACKCOLOR .col-sm-6,
        .panel-body.BACKCOLOR .col-sm-7,
        .panel-body.BACKCOLOR .col-sm-8,
        .panel-body.BACKCOLOR .col-sm-9,
        .panel-body.BACKCOLOR .col-sm-10,
        .panel-body.BACKCOLOR .col-sm-11,
        .panel-body.BACKCOLOR .col-sm-12 {
            width: 100% !important;
            margin-left: 0 !important;
            padding-left: 0 !important;
            padding-right: 0 !important;
        }

    /* Contact page table responsive mobile view */
    .editorDemoTable {
        width: 100% !important;
    }

        .editorDemoTable tr {
            display: flex;
            flex-direction: column;
            height: auto !important;
            border-bottom: 2px solid #0379bd;
        }

        .editorDemoTable td {
            display: block;
            width: 100% !important;
            height: auto !important;
            box-sizing: border-box;
        }

        .editorDemoTable iframe {
            height: 180px;
        }
}

/* ========================================================
   11. ONLINE USER BILL PAYMENT RESPONSIVE STYLES
   ======================================================== */
.online-pay-container {
    width: 100%;
    padding: 20px 15px 40px 15px;
}

.online-pay-card {
    /*max-width: 820px;*/
    margin: 15px auto 30px auto;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #bce8f1;
    box-shadow: 0 4px 18px rgba(0, 119, 182, 0.12);
    overflow: hidden;
}

.online-pay-header {
    background: #0077b6 !important;
    padding: 12px 20px;
    text-align: center;
    border-bottom: 1px solid #006699;
}

.online-pay-title {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px;
    margin: 0 !important;
    padding: 0;
}

.online-pay-body {
    background: #edf7fc;
    background-image: linear-gradient(135deg, #f2fbfe 0%, #daf0fa 50%, #eff9fd 100%) !important;
    padding: 30px 40px 25px 40px;
}

.online-pay-form {
    width: 100%;
    margin: 0;
    padding: 0;
}

.online-pay-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
}

.online-pay-label {
    font-size: 14px;
    font-weight: 700;
    color: #222222;
    text-align: right;
    line-height: 1.35;
    margin: 0;
    min-width: 175px;
}

.online-pay-input-wrap {
    width: 320px;
    max-width: 100%;
}

    .online-pay-input-wrap .input-group {
        width: 100%;
        display: flex;
    }

    .online-pay-input-wrap .input-group-addon {
        background: #f0f3f6;
        border: 1px solid #ccd0d5;
        border-right: none;
        border-radius: 4px 0 0 4px;
        padding: 6px 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 42px;
        color: #0077b6;
    }

        .online-pay-input-wrap .input-group-addon .blue {
            color: #0077b6;
            font-size: 14px;
        }

    .online-pay-input-wrap .form-control {
        width: 100% !important;
        height: 38px;
        font-size: 13.5px;
        border: 1px solid #ccd0d5;
        border-radius: 0 4px 4px 0 !important;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
        background-color: #ffffff;
        transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

        .online-pay-input-wrap .form-control:focus {
            border-color: #0077b6;
            box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.2);
            outline: none;
        }

.online-pay-btn-wrap {
    text-align: center;
    margin: 18px 0 22px 0;
}

.btn-pay-bill {
    background-color: #5cb85c !important;
    border: 1px solid #4cae4c !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px;
    padding: 7px 28px !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
}

    .btn-pay-bill:hover, .btn-pay-bill:focus {
        background-color: #449d44 !important;
        border-color: #398439 !important;
        color: #ffffff !important;
        box-shadow: 0 3px 8px rgba(68, 157, 68, 0.35);
    }

.online-pay-notice {
    text-align: center;
    color: #e60000;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.6;
    margin: 15px auto 5px auto;
    max-width: 95%;
}

.online-pay-captcha-box {
    margin-bottom: 15px;
}

.online-pay-captcha-img {
    height: 38px;
    max-height: 38px;
    border: 1px solid #ccd0d5;
    border-radius: 4px;
    background: #ffffff;
    display: inline-block;
}

.online-pay-timer-row {
    text-align: center;
    margin-top: 8px;
}

.online-pay-timer {
    color: #e60000;
    font-size: 13.5px;
    font-weight: 700;
    margin: 5px 0;
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
    .online-pay-container {
        padding: 10px 5px 25px 5px;
    }

    .online-pay-card {
        max-width: 100%;
        margin: 5px 0 20px 0;
    }

    .online-pay-header {
        padding: 10px 14px;
    }

    .online-pay-title {
        font-size: 15.5px !important;
    }

    .online-pay-body {
        padding: 20px 14px 18px 14px;
    }

    .online-pay-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 16px;
    }

    .online-pay-label {
        text-align: left;
        width: 100%;
        min-width: 0;
        white-space: normal;
        margin-bottom: 4px;
    }

    .online-pay-input-wrap {
        width: 100%;
    }

    .btn-pay-bill {
        width: 100%;
        max-width: 260px;
        padding: 10px 20px !important;
    }

    .online-pay-notice {
        font-size: 12px;
        line-height: 1.5;
        margin-top: 14px;
        padding: 0 4px;
    }
}

@media (max-width: 480px) {
    .online-pay-title {
        font-size: 14px !important;
        letter-spacing: 0.3px;
    }

    .online-pay-notice {
        font-size: 11px;
    }
}

/* ========================================================
   12. ONLINE PAYMENT BY USER ACTION RESPONSIVE & BILINGUAL STYLES
   ======================================================== */
.pay-action-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 12px 35px 12px;
}

.pay-action-card {
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #bce8f1;
    box-shadow: 0 4px 18px rgba(0, 119, 182, 0.12);
    overflow: hidden;
}

.pay-action-header {
    background: #0077b6 !important;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 2px solid #005f92;
}

.pay-header-left {
    flex: 1 1 auto;
}

.pay-action-title {
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px;
    margin: 0 !important;
    padding: 0;
    line-height: 1.4;
}

.pay-header-lang {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 2px 8px;
}

.btn-lang-pill {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.2;
}

    .btn-lang-pill:hover {
        background: rgba(255, 255, 255, 0.25);
        color: #ffffff;
    }

    .btn-lang-pill.active {
        background: #ffffff;
        color: #0077b6;
        font-weight: 700;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

.lang-pill-sep {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 2px;
    font-size: 11px;
}

.pay-action-body {
    background: #edf7fc;
    background-image: linear-gradient(135deg, #f5fbfe 0%, #e2f2fa 50%, #f0f8fd 100%) !important;
    padding: 24px 24px 30px 24px;
}

.pay-section {
    background: #ffffff;
    border: 1px solid #cce5f4;
    border-radius: 6px;
    margin-bottom: 22px;
    box-shadow: 0 2px 8px rgba(0, 119, 182, 0.06);
    overflow: hidden;
}

.pay-section-header {
    background: #e7f3fa;
    border-bottom: 1px solid #cce5f4;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.pay-section-title {
    color: #006699 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.pay-badge-info {
    background: #0077b6;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
}

.pay-mandatory-text {
    color: #c92a2a;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.pay-alert-ots {
    background: #fff4e6;
    border-left: 4px solid #f76707;
    padding: 10px 14px;
    margin: 12px 16px;
    border-radius: 4px;
    color: #d9480f;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pay-section-body {
    padding: 16px;
}

/* Tax Details Table Responsive Refinements */
.tax-details-wrap {
    margin: 0;
    padding: 0;
    border: 1px solid #d3e5ef;
    border-radius: 4px;
    overflow-x: auto;
}

#tbldetail {
    margin-bottom: 0 !important;
    width: 100%;
    background: #ffffff;
    border-collapse: separate;
}

    #tbldetail td {
        padding: 9px 12px;
        font-size: 13px;
        vertical-align: middle;
        border-top: 1px solid #e8f1f7;
        border-right: 1px solid #e8f1f7;
    }

        #tbldetail td.auto-style4, #tbldetail td.auto-style9 {
            background: #f1f8fc;
            color: #0b4f6c;
            font-weight: 700;
            width: 25%;
        }

        #tbldetail td.auto-style8, #tbldetail td.auto-style7 {
            color: #222222;
            font-weight: 600;
            width: 25%;
        }

        #tbldetail td.addressbox1 {
            color: #222222;
            font-weight: 600;
        }

/* Payment Form Grid */
.pay-form-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 820px;
    margin: 0 auto;
}

.pay-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #fbfdfd;
    border: 1px solid #e2edf3;
    border-radius: 5px;
    transition: all 0.2s ease;
}

    .pay-form-row:hover {
        background: #f3f9fc;
        border-color: #bce0f3;
    }

.pay-form-label {
    flex: 0 0 42%;
    max-width: 42%;
    padding-right: 12px;
}

    .pay-form-label label {
        font-size: 13.5px;
        font-weight: 700;
        color: #1e3a56;
        margin: 0;
        line-height: 1.35;
        display: block;
    }

.pay-form-control-wrap {
    flex: 0 0 58%;
    max-width: 58%;
}

.pay-display-value {
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
}

.pay-amount-raw {
    background: #e8f4fb;
    color: #0077b6;
    font-size: 17px;
    border: 1px solid #bde0f5;
}

.pay-date-val {
    background: #f0f7fb;
    color: #006699;
    font-size: 15px;
    border: 1px solid #d4e8f4;
}

.pay-discount-val {
    background: #e6fcf5;
    color: #0ca678;
    font-size: 16px;
    border: 1px solid #b2f2bb;
}

.pay-ots-val {
    background: #fff4e6;
    color: #f76707;
    font-size: 16px;
    border: 1px solid #ffd8a8;
}

.pay-row-total {
    background: #fff5f5 !important;
    border: 2px solid #ffc9c9 !important;
    padding: 12px 14px;
}

    .pay-row-total .pay-form-label label {
        font-size: 15px;
        color: #c92a2a;
    }

.pay-total-val {
    background: #ffe3e3;
    color: #c92a2a;
    font-size: 21px;
    border: 1px solid #ffa8a8;
    font-weight: 800;
}

.currency-symbol {
    margin-right: 3px;
    font-size: 0.9em;
}

/* Radio buttons pill design */
.pay-radio-group {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.pay-radio-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #c5dbe9;
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .pay-radio-pill:hover {
        border-color: #0077b6;
        background: #f0f8fd;
    }

    .pay-radio-pill input[type="radio"] {
        margin: 0;
        cursor: pointer;
    }

    .pay-radio-pill label {
        margin: 0;
        font-size: 13px;
        font-weight: 700;
        color: #1e3a56;
        cursor: pointer;
    }

/* Captcha Box */
.pay-captcha-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pay-captcha-img {
    height: 40px;
    max-height: 40px;
    border: 1px solid #bce0f3;
    border-radius: 4px;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-refresh-captcha {
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #ccd0d5;
    background: #ffffff;
    color: #0077b6;
    border-radius: 4px;
    transition: all 0.2s ease;
}

    .btn-refresh-captcha:hover {
        background: #e7f3fa;
        color: #005f92;
        border-color: #0077b6;
    }

.captcha-hint {
    display: block;
    width: 100%;
    color: #666666;
    font-size: 11.5px;
    margin-top: 2px;
}

.pay-actions-wrap {
    text-align: center;
    margin-top: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-pay-submit {
    background-color: #2b8a3e !important;
    border-color: #237032 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    padding: 10px 32px !important;
    border-radius: 4px !important;
    box-shadow: 0 3px 8px rgba(43, 138, 62, 0.35);
    transition: all 0.2s ease;
}

    .btn-pay-submit:hover, .btn-pay-submit:focus {
        background-color: #237032 !important;
        box-shadow: 0 4px 12px rgba(35, 112, 50, 0.45);
        transform: translateY(-1px);
    }

.btn-pay-cancel {
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 10px 22px !important;
    border-radius: 4px !important;
    color: #495057 !important;
    background: #f8f9fa !important;
    border-color: #ced4da !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

    .btn-pay-cancel:hover {
        background: #e9ecef !important;
        color: #212529 !important;
    }

/* Responsive Media Queries */
@media (max-width: 991px) {
    .pay-form-label {
        flex: 0 0 46%;
        max-width: 46%;
    }

    .pay-form-control-wrap {
        flex: 0 0 54%;
        max-width: 54%;
    }
}

@media (max-width: 767px) {
    .pay-action-container {
        padding: 8px 4px 20px 4px;
    }

    .pay-action-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 14px;
    }

    .pay-header-lang {
        align-self: flex-start;
    }

    .pay-action-title {
        font-size: 15px !important;
    }

    .pay-action-body {
        padding: 14px 10px 20px 10px;
    }

    .pay-section-header {
        padding: 8px 12px;
    }

    .pay-section-title {
        font-size: 14px !important;
    }

    .pay-section-body {
        padding: 12px 8px;
    }

    .pay-form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px 10px;
    }

    .pay-form-label {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 2px;
    }

    .pay-form-control-wrap {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    .pay-actions-wrap {
        flex-direction: column;
        width: 100%;
    }

    .btn-pay-submit, .btn-pay-cancel {
        width: 100%;
        text-align: center;
    }

    /* Reflow #tbldetail into mobile cards */
    #tbldetail {
        display: block;
        width: 100%;
    }

        #tbldetail tbody {
            display: block;
            width: 100%;
        }

        #tbldetail tr {
            display: flex;
            flex-wrap: wrap;
            margin-bottom: 8px;
            border: 1px solid #d3e5ef;
            border-radius: 4px;
            background: #ffffff;
            padding: 4px;
        }

        #tbldetail td {
            display: block;
            border: none !important;
            padding: 6px 8px !important;
        }

            #tbldetail td.auto-style4, #tbldetail td.auto-style9 {
                width: 48%;
                font-size: 12.5px;
                background: #f1f8fc;
                border-radius: 3px;
                margin-bottom: 2px;
            }

            #tbldetail td.auto-style8, #tbldetail td.auto-style7 {
                width: 52%;
                font-size: 13px;
                margin-bottom: 2px;
            }

            #tbldetail td.addressbox1 {
                width: 100% !important;
            }
}

@media (max-width: 480px) {
    .pay-action-title {
        font-size: 13.5px !important;
    }

    #tbldetail td.auto-style4, #tbldetail td.auto-style9 {
        width: 100% !important;
        background: #eaf4fb;
        padding: 4px 6px !important;
        font-size: 12px;
    }

    #tbldetail td.auto-style8, #tbldetail td.auto-style7, #tbldetail td.addressbox1 {
        width: 100% !important;
        padding: 2px 6px 6px 6px !important;
        font-size: 13.5px;
    }
}
