/* RMI Theme - Reach My India */
:root {
    --rmi-teal: #096C6C;
    --rmi-teal-light: #0f7070;
    --rmi-teal-dark: #094545;
    --rmi-teal-deep: #083838;
    --rmi-teal-accent: #1a8a8a;
    --rmi-green: #22a06b;
    --rmi-gray-bg: #f4f6f8;
    --rmi-gray-light: #e2e8f0;
    --rmi-text: #1e293b;
    --rmi-text-muted: #64748b;
    --rmi-white: #ffffff;
    --rmi-footer-bg: #041c1c;
    --rmi-footer-heading: #aeeeee;
    --rmi-footer-text: #d1d1d1;
    --rmi-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
    --rmi-shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1);
    --rmi-radius: 8px;
    --rmi-radius-lg: 12px;
    --rmi-font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Keep marketing pages from showing the footer before @Body exists
   (InteractiveServer with prerender:false leaves main empty on first paint). */
.rmi-public-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.rmi-public-main {
    flex: 1 0 auto;
}
#main-content:not(:has(*)) ~ .rmi-footer,
#main-content:not(:has(*)) ~ .rmi-chat-fab {
    display: none !important;
}

/* <FocusOnNavigate Selector="h1" /> in Routes.razor adds tabindex="-1" to the page
   heading and focuses it after every navigation so screen readers announce the new
   page. Keep that behaviour but hide the focus ring the browser draws around it. */
h1[tabindex="-1"]:focus,
h1[tabindex="-1"]:focus-visible {
    outline: none;
}

/* Top bar */
.rmi-topbar {
    background: var(--rmi-white);
    border-bottom: 1px solid var(--rmi-gray-light);
    font-size: 0.8125rem;
    padding: 0.5rem 0;
}
.rmi-topbar-link,
.rmi-topbar a {
    color: var(--rmi-text-muted);
    text-decoration: none;
}
.rmi-topbar-link:hover,
.rmi-topbar a:hover {
    color: var(--rmi-teal);
}
.rmi-topbar-lang {
    color: var(--rmi-text-muted);
    font-size: 0.8125rem;
}
.rmi-topbar-divider {
    color: var(--rmi-gray-light);
    font-size: 0.75rem;
    user-select: none;
}
.rmi-topbar-service {
    font-weight: 600;
    color: var(--rmi-teal) !important;
}
.rmi-topbar-service:hover {
    color: var(--rmi-teal-light) !important;
    text-decoration: underline;
}
.rmi-font-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.rmi-font-btn {
    background: transparent;
    border: none;
    color: var(--rmi-text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    cursor: pointer;
    line-height: 1;
}
.rmi-font-btn:hover {
    color: var(--rmi-teal);
}
.btn-rmi-sm {
    padding: 0.4rem 1rem;
    font-size: 0.8125rem;
    border-radius: 6px;
}

/* Keep in-page anchors / focused fields clear of sticky header */
html {
    scroll-padding-top: 6.5rem;
}

/* Header */
.rmi-header {
    background: var(--rmi-white);
    border-bottom: 1px solid var(--rmi-gray-light);
    position: sticky;
    top: 0;
    z-index: 1030;
}
.rmi-logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.rmi-logo-img {
    height: 48px;
    width: auto;
    display: block;
}
.rmi-logo-img--footer {
    height: 56px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}
/* logo-footer.png is 224px tall; artwork starts at y=37. Shift that band up so the mark lines up with the column headings. */
.rmi-footer .rmi-footer-logo {
    --rmi-footer-logo-h: 56px;
    display: inline-flex;
    align-items: flex-start;
    padding: 0;
    margin-bottom: 1rem;
    line-height: 0;
}
.rmi-footer .rmi-footer-logo .rmi-logo-img--footer {
    height: var(--rmi-footer-logo-h);
    margin-top: calc(var(--rmi-footer-logo-h) * -37 / 224);
}
.rmi-nav .nav-link {
    color: var(--rmi-text);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 1rem !important;
}
.rmi-nav .nav-link:hover,
.rmi-nav .nav-link.active {
    color: var(--rmi-teal);
}
.rmi-nav .nav-link.active {
    border-bottom: 2px solid var(--rmi-teal);
    padding-bottom: calc(0.5rem - 2px) !important;
}
.rmi-header .navbar-collapse {
    align-items: center;
}
.rmi-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    margin-left: 1rem;
}
.rmi-header-actions .rmi-topbar-link {
    color: var(--rmi-text);
    font-size: 1.0625rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.rmi-header-actions .rmi-topbar-link:hover {
    color: var(--rmi-teal);
}
.rmi-header .btn-rmi-primary {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Buttons */
.btn-rmi-primary {
    background: var(--rmi-teal);
    border-color: var(--rmi-teal);
    color: white;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
}
.btn-rmi-primary:hover {
    background: var(--rmi-teal-light);
    border-color: var(--rmi-teal-light);
    color: white;
}
.btn-rmi-dark {
    background: #1a2e2e;
    color: white;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    border: none;
    display: inline-flex;
    align-items: center;
    transition: background 0.2s;
}
.btn-rmi-dark:hover {
    background: #0f1f1f;
    color: white;
}

/* Hero */
.rmi-hero {
    background: #ffffff;
    position: relative;
    overflow: hidden;
    padding: 5rem 0 8rem;
    min-height: clamp(520px, 54vw, 660px);
}
.rmi-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.rmi-hero-banner {
    position: absolute;
    inset: 0;
    top: -7.5rem;
    width: 100%;
    height: calc(100% + 7.5rem);
    object-fit: fill;
    object-position: center bottom;
    display: block;
}
.rmi-hero-content {
    position: relative;
    z-index: 2;
}
.rmi-hero h1 {
    font-size: clamp(2.25rem, 4.8vw, 3.25rem);
    font-weight: 800;
    color: #0f1f2e;
    line-height: 1.15;
    letter-spacing: -0.025em;
}
.rmi-hero h1 .highlight {
    color: var(--rmi-teal);
}
.rmi-hero-subtitle {
    font-size: 1.0625rem;
    color: #39424f;
    line-height: 1.75;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.btn-rmi-hero {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(13, 92, 92, 0.25);
}
.rmi-hero-benefits {
    display: flex;
    flex-wrap: nowrap;
    gap: 0 2.25rem;
    margin-top: 2.25rem;
    justify-content: center;
    align-items: center;
}
.rmi-hero-benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--rmi-text);
    white-space: nowrap;
}
.rmi-check-icon {
    width: 22px;
    height: 22px;
    background: var(--rmi-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    flex-shrink: 0;
}
.rmi-check-icon--img {
    width: 22px;
    height: 22px;
    background: transparent;
    border-radius: 0;
}
.rmi-check-icon--img img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.rmi-check-icon--green {
    background: var(--rmi-green);
}
.rmi-social-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.rmi-check-icon--sm {
    width: 20px;
    height: 20px;
    font-size: 0.6rem;
}

/* Sections */
.rmi-section {
    padding: 4.5rem 0;
}
.rmi-section--gray {
    background: var(--rmi-gray-bg);
}
.rmi-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--rmi-text);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}
.rmi-section-subtitle {
    color: var(--rmi-text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}
.rmi-value-header .rmi-section-subtitle {
    margin-bottom: 0;
}
.rmi-badge {
    display: inline-block;
    background: #AEF2F2;
    color: var(--rmi-teal);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.375rem 1rem;
    border-radius: 50px;
    letter-spacing: 0.02em;
}

/* Service cards */
.rmi-services-section {
    background: #f9fafb;
}
.rmi-services-header {
    max-width: 760px;
}
.rmi-service-card {
    background: var(--rmi-white);
    border-radius: 14px;
    padding: 1.75rem 1.75rem 1.5rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #eef1f4;
    transition: transform 0.2s, box-shadow 0.2s;
}
.rmi-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}
.rmi-service-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.rmi-service-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.rmi-service-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    line-height: 1.3;
}
.rmi-service-desc {
    color: var(--rmi-text-muted);
    font-size: 0.875rem;
    line-height: 1.65;
    flex-grow: 1;
    margin-bottom: 0;
}
.rmi-service-arrow {
    width: 38px;
    height: 38px;
    background: var(--rmi-teal);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    margin-top: 1.25rem;
    align-self: flex-end;
    font-size: 1rem;
    transition: background 0.2s;
}
.rmi-service-arrow:hover {
    background: var(--rmi-teal-light);
    color: white;
}

/* Value proposition */
.rmi-value-header {
    max-width: 720px;
}
.rmi-value-card {
    text-align: center;
    padding: 0.5rem 1rem;
    height: 100%;
}
.rmi-value-icon {
    width: 80px;
    height: 80px;
    background: #096C6C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
/*.rmi-value-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}*/

.rmi-value-icon-img {
    width: 29px;
    /* height: 39px; */
    object-fit: contain;
    /* width: 100%; */
}
.rmi-value-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    color: var(--rmi-text);
}
.rmi-value-card p {
    color: var(--rmi-text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0 auto;
    max-width: 300px;
}

/* Stats / presence section */
.rmi-stats-section {
    background: transparent;
    position: relative;
    padding: 80px 0 0 0;
    position: relative;
    background: url(/images/india-map.png) top 35% right / 42% auto no-repeat;
    min-height: 320px;
}
.rmi-stats-bar {
    background: var(--rmi-teal);
    color: white;
    padding: 2.5rem 0;
    width: 100%;
    margin-top:50px;
}
.rmi-stats-bar .row {
    --bs-gutter-x: 1rem;
}
.rmi-stat-item {
    text-align: center;
    padding: 0.5rem;
}
.rmi-stat-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-bottom: 0.625rem;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}
.rmi-stat-value {
    font-size: clamp(1.375rem, 2.5vw, 1.875rem);
    font-weight: 800;
    display: block;
    line-height: 1.2;
}
.rmi-stat-label {
    font-size: 0.8125rem;
    opacity: 0.92;
    margin-top: 0.35rem;
    display: block;
    line-height: 1.3;
}
.rmi-states-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.rmi-states-list li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 15px 0;
    font-size: 0.9375rem;
    color: var(--rmi-text);
    font-weight: 500;
    border-bottom:1px solid #CCC;
}
.rmi-presence-map {
    max-height: 420px;
    object-fit: contain;
    opacity: 0.85;
    filter: contrast(0.9);
}
/*.rmi-presence-body {
    position: relative;
    background: url('/images/india-map.png') right 5% center / 42% auto no-repeat;
    min-height: 320px;
}*/

/*.rmi-presence-body {
    position: relative;
    background: url(/images/india-map.png) top 96% right / 42% auto no-repeat;
    min-height: 320px;
}*/
.rmi-presence-text {
    color: var(--rmi-text-muted);
    font-size: 1rem;
    line-height: 1.75;
    margin: 0;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

/* Infrastructure - rounded dark box */
.rmi-infrastructure-section {
    background: var(--rmi-white);
    padding: 4.5rem 0;
}
.rmi-infra-box {
    background: var(--rmi-teal-deep);
    color: white;
    border-radius: 24px;
    padding: 3.5rem 3rem;
    box-shadow: 0 20px 60px rgba(8, 56, 56, 0.25);
}
.rmi-infra-box .rmi-section-title {
    color: white;
}
.rmi-infra-header {
    max-width: 700px;
}
.rmi-infra-header .rmi-section-subtitle {
    margin-bottom: 0;
}
.text-white-50 {
    color: rgba(255, 255, 255, 0.72) !important;
}
.rmi-infra-column h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: white;
}
.rmi-infra-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.rmi-infra-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.rmi-infra-list li {
    padding: 0.35rem 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.82);
}
.rmi-infra-cta {
    background: var(--rmi-teal-accent);
    border: none;
    border-radius: 16px;
    padding: 2rem 2.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.rmi-infra-cta h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}
.rmi-infra-cta p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

/* FAQ */
.rmi-faq .accordion-item {
    border: none;
    border-bottom: 1px solid var(--rmi-gray-light);
    background: transparent;
}
.rmi-faq .accordion-button {
    font-weight: 600;
    font-size: 1rem;
    color: var(--rmi-text);
    background: transparent;
    box-shadow: none;
    padding: 1.25rem 0;
}
.rmi-faq .accordion-button:not(.collapsed) {
    color: var(--rmi-teal);
    background: transparent;
}
.rmi-faq .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230d5c5c'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.rmi-faq .accordion-body {
    color: var(--rmi-text-muted);
    padding: 0 0 1.25rem;
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* Footer */
.rmi-footer {
    background: var(--rmi-footer-bg);
    color: var(--rmi-footer-text);
    padding: 3.5rem 0 0;
}
.rmi-footer h5 {
    color: var(--rmi-footer-heading);
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}
.rmi-footer-text {
    color: var(--rmi-footer-text);
    font-size: 0.875rem;
    line-height: 1.75;
    margin: 0;
}
.rmi-footer a {
    color: var(--rmi-footer-text);
    text-decoration: none;
    font-size: 0.875rem;
    display: block;
    padding: 0.35rem 0;
    line-height: 1.5;
    transition: color 0.2s;
}
.rmi-footer a:hover {
    color: var(--rmi-footer-heading);
}
.rmi-footer-bottom {
    border-top: 1px solid rgba(174, 238, 238, 0.15);
    margin-top: 2.5rem;
    padding: 1.25rem 0 1.5rem;
    font-size: 0.8125rem;
    color: rgba(209, 209, 209, 0.75);
}
.rmi-footer-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.rmi-social-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(209, 209, 209, 0.35);
    background: transparent;
    color: var(--rmi-footer-text);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.rmi-social-link:hover {
    border-color: var(--rmi-footer-heading);
    color: var(--rmi-footer-heading);
}

/* Chat FAB — fixed corner, stays above footer (see chat-fab.js) */
.rmi-chat-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1020;
    width: 64px;
    height: 64px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: bottom 0.15s ease-out, transform 0.2s, filter 0.2s;
    box-shadow: none;
}
.rmi-chat-fab-img {
    width: 64px;
    height: 64px;
    display: block;
    object-fit: contain;
    background: transparent;
}
.rmi-chat-fab:hover {
    transform: scale(1.06);
    filter: brightness(1.05);
}
.rmi-chat-fab:focus-visible {
    outline: 2px solid var(--rmi-teal);
    outline-offset: 3px;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

/* Login page */
.rmi-login-hero {
    position: relative;
    background: #f7f9fc;
    padding: 2rem 0 3rem;
    min-height: calc(100vh - 420px);
    /* Keep content clickable when scrolled under sticky header; clip only the bg layer */
    overflow: visible;
}
.rmi-login-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: #eef7f8;
}
.rmi-login-hero-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0.45;
    display: block;
}
.rmi-login-intro {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
}
.rmi-login-card :is(input, button, a.rmi-login-link) {
    scroll-margin-top: 6.5rem;
}
.rmi-login-intro h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #0f1f2e;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}
.rmi-login-intro p {
    color: var(--rmi-text-muted);
    font-size: 1rem;
    margin: 0;
}
.rmi-login-card {
    position: relative;
    z-index: 1;
    background: var(--rmi-white);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid #eef1f4;
    padding: 2.5rem 2.25rem;
}
.rmi-login-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--rmi-text);
    margin-bottom: 0.5rem;
}
.rmi-login-link {
    color: var(--rmi-teal);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
}
.rmi-login-link:hover {
    color: var(--rmi-teal-light);
    text-decoration: underline;
}
.rmi-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.rmi-input-icon {
    position: absolute;
    left: 1rem;
    color: #94a3b8;
    font-size: 1.05rem;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
}
.rmi-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    font-size: 0.9375rem;
    color: var(--rmi-text);
    background: var(--rmi-white);
    border: 1px solid #dde3ea;
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.rmi-input--password {
    padding-right: 2.75rem;
}
.rmi-input::placeholder {
    color: #94a3b8;
}
.rmi-input:focus {
    outline: none;
    border-color: var(--rmi-teal);
    box-shadow: 0 0 0 3px rgba(13, 92, 92, 0.12);
}
.rmi-input-toggle {
    position: absolute;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
}
.rmi-input-toggle:hover {
    color: var(--rmi-teal);
}
.rmi-login-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 10px;
    justify-content: center;
    margin-top: 0.5rem;
}
.rmi-setpwd-rules {
    background: #f8fafc;
    border: 1px solid #eef1f4;
    border-radius: 10px;
    padding: 0.9rem 1rem;
    color: var(--rmi-text-muted);
    font-size: 0.8125rem;
}
.rmi-setpwd-rules p {
    color: var(--rmi-text);
    font-size: 0.8125rem;
}
.rmi-setpwd-rules ul {
    padding-left: 1.1rem;
}
.rmi-setpwd-rules li {
    margin-bottom: 0.15rem;
}
.rmi-login-footer {
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--rmi-gray-light);
    text-align: center;
    color: var(--rmi-text-muted);
    font-size: 0.9375rem;
}
.rmi-captcha-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid #dde3ea;
    border-radius: 10px;
}
.rmi-captcha-question {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--rmi-text);
}
.rmi-captcha-refresh {
    color: var(--rmi-teal);
    text-decoration: none;
    line-height: 1;
}
.rmi-captcha-refresh:hover {
    color: var(--rmi-teal-light);
}
.rmi-input--uppercase {
    text-transform: uppercase;
}
.rmi-field-error {
    color: #dc3545;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-top: 0.35rem;
}
.rmi-input.is-invalid {
    border-color: #dc3545;
}
.rmi-dashboard-card {
    background: var(--rmi-white);
    border: 1px solid #eef1f4;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    min-height: 110px;
}
.rmi-dashboard-card-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--rmi-text-muted);
    margin-bottom: 0.5rem;
}

