/* Easyrupeeloan customer portal: the brand, taken from www.easyrupeeloan.com, and the header
 * and footer every page shares. Load it first (after assets/fonts/fonts.css); platform.css
 * and portal.css build on these variables.
 *
 * Colours are the company site's own: orange #FE512F for actions and highlights, ink #121212
 * for text, grey #64666C for secondary text, the warm #F5F5F2 section background, and the
 * navy band and amber accents of its Repay Loan page. The font is Inter. */
:root {
  --er-primary: #FE512F;       /* buttons, highlighted words, the FAQ panel */
  --er-primary-dk: #C7371A;    /* hover, and orange text on white (5.2:1; #FE512F itself is 3.3:1) */
  --er-primary-soft: #FFF1EC;
  --er-ink: #121212;           /* text */
  --er-ink-2: #3F4B5F;
  --er-muted: #64666C;
  --er-line: #E5E5E5;
  --er-surface: #F5F5F2;       /* alternate section background */
  --er-hero: #F5F1F1;          /* home hero */
  --er-page: #F4F7FB;          /* account pages (Repay Loan) */
  --er-input: #F2F2F0;         /* filled form inputs, as on Apply Now */
  --er-navy: #191C32;          /* the Repay Loan band, left */
  --er-navy-2: #1D3463;        /* ... and right */
  --er-dark: #1A1A2E;          /* dark buttons ("Fetch Loan Details") */
  --er-amber: #FB8D2C;         /* the Repay Loan card's top edge, step numbers */
  --er-amber-2: #FCA742;
  --er-warn-bg: #FFFBEB;
  --er-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --er-radius: 8px;            /* form buttons */
  --er-pill: 48px;             /* header and secondary buttons */
  --er-focus: rgba(254, 81, 47, 0.35);
  --er-shadow-rgb: 18, 18, 18;

  /* Kept for older rules that still read the first palette's names. */
  --er-ink-soft: var(--er-primary-soft);
  --er-accent: var(--er-primary-dk);
}

body { font-family: var(--er-font); color: var(--er-ink); }

/* The logo: the company's own image (assets/brand/logo.png), 56px tall as on the copied home page (23 Oct 2026). */
.er-brand { display: inline-flex; align-items: center; text-decoration: none; }
.er-brand img { display: block; width: auto; height: 56px; }

/* ---- Header: logo, the site's six links, "Login", "Apply For Loan" and "Follow Us" (23 Oct 2026, the owner: as the
   copied home page's header, "Login" in place of the "Customer Dashboard" button, as wide as its 1322px container, the
   footer too, and "Follow Us" back, so the header doesn't change when a visitor moves from the home page) ---- */
.er-header { position: relative; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--er-line); }
.er-header-in {
  display: flex; align-items: center; gap: 12px 20px;
  width: 100%; max-width: 1322px; min-height: 80px; margin: 0 auto; padding: 0 16px; box-sizing: border-box;
  font-family: var(--er-font);
}
.er-header .er-brand { flex: 0 0 auto; min-height: 44px; }
.er-nav { display: flex; align-items: center; gap: 4px 22px; margin: 0 auto; }
.er-nav a {
  display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 500;
  color: var(--er-ink); text-decoration: none; white-space: nowrap;
}
.er-nav a:hover, .er-nav a[aria-current="page"] { color: var(--er-primary-dk); }
.er-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px;
  border-radius: var(--er-pill); background: var(--er-primary); color: #fff !important; font-weight: 700;
  font-size: 16px; text-decoration: none; white-space: nowrap; flex: 0 0 auto;
}
.er-cta:hover { background: var(--er-primary-dk); }
/* "Customer Dashboard" (5 Oct 2026, the owner): Apply For Loan's button, outlined, so Apply stays the main one */
.er-cta.er-cta-line { background: #fff; color: var(--er-primary-dk) !important; box-shadow: inset 0 0 0 1.5px var(--er-primary); }
.er-cta.er-cta-line:hover { background: var(--er-primary); color: #fff !important; }
.er-nav .er-cta-inline { display: none; }
.er-follow { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 18px; white-space: nowrap; }
.er-soc {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--er-ink); color: var(--er-ink); text-decoration: none;
}
.er-soc:hover { color: var(--er-primary-dk); border-color: var(--er-primary-dk); }
/* the header's "Follow Us", right of Apply For Loan as on the home page; wide screens only, not beside Sign out */
.er-header .er-follow { flex: 0 0 auto; margin-left: 26px; gap: 10px; font-size: 19px; }
.er-header .er-follow span { margin-right: 2px; }
.er-header .er-soc { width: 28px; height: 28px; }
.er-header .er-soc svg { width: 13px; height: 13px; }
@media (max-width: 1280px) { .er-header .er-follow { display: none; } }
.er-header-in:has(.er-signout:not([hidden])) .er-follow { display: none; }
.er-signout {
  min-height: 44px; padding: 0 16px; border-radius: var(--er-pill); cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--er-ink); background: #fff; border: 1px solid var(--er-line);
  white-space: nowrap; flex: 0 0 auto;
}
.er-signout:hover { border-color: var(--er-ink); }
.er-signout[hidden] { display: none; }
.er-menu {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--er-line);
  border-radius: 10px; background: #fff; color: var(--er-ink); cursor: pointer;
}

