/* =========================================================
   ROHAN CONTRACTOR PORTAL
   Visual language follows the Rohan Builders careers page:
   flat pastel cards, square corners, no shadows, black CTAs,
   uppercase section headings in a narrow left column.
   Fully responsive across all screen widths.
   ========================================================= */

:root {
    --blue: #0e6cb2;
    --blue-dark: #0a548a;
    --navy: #14283c;
    --ink: #1b2733;
    --body: #55606b;
    --muted: #7b858f;
    --line: #dcdfe3;
    --line-2: #ebedef;
    --black: #111315;
    --cream: #efe6d6;
    --grey-bg: #f5f6f7;

    /* pastel card tints, cycled across the grid */
    --tint-1: #f7e3e5;
    --tint-2: #e8eee2;
    --tint-3: #dee8ef;
    --tint-4: #f3ece0;
    --tint-5: #eaf0e8;
    --tint-6: #f5e9e2;

    --head-font: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
    --header-h: 70px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    overflow-x: clip;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

.portal-container {
    width: min(1291px, calc(100% - 48px));
    margin-inline: auto;
}

main > .portal-container {
    display: flex;
    flex-direction: column;
}

#requirements_section {
    order: 1;
}

#why_us_section {
    order: 2;
}

#process_section {
    order: 3;
}

#who_can_apply_section {
    order: 4;
}

#welfare_section {
    order: 5;
}

/* ============================== HEADER & TOPBAR ============================== */
.portal-topbar {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.portal-topbar.is-scrolled {
    box-shadow: 0 4px 16px rgba(16, 24, 40, 0.08);
}

.portal-topbar-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.portal-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
}

.portal-brand-logo {
    height: 38px;
    min-height: 34px;
    max-height: 42px;
    width: auto;
    min-width: 120px;
    max-width: 153px;
    object-fit: contain;
    display: block;
    transition: opacity 0.16s ease;
}

.portal-brand-logo:hover {
    opacity: 0.92;
}

/* Desktop Navigation */
.portal-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-family: var(--head-font);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-left: auto;
}

.portal-nav a:not(.portal-nav-cta) {
    position: relative;
    color: var(--ink);
    text-decoration: none;
    padding: 6px 2px 8px;
    transition: color 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: inline-block;
}

.portal-nav a:not(.portal-nav-cta)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-nav a:not(.portal-nav-cta):hover,
.portal-nav a:not(.portal-nav-cta).is-active {
    color: var(--blue);
}

.portal-nav a:not(.portal-nav-cta):hover::after,
.portal-nav a:not(.portal-nav-cta).is-active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.portal-nav a:not(.portal-nav-cta).is-active {
    font-weight: 700;
}

.portal-nav .portal-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    min-height: 44px;
    padding: 0 18px;
    background: var(--black);
    border: 0;
    color: #fff;
    font-family: var(--head-font);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    gap: 6px;
    text-decoration: none;
    margin-left: -12px;
    transition: background 0.18s ease, transform 0.16s ease;
}

.portal-nav .portal-nav-cta:hover {
    background: var(--blue);
    color: #fff;
    transform: translateY(-1px);
}

/* Mobile Topbar Actions */
.portal-topbar-mobile-actions {
    display: none;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Mobile Hamburger Toggle */
.portal-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 0;
    background: #fff;
    border: 1px solid var(--line);
    cursor: pointer;
    border-radius: 0;
    flex-shrink: 0;
}

.portal-hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--navy);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.portal-hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.portal-hamburger.is-open span:nth-child(2) {
    opacity: 0;
}

.portal-hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.portal-mobile-drawer {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: rgba(20, 40, 60, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.portal-mobile-drawer.is-open {
    opacity: 1;
    visibility: visible;
}

.portal-mobile-drawer-content {
    background: #fff;
    width: 100%;
    max-height: calc(100vh - var(--header-h) - 20px);
    padding: 22px 20px 28px;
    border-bottom: 2px solid var(--black);
    box-shadow: 0 16px 36px rgba(16, 24, 40, 0.1);
    transform: translateY(-10px);
    transition: transform 0.2s ease;
    overflow-y: auto;
}

.portal-mobile-drawer.is-open .portal-mobile-drawer-content {
    transform: translateY(0);
}

.portal-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.portal-mobile-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    font-family: var(--head-font);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    background: var(--grey-bg);
    text-decoration: none;
}

.portal-mobile-links a:hover {
    background: var(--tint-3);
    color: var(--blue);
}

/* --- language switch --- */
.portal-lang {
    display: inline-flex;
    align-items: stretch;
    height: 38px;
    min-height: 38px;
    max-height: 38px;
    border: 1px solid var(--line);
    background: #fff;
}

.portal-lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 14px;
    background: #fff;
    border: 0;
    color: var(--body);
    font-family: var(--head-font);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .16s ease, color .16s ease;
}

.portal-lang-btn+.portal-lang-btn {
    border-left: 1px solid var(--line);
}

.portal-lang-btn:hover {
    color: var(--black);
}

.portal-lang-btn.is-active {
    background: var(--black);
    color: #fff;
}

/* --- Devanagari needs its own face, no tracking, more leading --- */
[lang="hi"] {
    font-family: "Noto Sans Devanagari", "Inter", sans-serif;
    letter-spacing: normal !important;
    text-transform: none !important;
    line-height: 1.9;
}

.portal-section-title h2[lang="hi"] {
    font-size: .95rem;
    line-height: 1.6;
}

.portal-points h3[lang="hi"] {
    line-height: 1.6;
}

.portal-lang-btn[lang="hi"] {
    font-size: .72rem;
    font-weight: 600;
    line-height: 1;
}

.portal-hero h1[lang="hi"] {
    font-size: clamp(1.7rem, 3.4vw, 2.7rem);
    line-height: 1.4;
}

.portal-eyebrow[lang="hi"] {
    font-size: .8rem;
    line-height: 1.5;
}

.portal-btn[lang="hi"] {
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.3;
}

/* =========================== BANNER =========================== */
.portal-hero {
    margin-top: 26px;
}

.portal-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 48px;
    align-items: center;
    min-height: 340px;
    padding: 58px;
    background: var(--blue);
    color: #fff;
    overflow: hidden;
}

.portal-hero-grid::before {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -80px;
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, .07);
    transform: rotate(18deg);
    pointer-events: none;
}