/* ===== Authenticated portal / dashboard ===== */
.rmi-portal {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f3f6f9;
}
.rmi-portal-top {
    background: var(--rmi-white);
    border-bottom: 1px solid var(--rmi-gray-light);
    padding: 0.65rem 0;
}
.rmi-portal-logo {
    text-decoration: none;
    display: inline-flex;
}
.rmi-theme-swatches {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}
.rmi-theme-dot {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: var(--dot);
    display: inline-block;
}
.rmi-portal-icon-btn {
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    background: transparent;
    color: var(--rmi-text-muted);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}
.rmi-portal-icon-btn:hover {
    color: var(--rmi-teal);
    background: #f1f5f9;
}
.rmi-portal-user {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.2rem 0.5rem 0.2rem 0.2rem;
    margin: 0;
    border: none;
    background: transparent;
    border-radius: 999px;
    line-height: 1.2;
    cursor: pointer;
}
button.rmi-portal-user.dropdown-toggle::after {
    display: none;
}
.rmi-portal-user:hover,
.rmi-portal-user:focus,
.rmi-portal-user:focus-visible,
.rmi-portal-user[aria-expanded="true"] {
    background: #f1f5f9;
    outline: none;
    box-shadow: none;
    border: none;
    color: inherit;
}
.rmi-portal-user-caret {
    font-size: 0.7rem;
    color: var(--rmi-text-muted);
}
.rmi-portal-user-dropdown .dropdown-menu {
    --bs-dropdown-min-width: 15.5rem;
    --bs-dropdown-padding-y: 0.35rem;
    --bs-dropdown-border-color: #e2e8f0;
    --bs-dropdown-border-radius: 12px;
    --bs-dropdown-box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}
.rmi-portal-user-menu .rmi-user-info {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 1rem 0.65rem;
}
.rmi-user-meta {
    min-width: 0;
}
.rmi-user-name {
    font-weight: 600;
    color: var(--rmi-text);
    font-size: 0.9375rem;
    line-height: 1.25;
}
.rmi-user-role {
    margin-top: 0.1rem;
    font-size: 0.75rem;
    color: var(--rmi-text-muted);
}
.rmi-portal-user-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    color: var(--rmi-text);
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
}
.rmi-portal-user-menu .dropdown-item i {
    width: 1rem;
    color: var(--rmi-text-muted);
}
.rmi-portal-user-menu .dropdown-item:hover,
.rmi-portal-user-menu .dropdown-item:focus {
    background: #f1f5f9;
    color: var(--rmi-teal);
}
.rmi-portal-user-menu .dropdown-item:hover i,
.rmi-portal-user-menu .dropdown-item:focus i {
    color: var(--rmi-teal);
}
.rmi-portal-user-menu .dropdown-divider {
    margin: 0.25rem 0;
}
.rmi-portal-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rmi-teal), #1a8a8a);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.rmi-portal-user-name {
    font-weight: 600;
    color: var(--rmi-text);
    font-size: 0.9375rem;
}
.rmi-portal-nav {
    background: var(--rmi-teal);
    color: #fff;
}
.rmi-portal-nav-list {
    list-style: none;
    margin: 0;
    padding: 0.55rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}
.rmi-portal-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    border: 1px solid transparent;
}
.rmi-portal-nav-link:hover,
.rmi-portal-nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
}
.rmi-portal-signout {
    background: transparent;
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.25rem;
    white-space: nowrap;
}
.rmi-portal-signout:hover {
    opacity: 0.9;
}
.rmi-portal-main {
    flex: 1;
}
.rmi-portal-footer {
    background: #0a0a0a;
    color: #c4c4c4;
    padding: 1.1rem 0;
    font-size: 0.8125rem;
    margin-top: auto;
}
.rmi-portal-footer-logo .rmi-logo-img--footer {
    height: 36px;
}
.rmi-portal-footer p {
    color: #b0b0b0;
}

.rmi-dash-welcome {
    background: var(--rmi-white);
    padding: 1.35rem 0 1.1rem;
    border-bottom: 1px solid #e8edf2;
}
.rmi-dash-welcome-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}
.rmi-dash-welcome-copy h1 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: #0f1f2e;
    margin: 0 0 0.35rem;
}
.rmi-dash-welcome-copy p {
    margin: 0;
    color: var(--rmi-text-muted);
    font-size: 0.875rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}
.rmi-dash-online {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
}
.rmi-dash-sep {
    opacity: 0.5;
}
.rmi-dash-metrics {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
}
.rmi-dash-metric {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 1.35rem;
    border-left: 1px solid #e5eaf0;
}
.rmi-dash-metric:first-child {
    border-left: none;
    padding-left: 0;
}
.rmi-dash-metric-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}
.rmi-dash-metric-icon--wallet {
    background: #e6f4f1;
    color: var(--rmi-teal);
}
.rmi-dash-metric-icon--share {
    background: #e8f0fe;
    color: #2563eb;
}
.rmi-dash-metric-icon--earn {
    background: #e8eef8;
    color: #1e3a5f;
}
.rmi-dash-metric-label {
    display: block;
    font-size: 0.75rem;
    color: var(--rmi-text-muted);
    margin-bottom: 0.1rem;
}
.rmi-dash-metric-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f1f2e;
}

.rmi-dash-services {
    padding: 1.75rem 0 2.5rem;
}
.rmi-dash-services-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}
.rmi-dash-services-head h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 0.2rem;
    color: #0f1f2e;
}
.rmi-dash-breadcrumb {
    font-size: 0.8125rem;
    color: var(--rmi-text-muted);
    display: flex;
    gap: 0.35rem;
}
.rmi-dash-search {
    position: relative;
    min-width: min(100%, 280px);
}
.rmi-dash-search i {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}
.rmi-dash-search-input {
    width: 100%;
    border: 1px solid #dde3ea;
    border-radius: 999px;
    padding: 0.6rem 1rem 0.6rem 2.4rem;
    font-size: 0.875rem;
    background: #fff;
}
.rmi-dash-search-input:focus {
    outline: none;
    border-color: var(--rmi-teal);
    box-shadow: 0 0 0 3px rgba(13, 92, 92, 0.12);
}

.rmi-dash-alert {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    background: #fdecee;
    border: 1px solid #f5c2c7;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
}
.rmi-dash-alert-body {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
}
.rmi-dash-alert-body > i {
    color: #dc3545;
    margin-top: 0.15rem;
}
.rmi-dash-alert-body p {
    margin: 0;
    font-size: 0.875rem;
    color: #5c2b2e;
    line-height: 1.45;
}
.rmi-dash-alert-link {
    color: var(--rmi-teal);
    font-weight: 700;
    text-decoration: underline;
    margin-left: 0.25rem;
}
.rmi-dash-alert-close {
    border: none;
    background: transparent;
    color: #9b4a50;
    padding: 0.15rem;
    line-height: 1;
}

.rmi-dash-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: start;
}
.rmi-dash-service-card {
    --svc-accent: #0d8a8a;
    --svc-accent-soft: #e6f5f5;
    --svc-accent-border: #9fd4d4;
    background: #fff;
    border: 1px solid #dbe7ef;
    border-radius: 16px;
    padding: 1.15rem 1.2rem 1.2rem;
    min-height: 100%;
    box-shadow: 0 4px 16px rgba(15, 47, 58, 0.05);
}
.rmi-dash-service-card--teal {
    --svc-accent: #0d8a8a;
    --svc-accent-soft: #e6f5f5;
    --svc-accent-border: #8ecccc;
}
.rmi-dash-service-card--orange {
    --svc-accent: #e67e22;
    --svc-accent-soft: #fff3e8;
    --svc-accent-border: #f0b27a;
}
.rmi-dash-service-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}
.rmi-dash-service-card-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    background: var(--svc-accent-soft);
    color: var(--svc-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    overflow: hidden;
}
.rmi-dash-service-card-icon-img {
    width: 1.85rem;
    height: 1.85rem;
    object-fit: contain;
    display: block;
}
.rmi-dash-service-badge {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7b8794;
    background: #eef2f5;
    border-radius: 999px;
    padding: 0.32rem 0.6rem;
    white-space: nowrap;
    line-height: 1;
}
.rmi-dash-service-card-title {
    font-size: 0.8125rem;
    font-weight: 700;
    margin: 0 0 0.85rem;
    color: #12263a;
    line-height: 1.3;
}
.rmi-dash-service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}
.rmi-dash-service-list--rich {
    flex-direction: column;
    flex-wrap: nowrap;
}
.rmi-dash-service-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    color: #1e293b;
    background: #fff;
    border: 1.5px solid var(--svc-accent-border);
    border-radius: 10px;
    padding: 0.35rem 0.55rem;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.3;
    transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}
.rmi-dash-service-chip:hover {
    background: var(--svc-accent-soft);
    border-color: var(--svc-accent);
    color: var(--svc-accent);
    box-shadow: 0 2px 8px rgba(15, 47, 58, 0.06);
}
.rmi-dash-service-chip--rich {
    padding: 0.55rem 0.8rem;
    font-weight: 600;
}
.rmi-dash-service-chip--block {
    width: 100%;
    padding: 0.65rem 0.85rem;
}
.rmi-dash-service-chip-img {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    background: transparent;
}
.rmi-dash-service-chip-text {
    min-width: 0;
    line-height: 1.35;
}
.rmi-dash-service-chip--block .rmi-dash-service-chip-text,
.rmi-dash-service-chip--rich .rmi-dash-service-chip-text {
    flex: 1;
}
.rmi-dash-service-chip-info {
    color: #94a3b8;
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-left: 0.25rem;
}
.rmi-dash-service-chip--block .rmi-dash-service-chip-info {
    margin-left: auto;
}
.rmi-dash-coming-desc {
    margin: 0 0 0.85rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    max-width: 16rem;
}
.rmi-dash-service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}
.rmi-dash-service-card-link:hover .rmi-dash-service-card {
    border-color: #b6d4d4;
    box-shadow: 0 6px 18px rgba(15, 47, 58, 0.08);
}
.rmi-dash-report-group {
    margin-bottom: 2rem;
}
.rmi-dash-report-group-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.rmi-dash-report-group-head h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f1f2e;
}
.rmi-dash-report-desc {
    margin: 0;
    color: var(--rmi-text-muted);
    font-size: 0.875rem;
    line-height: 1.45;
}

/* Menu listing tiles (Reports / Activities) */
.rmi-menu-section {
    margin-bottom: 1.5rem;
}
.rmi-menu-section:last-child {
    margin-bottom: 0;
}
.rmi-menu-section-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}
.rmi-menu-section-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: #e6f5f5;
    color: var(--rmi-teal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.rmi-menu-section-head h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f1f2e;
    line-height: 1.25;
}
.rmi-menu-section-head span {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--rmi-text-muted);
}
.rmi-menu-tile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.rmi-menu-tile {
    --tile-accent: #0d8a8a;
    --tile-accent-soft: #e6f5f5;
    display: flex;
    align-items: center;
    gap: 0.95rem;
    min-height: 5.5rem;
    padding: 1.05rem 1.15rem;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #dbe7ef;
    border-left: 4px solid var(--tile-accent);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(15, 47, 58, 0.05);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.rmi-menu-tile--teal {
    --tile-accent: #0d8a8a;
    --tile-accent-soft: #e6f5f5;
}
.rmi-menu-tile--orange {
    --tile-accent: #e67e22;
    --tile-accent-soft: #fff3e8;
}
.rmi-menu-tile--blue {
    --tile-accent: #2563eb;
    --tile-accent-soft: #e8f0fe;
}
.rmi-menu-tile--navy {
    --tile-accent: #1e3a5f;
    --tile-accent-soft: #e8eef8;
}
.rmi-menu-tile:hover {
    border-color: var(--tile-accent);
    box-shadow: 0 8px 22px rgba(15, 47, 58, 0.1);
    transform: translateY(-2px);
}
.rmi-menu-tile:hover .rmi-menu-tile-arrow {
    color: var(--tile-accent);
    transform: translateX(3px);
}
.rmi-menu-tile-icon {
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 12px;
    background: var(--tile-accent-soft);
    color: var(--tile-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.rmi-menu-tile-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.rmi-menu-tile-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #12263a;
    line-height: 1.35;
}
.rmi-menu-tile-arrow {
    color: #cbd5e1;
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: color 0.15s ease, transform 0.15s ease;
}

@media (min-width: 1200px) {
    .rmi-menu-tile-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .rmi-menu-tile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .rmi-menu-tile {
        padding: 0.95rem 1rem;
        min-height: 0;
    }
}
.rmi-dash-breadcrumb a {
    color: inherit;
    text-decoration: none;
}
.rmi-dash-breadcrumb a:hover {
    color: var(--rmi-teal-dark);
}

.rmi-dash-empty {
    text-align: center;
    color: var(--rmi-text-muted);
    padding: 2rem 0;
}

.rmi-dash-coming {
    padding: 0.5rem 0 3rem;
}
.rmi-dash-coming-head {
    margin-bottom: 1.25rem;
}
.rmi-dash-coming-head h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
    color: #0f1f2e;
}
.rmi-dash-coming-head p {
    margin: 0;
    color: var(--rmi-text-muted);
    font-size: 0.9375rem;
}
.rmi-dash-coming-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
}
.rmi-dash-coming-card {
    position: relative;
    min-height: 220px;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    color: #fff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
}
.rmi-dash-coming-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 28, 48, 0.82) 0%, rgba(8, 28, 48, 0.35) 55%, rgba(8, 28, 48, 0.15) 100%);
}
.rmi-dash-coming-card--connect {
    background-image:
        linear-gradient(120deg, rgba(13, 92, 92, 0.35), transparent),
        url("../images/hero-banner.png");
}
.rmi-dash-coming-card--solar {
    background-image:
        linear-gradient(120deg, rgba(30, 58, 95, 0.4), transparent),
        url("../images/india-map.png");
    background-color: #1e3a5f;
}
.rmi-dash-coming-card-body {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    height: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.75rem;
}
.rmi-dash-coming-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f5c518;
    color: #1a1a1a;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
}
.rmi-dash-coming-card-body h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
}
.rmi-dash-notify-btn {
    background: #2563eb;
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 8px;
    padding: 0.55rem 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.rmi-dash-notify-btn:hover {
    background: #1d4ed8;
    color: #fff;
}

@media (max-width: 991.98px) {
    .rmi-dash-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .rmi-dash-metric {
        border-left: none;
        padding: 0.5rem 1rem 0.5rem 0;
    }
    .rmi-portal-nav .container {
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 0.65rem;
    }
    .rmi-portal-signout {
        align-self: flex-end;
    }
}

@media (max-width: 767.98px) {
    .rmi-dash-service-grid,
    .rmi-dash-coming-grid {
        grid-template-columns: 1fr;
    }
    .rmi-portal-user-name {
        display: none;
    }
    .rmi-theme-swatches {
        display: none;
    }
    .rmi-dash-metrics {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }
    .rmi-dash-metric {
        padding: 0;
        border-top: 1px solid #eef1f4;
        padding-top: 0.75rem;
    }
    .rmi-dash-metric:first-child {
        border-top: none;
        padding-top: 0;
    }
}


/* Partner register page */
.rmi-partner-hero {
    position: relative;
    background: #f7f9fc;
    padding: 3.5rem 0 4.5rem;
    min-height: calc(100vh - 420px);
    overflow: hidden;
}
.rmi-partner-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.rmi-partner-hero-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0.45;
    display: block;
}
.rmi-partner-intro {
    position: relative;
    z-index: 1;
    margin-bottom: 2.75rem;
}
.rmi-partner-intro h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #0f1f2e;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}
.rmi-partner-intro p {
    color: var(--rmi-text-muted);
    font-size: 1.0625rem;
    margin: 0;
}
.rmi-partner-card {
    position: relative;
    z-index: 1;
    background: var(--rmi-white);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid #eef1f4;
    padding: 2.5rem 2rem 2.25rem;
}
.rmi-partner-type-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.rmi-partner-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 148px;
    padding: 1.5rem 1rem;
    border: 2px solid #c5e8ea;
    border-radius: 12px;
    background: #eaf8f8;
    color: var(--rmi-teal);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
    text-align: center;
}
.rmi-partner-type:hover:not(.rmi-partner-type--selected) {
    border-color: #9fd9dc;
    background: #dff4f4;
    transform: translateY(-1px);
}
.rmi-partner-type:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 92, 92, 0.2);
}
.rmi-partner-type--selected {
    background: var(--rmi-teal);
    border-color: var(--rmi-teal);
    color: var(--rmi-white);
    box-shadow: 0 10px 24px rgba(13, 92, 92, 0.22);
}
.rmi-partner-type-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    font-size: 1.5rem;
    line-height: 1;
}
.rmi-partner-type--selected .rmi-partner-type-icon {
    background: rgba(255, 255, 255, 0.18);
    color: var(--rmi-white);
}
.rmi-partner-type-label {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}
.rmi-partner-continue {
    min-width: 200px;
    padding: 0.8rem 2.25rem;
    font-size: 1rem;
    border-radius: 8px;
    justify-content: center;
}
.rmi-partner-login-prompt {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
    margin-bottom: 0;
    color: var(--rmi-text-muted);
    font-size: 0.9375rem;
}