/* closer links below 1240px, and at any width once Sign out joins them */
@media (max-width: 1240px) {
  .er-nav { gap: 4px 16px; }
}
.er-header-in:has(.er-signout:not([hidden])) { gap: 12px 16px; }
.er-header-in:has(.er-signout:not([hidden])) .er-nav { gap: 4px 14px; }
.er-header-in:has(.er-signout:not([hidden])) > .er-cta { padding: 0 18px; }
@media (max-width: 1010px) {
  .er-header-in { gap: 12px 14px; }
  .er-nav { gap: 4px 12px; }
  .er-header-in > .er-cta { padding: 0 18px; }
  .er-signout { padding: 0 12px; }
}
/* Phones, tablets and small laptops (1180px since 5 Oct 2026, when "Customer Dashboard" joined the header and it no
   longer fit in one row below that): logo and a menu button; the links and both buttons open as a panel. */
@media (max-width: 1180px) {
  .er-header-in { min-height: 64px; }
  .er-brand img { height: 42px; }
  .er-menu { display: inline-grid; place-items: center; }
  .er-header-in > .er-cta { display: none; }
  .er-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    background: #fff; box-shadow: 0 12px 24px -12px rgba(var(--er-shadow-rgb), .25); border-top: 1px solid var(--er-line);
  }
  .er-nav.is-open { display: flex; }
  .er-nav a { min-height: 48px; border-bottom: 1px solid var(--er-line); }
  .er-nav .er-cta-inline { display: inline-flex; margin-top: 12px; border-bottom: 0; }
  .er-nav .er-cta-line + .er-cta-inline { margin-top: 10px; }
  .er-nav .er-signout { margin-top: 8px; }
}