.portal-eyebrow {
    display: inline-block;
    color: rgba(255, 255, 255, .82);
    font-family: var(--head-font);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.portal-hero h1 {
    margin: 16px 0 0;
    max-width: 16ch;
    font-family: var(--head-font);
    font-size: clamp(1.9rem, 3.8vw, 3.1rem);
    line-height: 1.14;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.portal-hero p {
    max-width: 56ch;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: .95rem;
    line-height: 1.75;
}

.portal-hero-actions {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 28px;
}

.portal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    min-height: 44px;
    padding: 0 24px;
    border: 1px solid transparent;
    font-family: var(--head-font);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.portal-btn-solid {
    background: var(--black);
    color: #fff;
}

.portal-btn-solid:hover {
    background: #fff;
    color: var(--black);
}

.portal-btn-ghost {
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
}

.portal-btn-ghost:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

/* live counter panel on the cream block */
.portal-stat-card {
    position: relative;
    padding: 30px;
    background: var(--cream);
    color: var(--navy);
}

.portal-stat-card span,
.portal-stat-card small {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #6e6350;
    font-family: var(--head-font);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.portal-stat-card strong {
    display: block;
    margin: 14px 0 12px;
    font-family: var(--head-font);
    font-size: 4rem;
    line-height: .9;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.portal-stat-card small {
    letter-spacing: .04em;
    text-transform: none;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: .8rem;
    color: #7a6f5c;
}

.portal-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2e9e5b;
    animation: portal-pulse 2s ease-in-out infinite;
}

@keyframes portal-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: .28;
    }
}

/* ==================== TWO-COLUMN SECTION SHELL ==================== */
.portal-section {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 42px;
    padding: 66px 0;
}

.portal-section+.portal-section {
    padding-top: 0;
}

.portal-section-title {
    font-family: var(--head-font);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--navy);
}

.portal-section-title h2 {
    margin: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    font: inherit;
    letter-spacing: inherit;
}

.portal-section-body {
    min-width: 0;
    width: 100%;
}

.portal-section-body>p:first-child {
    margin: 0;
    color: var(--body);
    font-size: .93rem;
    line-height: 1.85;
}

/* text blocks in the "why work with us" pattern */
.portal-points {
    margin-top: 8px;
}

.portal-points h3 {
    margin: 26px 0 0;
    font-size: .93rem;
    font-weight: 700;
    color: var(--ink);
}

.portal-points p {
    margin: 8px 0 0;
    color: var(--body);
    font-size: .93rem;
    line-height: 1.85;
}

/* black tag, like the "FUNCTION" chip on the careers page */
.portal-tag {
    display: inline-block;
    padding: 9px 18px;
    background: var(--black);
    color: #fff;
    font-family: var(--head-font);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

/* ========================= FILTERS ========================= */
.portal-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 8px 0 12px;
}

#portal_btn_refresh {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    min-height: 44px;
    padding: 0 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    font-family: var(--head-font);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    transition: border-color .16s ease, color .16s ease;
    cursor: pointer;
    box-sizing: border-box;
}

#portal_btn_refresh:hover:not(:disabled) {
    border-color: var(--black);
    color: var(--black);
}

#portal_btn_refresh:disabled {
    opacity: .55;
}

#portal_btn_refresh:disabled i {
    animation: portal-spin .9s linear infinite;
}

@keyframes portal-spin {
    to {
        transform: rotate(360deg);
    }
}

.portal-trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin: 0 0 14px;
}

.portal-trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 14px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #065f46;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.2;
}

.portal-trust-strip i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    color: #047857;
    font-size: .8rem;
}

.portal-filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(160px, 1fr) auto;
    gap: 10px;
    padding: 0;
    margin-bottom: 18px;
    align-items: center;
}

.portal-search-row {
    display: contents;
}

.portal-filter-toggle-btn {
    display: none;
}

.portal-filter-dropdowns {
    display: contents;
}

.portal-search {
    position: relative;
}

.portal-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: .85rem;
    pointer-events: none;
}

.portal-search .form-control {
    padding-left: 42px;
}

.portal-filter-bar .form-control,
.portal-filter-bar .form-select {
    min-height: 44px;
    height: 44px;
    background-color: #fff;
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    font-size: .88rem;
    font-weight: 500;
    box-shadow: none;
    box-sizing: border-box;
}

.portal-filter-bar .form-control::placeholder {
    color: #9aa4ae;
}

.portal-filter-bar .form-control:focus,
.portal-filter-bar .form-select:focus {
    border-color: var(--black);
    box-shadow: none;
    outline: none;
}

#portal_btn_clear_filters {
    min-height: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 22px;
    background: var(--black);
    border: 1px solid var(--black);
    border-radius: 0;
    color: #fff;
    font-family: var(--head-font);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color .16s ease, color .16s ease;
}

#portal_btn_clear_filters:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.portal-result-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 16px 0 18px;
    color: var(--muted);
    font-size: .8rem;
}

.portal-result-trust {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
    color: #4b6382;
    font-size: .8rem;
    font-weight: 600;
}

.portal-result-trust-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    margin: 0 0 16px 0;
    padding: 13px 18px;
    background: #edf5fa;
    border-left: 3px solid var(--blue);
    color: #1e3a5f;
    font-size: .82rem;
    line-height: 1.5;
    white-space: normal;
}

.portal-result-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.portal-result-trust i {
    color: var(--blue);
    font-size: .95rem;
}

#portal_result_count {
    display: inline-block;
    padding: 9px 18px;
    background: var(--black);
    color: #fff;
    font-family: var(--head-font);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

/* ============ REQUIREMENT CARDS (flat pastel blocks) ============
   Markup comes from assets/js/contractor-portal.js. Flex `order`
   moves Work Quantum up next to the other spec lines, and the
   project name above the trade name.
   ================================================================ */
.portal-requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.portal-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 14px 16px;
    background: var(--tint-1);
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .06);
    transition: transform .18s ease, box-shadow .18s ease;
}

.portal-status-chip,
.portal-posted-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--head-font);
    font-size: .60rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.portal-status-chip {
    padding: 5px 8px;
    border-radius: 999px;
}

.portal-status-open {
    background: #dcfce7;
    color: #166534;
}

.portal-status-closing {
    background: #fef3c7;
    color: #92400e;
}

.portal-status-closed {
    background: #fee2e2;
    color: #991b1b;
}

.portal-posted-date {
    color: #64748b;
    letter-spacing: .04em;
    text-transform: none;
}

.portal-card-closed {
    opacity: .78;
}

.portal-card:hover {
    /* transform: translateY(-3px); */
    box-shadow: 0 10px 28px rgba(15, 23, 42, .10);
}

.portal-requirements-grid>.portal-card:nth-child(6n+2) {
    background: var(--tint-2);
}

.portal-requirements-grid>.portal-card:nth-child(6n+3) {
    background: var(--tint-3);
}

.portal-requirements-grid>.portal-card:nth-child(6n+4) {
    background: var(--tint-4);
}

.portal-requirements-grid>.portal-card:nth-child(6n+5) {
    background: var(--tint-5);
}

.portal-requirements-grid>.portal-card:nth-child(6n+6) {
    background: var(--tint-6);
}

/* --- head: project line above the trade name --- */
.portal-card-head {
    order: 1;
    display: block;
    margin-bottom: 8px;
}