/* Registration terms page */
.rmi-terms-card {
    position: relative;
    z-index: 1;
    background: var(--rmi-white);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid #eef1f4;
    padding: 2.5rem 2.5rem 2.25rem;
}
.rmi-terms-heading {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--rmi-teal);
    text-align: center;
    margin-bottom: 1.75rem;
}
.rmi-terms-body {
    color: var(--rmi-text);
    font-size: 0.96875rem;
    line-height: 1.75;
}
.rmi-terms-body p {
    margin-bottom: 1.25rem;
}
.rmi-terms-body p:last-child {
    margin-bottom: 0;
}
.rmi-terms-agree {
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--rmi-gray-light);
}
.rmi-terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    margin: 0;
    color: var(--rmi-text);
    font-size: 0.9375rem;
    line-height: 1.6;
}
.rmi-terms-checkbox input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    accent-color: var(--rmi-teal);
    cursor: pointer;
}
.rmi-terms-register-btn {
    min-width: 180px;
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 8px;
}

/* Registration validation page */
.rmi-regval-card {
    position: relative;
    z-index: 1;
    background: var(--rmi-white);
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid #eef1f4;
    padding: 2rem 2.25rem 2.5rem;
    margin-top: 1rem;
}
.rmi-regval-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #d14d64;
    margin-bottom: 0.35rem;
}
.rmi-regval-note {
    color: #8a8a8a;
    font-size: 0.9375rem;
    margin-bottom: 2rem;
}
.rmi-regval-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0 1.5rem;
    align-items: start;
    margin-bottom: 1.25rem;
}
.rmi-regval-field {
    min-width: 0;
}
.rmi-regval-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--rmi-text);
    margin-bottom: 0.5rem;
    min-height: 1.375rem;
    line-height: 1.375;
}
.rmi-regval-input {
    width: 100%;
    height: 42px;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    color: var(--rmi-text);
    background: var(--rmi-white);
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
}
.rmi-regval-messages {
    min-height: 1.375rem;
    margin-top: 0.35rem;
}
.rmi-regval-message {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
}
.rmi-regval-message--error {
    color: #dc3545;
}
.rmi-regval-message--success {
    color: #198754;
}
.rmi-regval-input:focus {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}
.rmi-regval-input--disabled,
.rmi-regval-input:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}
.rmi-regval-otp-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1.875rem;
}
.rmi-regval-otp-action::after {
    content: "";
    display: block;
    min-height: 1.375rem;
    margin-top: 0.35rem;
    width: 100%;
}
.rmi-btn-get-otp {
    background: #198754;
    border-color: #198754;
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    height: 42px;
    padding: 0 1.25rem;
    border-radius: 6px;
    min-width: 108px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.rmi-btn-get-otp:hover:not(:disabled) {
    background: #157347;
    border-color: #146c43;
    color: #fff;
}
.rmi-btn-get-otp:disabled {
    opacity: 0.7;
}
.rmi-btn-continue {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.04em;
    padding: 0.75rem 2.75rem;
    border-radius: 6px;
    min-width: 200px;
}
.rmi-btn-continue:hover:not(:disabled) {
    background: #0b5ed7;
    border-color: #0a58ca;
    color: #fff;
}
.rmi-btn-continue:disabled {
    opacity: 0.75;
}

/* Registration form page */
.rmi-registration-card {
    position: relative;
    z-index: 1;
    background: var(--rmi-white);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    border: 1px solid #e7eeed;
    padding: 2rem 2.35rem 1.75rem;
    margin-top: 0.75rem;
    margin-bottom: 2rem;
}
.rmi-registration-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--rmi-teal);
    margin: 0 0 0.4rem;
}
.rmi-registration-section-head,
.rmi-registration-address-head {
    font-size: 1rem;
    font-weight: 600;
    color: var(--rmi-teal);
    margin-bottom: 0.25rem;
}
.rmi-registration-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}
.rmi-registration-label--required::after {
    content: " *";
    color: #dc3545;
}
.rmi-registration-input {
    width: 100%;
    min-height: 46px;
    padding: 0.625rem 0.9rem;
    font-size: 0.9375rem;
    color: var(--rmi-text);
    background: var(--rmi-white);
    border: 1px solid #d5dedd;
    border-radius: 10px;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.rmi-registration-input:focus {
    outline: none;
    border-color: var(--rmi-teal);
    box-shadow: 0 0 0 4px rgba(13, 92, 92, 0.12);
}
select.rmi-registration-input,
.rmi-registration-select {
    appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230d5c5c' d='M1.2.6 6 5.4 10.8.6 12 1.8 6 7.8 0 1.8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.4rem;
}
.rmi-registration-input:read-only,
.rmi-registration-input[readonly] {
    background: #f3f7f7;
    color: #475569;
    border-color: #d7e3e3;
}
.rmi-registration-input:disabled {
    background: #f6f8f8;
    color: #64748b;
}
.rmi-registration-input--upper {
    text-transform: uppercase;
}
.rmi-registration-field-error {
    color: #dc3545;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-top: 0.35rem;
}
.rmi-registration-exception {
    text-align: center;
    padding: 2rem 1rem;
}
.rmi-registration-exception h4 {
    color: #dc3545;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}
.rmi-registration-checkbox,
.rmi-registration-terms {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--rmi-teal);
    font-size: 0.9375rem;
    line-height: 1.5;
    cursor: pointer;
}
.rmi-registration-checkbox input,
.rmi-registration-terms input {
    margin-top: 0.25rem;
    flex-shrink: 0;
}
.rmi-registration-row {
    margin-top: 1.25rem;
}
.rmi-registration-input--textarea {
    resize: none;
    min-height: 42px;
}
.rmi-registration-success {
    text-align: center;
    padding: 2rem 1rem;
}
.rmi-registration-success h4 {
    color: #198754;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}
.rmi-franchisee-docs-title {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--rmi-text);
}
.rmi-franchisee-doc-row {
    align-items: center;
}
.rmi-franchisee-doc-info {
    font-size: 0.8125rem;
    color: var(--rmi-text-muted);
    margin-top: 0.35rem;
}
.rmi-franchisee-doc-success {
    color: #198754;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-top: 0.35rem;
}
.rmi-franchisee-file-input {
    width: 100%;
    font-size: 0.875rem;
}
.rmi-franchisee-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.rmi-franchisee-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    cursor: pointer;
}
.rmi-franchisee-submit {
    min-width: 160px;
    font-weight: 700;
    padding: 0.75rem 2rem;
}

.rmi-reg-card-head {
    margin-bottom: 1.35rem;
}
.rmi-reg-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rmi-teal-accent);
}
.rmi-registration-card .rmi-registration-title {
    color: var(--rmi-teal-dark);
    margin-bottom: 0.35rem;
}
.rmi-reg-lede {
    color: var(--rmi-text-muted);
    font-size: 0.9375rem;
    line-height: 1.55;
    margin: 0;
    max-width: 36rem;
}
.rmi-reg-progress {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0 0 1.75rem;
    padding: 1rem 0.4rem 0.95rem;
    background: linear-gradient(180deg, #f7fbfb 0%, #f3f8f8 100%);
    border: 1px solid #e1eceb;
    border-radius: 14px;
}
.rmi-reg-step {
    position: relative;
    appearance: none;
    border: 0;
    background: transparent;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 0 0.35rem;
    cursor: pointer;
}
.rmi-reg-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 15px;
    left: calc(50% + 20px);
    right: calc(-50% + 20px);
    height: 2px;
    background: #d5e3e3;
    z-index: 0;
}
.rmi-reg-step.is-done:not(:last-child)::after {
    background: var(--rmi-teal);
}
.rmi-reg-progress-index {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    background: #fff;
    border: 2px solid #cfdada;
    color: #64748b;
}
.rmi-reg-step.is-done .rmi-reg-progress-index {
    background: #e7f3f3;
    border-color: var(--rmi-teal);
    color: var(--rmi-teal);
}
.rmi-reg-step.is-active .rmi-reg-progress-index {
    background: var(--rmi-teal);
    border-color: var(--rmi-teal);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(13, 92, 92, 0.16);
}
.rmi-reg-progress-name {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
}
.rmi-reg-step.is-active .rmi-reg-progress-name,
.rmi-reg-step.is-done .rmi-reg-progress-name {
    color: var(--rmi-teal-dark);
}
.rmi-reg-panel[hidden] {
    display: none !important;
}
.rmi-reg-panel > .row:first-of-type {
    margin-top: 0.85rem;
}
.rmi-reg-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--rmi-teal-dark);
    margin: 0 0 0.25rem;
}
.rmi-reg-section-note {
    color: var(--rmi-text-muted);
    font-size: 0.875rem;
    margin: 0 0 0.15rem;
}
.rmi-reg-hint {
    color: #6c757d;
    font-size: 0.75rem;
    margin-top: 0.35rem;
}
.rmi-reg-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.4rem;
    color: #0f7a5a;
    font-size: 0.75rem;
    font-weight: 600;
}
.rmi-reg-verified::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #22a06b;
    box-shadow: 0 0 0 3px rgba(34, 160, 107, 0.18);
}
.rmi-reg-address-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 1.5rem;
    align-items: start;
}
.rmi-reg-location-card {
    background: linear-gradient(180deg, #f8fbfb 0%, #f1f7f7 100%);
    border: 1px solid #dceaea;
    border-radius: 14px;
    padding: 1.1rem 1.15rem 1.2rem;
}
.rmi-reg-location-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--rmi-text);
    margin-bottom: 0.75rem;
}
.rmi-reg-location-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #e7f3f3;
    color: var(--rmi-teal);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.55rem;
}
.rmi-reg-location-card .rmi-registration-map {
    height: 220px;
    min-height: 220px;
    margin-top: 0;
}
.rmi-reg-location-card .rmi-location-coordinates {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.75rem;
}
.rmi-reg-map-open {
    appearance: none;
    margin-top: 0.9rem;
    width: 100%;
    border: 0;
    background: var(--rmi-teal);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.7rem 1rem;
    cursor: pointer;
}
.rmi-reg-map-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 28, 28, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1060;
    padding: 1rem;
}
.rmi-reg-map-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 860px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.rmi-reg-map-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
    padding: 1rem 1.25rem 0.9rem;
    background: var(--rmi-teal);
    color: #fff;
}
.rmi-reg-map-modal-header h4 {
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
    font-weight: 700;
}
.rmi-reg-map-modal-header p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.85;
}
.rmi-reg-map-confirm {
    appearance: none;
    border: none;
    background: var(--rmi-teal);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 0.7rem 1.4rem;
    cursor: pointer;
    white-space: nowrap;
}
.rmi-reg-map-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.rmi-reg-map-modal .rmi-registration-map,
.rmi-reg-map-modal .rmi-reg-map-canvas {
    flex: 1 1 auto;
    width: 100%;
    height: 46vh;
    min-height: 280px;
    max-height: 420px;
    margin: 0;
    border: 0;
    border-radius: 0;
}
.rmi-reg-map-modal .rmi-location-coordinates {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
    margin: 0;
}
.rmi-reg-map-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
    padding: 0.9rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}
.rmi-reg-coord-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6c757d;
}
.rmi-reg-docs {
    border: 1px solid #e7eeed;
    border-radius: 12px;
    padding: 0.15rem 1rem;
    background: #fcfefe;
}
.rmi-reg-doc {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 220px) auto;
    gap: 0.75rem 1rem;
    align-items: center;
    padding: 0.9rem 0;
    border-bottom: 1px solid #eef1f4;
}
.rmi-reg-doc:last-child {
    border-bottom: 0;
}
.rmi-reg-doc span {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
}
.rmi-reg-doc small {
    display: block;
    color: #6c757d;
    font-size: 0.75rem;
    margin-top: 0.15rem;
}
.rmi-reg-docs + .rmi-reg-section-title {
    margin-top: 1.75rem;
}
.rmi-reg-opt {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.rmi-reg-opt button {
    appearance: none;
    border: 1px solid #d9e2e2;
    background: #fff;
    color: #4a5a5a;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}
.rmi-reg-opt button.is-active {
    background: var(--rmi-teal);
    border-color: var(--rmi-teal);
    color: #fff;
}
.rmi-reg-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1rem 0 0.25rem;
    border-top: 1px solid #e7eeed;
}
.rmi-reg-nav-meta {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--rmi-text-muted);
}
.rmi-reg-nav-actions {
    display: flex;
    gap: 0.6rem;
    margin-left: auto;
}
.rmi-reg-back,
.rmi-reg-continue {
    appearance: none;
    border-radius: 10px;
    font-weight: 700;
    padding: 0.7rem 1.45rem;
    min-width: 128px;
    cursor: pointer;
}
.rmi-reg-back {
    border: 1px solid #d5e0e0;
    background: #fff;
    color: var(--rmi-teal);
}
.rmi-reg-continue {
    border: 1px solid var(--rmi-teal);
    background: var(--rmi-teal);
    color: #fff;
}
.rmi-reg-continue:hover {
    background: var(--rmi-teal-light);
    border-color: var(--rmi-teal-light);
}
.rmi-reg-continue:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}
@media (max-width: 991.98px) {
    .rmi-reg-address-layout {
        grid-template-columns: 1fr;
    }
    .rmi-reg-doc {
        grid-template-columns: 1fr;
    }
    .rmi-reg-progress-name {
        font-size: 0.68rem;
    }
    .rmi-reg-map-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .rmi-reg-map-confirm {
        width: 100%;
    }
}

