@import url('https://fonts.googleapis.com/css2?family=Arial:wght@400;700&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');

:root {
    --hdfc-navy: #003D7A;
    --hdfc-sky-header: #6CA3DF;
    --hdfc-utility-bg: #EBF3FA;
    --hdfc-sidebar-active: #FFFFFF;
    --hdfc-sidebar-inactive: #DCE8F5;
    --hdfc-sidebar-border: #B6D2EC;
    --hdfc-strip-bg: #DCE8F5;
    --hdfc-text-dark: #111111;
    --hdfc-link-blue: #003D7A;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #FFFFFF;
    color: var(--hdfc-text-dark);
    margin: 0;
    padding: 0;
    font-size: 12px;
    overflow-x: hidden;
}

/* 1. Topmost Utility Links Bar */
.hdfc-top-utility {
    background-color: #EBF3FA;
    padding: 5px 24px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    font-size: 11px;
    border-bottom: 1px solid #D5E4F3;
}

.hdfc-top-utility a {
    color: #003D7A;
    text-decoration: none;
    font-family: Arial, sans-serif;
}

.hdfc-top-utility a:hover {
    text-decoration: underline;
}

/* 2. Main Light-Blue Header Banner */
.hdfc-main-header-banner {
    background: linear-gradient(to bottom, #7DB2E8 0%, #6CA3DF 100%);
    padding: 10px 24px 0 24px;
    position: relative;
}

.hdfc-header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Logo Group Left */
.hdfc-logo-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hdfc-netbanking-text {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 3px;
    text-align: right;
    font-family: Arial, sans-serif;
}

.hdfc-netbanking-text .net {
    color: #ED1C24;
}

.hdfc-netbanking-text .banking {
    color: #003D7A;
}

.hdfc-logo-box-main {
    display: inline-block;
    text-decoration: none;
}

.hdfc-logo-box-main img {
    height: 34px;
    display: block;
    border-radius: 2px;
}

/* Red/White Grid Icon */
.hdfc-grid-icon {
    width: 22px;
    height: 22px;
    background-color: #ED1C24;
    border: 2px solid #FFFFFF;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    padding: 1px;
    box-sizing: border-box;
}

.hdfc-grid-icon span {
    background-color: #FFFFFF;
    display: block;
}

/* Left-Aligned Welcome Info */
.hdfc-welcome-info {
    color: #003D7A;
    font-size: 11px;
    line-height: 1.3;
    text-align: left;
    margin-top: 4px;
}

.hdfc-welcome-info strong {
    font-size: 12px;
    color: #00264D;
}

/* Right Actions & Logout Button */
.hdfc-header-right-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    margin-top: 4px;
}

.hdfc-header-right-actions a {
    color: #003D7A;
    text-decoration: none;
}

.hdfc-header-right-actions a:hover {
    text-decoration: underline;
}