.portal-card-head>div:first-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.portal-project-name {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
    margin: 0 0 2px;
    color: var(--navy);
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.35;
}

.portal-project-name .portal-project-city-sep {
    color: #94a3b8;
    font-weight: 400;
    margin: 0 1px;
}

.portal-project-name .portal-card-city {
    color: var(--navy);
    font-weight: 700;
}

.portal-card-head-location {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    gap: 2px;
    margin: 0 0 6px;
    padding: 0;
    width: 100%;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--ink);
    font-size: .78rem;
    font-weight: 400;
    line-height: 1.4;
}

.portal-card-head-location .portal-card-address-line,
.portal-card-head-location .portal-card-city-line,
.portal-card-head-location .portal-card-location-line {
    display: inline-flex;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    margin: 0;
    padding: 0;
    max-width: 100%;
    width: 100%;
    color: var(--ink);
    font-size: .78rem;
}

.portal-card-head-location span {
    display: inline-flex;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    margin: 0;
    padding: 0;
    min-width: 0;
    max-width: 100%;
    color: var(--ink);
    font-size: .78rem;
    font-weight: 400;
}

.portal-card-head-location a {
    display: inline-flex;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    margin: 0;
    padding: 0;
    min-width: 0;
    max-width: 100%;
    color: var(--ink);
    font-size: .78rem;
    font-weight: 400;
    text-decoration: none;
}

.portal-card-head-location a:hover {
    color: var(--blue);
}

.portal-location-map-icon,
.portal-location-icon,
.portal-city-icon {
    flex: 0 0 auto;
    width: 13px;
    height: 13px;
    margin-top: 2px;
    margin-right: 5px;
    margin-left: 0;
    object-fit: contain;
    display: inline-block;
}

.portal-card-head-location i {
    flex: 0 0 auto;
    margin-top: 2px;
    margin-right: 5px;
    margin-left: 0;
    font-size: .78rem;
    color: var(--ink);
    display: inline-block;
}

.portal-card-head-location img {
    flex: 0 0 auto;
    margin-top: 2px;
    margin-right: 5px;
    margin-left: 0;
    width: 13px;
    height: 13px;
    object-fit: contain;
    display: inline-block;
}

.portal-card-head h3 {
    margin: 4px 0 0;
    font-family: "Outfit", "Plus Jakarta Sans", "Poppins", "Montserrat", sans-serif;
    font-size: 1.02rem;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--navy);
}

.portal-id-chip {
    display: none;
    flex: 0 0 auto;
    padding: 0;
    background: none;
    border: 0;
    color: #98a0a9;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .66rem;
    font-weight: 500;
    white-space: nowrap;
}

/* --- spec lines under a "work details" rule --- */
.portal-card-details {
    order: 2;
    display: block;
    margin: 0;
    padding: 8px 0;
    border-top: 1px solid rgba(15, 23, 42, .1);
    border-bottom: 1px solid rgba(15, 23, 42, .1);
}

.portal-card-label,
.portal-card-details::before,
.portal-description span {
    display: block;
    margin-bottom: 4px;
    font-family: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #6f7781;
}

.portal-detail {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 2.5px 0;
    background: none;
    border: 0;
    border-radius: 0;
}

.portal-detail span {
    flex: 0 0 auto;
    display: block;
    min-width: 90px;
    color: #475569;
    font-size: .76rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.portal-detail span::after {
    content: ":";
}

.portal-detail strong {
    display: block;
    min-width: 0;
    margin: 0;
    color: var(--ink);
    font-size: .78rem;
    line-height: 1.45;
    font-weight: 600;
    overflow-wrap: break-word;
    word-break: normal;
}

.portal-map-link {
    color: #e11d48;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .88rem;
    transition: transform .15s ease, opacity .15s ease;
    vertical-align: middle;
}

/* .portal-map-link:hover {
    transform: scale(1.22);
    opacity: .85;
} */

/* --- scope paragraph --- */
.portal-description {
    order: 4;
    flex: 1;
    margin: 0;
    padding: 8px 0 10px;
    border-top: 0;
    border-bottom: 1px solid rgba(15, 23, 42, .1);
}

.portal-description p {
    margin: 0;
    color: var(--ink);
      font-size: .78rem;
    line-height: 1.45;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* --- contact + call to action --- */
.portal-card-footer {
    order: 5;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 -16px -14px;
    padding: 10px 14px;
    border-top: 1px solid rgba(15, 23, 42, .1);
    background: transparent;
}

.portal-contact {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 0;
}

.portal-contact-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-width: 0;
}

.portal-contact-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    margin: 0;
    color: var(--blue);
    background: rgba(14, 108, 178, .12);
    border-radius: 50%;
    box-sizing: border-box;
    flex-shrink: 0;
    transition: transform .18s ease, background .18s ease;
}

.portal-contact-icon-wrap i {
    font-size: 13px;
    color: var(--blue);
    line-height: 1;
}

.portal-contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    line-height: 1.25;
}

.portal-contact-name {
    display: block;
    color: var(--ink);
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .16s ease;
}

.portal-contact-phone {
    display: block;
    color: #64748b;
    font-size: .70rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .16s ease;
}

.portal-contact-call:hover .portal-contact-name,
.portal-contact-call:hover .portal-contact-phone {
    color: var(--blue);
}

.portal-contact-call:hover .portal-contact-icon-wrap {
    background: rgba(14, 108, 178, .22);
    transform: scale(1.06);
}

.portal-card .btn-primary,
#portal_btn_submit_interest {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 38px;
    min-height: 38px;
    padding: 0 14px;
    background: var(--black);
    border: 0;
    border-radius: 6px;
    color: #fff;
    font-family: var(--head-font);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow: none;
    box-sizing: border-box;
    white-space: nowrap;
    transition: background .16s ease;
    cursor: pointer;
}

.portal-card .btn-primary:hover,
#portal_btn_submit_interest:hover {
    background: var(--blue);
}

.portal-card .btn-primary:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: 3px;
}

.portal-btn-interest-submitted,
.portal-btn-interest-submitted:disabled,
.btn.portal-btn-interest-submitted:disabled,
.btn.portal-btn-interest-submitted.disabled {
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 14px !important;
    background: #059669 !important;
    border: 1px solid #047857 !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    font-family: var(--head-font) !important;
    font-size: .64rem !important;
    font-weight: 700 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    opacity: 1 !important;
    cursor: default !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.22) !important;
}

.portal-btn-interest-submitted i,
.btn.portal-btn-interest-submitted i {
    color: #ffffff !important;
    font-size: 0.80rem !important;
}

.portal-btn-interest-closed,
.portal-btn-interest-closed:disabled {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 38px;
    min-height: 38px;
    padding: 0 14px;
    background: #9ca3af;
    border: 1px solid #9ca3af;
    border-radius: 6px;
    color: #ffffff;
    font-family: var(--head-font);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 1;
    cursor: not-allowed;
    box-sizing: border-box;
}