/* Responsive */
@media (max-width: 991.98px) {
    .rmi-chat-fab,
    .rmi-chat-fab-img {
        width: 56px;
        height: 56px;
    }
    .rmi-hero {
        padding: 3rem 0 6rem;
        min-height: 420px;
    }
    .rmi-hero-banner {
        width: 140%;
        left: 50%;
        transform: translateX(-50%);
        top: -2.5rem;
        height: calc(100% + 2.5rem);
    }
    .rmi-hero-subtitle {
        max-width: 100%;
    }
    .rmi-hero-benefits {
        flex-wrap: wrap;
        gap: 0.75rem 1.5rem;
    }
    .rmi-hero-benefit {
        white-space: normal;
    }
    .rmi-presence-body {
        background-size: 60% auto;
        background-position: right bottom;
    }
    .rmi-infra-box {
        padding: 2.5rem 1.5rem;
    }
    .rmi-login-card {
        padding: 2rem 1.5rem;
    }
    .rmi-partner-card {
        padding: 2rem 1.25rem;
    }
    .rmi-partner-type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .rmi-terms-card {
        padding: 2rem 1.5rem;
    }
    .rmi-regval-card {
        padding: 1.75rem 1.25rem 2rem;
    }
    .rmi-regval-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 1.5rem;
    }
    .rmi-regval-otp-action {
        align-items: flex-start;
        padding-top: 0.5rem;
        padding-bottom: 0;
    }
    .rmi-regval-otp-action::after {
        display: none;
    }
    .rmi-regval-field {
        margin-bottom: 0.25rem;
    }
    .rmi-registration-card {
        padding: 1.75rem 1.25rem 2rem;
    }
}

/* ===== Service landing pages (Insurance, etc.) ===== */
.rmi-svc-hero {
    position: relative;
    background: #f4faf9;
    padding: 4.5rem 0 5rem;
    overflow: hidden;
    text-align: center;
}
.rmi-svc-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.rmi-svc-hero-banner {
    position: absolute;
    top: -130px;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0.5;
    display: block;
}
.rmi-svc-hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}
.rmi-svc-hero h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #0f1f2e;
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
}
.rmi-svc-hero p {
    color: var(--rmi-text-muted);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin: 0 auto 1.75rem;
    max-width: 560px;
}
.rmi-svc-intro {
    max-width: 720px;
    text-align: center;
    margin-bottom: 2.25rem;
}
.rmi-svc-intro .rmi-section-title,
.rmi-svc-benefits .rmi-section-title {
    text-align: center;
}
.rmi-svc-intro .rmi-section-subtitle,
.rmi-svc-benefits .rmi-section-subtitle {
    margin-left: auto;
    margin-right: auto;
}
.rmi-svc-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: 880px;
    margin: 0 auto 2.5rem;
}
.rmi-svc-vehicle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--rmi-text);
}
.rmi-svc-vehicle-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 12px;
    background: #e7f3f1;
    color: var(--rmi-teal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
}
.rmi-svc-check-grid {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 820px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 2rem;
}
.rmi-svc-check-grid li,
.rmi-svc-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--rmi-text);
    line-height: 1.45;
}
.rmi-svc-check-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 520px;
}
.rmi-svc-benefits {
    max-width: 640px;
    text-align: center;
}
.rmi-svc-benefits .rmi-svc-check-list {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}
.rmi-svc-steps {
    list-style: none;
    margin: 2.5rem auto 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    max-width: 960px;
    position: relative;
}
.rmi-svc-steps::before {
    content: "";
    position: absolute;
    top: 1.35rem;
    left: 12%;
    right: 12%;
    height: 2px;
    background: #cfe3e1;
    z-index: 0;
}
.rmi-svc-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
}
.rmi-svc-step-num {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--rmi-teal);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 6px #fff;
}
.rmi-svc-step-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--rmi-text);
    max-width: 11rem;
    line-height: 1.35;
}
.rmi-svc-eligibility-wrap {
    padding-top: 1rem;
}
.rmi-svc-eligibility {
    background: var(--rmi-teal);
    color: #fff;
    border-radius: 18px;
    padding: 2.5rem 2.25rem 2.25rem;
}
.rmi-svc-eligibility h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 1.15rem;
}
.rmi-svc-check-list--light li {
    color: #fff;
}
.rmi-check-icon--light {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}
.rmi-svc-doc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}
.rmi-svc-doc-list li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.rmi-svc-doc-list strong {
    font-size: 0.95rem;
    font-weight: 700;
}
.rmi-svc-doc-list span {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.78);
}
.rmi-svc-eligibility-cta {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .rmi-svc-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem 1rem;
    }
    .rmi-svc-steps::before {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .rmi-svc-vehicle-grid,
    .rmi-svc-check-grid {
        grid-template-columns: 1fr 1fr;
    }
    .rmi-svc-eligibility {
        padding: 1.75rem 1.35rem;
    }
}

@media (max-width: 575.98px) {
    .rmi-partner-type-grid {
        grid-template-columns: 1fr;
    }
    .rmi-partner-type {
        min-height: 120px;
        flex-direction: row;
        justify-content: flex-start;
        padding: 1.25rem 1.5rem;
        gap: 1.25rem;
    }
    .rmi-partner-type-label {
        text-align: left;
    }
    .rmi-hero-benefits {
        align-items: flex-start;
    }
    .rmi-stat-item {
        margin-bottom: 0.75rem;
    }
    .rmi-section {
        padding: 3rem 0;
    }
    .rmi-svc-vehicle-grid,
    .rmi-svc-check-grid,
    .rmi-svc-steps {
        grid-template-columns: 1fr;
    }
    .rmi-svc-hero {
        padding: 3rem 0 3.5rem;
    }
}

/* ===== About Us page ===== */
.rmi-about-hero {
    position: relative;
    background: #f4faf9;
    padding: 4.5rem 0 4.75rem;
    overflow: hidden;
    text-align: center;
}
.rmi-about-hero-bg {
    position: absolute;
    inset: 0;
    top: -160px;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.rmi-about-hero-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0.5;
    display: block;
}
.rmi-about-hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}
.rmi-about-hero h1 {
    font-size: clamp(1.85rem, 4vw, 2.65rem);
    font-weight: 800;
    color: #0f1f2e;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 0.9rem;
}
.rmi-about-hero p {
    margin: 0 auto;
    max-width: 580px;
    color: var(--rmi-text-muted);
    font-size: 1.0625rem;
    line-height: 1.7;
}
.rmi-about-progress-section {
    padding-top: 0;
    margin-top: -1.5rem;
}
.rmi-about-progress-card {
    background: var(--rmi-white);
    border: 1px solid #e8eef2;
    border-radius: 18px;
    box-shadow: 0 10px 36px rgba(15, 23, 42, 0.06);
    padding: 2.5rem 2.25rem 2.25rem;
}
.rmi-about-progress-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f1f2e;
    margin: 0 0 1rem;
}
.rmi-about-progress-card > .row p {
    color: var(--rmi-text-muted);
    font-size: 0.975rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.rmi-about-stat-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.rmi-about-stat {
    background: #e8f5f3;
    border-radius: 14px;
    padding: 1.35rem 1.25rem;
    text-align: center;
}
.rmi-about-stat strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--rmi-teal);
    line-height: 1.15;
    margin-bottom: 0.35rem;
}
.rmi-about-stat span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--rmi-teal-dark);
}
.rmi-about-values {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem 1.25rem;
    margin-top: 2.25rem;
    padding-top: 2rem;
    border-top: 1px solid #eef2f5;
}
.rmi-about-value {
    text-align: center;
}
.rmi-about-value-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #e7f3f1;
    color: var(--rmi-teal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.85rem;
}
.rmi-about-value h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f1f2e;
    margin: 0 0 0.4rem;
}
.rmi-about-value p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--rmi-text-muted);
}
.rmi-about-vm-section {
    padding-top: 0.5rem;
}
.rmi-about-vm {
    background: var(--rmi-teal);
    color: #fff;
    border-radius: 18px;
    padding: 2.5rem 2.25rem;
}
.rmi-about-vm > h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 1.75rem;
    text-align: center;
}
.rmi-about-vm-icon {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 0.85rem;
}
.rmi-about-vm-block h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
}
.rmi-about-vm-kicker {
    font-size: 0.9rem;
    font-weight: 600;
    color: #b8e8e4;
    margin-bottom: 0.65rem !important;
}
.rmi-about-vm-block p {
    font-size: 0.925rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 0;
}
.rmi-about-timeline {
    list-style: none;
    margin: 2.75rem auto 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: 1040px;
    position: relative;
}
.rmi-about-timeline::before {
    content: "";
    position: absolute;
    top: 3.15rem;
    left: 8%;
    right: 8%;
    height: 2px;
    background: #cfe3e1;
    z-index: 0;
}
.rmi-about-timeline-item {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.rmi-about-timeline-year {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--rmi-teal);
    letter-spacing: 0.04em;
    margin-bottom: 0.65rem;
}
.rmi-about-timeline-dot {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    background: var(--rmi-teal);
    box-shadow: 0 0 0 6px #fff;
    margin-bottom: 1rem;
}
.rmi-about-timeline-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f1f2e;
    margin: 0 0 0.45rem;
}
.rmi-about-timeline-item p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--rmi-text-muted);
    max-width: 14rem;
}
.rmi-about-cta-wrap {
    padding: 0 0 3.5rem;
}
.rmi-about-cta {
    background: var(--rmi-teal);
    border-radius: 14px;
    padding: 1.35rem 1.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.rmi-about-cta h2 {
    margin: 0;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 700;
    color: #fff;
}
.rmi-about-cta .btn-rmi-dark {
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .rmi-about-values,
    .rmi-about-timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .rmi-about-timeline::before {
        display: none;
    }
    .rmi-about-timeline-dot {
        box-shadow: none;
    }
}

@media (max-width: 767.98px) {
    .rmi-about-progress-card,
    .rmi-about-vm {
        padding: 1.75rem 1.35rem;
    }
    .rmi-about-values,
    .rmi-about-timeline {
        grid-template-columns: 1fr;
    }
    .rmi-about-cta {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1.25rem;
    }
    .rmi-about-hero {
        padding: 3rem 0 3.5rem;
    }
}

/* ===== Partners marketing page ===== */
.rmi-partners-hero {
    position: relative;
    background: #f4faf9;
    padding: 4.5rem 0 5rem;
    overflow: hidden;
    text-align: center;
}
.rmi-partners-hero-bg {
    position: absolute;
    inset: 0;
    top: -130px;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.rmi-partners-hero-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0.5;
    display: block;
}
.rmi-partners-hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}
.rmi-partners-hero h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #0f1f2e;
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
}
.rmi-partners-hero p {
    color: var(--rmi-text-muted);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin: 0 auto 1.75rem;
    max-width: 540px;
}
.rmi-partners-types-section {
    padding-top: 0;
    margin-top: -1.75rem;
}
.rmi-partners-types-panel {
    background: #f1f5f8;
    border-radius: 18px;
    padding: 1.5rem;
}
.rmi-partners-type-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.rmi-partners-type-card {
    background: var(--rmi-white);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.35rem 1.2rem 1.5rem;
    height: 100%;
}
.rmi-partners-type-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--rmi-teal);
    margin: 0 0 0.75rem;
    line-height: 1.35;
}
.rmi-partners-type-card h3 span {
    font-weight: 600;
    font-size: 0.92rem;
}
.rmi-partners-type-card p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--rmi-text-muted);
}
.rmi-partners-benefits .rmi-section-title {
    margin-bottom: 0.75rem;
}
.rmi-partners-benefits .rmi-section-subtitle {
    max-width: none;
}
.rmi-partners-benefits-list {
    max-width: none;
    margin-top: 0.25rem;
}
.rmi-partners-cta {
    padding: 0.8rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .rmi-partners-type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .rmi-partners-type-grid {
        grid-template-columns: 1fr;
    }
    .rmi-partners-types-panel {
        padding: 1rem;
    }
    .rmi-partners-hero {
        padding: 3rem 0 3.75rem;
    }
}

/* Legacy media service card (kept for other pages if needed) */
.rmi-dash-service-card--media {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.rmi-dash-service-card-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-bottom: 1px solid #eef1f4;
}

.rmi-dash-service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.6rem;
}

.rmi-dash-service-card-body {
    padding: 1.1rem 1.15rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rmi-dash-service-card-body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f1f2e;
    margin: 0 0 0.5rem;
}

.rmi-dash-service-card-body p {
    font-size: 0.85rem;
    color: var(--rmi-text-muted);
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =====================================================
   Generic "service lookup / recharge" page styling
   Reusable for any service: Dish TV, mobile, electricity, etc.
   ===================================================== */

/* ----- Outer card / form ----- */
.rmi-svc-card {
    background: var(--rmi-white);
    border-radius: var(--rmi-radius-lg);
    box-shadow: var(--rmi-shadow-lg);
    border: 1px solid #eef1f4;
    padding: 2.25rem 2.25rem 2.5rem;
    margin: 2rem 0;
}

.rmi-svc-card-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--rmi-text);
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

    .rmi-svc-card-title i {
        color: var(--rmi-teal);
        font-size: 1.25rem;
    }

.rmi-svc-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--rmi-text);
    margin-bottom: 0.5rem;
}

.rmi-svc-label--required::after {
    content: " *";
    color: #dc3545;
}

.rmi-svc-field-row {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.rmi-svc-field-group {
    flex: 1;
    min-width: 240px;
}

.rmi-svc-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: var(--rmi-text);
    background: var(--rmi-white);
    border: 1px solid #dde3ea;
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .rmi-svc-input:focus {
        outline: none;
        border-color: var(--rmi-teal);
        box-shadow: 0 0 0 3px rgba(13, 92, 92, 0.12);
    }

    .rmi-svc-input.is-invalid {
        border-color: #dc3545;
    }

.rmi-svc-field-error {
    color: #dc3545;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-top: 0.4rem;
}

.rmi-svc-btn {
    background: var(--rmi-teal);
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s, transform 0.15s;
}

    .rmi-svc-btn:hover:not(:disabled) {
        background: var(--rmi-teal-light);
        transform: translateY(-1px);
    }

    .rmi-svc-btn:disabled {
        opacity: 0.65;
        cursor: not-allowed;
    }

.rmi-svc-btn--secondary {
    background: #c9a227;
}

    .rmi-svc-btn--secondary:hover:not(:disabled) {
        background: #b08f1f;
    }

/* ----- Alerts ----- */
.rmi-svc-alert {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border-radius: 10px;
    padding: 0.9rem 1.15rem;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-top: 1.5rem;
}

.rmi-svc-alert--error {
    background: #fdecee;
    border: 1px solid #f5c2c7;
    color: #b02a37;
}

.rmi-svc-alert--success {
    background: #e6f4ef;
    border: 1px solid #b7e4d3;
    color: #157a53;
}

.rmi-svc-alert i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.rmi-svc-back-btn {
    background: transparent;
    border: 1px solid #dde3ea;
    color: var(--rmi-text);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    margin-top: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: border-color 0.2s, color 0.2s;
}

    .rmi-svc-back-btn:hover {
        border-color: var(--rmi-teal);
        color: var(--rmi-teal);
    }

/* ----- Search box (filters the result list) ----- */
.rmi-svc-search-row {
    margin-top: 1.75rem;
}

.rmi-svc-search-box {
    position: relative;
    max-width: 360px;
}

    .rmi-svc-search-box i {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
        font-size: 0.9rem;
    }

.rmi-svc-search-input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    font-size: 0.875rem;
    color: var(--rmi-text);
    background: var(--rmi-white);
    border: 1px solid #dde3ea;
    border-radius: 999px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .rmi-svc-search-input:focus {
        outline: none;
        border-color: var(--rmi-teal);
        box-shadow: 0 0 0 3px rgba(13, 92, 92, 0.12);
    }

/* ----- Result list (card-based, replaces old table) ----- */
.rmi-svc-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.75rem;
}