/* ---- Footer: the grievance cell band, four link columns, the RBI lines, the bottom bar ---- */
.er-footer { background: #fff; color: var(--er-ink); font-family: var(--er-font); border-top: 1px solid var(--er-line); }
.er-footer a { color: inherit; text-decoration: none; }
.er-footer a:hover { color: var(--er-primary-dk); }
.er-grc { max-width: 1322px; margin: 0 auto; padding: 56px 16px 32px; text-align: center; box-sizing: border-box; }
.er-grc p { margin: 0 auto 10px; max-width: 1100px; font-size: 15px; line-height: 1.6; }
.er-grc .er-grc-unit { font-size: 22px; font-weight: 700; line-height: 1.35; margin-bottom: 18px; }
.er-grc .er-grc-title { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.er-grc a { font-weight: 600; }
.er-footer-cols {
  display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 1.1fr 1.2fr; gap: 28px;
  max-width: 1322px; margin: 0 auto; padding: 24px 16px 36px; box-sizing: border-box;
}
.er-fcol { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.er-fcol a { display: inline-flex; align-items: center; min-height: 40px; }
.er-fh { font-size: 20px; font-weight: 600; margin: 0 0 8px; }
.er-fcol-brand p { color: var(--er-ink); line-height: 1.6; margin: 14px 0; }
.er-fcol-brand .er-brand img { height: 52px; }
.er-fcol-brand .er-follow { gap: 10px; }
.er-fcol-brand .er-soc { width: 40px; height: 40px; border-width: 1.5px; }
.er-fcol .er-soc { display: inline-grid; justify-content: center; place-items: center; min-height: 0; }
.er-touch { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; line-height: 1.5; }
.er-touch small { display: block; font-size: 13px; color: var(--er-ink); }
.er-touch b { font-size: 18px; }
.er-touch-ic { color: #2F6FEB; flex: 0 0 auto; margin-top: 2px; }
.er-footer-legal { max-width: 1322px; margin: 0 auto; padding: 0 16px 18px; box-sizing: border-box; color: var(--er-muted); font-size: 13px; line-height: 1.6; }
.er-footer-legal p { margin: 0 0 4px; }
.er-footer-legal a { text-decoration: underline; text-underline-offset: 2px; }
.er-footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  max-width: 1322px; margin: 0 auto; padding: 16px 16px 28px; box-sizing: border-box; font-size: 15px;
}
.er-footer-bottom p { margin: 0; }
.er-footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 960px) {
  .er-footer-cols { grid-template-columns: 1fr 1fr; }
  .er-fcol-brand { grid-column: 1 / -1; }
  .er-grc .er-grc-unit { font-size: 18px; }
}
@media (max-width: 480px) {
  .er-footer-cols { grid-template-columns: 1fr; }
  .er-grc { padding-top: 40px; }
}

/* One focus ring everywhere: solid, visible on white and on the navy band. */
.er-header a:focus-visible, .er-header button:focus-visible, .er-footer a:focus-visible {
  outline: 2px solid var(--er-primary); outline-offset: 2px; box-shadow: none;
}

/* A value that has not been supplied yet (see assets/brand.js). */
.er-ph {
  background: #FEF3C7; color: #7C2D12; outline: 1px dashed #B45309; outline-offset: 1px;
  border-radius: 3px; padding: 0 0.25em; font-style: normal; text-decoration: none;
}

/* Stub mode with previewMarks on only: the preview ribbon mounted by ER.preview.mount(). */
.er-preview {
  position: sticky; top: 0; z-index: 90;   /* under dialogs (100) and toasts (200) */
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px;
  padding: 7px 16px; background: #FEF3C7; color: #7C2D12; border-bottom: 1px solid #F59E0B;
  font: 500 13px/1.4 var(--er-font); text-align: center;
}
.er-preview strong { font-weight: 700; }
.er-preview button {
  font: inherit; font-weight: 600; color: #7C2D12; background: transparent; border: 1px solid #B45309;
  border-radius: 999px; min-height: 44px; padding: 0 14px; cursor: pointer;
}
.er-preview button:hover { background: #FDE68A; }
@media print { .er-preview, .er-header, .er-footer { display: none; } }

/* 9 Oct 2026 (the owner: "create a customer login dashboard for only the customer"): the customer's own app
   (dashboard.html, application.html, login.html), apart from the website: a slim bar and a one-line footer */
body.cx-app { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.cx-app > main { flex: 1 0 auto; }
.cx-head { position: relative; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--er-line); }
.cx-head-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1200px; min-height: 64px; margin: 0 auto; padding: 0 16px; }
/* 11 Oct 2026 (the owner: "fill this"): one width for the customer app's pages, the top bar's included: up to 1600 px of
   content with 32 px margins (16 px on a phone or a narrow screen). --cx-max and --cx-gut are read by portal.css and
   application.css too; --gutter is the website's container margin (platform.css), here the same */
body.cx-app { --cx-max: 1600px; --cx-gut: 32px; --gutter: var(--cx-gut); }
@media (max-width: 1099px) { body.cx-app { --cx-gut: 16px; } }
body.cx-app .cx-head-in, body.cx-app .container { max-width: calc(var(--cx-max) + 2 * var(--cx-gut)); }
body.cx-app .cx-head-in { padding: 0 var(--cx-gut); }
.cx-head .er-brand { display: inline-flex; align-items: center; min-height: 44px; }
.cx-head .er-brand img { display: block; width: auto; height: 38px; }
.cx-nav { display: flex; align-items: center; gap: 4px; }
.cx-nav a, .cx-out { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--er-radius); background: none;
  font: 600 14px/1 var(--er-font); color: var(--er-ink-2); text-decoration: none; white-space: nowrap; cursor: pointer; }
.cx-nav a:hover, .cx-out:hover { background: var(--er-surface); color: var(--er-ink); }
.cx-nav a[aria-current="page"] { color: var(--er-primary-dk); }
.cx-head a:focus-visible, .cx-head button:focus-visible { outline: 2px solid var(--er-primary); outline-offset: 2px; box-shadow: none; }
.cx-foot { background: #fff; border-top: 1px solid var(--er-line); }
.cx-foot p { max-width: 1200px; margin: 0 auto; padding: 12px 16px; font-size: 12.5px; line-height: 1.45; color: var(--er-muted); text-align: center; }
@media (max-width: 480px) {
  .cx-head-in { gap: 8px; }
  .cx-head .er-brand img { height: 28px; }
  .cx-nav { gap: 0; }
  .cx-nav a, .cx-out { padding: 0 7px; font-size: 13px; }
}
@media print { .cx-head, .cx-foot { display: none; } }