/* --- loading skeleton --- */
.portal-card .placeholder-glow .placeholder {
    display: block;
    height: 15px;
    border-radius: 0;
}

/* --- empty state --- */
.portal-empty {
    padding: 64px 24px;
    text-align: center;
    background: var(--grey-bg);
    border: 0;
    border-radius: 0;
    color: var(--muted);
}

.portal-empty > i,
.portal-empty .portal-empty-icon {
    display: block;
    margin: 0 auto 14px;
    color: var(--blue);
    font-size: 2.2rem;
    line-height: 1;
}

.portal-empty .portal-empty-icon-error {
    color: #dc2626 !important;
}

.portal-empty h3 {
    margin: 0 0 8px;
    color: var(--navy);
    font-family: var(--head-font);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.portal-empty p {
    margin: 0 0 20px;
    font-size: .88rem;
    color: var(--muted);
}

.portal-empty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 22px;
    font-family: var(--head-font);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: var(--navy, #0c1a30);
    color: #ffffff !important;
    border: 1px solid var(--navy, #0c1a30);
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.portal-empty-btn:hover,
.portal-empty-btn:focus {
    background: var(--blue, #1d4ed8);
    border-color: var(--blue, #1d4ed8);
    color: #ffffff !important;
}

.portal-empty-btn i {
    display: inline-block !important;
    margin: 0 !important;
    font-size: 0.85rem !important;
    color: #ffffff !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

/* ========================== PROCESS ========================== */
.portal-process-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 26px;
}

.portal-process-steps div {
    padding: 24px 22px;
    background: var(--grey-bg);
}

.portal-process-steps strong {
    display: block;
    margin-bottom: 12px;
    color: var(--blue);
    font-family: var(--head-font);
    font-size: 1.5rem;
    font-weight: 700;
}

.portal-process-steps span {
    display: block;
    color: var(--body);
    font-size: .88rem;
    line-height: 1.75;
}

.portal-process-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
    padding: 14px 18px;
    background: var(--cream);
    border-left: 3px solid #c4ab7a;
    color: #5c4e36;
    font-size: .85rem;
    line-height: 1.65;
}

.portal-process-note i {
    color: #8c6d32;
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ===================== WORKER WELFARE / CSR ===================== */
.portal-quote {
    margin: 26px 0 0;
    padding: 22px 26px;
    background: var(--grey-bg);
    border-left: 3px solid var(--blue);
    color: var(--ink);
    font-size: .95rem;
    line-height: 1.85;
}

.portal-quote cite {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-family: var(--head-font);
    font-size: .62rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.portal-csr-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 22px;
}

.portal-csr-card {
    display: flex;
    flex-direction: column;
    background: var(--tint-4);
    color: var(--ink);
    text-decoration: none;
    transition: filter .16s ease;
}

.portal-csr-card:nth-child(2) {
    background: var(--tint-2);
}

.portal-csr-card:hover {
    filter: brightness(.965);
}

.portal-csr-card img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
    background: #fff;
}

.portal-csr-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}

.portal-csr-label {
    display: block;
    padding-bottom: 9px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(20, 40, 60, .16);
    color: #6f7781;
    font-family: var(--head-font);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.portal-csr-card h3 {
    margin: 0;
    color: var(--navy);
    font-family: var(--head-font);
    font-size: .96rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.4;
    text-transform: uppercase;
}

.portal-csr-card p {
    margin: 10px 0 0;
    color: var(--body);
    font-size: .84rem;
    line-height: 1.7;
}

.portal-csr-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    padding-top: 18px;
    color: var(--blue);
    font-family: var(--head-font);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.portal-csr-link::after {
    content: "\f061";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .7rem;
    letter-spacing: 0;
}

.portal-csr-card h3[lang="hi"],
.portal-csr-link[lang="hi"] {
    font-size: .92rem;
    line-height: 1.6;
}

/* ======================== WHO CAN APPLY ======================== */
.portal-invite-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: 26px;
    background: var(--line);
    border: 1px solid var(--line);
}

.portal-invite-list div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    background: #fff;
    color: var(--ink);
    font-size: .88rem;
    line-height: 1.6;
}

.portal-invite-list i {
    margin-top: 3px;
    color: var(--blue);
    font-size: .8rem;
}

/* ========================== FOOTER ========================== */
.portal-footer {
    margin-top: 48px;
    padding: 32px 0 28px;
    background: #0f172a;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 36px;
    padding: 10px 0 28px;
}

.portal-footer-brand strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    color: #ffffff;
    font-family: var(--head-font);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.portal-footer-inner span {
    display: block;
    margin-top: 12px;
    max-width: 60ch;
    color: rgba(255, 255, 255, .65);
    font-size: .84rem;
    line-height: 1.65;
}

.portal-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: flex-end;
    align-items: center;
    font-family: var(--head-font);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.portal-footer-links a {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    transition: color 0.16s ease, transform 0.16s ease;
}

.portal-footer-links a:hover {
    color: #60a5fa;
    transform: translateY(-1px);
}

.portal-footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 20px;
    padding-top: 20px;
    padding-right: 64px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .5);
    font-size: .76rem;
    line-height: 1.5;
}

/* ==================== FIXED BOTTOM FOOTER BAR (MOBILE ONLY) ==================== */
.portal-fixed-bottom-bar {
    display: none;
}

.portal-header-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 9px;
    margin-left: 6px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #ffffff;
    font-family: var(--head-font);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.2;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.portal-header-count:empty {
    display: none;
}

.portal-nav .portal-nav-cta:hover .portal-header-count {
    background: #ffffff;
    color: var(--blue);
    border-color: #ffffff;
}

/* Back to Top Button */
.portal-back-to-top {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 960;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: #fff;
    border: 0;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

.portal-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.portal-back-to-top:hover {
    background: var(--blue);
}

/* ===================== MODAL / TOAST ===================== */
#portal_interest_modal .modal-dialog {
    max-width: 640px !important;
    width: min(640px, calc(100% - 32px)) !important;
    margin: 1.75rem auto;
}

#portal_interest_modal .modal-content {
    width: 100% !important;
    border: 0;
    border-radius: calc(0.5rem - 1px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    background: #ffffff;
    overflow: hidden;
}

#portal_interest_modal .modal-header {
    align-items: flex-start;
    padding: 18px 22px 14px;
    background: var(--blue);
    border-bottom: 0;
    color: #fff;
}

#portal_interest_modal .modal-title {
    font-family: var(--head-font);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

#portal_interest_modal .modal-requirement-subtitle,
#portal_interest_requirement_text {
    display: block;
    margin-top: 4px;
    margin-left: 0;
    color: rgba(255, 255, 255, .88) !important;
    font-size: .74rem;
}