.rmi-svc-item {
    border: 1px solid #e8edf2;
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
    background: #fff;
    transition: box-shadow 0.15s ease;
}

    .rmi-svc-item:hover {
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    }

.rmi-svc-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.rmi-svc-item-main {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.rmi-svc-item-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rmi-teal), var(--rmi-teal-accent));
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rmi-svc-item-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rmi-text);
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.rmi-svc-item-sub {
    font-size: 0.8125rem;
    color: var(--rmi-text-muted);
    margin-top: 0.2rem;
}

.rmi-svc-status {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.rmi-svc-status--active {
    background: #e6f4ef;
    color: #157a53;
}

.rmi-svc-status--inactive {
    background: #f1f3f5;
    color: #6c757d;
}

.rmi-svc-item-actions {
    flex-shrink: 0;
}

.rmi-svc-action-btn {
    background: var(--rmi-teal-accent);
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.5rem 1.05rem;
    border-radius: 8px;
    transition: background 0.2s;
    white-space: nowrap;
}

    .rmi-svc-action-btn:hover:not(:disabled) {
        background: var(--rmi-teal-light);
    }

    .rmi-svc-action-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.rmi-svc-action-disabled {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #adb5bd;
    background: #f8f9fa;
    border: 1px solid #eef1f4;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.rmi-svc-item-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px dashed #eef1f4;
    flex-wrap: wrap;
}

.rmi-svc-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.75rem;
    color: var(--rmi-text-muted);
}

    .rmi-svc-stat strong {
        font-size: 0.9375rem;
        color: var(--rmi-text);
    }

.rmi-svc-toggle {
    background: transparent;
    border: none;
    color: var(--rmi-teal);
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.6rem 0 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

    .rmi-svc-toggle:hover {
        color: var(--rmi-teal-light);
    }

/* ----- Expandable sub-items (offers, plans, etc.) ----- */
.rmi-svc-sublist {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eef1f4;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.rmi-svc-subitem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    flex-wrap: wrap;
}

.rmi-svc-subitem-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--rmi-text);
}

.rmi-svc-subitem-detail {
    font-size: 0.8125rem;
    color: var(--rmi-text-muted);
    margin-top: 0.1rem;
}

.rmi-svc-subitem-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.rmi-svc-subitem-amount {
    font-weight: 700;
    color: var(--rmi-teal-dark);
    font-size: 0.9375rem;
}

.rmi-svc-empty {
    color: #dc3545;
    font-weight: 700;
    padding: 0.85rem;
    text-align: center;
}

/* ----- Pagination ----- */
.rmi-svc-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.rmi-svc-page-info {
    font-size: 0.8125rem;
    color: var(--rmi-text-muted);
    margin-right: 0.75rem;
}

.rmi-svc-page-btn {
    background: #fff;
    border: 1px solid #dde3ea;
    color: var(--rmi-text);
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    min-width: 2.25rem;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

    .rmi-svc-page-btn:hover:not(:disabled):not(.active) {
        border-color: var(--rmi-teal);
        color: var(--rmi-teal);
    }

    .rmi-svc-page-btn.active {
        background: var(--rmi-teal);
        border-color: var(--rmi-teal);
        color: #fff;
    }

    .rmi-svc-page-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

.rmi-report-pagination {
    justify-content: space-between;
}

.rmi-report-pagination-btns {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.rmi-svc-page-ellipsis {
    color: var(--rmi-text-muted);
    font-weight: 700;
    padding: 0 0.2rem;
    user-select: none;
}

/* ----- Responsive ----- */
@media (max-width: 575.98px) {
    .rmi-svc-card {
        padding: 1.5rem 1.25rem 1.75rem;
    }

    .rmi-svc-field-row {
        flex-direction: column;
        align-items: stretch;
    }

    .rmi-svc-btn {
        justify-content: center;
        width: 100%;
    }

    .rmi-svc-item-head {
        flex-direction: column;
        align-items: stretch;
    }

    .rmi-svc-item-actions {
        display: flex;
        justify-content: stretch;
    }

        .rmi-svc-item-actions .rmi-svc-action-btn,
        .rmi-svc-action-disabled {
            width: 100%;
            text-align: center;
        }

    .rmi-svc-item-stats {
        gap: 1rem;
    }

    .rmi-svc-subitem {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Wallet recharge page */
.rmi-wallet-recharge {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.rmi-wallet-recharge .rmi-svc-card-title {
    margin-bottom: 0;
}

.rmi-wallet-recharge__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.rmi-wallet-recharge__balance {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0.55rem 0.95rem;
    background: rgba(13, 92, 92, 0.08);
    border-radius: 10px;
}

.rmi-wallet-recharge__balance span {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--rmi-text-muted);
}

.rmi-wallet-recharge__balance strong {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--rmi-teal);
}

.rmi-wallet-recharge__profile {
    display: grid;
    grid-template-columns: auto auto minmax(16rem, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.rmi-wallet-recharge__chip {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 0.95rem;
    background: #f4f7f7;
    border: 1px solid #e6eeee;
    border-radius: 12px;
    min-width: 0;
}

.rmi-wallet-recharge__chip i {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(13, 92, 92, 0.1);
    color: var(--rmi-teal);
    font-size: 0.95rem;
}

.rmi-wallet-recharge__chip span {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--rmi-text-muted);
}

.rmi-wallet-recharge__chip strong {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--rmi-text);
    white-space: nowrap;
}

.rmi-wallet-recharge__form {
    padding-top: 1.35rem;
    border-top: 1px solid #eef1f4;
}

.rmi-wallet-recharge__pay-row {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    max-width: 28rem;
}

.rmi-wallet-recharge__amount {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.rmi-wallet-recharge__currency {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: var(--rmi-teal);
    pointer-events: none;
}

.rmi-wallet-recharge__amount .rmi-svc-input {
    padding-left: 2.15rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.rmi-wallet-recharge__pay-row .rmi-svc-btn {
    flex: 0 0 auto;
}

@media (max-width: 767.98px) {
    .rmi-wallet-recharge__profile {
        grid-template-columns: 1fr;
    }

    .rmi-wallet-recharge__chip strong {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .rmi-wallet-recharge__pay-row {
        flex-direction: column;
        max-width: none;
    }

    .rmi-wallet-recharge__pay-row .rmi-svc-btn {
        justify-content: center;
        width: 100%;
    }
}

/* ===== DDE tabbed form ===== */
.rmi-dde-page {
    padding: 1.5rem 0 2.5rem;
}
.rmi-dde-card {
    background: #fff;
    border: 1px solid #dbe3ea;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(15, 47, 58, 0.05);
}
.rmi-dde-tabs {
    display: flex;
    border-bottom: 1px solid #e5ebf0;
    background: #f8fafc;
}
.rmi-dde-tab {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 0.95rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    border-top: 3px solid transparent;
}
.rmi-dde-tab.is-active {
    background: #eef2f6;
    border-top-color: #2563eb;
    color: #0f172a;
}
.rmi-dde-panel {
    padding: 1.35rem 1.35rem 1.5rem;
}
.rmi-dde-link-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.85rem;
}
.rmi-dde-link {
    color: #2563eb;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}
.rmi-dde-link:hover {
    text-decoration: underline;
}
.rmi-dde-grid {
    display: grid;
    gap: 1rem 1.25rem;
    margin-bottom: 1.15rem;
}
.rmi-dde-grid--doc {
    grid-template-columns: 1.2fr 1fr;
}
.rmi-dde-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.rmi-dde-field {
    min-width: 0;
}
.rmi-dde-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.4rem;
}
.rmi-dde-label--required::after {
    content: " *";
    color: #dc2626;
}
.rmi-dde-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    background: #fff;
}
.rmi-dde-input.is-invalid {
    border-color: #dc3545;
}
.rmi-dde-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.rmi-dde-input--readonly,
.rmi-dde-input:disabled {
    background: #f1f5f9;
    color: #0f172a;
    cursor: not-allowed;
}
.rmi-dde-help {
    list-style: none;
    margin: 0.45rem 0 0;
    padding: 0;
    color: #2563eb;
    font-size: 0.75rem;
    line-height: 1.45;
}
.rmi-dde-upload {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
    background: #f8fafc;
}
.rmi-dde-upload-name {
    font-size: 0.8125rem;
    color: #64748b;
}
.rmi-dde-warn {
    margin-top: 0.4rem;
    color: #dc2626;
    font-size: 0.8125rem;
    font-weight: 600;
}
.rmi-dde-ok {
    margin-top: 0.4rem;
    color: #15803d;
    font-size: 0.8125rem;
    font-weight: 600;
}
.rmi-dde-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 0.35rem;
}
.rmi-dde-radios label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    color: #1e293b;
}
.rmi-dde-radios input[type="radio"] {
    accent-color: #2563eb;
}
.rmi-dde-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.25rem;
}
.rmi-dde-actions--split {
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}
.rmi-dde-btn {
    border: 0;
    background: #2563eb;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 8px;
    padding: 0.7rem 1.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.rmi-dde-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.rmi-dde-btn--secondary {
    background: #0f766e;
}
.rmi-dde-btn--ghost {
    background: #fff;
    color: #334155;
    border: 1px solid #cbd5e1;
}
.rmi-dde-populate {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.5rem;
    align-items: center;
    margin: 0 0 1.15rem;
    padding: 0.85rem 1rem;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    background: #f8fafc;
}
.rmi-dde-populate-option {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
}
.rmi-dde-populate-option.is-disabled {
    color: #94a3b8;
    cursor: not-allowed;
}
.rmi-dde-populate-option input[type="radio"] {
    accent-color: #2563eb;
}
.rmi-dde-populate-option.is-disabled input[type="radio"] {
    cursor: not-allowed;
}
.rmi-dde-parties {
    margin-top: 0.35rem;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 40%);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 47, 58, 0.04);
}
.rmi-dde-parties-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e8eef5;
    background: #f1f6fb;
}
.rmi-dde-parties-title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f2f3a;
}
.rmi-dde-parties-title i {
    color: #2563eb;
}
.rmi-dde-parties-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1d4ed8;
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
}
.rmi-dde-parties-table-wrap {
    overflow-x: auto;
}
.rmi-dde-parties-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.8125rem;
}
.rmi-dde-parties-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
    text-align: left;
}
.rmi-dde-parties-table tbody td {
    padding: 0.8rem 0.85rem;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
    color: #0f172a;
}
.rmi-dde-parties-table tbody tr:last-child td {
    border-bottom: 0;
}
.rmi-dde-parties-table tbody tr:hover td {
    background: #f8fafc;
}
.rmi-dde-parties-name {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 8rem;
}
.rmi-dde-parties-avatar {
    flex: 0 0 auto;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e0e7ff;
    color: #3730a3;
    font-size: 0.75rem;
    font-weight: 700;
}
.rmi-dde-parties-name strong {
    font-weight: 600;
    color: #0f172a;
}
.rmi-dde-parties-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.18rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}
.rmi-dde-parties-badge.is-first {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.rmi-dde-parties-badge.is-second {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}
.rmi-dde-parties-badge.is-additional {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.rmi-dde-parties-col-actions {
    width: 7.5rem;
    text-align: center;
}
.rmi-dde-parties-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    border: 1px solid #fecaca;
    background: #fff;
    color: #b91c1c;
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
}
.rmi-dde-parties-delete:hover {
    background: #fef2f2;
}
.rmi-dde-parties-delete:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.rmi-dde-parties-empty {
    margin: 0;
    padding: 1.1rem 1rem;
    color: #64748b;
    font-size: 0.875rem;
}
.rmi-dde-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #0f172a;
}
.rmi-dde-empty {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
.rmi-dde-table {
    font-size: 0.8125rem;
}
.rmi-dde-docs {
    margin: 0 0 1.25rem;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 42%);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 47, 58, 0.04);
}
.rmi-dde-docs-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e8eef5;
    background: #f1f6fb;
}
.rmi-dde-docs-title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f2f3a;
}
.rmi-dde-docs-title i {
    color: #0d9488;
    font-size: 1.05rem;
}
.rmi-dde-docs-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: #0f766e;
    background: #ccfbf1;
    border: 1px solid #99f6e4;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
}
.rmi-dde-docs-table-wrap {
    overflow-x: auto;
}
.rmi-dde-docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.875rem;
}
.rmi-dde-docs-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}
.rmi-dde-docs-table tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
    color: #0f172a;
}
.rmi-dde-docs-table tbody tr:last-child td {
    border-bottom: 0;
}
.rmi-dde-docs-table tbody tr:hover td {
    background: #f8fafc;
}
.rmi-dde-docs-col-sl {
    width: 4.5rem;
    text-align: center;
}
.rmi-dde-docs-sl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 700;
}
.rmi-dde-docs-col-actions {
    width: 7.5rem;
    text-align: center;
}
.rmi-dde-docs-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}
.rmi-dde-docs-file-icon {
    flex: 0 0 auto;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    font-size: 1.15rem;
}
.rmi-dde-docs-name-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.rmi-dde-docs-name-text strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rmi-dde-docs-name-text small {
    color: #64748b;
    font-size: 0.72rem;
}
.rmi-dde-docs-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.rmi-dde-icon-btn {
    width: 2rem;
    height: 2rem;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.rmi-dde-icon-btn:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
}
.rmi-dde-icon-btn--danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}
.rmi-dde-icon-btn--danger:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}
.rmi-dde-icon-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.rmi-dde-field--span2 {
    grid-column: span 2;
}
.rmi-dde-textarea {
    min-height: 5rem;
    resize: vertical;
}
.rmi-dde-charges {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.rmi-dde-charges > div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.8125rem;
}
.rmi-dde-charges-total {
    grid-column: 1 / -1;
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
}
.rmi-dde-fee-wrap {
    max-width: 38rem;
    margin: 0 auto 1.25rem;
}
.rmi-dde-fee-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #d7dbe7;
    font-size: 0.9375rem;
}
.rmi-dde-fee-table td {
    border: 1px solid #d7dbe7;
    padding: 0.7rem 0.9rem;
    vertical-align: middle;
}
.rmi-dde-fee-table tr td:first-child {
    background: #f2f3f9;
    width: 68%;
    color: #1f2937;
}
.rmi-dde-fee-table tr td:last-child {
    text-align: right;
    font-weight: 600;
    color: #111827;
}
.rmi-dde-fee-total td {
    font-weight: 700;
}
.rmi-dde-declaration {
    margin-top: 0.5rem;
}
.rmi-dde-declaration-text {
    margin: 0.75rem 0 0;
    color: #dc2626;
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.45;
}
.rmi-dde-declaration-note {
    margin: 0.65rem 0 0;
    color: #1e3a8a;
    font-weight: 700;
    font-size: 0.875rem;
}
.rmi-dde-terms {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    margin: 0.5rem 0 0.25rem;
}
.rmi-dde-alert {
    margin: 1rem 1.35rem 0;
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    font-size: 0.875rem;
}
.rmi-dde-alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.rmi-dde-alert--success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
@media (max-width: 991.98px) {
    .rmi-dde-grid--doc,
    .rmi-dde-grid--3,
    .rmi-dde-charges {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 767.98px) {
    .rmi-dde-tabs {
        flex-direction: column;
    }
    .rmi-dde-grid--doc,
    .rmi-dde-grid--3,
    .rmi-dde-charges {
        grid-template-columns: 1fr;
    }
    .rmi-dde-field--span2 {
        grid-column: auto;
    }
    .rmi-dde-actions--split {
        flex-direction: column;
        align-items: stretch;
    }
}
}


/* ===== Payment page shell + action buttons ===== */


/* =====================================================
   Payment Gateway — UniPayment checkout (legacy-aligned)
   ===================================================== */

.rmi-paygw-page {
    min-height: 100vh;
    background: #eef1f4;
    padding-bottom: 2rem;
}

.rmi-paygw-brandbar {
    background: #fff;
    border-top: 2px solid #8b1e2d;
    border-bottom: 2px solid #8b1e2d;
    margin-bottom: 1.25rem;
    overflow: visible;
}

.rmi-paygw-brandbar-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.rmi-paygw-brand-logo {
    height: 42px;
    width: auto;
    max-height: 42px;
    object-fit: contain;
    object-position: left center;
}

