/* ================================================================
   Fincrif India — careers portal
   Mobile-first. Breakpoints: 320 / 375 / 390 / 414 / 768 / 1024 / 1280
   ================================================================ */
:root {
  --blue-900: #07295f;
  --blue-800: #0b3c8d;
  --blue-600: #1360d8;
  --blue-100: #e8f0fd;
  --lime-600: #7aa620;
  --lime-500: #a6ce39;
  --lime-100: #f2f8e2;
  --ink: #16203a;
  --muted: #5b6784;
  --line: #e2e8f2;
  --bg: #f6f8fc;
  --white: #ffffff;
  --danger: #c62828;
  --warn: #b26a00;
  --ok: #1d7a44;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 2px 8px rgba(11, 60, 141, .06);
  --shadow-lg: 0 14px 40px rgba(11, 60, 141, .12);
  --container: 1200px;
  --font: "Segoe UI", Inter, -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .6rem; color: var(--blue-900); font-weight: 700; }
h1 { font-size: 1.85rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.section { padding: 48px 0; }
.section--tint { background: var(--bg); }
.section--blue { background: linear-gradient(135deg, var(--blue-800), var(--blue-900)); color: #dbe6f8; }
.section--blue h2, .section--blue h3 { color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 28px; }
.section-head p { color: var(--muted); margin: 0; }
.section--blue .section-head p { color: #c3d4ee; }
.eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--lime-600); background: var(--lime-100);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 10px;
}
.text-muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius-sm);
  font-size: .97rem; font-weight: 600; border: 2px solid transparent;
  cursor: pointer; text-align: center; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--lime-500); outline-offset: 2px; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }
.btn--primary { background: var(--blue-600); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--blue-800); color: #fff; }
.btn--lime { background: var(--lime-500); color: #14260a; }
.btn--lime:hover { background: var(--lime-600); color: #fff; }
.btn--ghost { background: transparent; color: var(--blue-800); border-color: var(--blue-100); }
.btn--ghost:hover { background: var(--blue-100); }
.btn--white { background: #fff; color: var(--blue-800); }
.btn--outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--outline-white:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--danger { background: #fff; color: var(--danger); border-color: #f3c9c9; }
.btn--sm { min-height: 38px; padding: 7px 14px; font-size: .85rem; border-radius: 8px; }
.btn--block { width: 100%; }

/* ---------------------------------------------------------- navbar */
.navbar {
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line);
}
.navbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 12px; }
.navbar__brand { display: flex; align-items: center; gap: 10px; }
.navbar__brand img { height: 40px; width: auto; display: block; }
.navbar__toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 11px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; cursor: pointer;
}
.navbar__toggle span { display: block; height: 2px; background: var(--blue-800); border-radius: 2px; transition: .2s; }
.navbar__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.navbar__menu {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 18px;
  box-shadow: var(--shadow-lg);
}
.navbar__menu.is-open { display: block; }
.navbar__menu a {
  display: block; padding: 13px 4px; color: var(--ink); font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.navbar__menu .btn { margin-top: 14px; width: 100%; }

/* ---------------------------------------------------------- hero */
.hero {
  background: linear-gradient(140deg, var(--blue-900) 0%, var(--blue-800) 55%, var(--blue-600) 100%);
  color: #fff; padding: 52px 0 56px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -90px; top: -90px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(166,206,57,.28), transparent 68%); border-radius: 50%;
}
.hero__inner { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(1.75rem, 6vw, 3.1rem); margin-bottom: 14px; }
.hero h1 .accent { color: var(--lime-500); }
.hero p.lead { color: #cfdcf3; font-size: 1.03rem; max-width: 620px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22); color: #eaf2ff; padding: 7px 14px;
  border-radius: 999px; font-size: .82rem; font-weight: 600; margin-bottom: 18px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero__cta .btn { flex: 1 1 100%; }
.hero__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 34px; }
.hero__stat {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 14px;
}
.hero__stat b { display: block; font-size: 1.5rem; color: var(--lime-500); line-height: 1.2; }
.hero__stat span { font-size: .78rem; color: #cfdcf3; }

/* ---------------------------------------------------------- grid/cards */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.grid--2, .grid--3, .grid--4 { display: grid; gap: 16px; grid-template-columns: 1fr; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.card--flat { box-shadow: none; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-800); font-size: 1.3rem; margin-bottom: 12px;
}
.card__icon--lime { background: var(--lime-100); color: var(--lime-600); }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); margin: 0; font-size: .93rem; }

/* job cards */
.job-card { display: flex; flex-direction: column; gap: 12px; position: relative; }
.job-card__top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.job-card h3 { margin: 0; font-size: 1.08rem; }
.job-card__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; background: var(--bg); color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; font-size: .78rem; font-weight: 600;
}
.chip--blue { background: var(--blue-100); color: var(--blue-800); border-color: #cfe0fa; }
.chip--lime { background: var(--lime-100); color: var(--lime-600); border-color: #dcebb8; }
.job-card__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.job-card__actions .btn { flex: 1 1 140px; }

/* featured (loan-sales) job cards */
.featured-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.job-card--featured {
  background: linear-gradient(165deg, #ffffff 55%, #f3fbe7 100%);
  border: 1px solid #dcebb8; border-top: 5px solid var(--lime-500);
  box-shadow: 0 10px 28px rgba(122, 166, 32, .14);
  border-radius: var(--radius); padding: 22px;
}
.job-card--featured h3 { font-size: 1.16rem; }
.job-card--featured h3 a:hover { color: var(--blue-600); }
.job-card__ribbon {
  position: absolute; top: 0; right: 18px; transform: translateY(-50%);
  background: var(--lime-500); color: #14260a; font-size: .72rem; font-weight: 800;
  letter-spacing: .04em; border-radius: 999px; padding: 5px 14px; box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.job-card__salary {
  display: flex; align-items: center; gap: 12px; margin-top: 2px;
  background: #f7fceb; border: 1px dashed #c8e495; border-radius: 12px; padding: 11px 14px;
}
.job-card__salary-icon { font-size: 1.5rem; line-height: 1; }
.job-card__salary-label {
  display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--lime-600); font-weight: 800; margin-bottom: 2px;
}
.job-card__salary strong { color: var(--blue-800); font-size: 1.02rem; font-weight: 800; }
.job-card__perk {
  align-self: flex-start; background: var(--lime-500); color: #14260a;
  font-size: .78rem; font-weight: 700; border: 0; border-radius: 999px; padding: 6px 14px;
}

.steps { counter-reset: step; display: grid; gap: 14px; }
.step { position: relative; padding-left: 56px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 12px;
  background: var(--lime-500); color: #14260a; display: grid; place-items: center; font-weight: 800;
}
.step h3 { margin-bottom: 4px; font-size: 1.02rem; }
.step p { margin: 0; color: var(--muted); font-size: .92rem; }
.section--blue .step p { color: #c3d4ee; }
.section--blue .step h3 { color: #fff; }

.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list-check li { position: relative; padding-left: 28px; color: var(--muted); }
.list-check li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--lime-600); font-weight: 800;
}

/* ---------------------------------------------------------- forms */
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.form-section { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 22px; }
.form-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.form-section__title { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--lime-600); font-weight: 800; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .88rem; color: var(--ink); }
.field .req { color: var(--danger); }
.form-control, .form-select {
  width: 100%; min-height: 48px; padding: 11px 14px; font-size: 16px; font-family: inherit;
  color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.form-control { appearance: none; }
.form-select {
  appearance: auto; -webkit-appearance: menulist;
}
textarea.form-control { min-height: 96px; resize: vertical; }
.form-control:focus, .form-select:focus {
  outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(19,96,216,.15);
}
input[type="file"].form-control { padding: 10px 12px; line-height: 1.4; }
.form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-check-input { width: 20px; height: 20px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--blue-600); }
.help-text { font-size: .8rem; color: var(--muted); }
.errorlist { list-style: none; padding: 0; margin: 2px 0 0; color: var(--danger); font-size: .82rem; }
.field--error .form-control, .field--error .form-select { border-color: var(--danger); }

.alert { border-radius: var(--radius-sm); padding: 13px 16px; margin-bottom: 14px; font-size: .92rem; border: 1px solid; }
.alert-success { background: #eaf7ef; border-color: #b9e3c9; color: var(--ok); }
.alert-error, .alert-danger { background: #fdecec; border-color: #f4c7c7; color: var(--danger); }
.alert-info { background: var(--blue-100); border-color: #cfe0fa; color: var(--blue-800); }
.alert-warning { background: #fff6e6; border-color: #f2ddb4; color: var(--warn); }

/* ---------------------------------------------------------- location UI */
.location-box {
  border: 1px solid var(--line); border-left: 4px solid var(--lime-500);
  background: var(--bg); border-radius: var(--radius); padding: 18px; margin-top: 8px;
}
.location-box h3 { font-size: 1.02rem; margin-bottom: 4px; }
.location-box .privacy-note { font-size: .84rem; color: var(--muted); margin-bottom: 14px; }
.location-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.location-actions .btn { flex: 1 1 100%; }
.location-status {
  margin-top: 12px; font-size: .86rem; padding: 10px 12px; border-radius: var(--radius-sm);
  background: #fff; border: 1px dashed var(--line); color: var(--muted); word-break: break-word;
}
.location-status[data-state="ok"] { border-color: #b9e3c9; background: #eaf7ef; color: var(--ok); }
.location-status[data-state="error"] { border-color: #f4c7c7; background: #fdecec; color: var(--danger); }
.location-status[data-state="live"] { border-color: #dcebb8; background: var(--lime-100); color: var(--lime-600); }
.live-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--danger);
  margin-right: 6px; animation: pulse 1.4s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .25 } }

/* ---------------------------------------------------------- footer */
.footer { background: var(--blue-900); color: #b8c9e4; padding: 40px 0 22px; font-size: .92rem; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.footer a { color: #b8c9e4; display: block; padding: 5px 0; }
.footer a:hover { color: var(--lime-500); }
.footer__logo { background: #fff; border-radius: 12px; padding: 10px 12px; display: inline-block; margin-bottom: 14px; }
.footer__grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 26px; padding-top: 16px;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; font-size: .82rem;
}
.footer__admin { display: inline-flex; gap: 12px; }
.footer__admin a { display: inline; padding: 0; }

/* ---------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .88rem; }
table.table th, table.table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
table.table th { background: var(--bg); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
table.table tbody tr:hover { background: #fafcff; }
table.table td.wrap { white-space: normal; min-width: 180px; }

.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.badge-NEW { background: var(--blue-100); color: var(--blue-800); }
.badge-SCREENING { background: #fff6e6; color: var(--warn); }
.badge-SHORTLISTED { background: var(--lime-100); color: var(--lime-600); }
.badge-INTERVIEW { background: #ede7fb; color: #5b3fc4; }
.badge-SELECTED { background: #eaf7ef; color: var(--ok); }
.badge-REJECTED { background: #fdecec; color: var(--danger); }
.badge-ON_HOLD { background: #eceff4; color: var(--muted); }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin-top: 18px; }
.pagination a, .pagination span {
  min-width: 42px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  color: var(--ink); font-size: .88rem; font-weight: 600;
}
.pagination .current { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }

/* ---------------------------------------------------------- utilities */
.stack { display: grid; gap: 16px; }
.flex { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px }
.mb-0 { margin-bottom: 0 } .mb-1 { margin-bottom: 8px } .mb-2 { margin-bottom: 16px } .mb-3 { margin-bottom: 24px }
.text-center { text-align: center }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.dl { display: grid; grid-template-columns: 1fr; gap: 0; }
.dl__row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.dl__row:last-child { border-bottom: 0; }
.dl__row dt { color: var(--muted); font-weight: 600; margin: 0; flex: 0 0 auto; }
.dl__row dd { margin: 0; text-align: right; word-break: break-word; }

/* ================================================================ 480px+ */
@media (min-width: 480px) {
  .hero__cta .btn { flex: 0 1 auto; }
  .location-actions .btn { flex: 0 1 auto; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================ 768px+ */
@media (min-width: 768px) {
  h1 { font-size: 2.4rem; } h2 { font-size: 1.95rem; }
  .section { padding: 68px 0; }
  .container { padding: 0 24px; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid .field--full { grid-column: 1 / -1; }
  .hero { padding: 80px 0; }
  .hero__stats { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================ 1024px+ */
@media (min-width: 1024px) {
  .navbar__toggle { display: none; }
  .navbar__menu {
    display: flex !important; position: static; padding: 0; border: 0; box-shadow: none;
    align-items: center; gap: 6px; background: transparent;
  }
  .navbar__menu a { border: 0; padding: 9px 13px; border-radius: 9px; font-size: .93rem; }
  .navbar__menu a:hover { background: var(--blue-100); text-decoration: none; }
  .navbar__menu .btn { margin-top: 0; width: auto; margin-left: 8px; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .form-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
  .detail-split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
}

@media print {
  .navbar, .footer, .btn, .location-box { display: none !important; }
}