#portal_interest_modal .btn-close {
    filter: invert(1) grayscale(1);
    opacity: .8;
}

#portal_interest_modal .modal-body {
    padding: 16px 22px 10px;
    background: #fff;
    width: 100%;
}

#portal_interest_modal .modal-footer {
    padding: 12px 22px 16px;
    background: #fff;
    border-top: 1px solid var(--line-2);
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 8px !important;
}

#portal_footer_step_details:not(.d-none),
#portal_footer_step_otp:not(.d-none) {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin-left: auto !important;
}

#portal_interest_modal .form-label {
    margin-bottom: 3px;
    color: var(--navy);
    font-family: var(--head-font);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

#portal_interest_modal .form-control,
#portal_interest_modal .form-select {
    height: 44px;
    min-height: 44px;
    padding: 7px 11px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0;
    font-size: .88rem;
    color: var(--ink);
    transition: border-color 0.16s ease;
}

#portal_interest_modal .form-control:focus,
#portal_interest_modal .form-select:focus {
    border-color: var(--black);
    box-shadow: none;
}

#portal_interest_modal .form-control.is-invalid,
#portal_interest_modal .form-select.is-invalid {
    border-color: #d9383a !important;
    background-color: #fffaf9;
}

#portal_interest_modal .form-control.is-valid,
#portal_interest_modal .form-select.is-valid {
    border-color: #2e9e5b !important;
}

/* Input group with +91 prefix and WhatsApp toggle */
.portal-input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 44px;
    min-height: 44px;
    box-sizing: border-box;
}

.portal-input-prefix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 12px;
    background: #f4f6f8;
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: 0 !important;
    color: var(--navy);
    font-family: var(--head-font);
    font-size: 0.8rem;
    font-weight: 700;
    user-select: none;
    box-sizing: border-box;
    flex-shrink: 0;
}

.portal-input-group .form-control {
    height: 44px !important;
    min-height: 44px !important;
    border-left: 1px solid var(--line);
    border-right: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box;
    flex: 1 1 auto;
}

.portal-input-group .form-control:focus {
    z-index: 2;
}

/* Inline Field Error */
.portal-field-error {
    margin-top: 3px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #d9383a;
    line-height: 1.25;
    animation: portal-fade-in 0.2s ease;
}