/* Size by height only so the mark keeps its own proportions. */
.rmi-cms-logo,
.rmi-paygw-brand-logo--cms,
.rmi-pay-index-brand__cms {
    display: inline-block;
    height: 40px !important;
    width: auto !important;
    max-height: 40px !important;
    max-width: none !important;
    object-fit: contain !important;
    object-position: right center;
    flex-shrink: 0;
    vertical-align: middle;
}

.rmi-paygw {
    max-width: 1140px;
    margin: 0 auto 2rem;
}

.rmi-paygw-grid {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.rmi-paygw-col-modes,
.rmi-paygw-col-summary {
    min-width: 0;
}

@media (max-width: 899.98px) {
    .rmi-paygw-grid {
        grid-template-columns: 1fr;
    }
}

/* ----- Payment methods (left) ----- */
.rmi-paygw-methods {
    background: #fff;
    border: 1px solid #e6eeee;
    border-radius: 14px;
    overflow: visible;
    box-shadow: 0 8px 28px rgba(4, 28, 28, 0.06);
}

.rmi-paygw-methods-title {
    margin: 0;
    padding: 0.95rem 1.1rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--rmi-teal, #0d5c5c);
    background: #f4f7f7;
    border-bottom: 1px solid #e6eeee;
}

.rmi-paygw-mode {
    border-bottom: 1px solid #eef2f4;
}

.rmi-paygw-mode:last-child {
    border-bottom: none;
}

.rmi-paygw-mode--open {
    background: #f3fafa;
}

.rmi-paygw-mode-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: transparent;
    border: none;
    padding: 0.9rem 1.05rem;
    cursor: pointer;
    text-align: left;
}

.rmi-paygw-mode-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rmi-paygw-mode-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e6eeee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    padding: 4px;
}

.rmi-paygw-mode-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.rmi-paygw-mode-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.rmi-paygw-mode-label {
    font-weight: 700;
    font-size: 0.9375rem;
    color: #0f172a;
}

.rmi-paygw-mode-chevron {
    color: #64748b;
    flex-shrink: 0;
}

.rmi-paygw-submodes {
    padding: 0 0.85rem 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.rmi-paygw-submode {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.rmi-paygw-submode:hover {
    background: #e8f4f4;
}

.rmi-paygw-submode--selected {
    background: #e4f2f2;
    border-color: rgba(13, 92, 92, 0.28);
    color: var(--rmi-teal, #0d5c5c);
}

.rmi-paygw-submode-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--rmi-teal, #0d5c5c);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.rmi-paygw-empty {
    margin: 0;
    padding: 1rem;
    color: #64748b;
    font-size: 0.875rem;
}

/* ----- Order summary (right) ----- */
.rmi-paygw-summary {
    background: #fff;
    border: 1px solid #e6eeee;
    border-radius: 14px;
    overflow: hidden;
    padding-bottom: 1.25rem;
    box-shadow: 0 8px 28px rgba(4, 28, 28, 0.06);
}

.rmi-paygw-summary-title {
    background: linear-gradient(90deg, var(--rmi-teal, #0d5c5c), #0f7070);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.95rem 1.15rem;
}

.rmi-paygw-customer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.5rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #e8edf2;
    font-size: 0.9rem;
}

.rmi-paygw-customer-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.15rem;
}

.rmi-paygw-customer strong {
    color: #0f172a;
    font-weight: 700;
}

@media (max-width: 575.98px) {
    .rmi-paygw-customer {
        grid-template-columns: 1fr;
    }
}

.rmi-paygw-table-wrap {
    overflow-x: auto;
    padding: 0 1.1rem;
    margin-top: 0.75rem;
}

.rmi-paygw-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.rmi-paygw-table th {
    background: var(--rmi-teal, #0d5c5c);
    color: #fff;
    font-weight: 700;
    padding: 0.7rem 0.6rem;
    text-align: left;
    white-space: nowrap;
}

.rmi-paygw-table td {
    padding: 0.65rem 0.55rem;
    border-bottom: 1px solid #e8edf2;
    color: #1e293b;
    vertical-align: top;
}

.rmi-paygw-table tfoot td {
    background: var(--rmi-teal, #0d5c5c);
    color: #fff;
    font-weight: 700;
    border-bottom: none;
}

.rmi-paygw-table .text-end {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.rmi-paygw-totals {
    margin: 1rem 1.1rem 0;
    border-top: 1px solid #e2e8f0;
    padding-top: 0.35rem;
}

.rmi-paygw-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #edf1f5;
    font-size: 0.875rem;
    color: #475569;
}

.rmi-paygw-totals-row strong {
    color: var(--rmi-teal, #0d5c5c);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.rmi-paygw-totals-row--grand {
    border-bottom: none;
    padding-top: 0.75rem;
}

.rmi-paygw-totals-row--grand span {
    font-weight: 800;
    color: #0f172a;
    font-size: 0.95rem;
}

.rmi-paygw-totals-row--grand strong {
    font-size: 1.05rem;
    color: var(--rmi-teal, #0d5c5c);
}

.rmi-paygw-wallet {
    margin: 0.85rem 1.1rem 0;
    padding: 0.85rem 1rem;
    background: #f3fafa;
    border: 1px solid #d7eaea;
    border-radius: 10px;
}

.rmi-paygw-wallet-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    font-size: 0.875rem;
    color: #475569;
}

.rmi-paygw-wallet-row strong {
    color: var(--rmi-teal, #0d5c5c);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.rmi-paygw-wallet-note {
    margin: 0.45rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
    font-style: italic;
}

.rmi-paygw-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 16rem;
    margin: 2rem auto 0;
    max-width: 28rem;
    padding: 2.25rem 1.5rem;
    text-align: center;
    color: var(--rmi-teal, #0d5c5c);
    background: #fff;
    border: 1px solid #e6eeee;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(4, 28, 28, 0.08);
}

.rmi-paygw-placeholder::before {
    content: "";
    display: block;
    width: 100%;
    height: 4px;
    margin: -2.25rem -1.5rem 1.25rem;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, var(--rmi-teal, #0d5c5c), var(--rmi-green, #22a06b));
}

.rmi-paygw-placeholder__spinner {
    width: 2.35rem;
    height: 2.35rem;
    border: 3px solid rgba(13, 92, 92, 0.18);
    border-top-color: var(--rmi-teal, #0d5c5c);
    border-radius: 50%;
    animation: rmi-busy-spin 0.8s linear infinite;
}

.rmi-paygw-placeholder__text {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--rmi-teal, #0d5c5c);
}

@media (prefers-reduced-motion: reduce) {
    .rmi-paygw-placeholder__spinner {
        animation: none;
        border-top-color: rgba(13, 92, 92, 0.18);
    }
}

.rmi-paygw-terms {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    margin: 1rem 1.1rem 0;
    font-size: 0.85rem;
    color: #64748b;
    cursor: pointer;
}

.rmi-paygw-terms input {
    margin-top: 0.15rem;
    accent-color: #0d5c5c;
}

.rmi-paygw-terms-link {
    background: none;
    border: none;
    padding: 0;
    color: #0d5c5c;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
}

.rmi-paygw-alert {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 1rem 1.1rem 0;
    padding: 0.75rem 0.95rem;
    background: #fdecee;
    border: 1px solid #f5c2c7;
    color: #b02a37;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.rmi-paygw-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 1.25rem 1.1rem 0;
}

.rmi-paygw-actions--sticky {
    display: none;
}

.rmi-paygw-btn-cancel,
.rmi-paygw-btn-pay {
    min-width: 120px;
    padding: 0.7rem 1.4rem;
    border-radius: 3px;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
}

.rmi-paygw-btn-cancel {
    background: #c0392b;
    border: none;
    color: #fff;
}

.rmi-paygw-btn-cancel:hover:not(:disabled) {
    filter: brightness(1.05);
}

.rmi-paygw-btn-pay {
    background: #1e9e4b;
    border: none;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-left: auto;
}

.rmi-paygw-btn-pay:hover:not(:disabled) {
    filter: brightness(1.05);
}

.rmi-paygw-btn-cancel:disabled,
.rmi-paygw-btn-pay:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ----- Terms modal ----- */
.rmi-paygw-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 1rem;
}

.rmi-paygw-modal {
    background: #fff;
    border-radius: 6px;
    max-width: 640px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.rmi-paygw-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #0d5c5c;
    color: #fff;
}

.rmi-paygw-modal-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.rmi-paygw-modal-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.rmi-paygw-modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.6;
}

.rmi-paygw-modal-footer {
    padding: 0.85rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    text-align: right;
}

@media (max-width: 575.98px) {
    .rmi-paygw-page {
        padding-bottom: 5.5rem;
    }

    .rmi-paygw-actions:not(.rmi-paygw-actions--sticky) {
        display: none;
    }

    .rmi-paygw-actions--sticky {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1015;
        background: #fff;
        border-top: 1px solid #d5dde6;
        box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.1);
        padding: 0.75rem 1rem;
        margin: 0;
        gap: 0.65rem;
    }

    .rmi-paygw-actions--sticky .rmi-paygw-btn-cancel,
    .rmi-paygw-actions--sticky .rmi-paygw-btn-pay {
        flex: 1;
        margin-left: 0;
        min-width: 0;
    }
}

/* Payment Index waiting screen */
.rmi-pay-wait {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--rmi-gray-bg);
}

.rmi-pay-wait__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.5rem;
    background: var(--rmi-white);
    border-bottom: 1px solid var(--rmi-gray-light);
}

.rmi-pay-wait__bar .rmi-pay-index-brand__rmi,
.rmi-pay-wait__bar .rmi-cms-logo {
    display: block;
    margin: 0;
}

.rmi-pay-wait__main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem 1rem 3rem;
}

.rmi-pay-wait__main > form {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
}

.rmi-pay-wait__card {
    width: min(520px, 100%);
    margin-inline: auto;
    flex: 0 0 auto;
    background: var(--rmi-white);
    border: 1px solid #eef1f4;
    border-radius: 16px;
    box-shadow: var(--rmi-shadow-lg);
    padding: 2.5rem 2rem 2rem;
    text-align: center;
}

.rmi-pay-wait__card h1 {
    margin: 1.25rem 0 0.6rem;
    color: var(--rmi-text);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.45;
}

.rmi-pay-wait__card p {
    margin: 0;
    color: var(--rmi-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.rmi-pay-wait__spinner {
    display: inline-block;
    width: 3.25rem;
    height: 3.25rem;
    border: 4px solid #d7e8e8;
    border-top-color: var(--rmi-teal);
    border-radius: 50%;
    animation: rmi-pay-wait-spin 0.8s linear infinite;
}

.rmi-pay-wait__secure {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1.25rem !important;
    color: var(--rmi-teal) !important;
    font-size: 0.8125rem !important;
    font-weight: 600;
}

.rmi-pay-wait__card--error h1 {
    color: #b42318;
    margin-top: 0.75rem;
}

.rmi-pay-wait__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: #fdecea;
    color: #b42318;
    font-size: 1.5rem;
}

@keyframes rmi-pay-wait-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 767.98px) {
    .rmi-pay-wait__bar {
        padding: 0.75rem 1rem;
    }

    .rmi-pay-wait__card {
        padding: 2rem 1.25rem 1.5rem;
    }

    .rmi-pay-wait__card h1 {
        font-size: 1.1rem;
    }
}

/* Payment Index / Response / Status brand header */
.rmi-pay-index-brand {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e8edf2;
}

.rmi-pay-index-brand__rmi,
.rmi-pay-brand__rmi {
    height: 48px;
    width: auto;
    max-width: 100%;
    max-height: 48px;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .rmi-pay-index-brand__rmi,
    .rmi-pay-brand__rmi,
    .rmi-cms-logo,
    .rmi-paygw-brand-logo--cms,
    .rmi-pay-index-brand__cms {
        height: 36px !important;
        max-height: 36px !important;
        max-width: none !important;
        margin-bottom: 0;
    }
}

/* Legacy MVC class names used on officer / activity pages */
.login-box,
.rmi-portal .login-box {
    background: var(--rmi-white);
    border-radius: var(--rmi-radius-lg);
    box-shadow: var(--rmi-shadow-lg);
    border: 1px solid #eef1f4;
}

.text-blue,
.font-SemiBold {
    color: var(--rmi-teal) !important;
    font-weight: 700;
}

.label-required::after,
.selectLabel.label-required::after {
    content: " *";
    color: #dc3545;
}

.res-sec {
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
}

.rmi-portal .btn-primary,
.rmi-svc-card .btn-primary,
.login-box .btn-primary {
    background: var(--rmi-teal);
    border-color: var(--rmi-teal);
    color: #fff;
    font-weight: 600;
}

.rmi-portal .btn-primary:hover,
.rmi-svc-card .btn-primary:hover,
.login-box .btn-primary:hover {
    background: var(--rmi-teal-light);
    border-color: var(--rmi-teal-light);
    color: #fff;
}

.rmi-portal .btn-warning {
    background: #c4a35a;
    border-color: #c4a35a;
    color: #1a1a1a;
    font-weight: 600;
}

.rmi-portal .form-control,
.rmi-portal .form-select,
.login-box .form-control {
    border-radius: 10px;
    border-color: #dde3ea;
}

.rmi-portal .form-control:focus,
.rmi-portal .form-select:focus,
.login-box .form-control:focus {
    border-color: var(--rmi-teal);
    box-shadow: 0 0 0 3px rgba(13, 92, 92, 0.12);
}

.rmi-portal .table thead th,
.login-box .table thead th {
    background: #f3f7f7;
    color: var(--rmi-teal-dark);
    font-weight: 700;
    border-bottom: 2px solid #d7e4e4;
    white-space: nowrap;
}

.rmi-portal .nav-tabs .nav-link {
    color: var(--rmi-text-muted);
    font-weight: 600;
}

.rmi-portal .nav-tabs .nav-link.active,
.rmi-portal .nav-tabs .nav-link:hover {
    color: var(--rmi-teal);
}

.rmi-portal .nav-tabs .nav-link.active {
    border-color: #dee2e6 #dee2e6 #fff;
    border-bottom: 2px solid var(--rmi-teal);
}
/* Global Please-wait overlay */
.rmi-busy-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background:
        radial-gradient(ellipse at 50% 42%, rgba(13, 92, 92, 0.18), transparent 55%),
        rgba(4, 28, 28, 0.58);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: rmi-busy-fade-in 0.22s ease-out;
    pointer-events: all;
}

.rmi-busy-overlay__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, 22rem);
    padding: 2.15rem 1.75rem 1.65rem;
    background: var(--rmi-white, #fff);
    border: 1px solid rgba(13, 92, 92, 0.08);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(4, 28, 28, 0.28);
    animation: rmi-busy-rise 0.28s ease-out;
}

.rmi-busy-overlay__panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, var(--rmi-teal, #0d5c5c), var(--rmi-green, #22a06b));
}

.rmi-busy-overlay__ring {
    position: relative;
    width: 5.5rem;
    height: 5.5rem;
    margin-bottom: 1.1rem;
}