.btn-hdfc-logout-blue {
    background-color: #003D7A;
    color: #FFFFFF !important;
    padding: 5px 18px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
    text-decoration: none !important;
    border: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn-hdfc-logout-blue:hover {
    background-color: #00264D;
}

/* Bottom Horizontal Nav Tabs Inside Banner */
.hdfc-header-nav-tabs {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    margin-top: 12px;
    padding-left: 206px; /* Matches Sidebar Width */
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.hdfc-header-tab {
    padding: 8px 16px;
    color: #003D7A;
    font-weight: bold;
    font-size: 13px;
    text-decoration: none;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    position: relative;
    white-space: nowrap;
    font-family: Arial, sans-serif;
    flex-shrink: 0;
}

.hdfc-header-tab:hover {
    color: #001A38;
}

.hdfc-header-tab.active {
    background-color: #003D7A;
    color: #FFFFFF !important;
}

/* 3. Layout Body Wrapper */
.hdfc-body-wrapper {
    display: flex;
    min-height: calc(100vh - 120px);
}

/* 4. Left Sidebar Menu */
.hdfc-left-menu {
    width: 206px;
    background-color: #F0F6FC;
    border-right: 1px solid #B8D3EC;
    flex-shrink: 0;
}

.hdfc-sidebar-header {
    background-color: #003D7A;
    color: #FFFFFF;
    padding: 8px 14px;
    font-weight: bold;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

.hdfc-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hdfc-menu-item {
    border-bottom: 1px solid #B8D3EC;
}

.hdfc-menu-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    color: #003D7A;
    font-weight: bold;
    font-size: 12px;
    text-decoration: none;
    background-color: #DCE8F5;
    transition: background-color 0.15s;
    font-family: Arial, sans-serif;
}

.hdfc-menu-link.active, .hdfc-menu-link.selected {
    background-color: #FFFFFF;
    color: #111111;
    font-weight: normal;
}

.hdfc-menu-link i {
    font-size: 8px;
    color: #003D7A;
}

/* Submenu Dropdown List (Clean, No Bullets) */
.hdfc-submenu {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background-color: #FFFFFF;
}

.hdfc-submenu-item {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hdfc-submenu-item a {
    display: block;
    padding: 8px 14px 8px 24px;
    color: #003D7A;
    font-size: 11px;
    font-weight: normal;
    text-decoration: none !important;
    border-bottom: 1px solid #EBF1F7;
    background-color: #F8FAFC;
    transition: background-color 0.15s, color 0.15s;
    font-family: Arial, sans-serif;
}

.hdfc-submenu-item a:hover {
    background-color: #DCE8F5;
    color: #00264D;
    font-weight: bold;
    text-decoration: none !important;
}

.hdfc-submenu-item a.active {
    background-color: #FFFFFF;
    color: #003D7A;
    font-weight: bold;
}

/* 5. Main Content Layout */
.hdfc-main-content {
    flex-grow: 1;
    padding: 18px 24px;
    background-color: #FFFFFF;
    min-width: 0;
}

/* Content Page Header */
.hdfc-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.hdfc-page-title {
    font-size: 22px;
    font-weight: normal;
    color: #000000;
    margin: 0;
    font-family: Arial, sans-serif;
}

.hdfc-print-link {
    color: #003D7A;
    text-decoration: underline;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: Arial, sans-serif;
}

/* Car Loan Promo Banner */
.hdfc-promo-banner-exact {
    background: linear-gradient(90deg, #050D30 0%, #0D226A 50%, #06113A 100%);
    border-radius: 2px;
    color: #FFFFFF;
    padding: 16px 24px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.hdfc-banner-big-text {
    font-style: italic;
    font-weight: bold;
    font-size: 24px;
    color: #FFFFFF;
}

.hdfc-banner-sub-text {
    font-size: 15px;
    margin-top: 4px;
}

.hdfc-banner-sub-text strong {
    color: #FF3B30;
    font-style: italic;
}

.hdfc-banner-check-btn {
    background-color: #ED1C24;
    color: #FFFFFF;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    display: inline-block;
    border: none;
}

/* 6. Account Summary Balance Strip */
.hdfc-account-strip-exact {
    background-color: #DCE8F5;
    border: 1px solid #B8D3EC;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: #111111;
    margin-bottom: 24px;
    border-radius: 2px;
}

.hdfc-account-strip-exact .strip-left {
    font-size: 15px;
    color: #111111;
}

.hdfc-account-strip-exact .strip-right {
    font-size: 15px;
    color: #111111;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hdfc-account-strip-exact .strip-right i {
    color: #003D7A;
    font-size: 12px;
}

/* 7. Note Section */
.hdfc-note-section-exact {
    margin-top: 28px;
    font-size: 12px;
    color: #222222;
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

.hdfc-note-section-exact .note-header {
    font-weight: bold;
    color: #000000;
    font-size: 13px;
    margin-bottom: 10px;
}

.hdfc-note-section-exact ul {
    padding-left: 20px;
    margin: 0;
}

.hdfc-note-section-exact li {
    margin-bottom: 8px;
}

.hdfc-note-section-exact a {
    color: #003D7A;
    text-decoration: underline;
}

/* Title Banner Bar for Forms */
.hdfc-blue-title-bar {
    background-color: #003D7A;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: bold;
    padding: 8px 14px;
    border-radius: 2px 2px 0 0;
}

/* Horizontal Stepper Component */
.hdfc-stepper-container {
    background-color: #FFFFFF;
    border: 1px solid #C4D9EC;
    border-top: none;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 24px;
}

.hdfc-stepper-line {
    position: absolute;
    top: 42px;
    left: 140px;
    right: 140px;
    height: 2px;
    background-color: #5A94CF;
    z-index: 1;
}

.hdfc-step-item {
    text-align: center;
    position: relative;
    z-index: 2;
    background-color: #FFFFFF;
    padding: 0 15px;
}

.hdfc-step-lbl-top {
    font-size: 11px;
    font-weight: bold;
    color: #555555;
    margin-bottom: 4px;
}

.hdfc-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #5A94CF;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
}

.hdfc-step-item.active .hdfc-step-circle {
    background-color: #003D7A;
}

.hdfc-step-lbl-bottom {
    font-size: 11px;
    font-weight: bold;
    color: #666666;
}

.hdfc-step-item.active .hdfc-step-lbl-bottom {
    color: #003D7A;
}

/* Custom Styled HDFC Dropdown Component */
.hdfc-dropdown-container {
    position: relative;
    max-width: 480px;
    user-select: none;
}

.hdfc-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    background-color: transparent;
    transition: background-color 0.15s, border-color 0.15s;
}

.hdfc-dropdown-trigger:hover {
    background-color: #F0F6FC;
    border-color: #B8D3EC;
}

.hdfc-dropdown-menu-custom {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    border: 1px solid #003D7A;
    border-radius: 4px;
    box-shadow: 0 6px 16px rgba(0, 38, 77, 0.18);
    z-index: 1050;
    display: none;
    max-height: 240px;
    overflow-y: auto;
}

.hdfc-dropdown-menu-custom.show {
    display: block;
}

.hdfc-dropdown-option {
    padding: 10px 14px;
    color: #003D7A;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 1px solid #EBF1F7;
    transition: background-color 0.15s, color 0.15s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hdfc-dropdown-option:last-child {
    border-bottom: none;
}

.hdfc-dropdown-option:hover {
    background-color: #DCE8F5;
    color: #00264D;
}

.hdfc-dropdown-option.selected {
    background-color: #003D7A;
    color: #FFFFFF !important;
}

.hdfc-dropdown-option .opt-balance {
    font-size: 12px;
    font-weight: normal;
    color: #233848;
}

.hdfc-dropdown-option.selected .opt-balance {
    color: #E2E8F0 !important;
}

/* Circle Arrow Icon Button */
.hdfc-circle-arrow-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid #003D7A;
    color: #003D7A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    background-color: #FFFFFF;
    flex-shrink: 0;
    cursor: pointer;
}

/* Form Table Grid */
.hdfc-form-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #C4D9EC;
    margin-bottom: 24px;
    background-color: #FFFFFF;
}

.hdfc-form-table td {
    padding: 12px 18px;
    border-bottom: 1px solid #E2E8F0;
    vertical-align: middle;
}

.hdfc-form-label {
    width: 32%;
    font-weight: bold;
    color: #333333;
    font-size: 12px;
}

/* Transaction Type Selection Grid Cards */
.hdfc-compact-card {
    background: #FFFFFF;
    border: 1px solid #D0DCED;
    border-radius: 4px;
    padding: 12px 10px 10px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.hdfc-compact-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hdfc-compact-icon {
    font-size: 26px;
    color: #003D7A;
    margin-bottom: 6px;
}

.hdfc-compact-title {
    font-size: 12px;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 4px;
}

.hdfc-compact-title a {
    color: #003D7A;
    text-decoration: underline;
}

.hdfc-compact-subtext {
    font-size: 10px;
    color: #555555;
    margin-bottom: 6px;
    line-height: 1.3;
}

.hdfc-compact-demo {
    margin-top: auto;
    margin-bottom: 6px;
}

.hdfc-compact-demo a {
    color: #003D7A;
    font-weight: bold;
    font-size: 11px;
    text-decoration: underline;
}

.hdfc-compact-card-footer {
    border-top: 1px solid #D0DCED;
    padding-top: 8px;
    margin-top: 6px;
    text-align: center;
}

/* Classic HDFC Gray "Go" Button */
.hdfc-go-btn {
    background: linear-gradient(to bottom, #FAFAFA 0%, #DCDCDC 100%);
    border: 1px solid #A6A6A6;
    color: #333333;
    font-weight: bold;
    font-size: 11px;
    padding: 2px 22px;
    border-radius: 3px;
    text-decoration: none;
    display: inline-block;
}

.hdfc-go-btn:hover {
    background: linear-gradient(to bottom, #E8E8E8 0%, #CCCCCC 100%);
    border-color: #8C8C8C;
    color: #000000;
}

/* Continue Button */
.btn-hdfc-continue {
    background-color: #003D7A;
    color: #FFFFFF !important;
    font-weight: bold;
    font-size: 13px;
    padding: 7px 24px;
    border-radius: 4px;
    border: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.btn-hdfc-continue:hover {
    background-color: #00264D;
    color: #FFFFFF !important;
}

/* OTP Container Box */
.hdfc-otp-container-box {
    background-color: #EBF3FA;
    border: 1px solid #B8D3EC;
    padding: 24px 28px;
    color: #222222;
    font-size: 12px;
    line-height: 1.6;
    font-family: Arial, sans-serif;
    margin-bottom: 24px;
    border-radius: 2px;
}

.hdfc-otp-header-title {
    font-size: 18px;
    font-weight: bold;
    color: #00264D;
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
}

.hdfc-otp-channel-row {
    margin: 12px 0;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hdfc-otp-channel-row .channel-label {
    width: 110px;
    font-weight: bold;
    color: #003D7A;
}

.hdfc-otp-channel-row .channel-val {
    font-weight: bold;
    color: #003D7A;
    letter-spacing: 0.5px;
}

/* OTP Banner */
.hdfc-simulated-otp-banner {
    background-color: #FFF8E1;
    border: 1px solid #FFE082;
    color: #8D6E63;
    padding: 10px 16px;
    margin-bottom: 16px;
    font-weight: bold;
    border-radius: 4px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Mobile, Tablet, Laptop, Desktop)
   ========================================================================== */

/* Large Tablets & Medium Screen Laptops (<= 991px) */
@media (max-width: 991.98px) {
    .hdfc-main-header-banner {
        padding: 10px 14px 0 14px;
    }

    .hdfc-header-nav-tabs {
        padding-left: 0 !important;
        margin-top: 10px;
    }

    .hdfc-top-utility {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 12px;
        padding: 6px 14px;
        white-space: nowrap;
    }

    .hdfc-header-top-row {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 8px;
    }

    .hdfc-header-right-actions {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        gap: 10px;
        margin-top: 4px;
    }

    .hdfc-stepper-container {
        padding: 16px 20px;
    }

    .hdfc-stepper-line {
        left: 60px;
        right: 60px;
    }
}

/* Mobile & Small Tablets (<= 767px) */
@media (max-width: 767.98px) {
    .hdfc-body-wrapper {
        flex-direction: column;
    }

    .hdfc-left-menu {
        width: 100% !important;
        border-right: none;
        border-bottom: 1px solid #B8D3EC;
    }

    .hdfc-main-content {
        padding: 14px 12px !important;
    }

    .hdfc-stepper-container {
        padding: 12px 8px !important;
    }

    .hdfc-stepper-line {
        left: 30px;
        right: 30px;
        top: 36px;
    }

    .hdfc-step-circle {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .hdfc-step-lbl-top, .hdfc-step-lbl-bottom {
        font-size: 9px;
    }

    .hdfc-form-table td {
        padding: 10px 8px !important;
    }

    .hdfc-form-label {
        width: 40% !important;
        font-size: 11px;
    }

    .hdfc-dropdown-container {
        max-width: 100% !important;
    }

    .hdfc-account-strip-exact {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .hdfc-promo-banner-exact {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        align-items: center;
    }

    .hdfc-otp-container-box {
        padding: 16px 14px;
    }

/* ==========================================================================
   MODERN 2-COLUMN HDFC LOGIN LAYOUT (MATCHING SCREENSHOT)
   ========================================================================== */
.hdfc-login-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-color: #0A1C3E;
    font-family: Arial, sans-serif;
}

.hdfc-login-left-banner {
    width: 48%;
    background-color: #0A1C3E;
    color: #FFFFFF;
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
}

.hdfc-login-right-form {
    width: 52%;
    background-color: #FFFFFF;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.hdfc-login-card-blue {
    background-color: #16295B;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hdfc-qr-login-box {
    background-color: #F0F7FF;
    border: 1px solid #DBEAFE;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.btn-hdfc-login-blue {
    background-color: #1D4ED8;
    color: #FFFFFF !important;
    font-weight: bold;
    font-size: 15px;
    padding: 12px;
    border-radius: 6px;
    border: none;
    width: 100%;
    transition: background-color 0.15s;
}

.btn-hdfc-login-blue:hover {
    background-color: #1E40AF;
}

/* Responsive Login for Mobile Devices */
@media (max-width: 991.98px) {
    .hdfc-login-wrapper {
        flex-direction: column;
    }

    .hdfc-login-left-banner {
        width: 100%;
        padding: 24px 20px;
    }

    .hdfc-login-right-form {
        width: 100%;
        padding: 30px 20px;
    }
}