@keyframes portal-fade-in {
    from { opacity: 0; transform: translateY(-2px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Inside Input WhatsApp Toggle Icon Button */
.portal-wa-toggle-btn {
    height: 44px !important;
    min-height: 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f8fafc !important;
    border: 1px solid var(--line) !important;
    border-left: 0 !important;
    border-radius: 0 !important;
    color: #94a3b8 !important;
    font-size: 1.25rem !important;
    cursor: pointer !important;
    transition: all 0.18s ease !important;
    flex-shrink: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

.portal-wa-toggle-btn:hover {
    background: #f1f5f9 !important;
    color: #64748b !important;
}

.portal-wa-toggle-btn.is-active {
    background: #eafaf1 !important;
    border-color: var(--line) !important;
    border-left: 0 !important;
    color: #25D366 !important;
}

.portal-wa-toggle-btn.is-active:hover {
    background: #d4f5e2 !important;
    color: #1eb954 !important;
}

.portal-modal-note-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 12px;
    background: var(--grey-bg);
    color: var(--body);
    font-size: 0.76rem;
    line-height: 1.35;
}

/* ==================== STEP 2: OTP VERIFICATION SCREEN (MODERN 2-COLUMN MATCH) ==================== */
.portal-otp-screen {
    animation: portal-fade-in 0.25s ease;
    padding: 10px 0;
}

.portal-otp-split-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 10px 16px;
    max-width: 580px;
    margin: 0 auto;
}

/* Left Illustration Column */
.portal-otp-art-side {
    flex: 0 0 140px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portal-otp-phone-badge {
    position: relative;
    width: 135px;
    height: 135px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-otp-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Right Form Column */
.portal-otp-form-side {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.portal-otp-split-title {
    font-family: var(--head-font);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0f2444;
    margin-bottom: 2px;
}

.portal-otp-split-subtext {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 2px;
}

.portal-otp-phone-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.portal-otp-number {
    font-size: 1.08rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.02em;
}

.portal-otp-edit-btn {
    background: none;
    border: none;
    padding: 2px 6px;
    color: #64748b;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.portal-otp-edit-btn:hover {
    color: #2563eb;
    background: #f1f5f9;
    transform: scale(1.08);
}

/* 4 Rounded Clean Digit Input Boxes */
.portal-otp-boxes {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    margin: 4px 0 10px;
}

.portal-otp-digit {
    width: 52px;
    height: 56px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    caret-color: #2563eb;
}

.portal-otp-digit:focus {
    border-color: #2563eb !important;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
    transform: translateY(-1px);
}

.portal-otp-digit.is-invalid {
    border-color: #ef4444 !important;
    background-color: #fef2f2;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
    animation: portal-shake 0.35s ease;
}

.portal-otp-digit.is-valid {
    border-color: #10b981 !important;
    background-color: #f0fdf4;
}

@keyframes portal-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.portal-otp-timer-container {
    width: 100%;
    margin-top: 4px;
}

.portal-otp-resend-text {
    font-size: 0.86rem;
    color: #475569;
}

.portal-otp-countdown-blue {
    color: #2563eb !important;
    font-weight: 700;
    font-size: 0.95rem;
    margin-left: 3px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.portal-resend-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 14px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.16s ease;
}

.portal-resend-btn:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

/* Mobile Responsive */
@media (max-width: 580px) {
    .portal-otp-split-layout {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .portal-otp-form-side {
        align-items: center;
    }

    .portal-otp-boxes {
        justify-content: center;
        gap: 8px;
    }

    .portal-otp-digit {
        width: 48px;
        height: 52px;
        font-size: 1.35rem;
    }
}

/* ==================== STANDARDIZED MODAL BUTTONS ==================== */
.portal-btn-modal {
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 20px !important;
    font-family: var(--head-font) !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: all 0.16s ease !important;
    cursor: pointer !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

.portal-btn-primary {
    background: var(--navy) !important;
    border: 1px solid var(--navy) !important;
    color: #ffffff !important;
}

.portal-btn-primary:hover,
.portal-btn-primary:focus {
    background: var(--blue) !important;
    border-color: var(--blue) !important;
    color: #ffffff !important;
}

.portal-btn-secondary {
    background: #f4f6f8 !important;
    border: 1px solid var(--line) !important;
    color: var(--navy) !important;
}

.portal-btn-secondary:hover,
.portal-btn-secondary:focus {
    background: #e8ecf0 !important;
    border-color: var(--navy) !important;
    color: var(--black) !important;
}

.portal-btn-verified {
    background: #2e9e5b !important;
    border-color: #2e9e5b !important;
    color: #ffffff !important;
}

/* Button Loading & Single-Click Disabled States */
.is-loading,
button[disabled].is-loading,
.btn.is-loading {
    opacity: 0.82 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.portal-btn-interest.is-loading {
    opacity: 0.85 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}

/* ==================== STEP 3: SUCCESS / THANK YOU SCREEN (MATCHING REFERENCE) ==================== */
.portal-success-screen {
    padding: 8px 4px;
    animation: portal-fade-in 0.25s ease;
}

.portal-success-split-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 8px 12px;
    max-width: 580px;
    margin: 0 auto;
}

/* Left Checkmark Artwork Side */
.portal-success-art-side {
    flex: 0 0 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.portal-success-check-badge {
    position: relative;
    width: 135px;
    height: 135px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: portal-pop-in 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portal-success-svg {
    width: 100%;
    height: 100%;
    display: block;
}

@keyframes portal-pop-in {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Right Content Side */
.portal-success-content-side {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.portal-success-split-title {
    font-family: var(--head-font);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f2444;
    margin-bottom: 2px;
}

.portal-success-split-desc {
    font-size: 0.86rem;
    color: #5e6e82;
    line-height: 1.4;
    margin-bottom: 12px;
}

/* Summary Card Box */
.portal-success-card-box {
    width: 100%;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.portal-success-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

.portal-success-item-label {
    color: #64748b;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

.portal-success-item-val {
    color: #0f172a;
    font-weight: 700;
}

.portal-success-item-val-wrap {
    display: inline-flex;
    align-items: center;
}

.portal-verified-green-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 4px;
    color: #059669;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Top Right Download Icon Button in Step 3 */
.portal-download-icon-btn {
    position: absolute;
    top: 4px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.18s ease;
    z-index: 10;
}

.portal-download-icon-btn:hover {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(37, 99, 235, 0.15);
}

.portal-auto-close-timer-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
}

.portal-auto-close-timer-line i {
    font-size: 0.92rem;
    color: #64748b;
}

.portal-auto-close-label {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 500;
}

.portal-circle-timer-ring {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.8px solid #14b8a6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
    margin-left: 4px;
}

.portal-circle-timer-ring span,
#portal_success_seconds {
    color: #0f172a;
    font-weight: 700;
    font-size: 0.76rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Mobile Responsive */
@media (max-width: 580px) {
    .portal-success-screen {
        padding: 4px 2px !important;
    }

    .portal-success-split-layout {
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center !important;
        padding: 2px 4px !important;
    }

    .portal-success-art-side {
        flex: 0 0 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .portal-success-art-side .portal-success-svg {
        width: 95px !important;
        height: 95px !important;
    }

    .portal-success-content-side {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .portal-success-split-title {
        font-size: 1.02rem !important;
        line-height: 1.3 !important;
        margin-bottom: 3px !important;
    }

    .portal-success-split-desc {
        font-size: 0.78rem !important;
        line-height: 1.35 !important;
        margin-bottom: 10px !important;
        max-width: 320px !important;
    }

    .portal-success-card-box {
        width: 100% !important;
        padding: 10px 14px !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 8px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
    }

    .portal-success-item-row {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        border-bottom: 1px solid #f1f5f9 !important;
        padding-bottom: 6px !important;
        font-size: 0.78rem !important;
    }

    .portal-success-item-row:last-child {
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }

    .portal-success-item-label {
        font-size: 0.76rem !important;
        color: #64748b !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
    }

    .portal-success-item-val {
        font-size: 0.8rem !important;
        color: #0f172a !important;
        font-weight: 700 !important;
        text-align: right !important;
    }

    .portal-download-icon-btn {
        top: 6px !important;
        right: 8px !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 0.88rem !important;
    }

    #portal_footer_step_success {
        padding: 6px 10px !important;
    }

    .portal-auto-close-timer-line {
        font-size: 0.75rem !important;
        gap: 6px !important;
    }

    .portal-auto-close-label {
        font-size: 0.75rem !important;
    }

    .portal-circle-timer-ring {
        width: 28px !important;
        height: 28px !important;
    }

    .portal-circle-timer-ring span,
    #portal_success_seconds {
        font-size: 0.7rem !important;
    }
}

.portal-modal-note {
    display: flex;
    gap: 10px;
    margin: 20px 0 0;
    padding: 14px 16px;
    background: var(--grey-bg);
    color: var(--body);
    font-size: .82rem;
    line-height: 1.6;
}

.portal-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1080;
    display: none;
    max-width: 380px;
    padding: 15px 19px;
    background: var(--black);
    color: #fff;
    border-radius: 0;
    font-size: .88rem;
}

.portal-toast.is-error {
    background: #a72218;
}

.portal-toast.is-success {
    background: #17693f;
}

/* ================= third-party widget fixes ================= */
.xdsoft_datetimepicker {
    z-index: 99999 !important;
}

table.dataTable {
    width: 100% !important;
}

#hidden_ddl_service,
#hidden_ddl_GST {
    display: none;
}

/* ========================= RESPONSIVE BREAKPOINTS ========================= */

/* Large Tablets & Medium Desktops (<= 1100px) */
@media (max-width: 1100px) {
    .portal-section {
        grid-template-columns: 1fr !important;
        gap: 24px;
        padding: 48px 0;
    }

    .portal-section-title h2 {
        padding-bottom: 12px;
    }

    .portal-section-title h2 br {
        display: none;
    }

    .portal-hero-grid {
        grid-template-columns: 1fr;
        gap: 34px;
        padding: 44px 38px;
    }

    .portal-process-steps {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   NATIVE APP-LIKE MOBILE RESPONSIVE DESIGN (<= 900px & <= 620px)
   ========================================================= */

/* Tablets & Mobile Navigation Shift (<= 900px) */
@media (max-width: 900px) {
    :root {
        --header-h: 62px;
    }

    /* Global mobile touch optimizations */
    * {
        -webkit-tap-highlight-color: transparent;
    }

    .portal-container {
        width: min(100% - 28px, 1291px);
    }

    .portal-topbar {
        background: rgba(255, 255, 255, 0.94) !important;
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(220, 223, 227, 0.8);
    }

    .portal-topbar-inner {
        gap: 10px;
    }

    .portal-brand {
        flex: 0 1 auto;
        min-width: 0;
        max-width: calc(100% - 110px);
    }

    .portal-brand-logo {
        height: 28px !important;
        min-height: 24px !important;
        max-height: 30px !important;
        min-width: 120px !important;
        max-width: 175px !important;
    }

    /* Hide desktop nav links & show mobile actions */
    .portal-nav {
        display: none !important;
    }

    .portal-topbar-mobile-actions {
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .portal-lang {
        background: #f1f5f9;
        padding: 3px;
        border-radius: 20px;
        border: 1px solid #e2e8f0;
    }

    .portal-lang-btn {
        padding: 5px 10px;
        border-radius: 14px;
        font-size: 0.65rem;
        font-weight: 700;
        transition: all 0.18s ease;
    }

    .portal-lang-btn.is-active {
        background: #ffffff;
        color: var(--blue);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    }

    .portal-hamburger {
        display: flex !important;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        transition: background 0.16s ease, transform 0.12s ease;
    }

    .portal-hamburger:active {
        transform: scale(0.92);
        background: #e2e8f0;
    }

    .portal-mobile-drawer {
        display: block;
    }

    /* Fixed Bottom Action Bar (Full width, no padding, no border-radius) */
    body {
        padding-bottom: 52px;
    }

    .portal-fixed-bottom-bar {
        display: block !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 950;
        background: var(--blue) !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.16);
    }

    .portal-fixed-bottom-btn {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 52px;
        padding: 0 16px;
        margin: 0;
        background: var(--blue);
        color: #ffffff;
        font-family: var(--head-font);
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        text-decoration: none;
        border-radius: 0 !important;
        border: 0;
        white-space: nowrap;
        box-shadow: none;
        transition: background 0.16s ease;
    }

    .portal-fixed-bottom-btn:hover,
    .portal-fixed-bottom-btn:active {
        background: var(--blue-dark);
        color: #ffffff;
    }

    .portal-fixed-bottom-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.22) !important;
        border: 1px solid rgba(255, 255, 255, 0.32) !important;
        color: #ffffff !important;
        font-family: var(--head-font);
        font-size: 0.76rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        padding: 2px 9px;
        margin-left: 6px;
        border-radius: 999px;
        line-height: 1.2;
    }

    .portal-fixed-bottom-badge:empty {
        display: none !important;
    }

    .portal-back-to-top {
        bottom: 74px;
        border-radius: 50%;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.16);
    }

    .portal-section {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 34px 0 !important;
    }

    .portal-section-title h2 br {
        display: none !important;
    }

    .portal-filter-bar {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .portal-search-row {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .portal-search {
        flex: 1 1 auto !important;
        width: 100% !important;
    }

    .portal-filter-toggle-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        background: #ffffff !important;
        border: 1px solid var(--line) !important;
        border-radius: 8px !important;
        color: var(--navy) !important;
        font-size: 1.1rem !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
        transition: all 0.16s ease !important;
    }

    .portal-filter-toggle-btn.is-active,
    .portal-filter-toggle-btn:active {
        background: var(--blue) !important;
        color: #ffffff !important;
        border-color: var(--blue) !important;
    }

    .portal-filter-badge {
        position: absolute !important;
        top: -4px !important;
        right: -4px !important;
        width: 18px !important;
        height: 18px !important;
        border-radius: 50% !important;
        background: #ef4444 !important;
        color: #ffffff !important;
        font-size: 0.65rem !important;
        font-weight: 800 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 2px solid #ffffff !important;
        line-height: 1 !important;
    }

    .portal-filter-dropdowns {
        display: none;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        padding-top: 8px;
        border-top: 1px solid #e2e8f0;
    }

    .portal-filter-dropdowns.is-open {
        display: flex !important;
        animation: portal-fade-in 0.2s ease !important;
    }

    .portal-invite-list,
    .portal-csr-grid,
    .portal-footer-inner {
        grid-template-columns: 1fr;
    }

    .portal-footer {
        padding-bottom: 74px !important;
    }

    .portal-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 16px 0 20px;
    }

    .portal-footer-links {
        justify-content: flex-start;
        gap: 10px 18px;
    }

    .portal-footer-legal {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding-right: 56px;
    }
}

/* Standard Mobile Devices (<= 620px) - Native App UI */
@media (max-width: 620px) {
    .portal-container {
        width: min(100% - 20px, 1291px);
    }

    /* App-like Hero Card */
    .portal-hero {
        margin-top: 0;
    }

    .portal-hero-grid {
        grid-template-columns: 1fr !important;
        padding: 24px 18px !important;
        gap: 20px !important;
        min-height: auto !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 16px rgba(14, 108, 178, 0.12);
    }

    .portal-hero h1 {
        font-size: 1.6rem !important;
        max-width: 100% !important;
        line-height: 1.22 !important;
        letter-spacing: -0.02em;
    }

    .portal-hero p {
        font-size: 0.86rem !important;
        line-height: 1.6 !important;
        max-width: 100% !important;
        margin-top: 10px !important;
    }

    .portal-stat-card {
        padding: 18px 16px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.4);
    }

    .portal-stat-card strong {
        font-size: 2.6rem;
        margin: 6px 0 4px;
        color: var(--blue-dark);
    }

    .portal-hero-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        width: 100% !important;
        margin-top: 18px !important;
    }

    .portal-hero-actions .portal-btn {
        width: 100% !important;
        height: 44px !important;
        padding: 0 10px !important;
        font-size: 0.68rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.04em !important;
        gap: 6px !important;
        border-radius: 10px;
    }

    .portal-btn:active {
        transform: scale(0.97);
    }

    /* App-like Filter Bar */
    .portal-filter-bar {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        background: #f8fafc !important;
        padding: 10px !important;
        border-radius: 12px !important;
        border: 1px solid #e2e8f0 !important;
        margin-bottom: 14px !important;
    }

    .portal-search input {
        height: 44px !important;
        border-radius: 8px !important;
        font-size: 0.84rem !important;
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
    }

    .portal-filter-bar select {
        height: 44px !important;
        border-radius: 8px !important;
        font-size: 0.82rem !important;
        background-color: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
    }

    #portal_btn_clear_filters {
        height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        border-radius: 8px !important;
        font-size: 0.72rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.08em !important;
        text-transform: uppercase !important;
        background: var(--navy) !important;
        color: #ffffff !important;
        border: 0 !important;
        cursor: pointer !important;
        width: 100% !important;
    }

    /* App-like Requirement Cards */
    .portal-requirements-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .portal-card {
        border-radius: 16px !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
        transition: transform 0.16s ease, box-shadow 0.16s ease;
        overflow: hidden;
    }

    .portal-card:active {
        transform: scale(0.99);
    }

    .portal-card-header {
        padding: 16px 16px 12px 16px;
    }

    .portal-card-body {
        padding: 14px 16px;
    }

    .portal-specs {
        gap: 8px;
    }

    .portal-spec-item {
        background: #ffffff;
        padding: 8px 10px;
        border-radius: 8px;
        border: 1px solid #edf2f7;
    }

    /* App-like Card Action Footer (1 row, 2 buttons, same background as card) */
    .portal-card-footer {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        padding: 12px 14px !important;
        margin: 0 -16px -16px !important;
        background: transparent !important;
        border-top: 1px solid rgba(15, 23, 42, 0.1) !important;
    }

    .portal-contact {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .portal-contact-call {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        width: 100% !important;
        height: 44px !important;
        min-height: 44px !important;
        padding: 0 8px !important;
        margin: 0 !important;
        background: rgba(255, 255, 255, 0.65) !important;
        border: 1px solid rgba(14, 108, 178, 0.25) !important;
        border-radius: 8px !important;
        color: var(--blue) !important;
        font-family: var(--head-font) !important;
        font-size: 0.7rem !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .portal-contact-info {
        display: flex !important;
        flex-direction: column !important;
        min-width: 0 !important;
        line-height: 1.25 !important;
    }

    .portal-contact-name {
        display: block !important;
        color: var(--ink) !important;
        font-size: 0.72rem !important;
        font-weight: 700 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .portal-contact-phone {
        display: block !important;
        color: #64748b !important;
        font-size: 0.68rem !important;
        font-weight: 600 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .portal-contact-call:active {
        transform: scale(0.98);
        background: #f0f7ff !important;
    }

    .portal-contact-icon-wrap,
    .portal-contact-call i,
    .portal-contact-call img,
    .portal-contact-call .portal-contact-phone-icon {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        border-radius: 50% !important;
        background: rgba(14, 108, 178, 0.12) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: var(--blue) !important;
        flex-shrink: 0 !important;
        padding: 0 !important;
    }

    .portal-contact-icon-wrap i {
        font-size: 13px !important;
        color: var(--blue) !important;
        line-height: 1 !important;
    }

    .portal-card .btn-primary,
    .portal-btn-interest-submitted,
    .portal-btn-interest-closed {
        flex: 1 1 0 !important;
        width: auto !important;
        height: 44px !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 10px !important;
        border-radius: 8px !important;
        font-size: 0.72rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.04em !important;
        text-transform: uppercase !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }

    .portal-card .btn-primary:active {
        transform: scale(0.98);
    }

    .portal-btn-interest-submitted {
        background: #059669 !important;
        border: 1px solid #047857 !important;
        color: #ffffff !important;
        box-shadow: 0 2px 6px rgba(5, 150, 105, 0.2) !important;
    }

    .portal-result-line {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    #portal_btn_refresh {
        height: 36px;
        padding: 0 12px;
        border-radius: 8px;
        font-size: 0.72rem;
        font-weight: 700;
    }

    .portal-result-trust-top {
        border-radius: 10px;
        padding: 12px 14px;
        font-size: 0.78rem;
        gap: 10px;
    }

    /* Native Bottom Sheet Modal Experience */
    #portal_interest_modal .modal-dialog {
        margin: 0 !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        z-index: 1055;
    }

    #portal_interest_modal .modal-content {
        border-radius: 22px 22px 0 0 !important;
        border: 0 !important;
        max-height: 88vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25) !important;
        padding-bottom: max(16px, env(safe-area-inset-bottom)) !important;
    }

    #portal_interest_modal .modal-header {
        position: relative;
        padding: 22px 18px 12px !important;
        border-bottom: 1px solid #edf2f7;
    }

    /* Native Bottom Sheet Drag Handle Bar */
    #portal_interest_modal .modal-header::before {
        content: "";
        display: block;
        width: 42px;
        height: 4px;
        background: #cbd5e1;
        border-radius: 99px;
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
    }

    #portal_interest_modal .modal-body {
        padding: 16px 18px 12px !important;
    }

    #portal_interest_modal .modal-footer {
        padding: 12px 18px 16px !important;
        border-top: 1px solid #edf2f7;
    }

    #portal_interest_modal .form-control,
    #portal_interest_modal .form-select {
        height: 46px;
        font-size: 16px !important; /* Prevents auto-zoom on iOS */
        border-radius: 10px;
    }

    #portal_footer_step_details:not(.d-none),
    #portal_footer_step_otp:not(.d-none) {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
    }

    #portal_footer_step_details button,
    #portal_footer_step_otp button {
        height: 46px;
        border-radius: 10px;
        font-size: 0.78rem;
        font-weight: 700;
    }

    .portal-toast {
        left: 16px;
        right: 16px;
        bottom: 74px;
        max-width: calc(100% - 32px);
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    }
}