.rmi-busy-overlay__orbit {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        conic-gradient(from 0deg, var(--rmi-teal, #0d5c5c), var(--rmi-green, #22a06b), transparent 62%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
    animation: rmi-busy-spin 0.9s linear infinite;
}

.rmi-busy-overlay__mark {
    position: absolute;
    inset: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f7f7;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(13, 92, 92, 0.08);
}

.rmi-busy-overlay__logo {
    height: 28px;
    width: auto;
    max-width: 3.4rem;
    object-fit: contain;
}

.rmi-busy-overlay__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--rmi-teal, #0d5c5c);
}

.rmi-busy-overlay__hint {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--rmi-text-muted, #64748b);
}

.rmi-busy-overlay__dots {
    display: flex;
    gap: 0.35rem;
    margin-top: 1rem;
}

.rmi-busy-overlay__dots span {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: var(--rmi-teal, #0d5c5c);
    animation: rmi-busy-dot 1.05s ease-in-out infinite;
}

.rmi-busy-overlay__dots span:nth-child(2) { animation-delay: 0.14s; background: var(--rmi-teal-accent, #1a8a8a); }
.rmi-busy-overlay__dots span:nth-child(3) { animation-delay: 0.28s; background: var(--rmi-green, #22a06b); }

@keyframes rmi-busy-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes rmi-busy-rise {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes rmi-busy-spin {
    to { transform: rotate(360deg); }
}

@keyframes rmi-busy-dot {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
    40% { transform: translateY(-4px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .rmi-busy-overlay,
    .rmi-busy-overlay__panel,
    .rmi-busy-overlay__orbit,
    .rmi-busy-overlay__dots span {
        animation: none;
    }
}

/* ===== Contact page ===== */
.rmi-contact-hero {
    position: relative;
    z-index: 0;
    background: #f4faf9;
    padding: 3.25rem 0 5.5rem;
    overflow: hidden;
    text-align: center;
}
.rmi-contact-hero-bg {
    position: absolute;
    top:-135px !important;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.rmi-contact-hero-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0.5;
    display: block;
}
.rmi-contact-hero-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}
.rmi-contact-hero h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #0f1f2e;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}
.rmi-contact-hero p {
    color: var(--rmi-text-muted);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 38rem;
    text-wrap: balance;
}
.rmi-section.rmi-contact-section {
    position: relative;
    z-index: 2;
    padding-top: 0;
    margin-top: -2.5rem;
    padding-bottom: 4rem;
}
.rmi-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.75fr);
    gap: 1.5rem;
    align-items: start;
}
.rmi-contact-card {
    position: relative;
    z-index: 1;
    background: var(--rmi-white);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid #eef1f4;
    padding: 2rem 2rem 2.15rem;
    min-width: 0;
}
.rmi-contact-card h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f1f2e;
    margin: 0 0 0.35rem;
}
.rmi-contact-lead {
    color: var(--rmi-text-muted);
    font-size: 0.9375rem;
    margin: 0 0 1.5rem;
}
.rmi-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
    align-items: start;
}
.rmi-contact-field {
    margin-bottom: 1.05rem;
}
.rmi-contact-field label,
.rmi-contact-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rmi-text);
    margin-bottom: 0.4rem;
}
.rmi-contact-required {
    color: #dc3545;
}
.rmi-contact-input {
    width: 100%;
    height: 44px;
    padding: 0.55rem 0.9rem;
    font-size: 0.9375rem;
    color: var(--rmi-text);
    background: var(--rmi-white);
    border: 1px solid #d5e0e0;
    border-radius: 8px;
    box-sizing: border-box;
    line-height: 1.25;
}
select.rmi-contact-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230d5c5c' d='M1.2 1.5 6 6.3l4.8-4.8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.4rem;
}
.rmi-contact-input:focus {
    outline: none;
    border-color: var(--rmi-teal);
    box-shadow: 0 0 0 3px rgba(13, 92, 92, 0.14);
}
.rmi-contact-message {
    height: auto;
    min-height: 110px;
    resize: vertical;
    padding-top: 0.7rem;
}
.rmi-contact-card .validation-message {
    display: block;
    color: #dc3545;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.3rem;
}
.rmi-contact-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    font-size: 0.875rem;
    margin-bottom: 1.15rem;
}
.rmi-contact-alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.rmi-contact-alert--success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.rmi-contact-file {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 44px;
    padding: 0.4rem 0.5rem 0.4rem 0.4rem;
    border: 1px dashed #b7d0d0;
    border-radius: 8px;
    background: #f7fbfb;
    cursor: pointer;
}
.rmi-contact-file:hover {
    border-color: var(--rmi-teal);
    background: #f0f8f8;
}
.rmi-contact-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    background: var(--rmi-white);
    border: 1px solid #d5e0e0;
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--rmi-teal);
}
.rmi-contact-file-name {
    min-width: 0;
    font-size: 0.8125rem;
    color: var(--rmi-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rmi-contact-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    font-size: 0;
}
.rmi-contact-file-help {
    margin: 0.4rem 0 0;
    font-size: 0.75rem;
    color: var(--rmi-text-muted);
}
.rmi-contact-file-error {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #dc3545;
}
.rmi-contact-file-success {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #198754;
}
.rmi-contact-captcha {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 0.5rem;
    align-items: center;
}
.rmi-contact-captcha-q {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7.5rem;
    height: 44px;
    padding: 0 0.85rem;
    border-radius: 8px;
    background: #eef6f6;
    border: 1px solid #d5e0e0;
    color: #0f1f2e;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.rmi-contact-captcha-refresh {
    width: 44px;
    height: 44px;
    border: 1px solid #d5e0e0;
    border-radius: 8px;
    background: #fff;
    color: var(--rmi-teal);
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.rmi-contact-captcha-refresh:hover {
    background: #f0f8f8;
    border-color: var(--rmi-teal);
}
.rmi-contact-actions {
    margin-top: 0.35rem;
}
.rmi-contact-submit {
    min-width: 160px;
    justify-content: center;
    padding: 0.75rem 1.5rem;
}
.rmi-contact-aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}
.rmi-contact-info {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    background: var(--rmi-white);
    border: 1px solid #eef1f4;
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(15, 23, 42, 0.06);
    padding: 1.2rem 1.25rem;
}
.rmi-contact-info > div:last-child {
    min-width: 0;
    flex: 1;
}
.rmi-contact-info-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: #e7f3f3;
    color: var(--rmi-teal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.rmi-contact-info h3 {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f1f2e;
}
.rmi-contact-info p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--rmi-text-muted);
}

@media (max-width: 991.98px) {
    .rmi-contact-layout {
        grid-template-columns: 1fr;
    }
    .rmi-contact-hero {
        padding: 2.5rem 0 4.5rem;
    }
}

@media (max-width: 767.98px) {
    .rmi-contact-grid {
        grid-template-columns: 1fr;
    }
    .rmi-contact-card {
        padding: 1.5rem 1.25rem 1.75rem;
    }
    .rmi-contact-captcha {
        grid-template-columns: auto auto;
    }
    .rmi-contact-captcha-answer {
        grid-column: 1 / -1;
    }
}

/* Officer franchisee applications */
.rmi-officer-apps .rmi-dash-breadcrumb a {
    color: inherit;
    text-decoration: none;
}
.rmi-officer-apps-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(15, 47, 58, 0.05);
    padding: 1.25rem 1.35rem 1.4rem;
    margin-bottom: 1.15rem;
}
.rmi-officer-apps-card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}
.rmi-officer-apps-card-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    background: #e6f5f5;
    color: var(--rmi-teal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.rmi-officer-apps-card-head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0f1f2e;
}
.rmi-officer-apps-card-head p {
    margin: 0.15rem 0 0;
    font-size: 0.8125rem;
    color: var(--rmi-text-muted);
}
.rmi-officer-apps-filters {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.9rem 1rem;
    align-items: end;
}
.rmi-officer-apps-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.4rem;
}
.rmi-officer-apps-input {
    border: 1px solid #dde3ea;
    border-radius: 10px;
    min-height: 2.65rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.9rem;
}
.rmi-officer-apps-input:focus {
    border-color: var(--rmi-teal);
    box-shadow: 0 0 0 3px rgba(13, 92, 92, 0.12);
}
.rmi-officer-apps-show {
    width: 100%;
    min-height: 2.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 10px;
}
.rmi-officer-apps-table-wrap {
    margin: 0 -0.15rem;
}
.rmi-officer-apps-table {
    margin: 0;
    font-size: 0.875rem;
}
.rmi-officer-apps-table thead th {
    background: #f4f8f8;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
    padding: 0.75rem 0.85rem;
}
.rmi-officer-apps-table tbody td {
    vertical-align: middle;
    padding: 0.8rem 0.85rem;
    border-color: #eef2f5;
    color: #1e293b;
}
.rmi-officer-apps-table tbody tr:hover {
    background: #f8fbfb;
}
.rmi-officer-apps-name {
    font-weight: 600;
    color: #0f1f2e;
}
.rmi-officer-apps-status {
    display: inline-flex;
    align-items: center;
    max-width: 14rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
}
.rmi-officer-apps-status--review {
    background: #e8f0fe;
    color: #2563eb;
}
.rmi-officer-apps-status--pending {
    background: #fff3e8;
    color: #c2410c;
}
.rmi-officer-apps-status--approved {
    background: #e7f8ee;
    color: #15803d;
}
.rmi-officer-apps-status--reject {
    background: #fde8e8;
    color: #b91c1c;
}
.rmi-officer-apps-action {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #e6f5f5;
    color: var(--rmi-teal);
    border: 1px solid #b7d9d9;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.32rem 0.7rem;
}
.rmi-officer-apps-action:hover {
    background: var(--rmi-teal);
    border-color: var(--rmi-teal);
    color: #fff;
}
.rmi-officer-apps-empty {
    text-align: center;
    color: var(--rmi-text-muted);
    padding: 2rem 1rem 1.5rem;
}
.rmi-officer-apps-empty i {
    font-size: 1.75rem;
    color: #94a3b8;
    display: block;
    margin-bottom: 0.5rem;
}
.rmi-officer-apps-empty p {
    margin: 0;
    font-size: 0.9rem;
}

@media (max-width: 1199.98px) {
    .rmi-officer-apps-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .rmi-officer-apps-filters {
        grid-template-columns: 1fr 1fr;
    }
    .rmi-officer-apps-field--action {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .rmi-officer-apps-filters {
        grid-template-columns: 1fr;
    }
}

/* Officer application details */
.rmi-officer-app .rmi-dash-breadcrumb a {
    color: inherit;
    text-decoration: none;
}
.rmi-officer-app-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(15, 47, 58, 0.05);
    padding: 1.25rem 1.4rem 1.5rem;
    margin-bottom: 1.15rem;
}
.rmi-officer-app-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    border: 1px solid #dde3ea;
    color: #334155;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 10px;
    padding: 0.45rem 0.9rem;
}
.rmi-officer-app-back:hover {
    border-color: var(--rmi-teal);
    color: var(--rmi-teal);
}
.rmi-officer-app-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    border-bottom: 1px solid #e6eef0;
    margin: -0.25rem -0.15rem 1.25rem;
    padding: 0 0.15rem;
}
.rmi-officer-app-tab {
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.7rem 0.85rem;
    margin-bottom: -1px;
}
.rmi-officer-app-tab:hover {
    color: var(--rmi-teal);
}
.rmi-officer-app-tab.active {
    color: var(--rmi-teal);
    border-bottom-color: var(--rmi-teal);
}
.rmi-officer-app-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f1f2e;
    margin: 0 0 1rem;
}
.rmi-officer-app-banner {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.15rem;
}
.rmi-officer-app-banner--review {
    background: #e8f0fe;
    color: #1d4ed8;
}
.rmi-officer-app-banner--pending {
    background: #fff3e8;
    color: #c2410c;
}
.rmi-officer-app-banner--reject {
    background: #fde8e8;
    color: #b91c1c;
}
.rmi-officer-app-banner--approved {
    background: #e7f8ee;
    color: #15803d;
}
.rmi-officer-app-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem 1.15rem;
}
.rmi-officer-app-field--wide {
    grid-column: span 2;
}
.rmi-officer-app-k {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}
.rmi-officer-app-v {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f1f2e;
    line-height: 1.4;
    word-break: break-word;
}
.rmi-officer-app-files {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}
.rmi-officer-app-file {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    text-align: left;
    background: #f7fafa;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    color: #0f1f2e;
    font-size: 0.875rem;
    font-weight: 600;
}
.rmi-officer-app-file:hover {
    border-color: var(--rmi-teal);
    background: #eef8f8;
    color: var(--rmi-teal);
}
.rmi-officer-app-file > i:first-child {
    color: var(--rmi-teal);
    font-size: 1.1rem;
}
.rmi-officer-app-file > span {
    flex: 1;
    min-width: 0;
}
.rmi-officer-app-file > i:last-child {
    color: #94a3b8;
    font-size: 0.9rem;
}
.rmi-officer-app-action-grid {
    display: grid;
    grid-template-columns: 16rem minmax(0, 1fr);
    gap: 1rem;
    margin-bottom: 1.15rem;
}
.rmi-officer-app-upload {
    display: grid;
    grid-template-columns: 14rem minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    padding: 1rem;
    background: #f7fafa;
    border: 1px dashed #c5d9d9;
    border-radius: 12px;
    margin-bottom: 1.15rem;
}
.rmi-officer-app-upload-hint {
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
    color: var(--rmi-text-muted);
}
.rmi-officer-app-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}
.rmi-officer-app-empty {
    text-align: center;
    color: var(--rmi-text-muted);
    padding: 2.5rem 1rem;
}
.rmi-officer-app-empty i {
    font-size: 1.75rem;
    color: #94a3b8;
    display: block;
    margin-bottom: 0.5rem;
}

@media (max-width: 991.98px) {
    .rmi-officer-app-grid,
    .rmi-officer-app-action-grid,
    .rmi-officer-app-upload {
        grid-template-columns: 1fr 1fr;
    }
    .rmi-officer-app-field--wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .rmi-officer-app-grid,
    .rmi-officer-app-files,
    .rmi-officer-app-action-grid,
    .rmi-officer-app-upload {
        grid-template-columns: 1fr;
    }
    .rmi-officer-app-tabs {
        gap: 0;
    }
    .rmi-officer-app-tab {
        flex: 1 1 auto;
        font-size: 0.78rem;
        padding: 0.65rem 0.5rem;
    }
}

/* Officer report pages — match Wallet Report */
.wallet-report fieldset,
.citizen-fieldset,
.user-fieldset,
.dde-fieldset,
.franchisee-fieldset,
.emitra-fieldset,
.choice-fieldset,
.contact-us-fieldset,
.service-fee-fieldset {
    border: 1px solid rgb(204, 204, 204) !important;
    padding: 0.4em 0.85em 1em !important;
    margin: 0 !important;
    border-radius: 15px 3px 15px 15px;
    background: #fff;
    min-height: auto;
}

.wallet-report legend,
.citizen-fieldset legend,
.user-fieldset legend,
.dde-fieldset legend,
.franchisee-fieldset legend,
.emitra-fieldset legend,
.choice-fieldset legend,
.contact-us-fieldset legend,
.service-fee-fieldset legend {
    font-size: 1.2em !important;
    font-weight: 700 !important;
    text-align: left !important;
    width: auto;
    float: none;
    padding: 0 10px !important;
    margin: -10px 0 8px 8px !important;
    border-bottom: none !important;
    background-color: #fff;
    color: #333 !important;
}

.citizen-report-title,
.user-report-title,
.dde-report-title,
.franchisee-report-title,
.emitra-report-title,
.choice-connect-title,
.contact-us-report-title,
.service-fee-report-title {
    color: var(--rmi-teal) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
}

.citizen-report-card,
.user-report-card,
.dde-report-card,
.franchisee-report-card,
.emitra-report-card,
.choice-connect-card,
.contact-us-report-card,
.service-fee-report-card {
    background: var(--rmi-white);
    border-radius: var(--rmi-radius-lg);
    box-shadow: var(--rmi-shadow-lg);
    border: 1px solid #eef1f4;
}

.citizen-label,
.user-label,
.dde-label,
.franchisee-label,
.emitra-label,
.choice-label,
.contact-us-label,
.service-fee-label,
.citizen-radio-label,
.user-radio-label,
.dde-radio-label,
.franchisee-radio-label {
    color: #555 !important;
    font-size: 0.95rem !important;
    font-weight: 500;
}

.citizen-input,
.user-input,
.dde-input,
.franchisee-input,
.emitra-input,
.choice-input,
.contact-us-input,
.service-fee-input {
    height: auto !important;
    min-height: 38px;
    font-size: 1rem !important;
    border-radius: 10px !important;
    border-color: #dde3ea !important;
}

.wallet-report .btn-show,
.citizen-show-button,
.user-show-button,
.dde-show-button,
.franchisee-show-button,
.emitra-show-button,
.choice-show-button,
.contact-us-show-button,
.service-fee-show-button {
    min-width: 100px;
    height: auto !important;
    background: #0d6efd !important;
    border: 1px solid #0d6efd !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 5px;
    padding: 8px 16px !important;
}

.wallet-report .btn-show:disabled,
.citizen-show-button:disabled,
.user-show-button:disabled,
.dde-show-button:disabled,
.franchisee-show-button:disabled,
.emitra-show-button:disabled,
.choice-show-button:disabled,
.contact-us-show-button:disabled,
.service-fee-show-button:disabled {
    background: #6c757d !important;
    border-color: #6c757d !important;
}

.wallet-report .btn-excel {
    min-width: 140px;
    background: #198754 !important;
    border: 1px solid #198754 !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 5px;
    padding: 8px 16px !important;
}

.wallet-report .btn-excel:disabled {
    background: #6c757d !important;
    border-color: #6c757d !important;
}

.wallet-report-results,
.citizen-result-section,
.user-result-section,
.dde-result-section,
.franchisee-result-section,
.emitra-result-section,
.choice-result-section,
.contact-us-result-section,
.service-fee-result-section,
.helpdesk-result-section {
    margin-top: 10px;
    border-top: 10px solid #898383;
    padding-top: 10px;
}

.citizen-result-header,
.user-result-header,
.dde-result-header,
.franchisee-result-header,
.emitra-result-header,
.choice-result-header,
.contact-us-result-header,
.service-fee-result-header {
    display: none !important;
}

.citizen-report-table th,
.user-report-table th,
.dde-report-table th,
.franchisee-report-table th,
.emitra-report-table th,
.choice-report-table th,
.contact-us-report-table th,
.helpdesk-report-table th,
.support-history-table th,
.service-fee-report-table th {
    background: #f3f7f7 !important;
    color: var(--rmi-teal-dark) !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #d7e4e4 !important;
}

.citizen-type-button,
.user-type-button,
.dde-type-button,
.franchisee-type-button {
    border: 2px solid #ec4c66 !important;
    background: #fff !important;
    color: #ec4c66 !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    padding: 4px 12px !important;
    border-radius: 0 !important;
}

.citizen-type-button.active,
.user-type-button.active,
.dde-type-button.active,
.franchisee-type-button.active {
    background: #ec4c66 !important;
    color: #fff !important;
}

.wallet-report .onoffswitch4 {
    position: relative;
    width: 115px;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.wallet-report .onoffswitch4-checkbox {
    display: none;
}

.wallet-report .onoffswitch4-label {
    display: block;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #ec4c66;
    border-radius: 0;
    margin: 0;
}

.wallet-report .onoffswitch4-inner {
    display: block;
    width: 200%;
    margin-left: -100%;
    transition: margin 0.3s ease-in 0s;
}

.wallet-report .onoffswitch4-inner::before,
.wallet-report .onoffswitch4-inner::after {
    display: block;
    float: left;
    width: 50%;
    height: 25px;
    padding: 0;
    line-height: 25px;
    font-size: 11px;
    font-weight: bold;
    box-sizing: border-box;
}

.wallet-report .onoffswitch4-inner::before {
    content: "Date Wise";
    padding-left: 10px;
    background-color: #ec4c66;
    color: #fff;
}

.wallet-report .onoffswitch4-inner::after {
    content: "Month Wise";
    padding-right: 10px;
    background-color: #fff;
    color: #ec4c66;
    text-align: right;
}

.wallet-report .onoffswitch4-switch {
    display: block;
    width: 10px;
    margin: 0;
    background: #ec4c66;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 115px;
    transition: all 0.3s ease-in 0s;
}

.wallet-report .onoffswitch4-checkbox:checked + .onoffswitch4-label .onoffswitch4-inner {
    margin-left: 0;
}

.wallet-report .onoffswitch4-checkbox:checked + .onoffswitch4-label .onoffswitch4-switch {
    right: 0;
}

/* =====================================================
   Profile page
   ===================================================== */
.rmi-profile {
    padding: 1.5rem 0 2.5rem;
}

.rmi-profile-head {
    margin-bottom: 1.25rem;
}

.rmi-profile-head h1 {
    margin: 0 0 0.35rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--rmi-text);
}

.rmi-profile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.rmi-profile-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid #d7e4e4;
    background: #fff;
    color: #64748b;
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 700;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.rmi-profile-tab:hover {
    color: var(--rmi-teal);
    border-color: var(--rmi-teal);
}

.rmi-profile-tab.active {
    color: #fff;
    background: var(--rmi-teal);
    border-color: var(--rmi-teal);
}

.rmi-profile-card {
    background: var(--rmi-white);
    border: 1px solid #eef1f4;
    border-radius: var(--rmi-radius-lg);
    box-shadow: var(--rmi-shadow-lg);
    padding: 1.75rem 1.75rem 2rem;
}

.rmi-profile-card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid #eef1f4;
}

.rmi-profile-card-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    background: #e8f4f3;
    color: var(--rmi-teal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.rmi-profile-card-head h2 {
    margin: 0 0 0.2rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--rmi-text);
}

.rmi-profile-card-head p {
    margin: 0;
    color: var(--rmi-text-muted);
    font-size: 0.875rem;
}

.rmi-profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.rmi-profile-field--full {
    max-width: 28rem;
}

.rmi-profile-contact {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 1rem 1.25rem;
    align-items: start;
}

.rmi-profile-field .rmi-svc-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.rmi-profile-input-action {
    display: flex;
    gap: 0.65rem;
    align-items: stretch;
}

.rmi-profile-input-action .rmi-svc-input {
    flex: 1;
    min-width: 0;
}

.rmi-profile-otp-btn {
    flex-shrink: 0;
    white-space: nowrap;
    min-width: 6.5rem;
    border-radius: 10px;
    font-weight: 700;
    padding: 0.7rem 1rem;
}

.rmi-profile-hint {
    margin-top: 0.4rem;
    font-size: 0.8125rem;
    color: var(--rmi-text-muted);
}

.rmi-profile-hint--success {
    color: #15803d;
    font-weight: 600;
}

.rmi-profile-actions {
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
}

.rmi-profile-save-btn {
    min-width: 11rem;
    border-radius: 10px;
    font-weight: 700;
    padding: 0.8rem 1.5rem;
}

.rmi-profile-banner {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.rmi-profile-banner--success {
    background: #e7f8ee;
    color: #15803d;
}

.rmi-profile-banner--error {
    background: #fde8e8;
    color: #b91c1c;
}

.rmi-profile-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem 1.5rem;
}

.rmi-profile-detail--full {
    grid-column: 1 / -1;
}

.rmi-profile-k {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.3rem;
}

.rmi-profile-v {
    display: block;
    font-size: 0.975rem;
    font-weight: 600;
    color: var(--rmi-text);
    word-break: break-word;
}

.rmi-profile-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    font-size: 0.8125rem;
    font-weight: 700;
    background: #eef2f7;
    color: #475569;
}

.rmi-profile-badge--primary {
    background: #e7f8ee;
    color: #15803d;
}

.rmi-profile-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--rmi-text-muted);
}

.rmi-profile-empty i {
    font-size: 1.75rem;
    color: var(--rmi-teal);
    margin-bottom: 0.5rem;
}

.rmi-profile-empty p {
    margin: 0.5rem 0 0;
}

@media (max-width: 767.98px) {
    .rmi-profile-contact,
    .rmi-profile-details-grid {
        grid-template-columns: 1fr;
    }

    .rmi-profile-input-action {
        flex-direction: column;
    }

    .rmi-profile-otp-btn,
    .rmi-profile-save-btn {
        width: 100%;
    }

    .rmi-profile-field--full {
        max-width: none;
    }
}

/* ===== Legal pages (Privacy, Terms) ===== */
.rmi-legal-eyebrow {
    display: inline-block;
    background: rgba(13, 92, 92, 0.1);
    color: var(--rmi-teal);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.rmi-svc-hero .rmi-legal-owner {
    font-size: 0.875rem;
    color: var(--rmi-text-muted);
    margin-bottom: 0;
}
.rmi-legal-section {
    background: var(--rmi-gray-bg);
}
.rmi-legal-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
}
.rmi-legal-aside {
    position: sticky;
    top: 5.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.rmi-legal-toc {
    background: var(--rmi-white);
    border: 1px solid #eef1f4;
    border-radius: var(--rmi-radius-lg);
    box-shadow: var(--rmi-shadow);
    padding: 1.5rem 1.25rem;
}
.rmi-legal-toc-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rmi-text-muted);
    margin-bottom: 1rem;
}
.rmi-legal-toc-list {
    list-style: none;
    counter-reset: rmi-legal-toc;
    margin: 0;
    padding: 0;
}
.rmi-legal-toc-list li {
    counter-increment: rmi-legal-toc;
}
.rmi-legal-toc-list a {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.5rem 0.625rem;
    border-radius: var(--rmi-radius);
    color: var(--rmi-text);
    font-size: 0.9375rem;
    line-height: 1.5;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.rmi-legal-toc-list a::before {
    content: counter(rmi-legal-toc, decimal-leading-zero);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--rmi-teal);
    flex-shrink: 0;
}
.rmi-legal-toc-list a:hover,
.rmi-legal-toc-list a:focus-visible {
    background: rgba(13, 92, 92, 0.07);
    color: var(--rmi-teal);
}
.rmi-legal-help {
    background: linear-gradient(160deg, var(--rmi-teal) 0%, var(--rmi-teal-deep) 100%);
    border-radius: var(--rmi-radius-lg);
    padding: 1.5rem 1.25rem;
    color: var(--rmi-white);
}
.rmi-legal-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    font-size: 1.125rem;
    margin-bottom: 0.875rem;
}
.rmi-legal-help h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.rmi-legal-help p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 1.125rem;
}
.rmi-legal-help .btn-rmi-primary {
    background: var(--rmi-white);
    border-color: var(--rmi-white);
    color: var(--rmi-teal-dark);
    font-size: 0.8125rem;
}
.rmi-legal-help .btn-rmi-primary:hover {
    background: #eafaf7;
    border-color: #eafaf7;
    color: var(--rmi-teal-dark);
}
.rmi-legal-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.rmi-legal-card {
    background: var(--rmi-white);
    border: 1px solid #eef1f4;
    border-radius: var(--rmi-radius-lg);
    box-shadow: var(--rmi-shadow);
    padding: 2rem 2.25rem 2.25rem;
    scroll-margin-top: 6rem;
}
.rmi-legal-card-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--rmi-gray-light);
}
.rmi-legal-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: var(--rmi-radius);
    background: rgba(13, 92, 92, 0.09);
    color: var(--rmi-teal);
    font-size: 1.25rem;
}
.rmi-legal-card-step {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rmi-text-muted);
    margin-bottom: 0.2rem;
}
.rmi-legal-card-head h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--rmi-text);
    margin: 0;
}
.rmi-legal-subhead {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--rmi-text);
    margin: 1.5rem 0 0.75rem;
}
.rmi-legal-card > .rmi-legal-subhead:first-of-type {
    margin-top: 0.25rem;
}
.rmi-legal-card > p {
    color: var(--rmi-text);
    font-size: 0.96875rem;
    line-height: 1.8;
    margin-bottom: 1.125rem;
}
.rmi-legal-card > p:last-child {
    margin-bottom: 0;
}
.rmi-legal-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.125rem;
}
.rmi-legal-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}
.rmi-legal-list-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--rmi-gray-bg);
    color: var(--rmi-teal);
    font-size: 0.875rem;
}
.rmi-legal-list strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--rmi-text);
    margin-bottom: 0.15rem;
}
.rmi-legal-list p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--rmi-text-muted);
    margin: 0;
}
.rmi-legal-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}
.rmi-legal-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.96875rem;
    line-height: 1.7;
    color: var(--rmi-text);
}
.rmi-legal-checklist i {
    color: var(--rmi-green);
    font-size: 1rem;
    line-height: 1.7;
    flex-shrink: 0;
}
.rmi-legal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.rmi-legal-grid-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--rmi-gray-bg);
    border: 1px solid #e8edf2;
    border-radius: var(--rmi-radius);
    padding: 0.9rem 1rem;
}
.rmi-legal-grid-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--rmi-white);
    color: var(--rmi-teal);
    font-size: 0.9375rem;
}
.rmi-legal-grid-item h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--rmi-text);
    line-height: 1.45;
    margin: 0;
}
.rmi-legal-steps {
    list-style: none;
    counter-reset: rmi-legal-step;
    margin: 0;
    padding: 0;
}
.rmi-legal-steps li {
    position: relative;
    counter-increment: rmi-legal-step;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1.5rem;
}
.rmi-legal-steps li:last-child {
    padding-bottom: 0;
}
.rmi-legal-steps li::before {
    content: counter(rmi-legal-step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.125rem;
    height: 2.125rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--rmi-teal);
    color: var(--rmi-white);
    font-size: 0.8125rem;
    font-weight: 700;
    z-index: 1;
}
.rmi-legal-steps li::after {
    content: "";
    position: absolute;
    left: 1rem;
    top: 2.125rem;
    bottom: 0.25rem;
    width: 2px;
    background: var(--rmi-gray-light);
}
.rmi-legal-steps li:last-child::after {
    display: none;
}
.rmi-legal-steps strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--rmi-text);
    margin-bottom: 0.2rem;
}
.rmi-legal-steps p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--rmi-text-muted);
    margin: 0;
}
.rmi-legal-steps > li > div {
    padding-top: 0.25rem;
}
.rmi-legal-note {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    background: #f4faf9;
    border: 1px solid rgba(13, 92, 92, 0.18);
    border-left: 3px solid var(--rmi-teal);
    border-radius: var(--rmi-radius);
    padding: 1rem 1.125rem;
    margin-top: 1.25rem;
}
.rmi-legal-note i {
    color: var(--rmi-teal);
    font-size: 1rem;
    line-height: 1.6;
    flex-shrink: 0;
}
.rmi-legal-note p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--rmi-text);
    margin: 0;
}
.rmi-legal-card--contact {
    border-color: rgba(13, 92, 92, 0.2);
    background: linear-gradient(180deg, #f6fbfa 0%, var(--rmi-white) 60%);
}
.rmi-legal-mail {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: 1.25rem;
    padding: 0.7rem 1.25rem;
    border-radius: var(--rmi-radius);
    background: var(--rmi-white);
    border: 1px solid rgba(13, 92, 92, 0.25);
    color: var(--rmi-teal);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.rmi-legal-mail:hover {
    background: var(--rmi-teal);
    border-color: var(--rmi-teal);
    color: var(--rmi-white);
}

@media (max-width: 991.98px) {
    .rmi-legal-layout {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .rmi-legal-aside {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .rmi-legal-card {
        padding: 1.5rem 1.25rem 1.75rem;
    }
    .rmi-legal-card-head {
        gap: 0.75rem;
    }
    .rmi-legal-grid {
        grid-template-columns: 1fr;
    }
}

/* Transparent native date input must cover the formatted text and accept the click. */
.date-overlay,
.date-picker-overlay {
    position: relative;
}

.date-overlay > input[type="text"],
.date-picker-overlay > input[type="text"] {
    pointer-events: none;
}

.date-overlay > input[type="date"],
.date-overlay > input[type="month"],
.date-overlay > .date-overlay-input,
.date-picker-overlay > input[type="date"],
.date-picker-overlay > .date-picker-native {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    z-index: 3;
    cursor: pointer;
}

.date-overlay > input[type="date"]::-webkit-calendar-picker-indicator,
.date-overlay > input[type="month"]::-webkit-calendar-picker-indicator,
.date-overlay > .date-overlay-input::-webkit-calendar-picker-indicator,
.date-picker-overlay > input[type="date"]::-webkit-calendar-picker-indicator,
.date-picker-overlay > .date-picker-native::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

/* Cookie consent (DPDP / VAPT F-002) */
.rmi-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080;
    padding: 1rem;
    background: rgba(10, 26, 26, 0.96);
    color: #f3f7f7;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.rmi-cookie-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.rmi-cookie-banner-inner p {
    margin: 0;
    flex: 1 1 18rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #d7e4e4;
}

.rmi-cookie-banner-inner a {
    color: #9fd4d4;
    text-decoration: underline;
}

.rmi-cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