/* Small Mobile Devices (<= 480px) */
@media (max-width: 480px) {
    :root {
        --header-h: 56px;
    }

    .portal-brand-logo {
        height: 24px !important;
        min-height: 20px !important;
        max-height: 26px !important;
        min-width: 105px !important;
        max-width: 150px !important;
    }

    .portal-lang-btn {
        padding: 4px 8px;
        font-size: 0.62rem;
    }

    .portal-hamburger {
        width: 35px;
        height: 35px;
    }

    .portal-hero-grid {
        padding: 20px 16px !important;
    }

    .portal-hero h1 {
        font-size: 1.45rem !important;
    }
}

/* Ultra-compact Screens (<= 340px) */
@media (max-width: 340px) {
    .portal-brand-logo {
        height: 20px !important;
        min-height: 18px !important;
        max-height: 22px !important;
        min-width: 90px !important;
        max-width: 125px !important;
    }
}

/* PDF Generation Template Hidden Wrapper */
.portal-pdf-render-container {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -99999;
    width: 720px;
    background: #ffffff !important;
    padding: 28px 32px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #1e293b !important;
    box-sizing: border-box;
    pointer-events: none;
    opacity: 1;
}

.portal-pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #0e6cb2;
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.portal-pdf-brand h2 {
    font-size: 18px;
    font-weight: 800;
    color: #0e6cb2;
    margin: 0 0 3px 0;
    letter-spacing: 0.02em;
}

.portal-pdf-brand p {
    font-size: 11px;
    color: #64748b;
    margin: 0;
}

.portal-pdf-badge {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #047857;
    font-weight: 700;
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.portal-pdf-title-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.portal-pdf-title-box h3 {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 3px 0;
}

.portal-pdf-title-box p {
    font-size: 11px;
    color: #475569;
    margin: 0;
}

.portal-pdf-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.portal-pdf-table th,
.portal-pdf-table td {
    padding: 9px 12px;
    font-size: 11.5px;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
}

.portal-pdf-table th {
    width: 36%;
    color: #64748b;
    font-weight: 600;
    background: #fbfcfd;
}

.portal-pdf-table td {
    width: 64%;
    color: #0f172a;
    font-weight: 700;
}

.portal-pdf-note {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    padding: 11px 14px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 20px;
}

.portal-pdf-note h4 {
    font-size: 11.5px;
    font-weight: 700;
    color: #1d4ed8;
    margin: 0 0 3px 0;
}

.portal-pdf-note p {
    font-size: 10.5px;
    color: #334155;
    margin: 0;
    line-height: 1.45;
}

.portal-pdf-footer {
    border-top: 1px solid #e2e8f0;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #94a3b8;
}

.portal-show-more-divider,
.portal-show-more-heading {
    grid-column: 1 / -1;
    width: 100%;
    margin: 10px 0;
    border: 0;
    border-top: 1px solid #e2e8f0;
    opacity: 1;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
