@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,700&display=swap');

body {
  font-family: 'Poppins', sans-serif;
}

/* ============ DESIGN TOKENS ============ */
:root {
  --brand: #171717;
  --brand-dark: #050505;
  --accent: #c9a227;
  --text: #333333;
  --heading: #444444;
  --muted: #6b6b6b;
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --border: #e2e2e2;
  --font-body: /*"Open Sans", Arial, Helvetica, sans-serif*/   'Poppins', sans-serif;;
  --font-head: 'Poppins', sans-serif;
  --maxw: 1200px;
  --header-h: 84px;
}


*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 15px/1.6 var(--font-body); color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }
.wrap { width: 100%; max-width:93%/* var(--maxw) */; margin: 0 auto; padding: 0 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--brand-dark); border-bottom: 1px solid #333; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.logo { flex: 0 0 auto; }
.logo img { height:88px; width: auto; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav > ul > li > a { display: block; padding: 36px 12px; letter-spacing: 0.04em; font: 500 17px var(--font-head); color: #fff; background-color: transparent; white-space: nowrap; }
.main-nav > ul > li > a:hover, .main-nav > ul > li > a[aria-current] { color: #EDEDED; background-color: #1F1F1F; text-decoration: none; }
.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 26px; height: 3px; margin: 5px 0; background: #fff; border-radius: 2px; transition: .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Page title ---------- */
.page-title { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 30px 0; text-align:left; }
.page-title h1 { margin: 0 0 8px; font: 600 clamp(28px, 4vw, 35px)/1.2 var(--font-head); color: var(--heading); }
.crumbs { list-style: none; margin: 0; padding: 0; display: flex; justify-content:left; gap: 10px; font-size:1em;     color: rgba(0, 0, 0, .3);}
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--muted); }
.crumbs a {  color: rgba(0, 0, 0, .3);}
.home-banner { position: relative; min-height: clamp(360px, 46vw, 580px); overflow: hidden; background: #171717; color: #fff; }
.home-slides, .home-slide { position: absolute; inset: 0; }
.home-slide { display: none; align-items: center; padding: 48px max(5%, calc((100% - var(--maxw)) / 2)); }
.home-slide.is-active { display: flex; }
.home-slide::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.48) 45%, rgba(0,0,0,.12) 100%); content: ""; }
.home-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-slide-content { position: relative; z-index: 1; width: min(660px, 100%); }
.home-slide-kicker { margin: 0 0 12px; color: #eee; font-size: 15px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.home-slide h1, .home-slide h2 { margin: 0 0 16px; color: #fff; font: 700 clamp(34px, 5vw, 58px)/1.12 var(--font-head); }
.home-slide-content > p:not(.home-slide-kicker) { max-width: 580px; margin: 0 0 26px; color: #f2f2f2; font-size: clamp(16px, 1.8vw, 20px); line-height: 1.6; }
.home-slide-cta { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; border: 1px solid rgba(255,255,255,.8); color: #fff; font: 600 15px var(--font-head); transition: background-color .2s, color .2s; }
.home-slide-cta:hover { background: #fff; color: #111; text-decoration: none; }
.home-slider-controls { position: absolute; z-index: 2; right: 5%; bottom: 24px; display: flex; align-items: center; gap: 12px; }
.home-slider-arrow, .home-slider-toggle, .home-slider-dot { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; background: rgba(0,0,0,.25); color: #fff; cursor: pointer; }
.home-slider-arrow:hover, .home-slider-toggle:hover, .home-slider-dot:hover, .home-slider-dot[aria-current="true"] { background: #fff; color: #111; }
.home-slider-dots { display: flex; gap: 8px; }
.home-slider-dot { width: 11px; height: 11px; border: 1px solid #fff; background: transparent; }
.home-slider-toggle { margin-left: 4px; }
@media (max-width: 640px) {
  .home-banner { min-height: 430px; }
  .home-slide { padding: 36px 6%; align-items: flex-start; }
  .home-slide::after { background: linear-gradient(90deg, rgba(0,0,0,.75), rgba(0,0,0,.3)); }
  .home-slide-kicker { font-size: 12px; }
  .home-slide h1, .home-slide h2 { font-size: clamp(32px, 9vw, 42px); }
  .home-slide-content > p:not(.home-slide-kicker) { font-size: 16px; }
  .home-slider-controls { right: 6%; bottom: 18px; gap: 8px; }
  .home-slider-arrow, .home-slider-toggle { width: 34px; height: 34px; }
  .home-slider-dot { width: 9px; height: 9px; }
  .home-slider-dots { gap: 6px; }
}
/* ---------- Content ---------- */
.content { padding-top: 48px; padding-bottom: 72px; max-width:/*  960px */90%; }
h4 { font: 600 20px/30px var(--font-head); color: var(--heading); margin: 0 0 14px; }
h5 { font: 700 18px/1.3 var(--font-head); color: var(--heading); margin: 24px 0 10px; }
p { margin: 0 0 16px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.content ul { padding-left: 22px; margin: 0 0 20px; }
.content li { margin-bottom: 6px; }
ul.plain { list-style: none; padding-left: 0; }
.scheme, .faq { border: 1px solid var(--border); border-radius: 4px; margin-bottom: 10px; }
.scheme summary, .faq summary { cursor: pointer; padding: 14px 18px; font: 600 17px/1.4 var(--font-head); color: var(--heading); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.scheme summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.scheme summary::after, .faq summary::after { content: "+"; flex: 0 0 auto; font-size: 22px; line-height: 1; color: var(--brand); }
.scheme[open] summary::after, .faq[open] summary::after { content: "–"; }
.scheme[open] summary, .faq[open] summary { border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.scheme-content { padding: 16px 18px 2px; }
.scheme-content img { margin: 0; max-width: 100%; width: 100%; border-radius: 4px; }
.scheme-copy > :last-child { margin-bottom: 0; }
.committee { line-height: 2; font-weight: 600; }
.doc { display: block; max-width: 480px; }
.doc span { display: block; margin-top: 10px; font: 600 17px var(--font-head); }
.doc img { border: 1px solid var(--border); }

/* FAQ */
.faq > div { padding: 16px 18px 2px; }
.help { margin-top: 44px; padding: 28px; background: var(--bg-alt); border-radius: 4px; }

/* Form */
.pledge { display: grid; gap: 18px; max-width: 640px; }
.pledge label { display: grid; gap: 6px; font-weight: 600; }
.pledge input, .pledge select, .pledge textarea { font: 400 16px var(--font-body); padding: 11px 12px; border: 1px solid #c9ccc7; border-radius: 3px; width: 100%; background: #fff; color: var(--text); }
.pledge input:focus, .pledge select:focus, .pledge textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(0,0,0,.12); }
.btn { justify-self: start; background: var(--brand); color: #fff; border: 0; padding: 12px 34px; font: 600 16px var(--font-head); border-radius: 3px; cursor: pointer; }
.btn:hover { background: var(--brand-dark); }
.form-note { margin: 0; color: var(--brand); font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { background:/*  #101015 */#050505; color: #dfe8e2; }
.fgrid { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.fbrand { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 24px; }
.fbrand img { height: 88px; width: auto; background: transparent; padding: 0; border-radius: 0; }
.socials { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; margin: 0; }
.soc { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; color: #fff; font: 700 13px var(--font-head); }
.soc:nth-child(1) { background: #009688; }
.soc:nth-child(2) { background: #1877f2; }
.soc:nth-child(3) { background: #c135f0; }
.soc:nth-child(4) { background: #0a66c2; }
.soc:nth-child(5) { background: #f00000; }
.soc:hover { filter: brightness(1.12); color: #fff; text-decoration: none; }
.copy { border-top: 1px solid rgba(255,255,255,.16); padding: 28px 0 14px; color: #fff; font: 500 14px/1.5 var(--font-head); text-align: center; }
.copy a { color: inherit; }
.copy a:hover { color: #EDEDED; text-decoration: underline; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .burger { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--brand-dark); border-top: 1px solid #333;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto; box-shadow: 0 12px 24px rgba(0,0,0,.12); }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav { background: var(--brand-dark); border-top-color: #333; }
  .main-nav > ul > li { border-bottom: 1px solid #333; }
  .main-nav > ul > li:last-child { border-bottom: 0; }
  .main-nav > ul > li > a { padding: 14px 20px; white-space: normal; }
}
/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  :root { --header-h: 70px; }
  body { font-size: 15.5px; }
  .wrap { padding-right: 16px; padding-left: 16px; }
  .logo img { height: 52px; }
  .header-inner { gap: 8px; }
  .burger { padding: 8px; }
  .page-title { padding: 28px 0; }
  .crumbs { flex-wrap: wrap; }
  .content { padding-top: 32px; padding-bottom: 48px; }
  h4 { font-size: 21px; }
  .help { padding: 20px; }
  .btn { width: 100%; justify-self: stretch; }
  .fbrand { flex-direction: column; gap: 16px; }
  .fbrand img { height: 72px; }
  .socials { justify-content: center; gap: 10px; }
  .soc { width: 36px; height: 36px; }
  .copy { padding: 20px 0 14px; font-size: 12px; }
}
@media (min-width: 641px) {
  .scheme-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

/* Page-specific styles moved from pledge-main.php */

body.pledge-page {
  --navy: #0b2341;
  --blue: /* #1559a6 */ #19b299;
  --gold: /* #c99a32 */ #19b299;
  --cream: #f7f4ec;
  --text: #172033;
  --muted: #667085;
  --border: #d9dee7;
  --white: #fff;
  --success: #177245;
  --danger: #b42318;
}


body.pledge-page {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #f3f5f8;
}


body.pledge-page main {
  padding: 38px 20px 70px;
}


body.pledge-page .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}


body.pledge-page .card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 8px 30px rgba(11,35,65,.06);
  margin-bottom: 22px;
}


body.pledge-page .card h2 {
  margin: 0 0 5px;
  color: var(--navy);
  font-size: 23px;
}


body.pledge-page .card .sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}


body.pledge-page .section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}


body.pledge-page .num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
}


body.pledge-page label {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}


body.pledge-page .req {
  color: var(--danger);
}


body.pledge-page input, body.pledge-page select, body.pledge-page textarea, body.pledge-page button {
  font: inherit;
}


body.pledge-page input, body.pledge-page select, body.pledge-page textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  box-sizing: border-box;
}


body.pledge-page input:focus, body.pledge-page select:focus, body.pledge-page textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21,89,166,.1);
  outline: none;
}


body.pledge-page textarea {
  min-height: 110px;
  resize: vertical;
}


body.pledge-page .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}


body.pledge-page #indianAddress {
  grid-template-columns: minmax(0, 1fr);
}


body.pledge-page .form-grid > div {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}


body.pledge-page .form-grid > div.full {
  grid-column: 1 / -1;
}

body.pledge-page .form-grid > div.otp-section {
  display: block;
}


body.pledge-page .form-grid > div.notice {
  display: block;
}


body.pledge-page .form-grid > div label {
  margin: 0;
  text-align:/*  right */left;
}


body.pledge-page .form-grid > div input, body.pledge-page .form-grid > div select, body.pledge-page .form-grid > div textarea, body.pledge-page .form-grid > div .upload, body.pledge-page .form-grid > div .otp-inline {
  width: 100%;
}


body.pledge-page .full {
  grid-column: 1 / -1;
}


body.pledge-page .login-input {
  display: flex;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}

body.pledge-page .login-input input {
  flex: 1;
  min-width: 0;
}

body.pledge-page .login-input button {
  flex: 0 0 auto;
}

body.pledge-page .login-otp-panel {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

body.pledge-page .donor-profile-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 18px 0;
}

body.pledge-page .donor-profile-details > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow-wrap: anywhere;
}

body.pledge-page .donor-profile-details dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

body.pledge-page .donor-profile-details dd {
  margin: 0;
  color: var(--text);
}

body.pledge-page .donor-profile-heading {
  justify-content: space-between;
}


body.pledge-page .login-signup {
  margin: 10px 0 0;
  padding: 11px 14px;
  border-left: 3px solid var(--blue);
  border-radius: 6px;
  background: #e0f7f3;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

body.pledge-page #donorLoginStatus {
  grid-column: 1 / -1;
  width: 100%;
  box-sizing: border-box;
}


body.pledge-page .login-signup a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
}


body.pledge-page .help {
  font-size: 12px;
  color: var(--muted);
      background: #f0fffd;
  margin-top: 6px;
}


body.pledge-page .scheme-box {
  background:#19b299 /* var(--cream) */;
  border: 1px solid #eadfbd;
  border-radius: 14px;
  padding: 18px;
  margin-top: 15px;
}


body.pledge-page #endowmentEnquiryForm .panel {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fbfcfe;
  margin-top: 18px;
}


body.pledge-page #endowmentEnquiryForm .form-grid {
  grid-template-columns: minmax(0, 1fr);
}

body.pledge-page #endowmentEnquiryForm .control-stack {
  display: grid;
  gap: 10px;
  min-width: 0;
}


body.pledge-page #endowmentEnquiryForm .calc-result {
  margin-top: 16px;
}


body.pledge-page #endowmentEnquiryForm #desc {
  white-space: pre-line;
  line-height: 1.55;
}


body.pledge-page #endowmentEnquiryForm .info-table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
}


body.pledge-page #endowmentEnquiryForm .info-table td {
  padding: 8px;
  border-bottom: 1px solid var(--border);
}


body.pledge-page #endowmentEnquiryForm .consent-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
}


body.pledge-page #endowmentEnquiryForm .consent-label input {
  width: auto;
  margin-top: 4px;
}


body.pledge-page .amount {
  font-size: 34px;
  font-weight: 800;
  color:#fff /* var(--navy) */;
  margin: 3px 0;
}


body.pledge-page .notice {
  background: #e0f7f3;
  border-left: 4px solid var(--blue);
  padding: 12px 14px;
  border-radius: 7px;
  font-size: 13px;
  margin-top: 14px;
}


body.pledge-page .upload {
  border: 1.5px dashed #b9c4d4;
  border-radius: 12px;
  padding: 16px;
  background: #fbfcfe;
}


body.pledge-page .otp-inline {
  box-sizing: border-box;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbfcfe;
}


body.pledge-page .otp-inline label {
  display: block;
  margin-bottom: 8px;
  text-align: left;
}


body.pledge-page .otp-inline .otp-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}


body.pledge-page .otp-inline input {
  flex: 1;
  min-width: 0;
}


body.pledge-page .otp-inline button {
  flex-shrink: 0;
  min-width: 150px;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  background: #edf2f7;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
}


body.pledge-page .otp-inline .help {
  margin-top: 8px;
}


body.pledge-page .hidden {
  display: none !important;
}


body.pledge-page .calc-result {
  background: /* var(--navy) */#19b299;;
  color: white;
  border-radius: 15px;
  padding: 22px;
  margin-top: 18px;
}


body.pledge-page .calc-result .label {
  color: #ffffff;
  font-size: 13px;
}


body.pledge-page .calc-result .value {
  font-size: 34px;
  font-weight: 800;
}


body.pledge-page .calc-result .small {
  font-size: 13px;
  color: #d7e1ee;
}


body.pledge-page .step-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}


body.pledge-page .step-list li {
  display: flex;
  gap: 10px;
  font-size: 14px;
}


body.pledge-page .step-list b {
  color: var(--gold);
}


body.pledge-page .side-title {
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}


body.pledge-page .contact {
  background: var(--navy);
  color: white;
}


body.pledge-page .contact h3 {
  margin-top: 0;
}


body.pledge-page .contact a {
  color: white;
}


body.pledge-page .card button {
  border: 0;
  border-radius: 10px;
  padding: 14px 20px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}


body.pledge-page .primary {
  background: var(--gold);
  color: white;
}


body.pledge-page .secondary {
  background: #edf2f7;
  color: var(--navy);
}


body.pledge-page .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}


body.pledge-page .checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  font-weight: 400;
}


body.pledge-page .checkbox input {
  width: auto;
  margin-top: 4px;
}


body.pledge-page .toast {
  display: none;
  margin-top: 15px;
  padding: 12px;
  border-radius: 9px;
  background: #e8f7ef;
  color: var(--success);
  font-weight: 700;
}


@media (max-width: 820px) {

  body.pledge-page .grid {
    grid-template-columns: 1fr;
  }


  body.pledge-page .form-grid {
    grid-template-columns: 1fr;
  }


  body.pledge-page .form-grid > div {
    grid-template-columns: 1fr;
    align-items: start;
  }


  body.pledge-page .form-grid > div label {
    text-align: left;
    margin-bottom: 6px;
  }


  body.pledge-page .otp-inline .otp-row {
    flex-direction: column;
    align-items: stretch;
  }


  body.pledge-page .otp-inline button {
    width: 100%;
  }


  body.pledge-page .full {
    grid-column: auto;
  }

  body.pledge-page .donor-profile-details {
    grid-template-columns: minmax(0, 1fr);
  }

}


body.pledge-page .pledge-error-card { border-color: var(--danger); }

body.pledge-page .pledge-review-letter { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }

body.pledge-page .address-title { margin: 0; color: var(--navy); }

body.pledge-page .section-gap-20 { margin-top: 20px; }

body.pledge-page .section-gap-15 { margin-top: 15px; }

body.pledge-page .section-gap-12 { margin-top: 12px; }

body.pledge-page .otp-label-spaced { margin-top: 12px; }

body.pledge-page .otp-control-spaced { margin-top: 8px; }


/* Page-specific styles moved from office.php */

body.office-page {--navy:#0b2341;--blue:#1559a6;--gold:#c99a32;--text:#172033;--muted:#667085;--border:#d9dee7;--danger:#b42318;--green:#177245}

body.office-page * {box-sizing:border-box}

body.office-page {margin:0;background:#f5f7fa;color:var(--text);font:15px/1.5 Inter,Segoe UI,Arial,sans-serif}

body.office-page a {color:var(--blue)}

body.office-page .top {background:var(--navy);color:#fff;padding:19px max(20px,calc((100vw - 1200px)/2));display:flex;align-items:center;justify-content:space-between;gap:20px}

body.office-page .top strong {font-size:18px}
body.office-page .top span {color:#d7e1ee;font-size:13px}

body.office-page .top form {margin:0}
body.office-page .top button {background:transparent;color:#fff;border:1px solid #71839b;padding:9px 13px;border-radius:8px}

body.office-page .wrap {max-width:1200px;margin:auto;padding:28px 20px 60px}

body.office-page .login {max-width:420px;margin:9vh auto;background:white;border:1px solid var(--border);border-radius:16px;padding:30px;box-shadow:0 10px 35px #0b234115}

body.office-page .card {background:#fff;border:1px solid var(--border);border-radius:14px;padding:22px;margin-bottom:20px;box-shadow:0 6px 20px #0b23410b}

body.office-page h1 {font-size:25px;color:var(--navy);margin:0 0 5px}
body.office-page h2 {font-size:19px;color:var(--navy);margin:0 0 15px}
body.office-page h3 {font-size:16px;color:var(--navy);margin:0 0 10px}

body.office-page .muted, body.office-page .sub {color:var(--muted);font-size:13px}

body.office-page .stats {display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:20px 0}

body.office-page .stat {background:#fff;border:1px solid var(--border);border-radius:12px;padding:15px}
body.office-page .stat b {display:block;color:var(--navy);font-size:23px}
body.office-page .stat span {font-size:12px;color:var(--muted)}

body.office-page .filters, body.office-page .form-row {display:flex;gap:12px;align-items:end;flex-wrap:wrap}

body.office-page label {display:block;font-size:13px;font-weight:700;margin-bottom:6px}

body.office-page input, body.office-page select, body.office-page textarea {font:inherit;border:1px solid var(--border);border-radius:8px;padding:11px 12px;width:100%;background:#fff}

body.office-page textarea {min-height:145px;resize:vertical}

body.office-page .field {flex:1;min-width:180px}

body.office-page button, body.office-page .button {font:inherit;font-weight:700;border:0;border-radius:8px;background:var(--gold);color:#fff;padding:11px 16px;cursor:pointer;text-decoration:none;display:inline-block}

body.office-page .button.secondary, body.office-page button.secondary {background:#edf2f7;color:var(--navy)}

body.office-page .button.small {font-size:13px;padding:8px 11px}

body.office-page .danger {color:var(--danger);background:#fff4f2;border:1px solid #f1c5bf;padding:13px;border-radius:9px;margin:0 0 18px}

body.office-page .success {color:var(--green);background:#e8f7ef;border:1px solid #b8e4ca;padding:13px;border-radius:9px;margin:0 0 18px}

body.office-page .table-wrap {overflow-x:auto}

body.office-page table {width:100%;border-collapse:collapse;min-width:760px}

body.office-page th, body.office-page td {text-align:left;padding:12px 10px;border-bottom:1px solid #edf0f4;vertical-align:top}

body.office-page th {font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}

body.office-page .badge {display:inline-block;border-radius:100px;padding:4px 9px;background:#e0f7f3;color:var(--blue);font-size:12px;font-weight:700;white-space:nowrap}

body.office-page .badge.closed {background:#edf0f4;color:#566273}
body.office-page .badge.replied {background:#e8f7ef;color:var(--green)}

body.office-page .details {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}

body.office-page .detail {overflow-wrap:anywhere}
body.office-page .detail b {display:block;color:var(--muted);font-size:12px;margin-bottom:3px}

body.office-page .letter {white-space:pre-wrap;overflow-wrap:anywhere;background:#f8fafc;padding:16px;border-radius:9px}

body.office-page .history {border-left:2px solid #dce5ef;margin-left:7px;padding-left:17px}

body.office-page .history-item {padding:0 0 17px}
body.office-page .history-item:last-child {padding-bottom:0}

body.office-page .actions {display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}

body.office-page .pagination {display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:17px}

body.office-page .config-help {background:#fff8e6;border:1px solid #f1d995;padding:13px;border-radius:9px;font-size:13px;margin-top:15px}

@media(max-width:800px) {
body.office-page .stats {grid-template-columns:repeat(2,1fr)}
body.office-page .details {grid-template-columns:1fr}
body.office-page .top {padding:16px 20px}
}


body.office-page .office-login-actions { margin-top: 15px; }

body.office-page .office-return-actions { margin: 0 0 16px; }

body.office-page .office-divider { border: 0; border-top: 1px solid #edf0f4; margin: 21px 0; }

body.office-page .office-history-heading { margin-top: 22px; }

body.office-page .office-history-letter { margin-top: 7px; }

body.office-page .office-donor-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 16px; }

body.office-page .office-donor-table { min-width: 760px; }

body.office-page .office-delete-card { border-color: #f1c5bf; }

body.office-page .delete-button { background: var(--danger); }

body.office-page .office-dashboard-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}

body.office-page .office-dashboard-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 250px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px #0b234108;
}

body.office-page .office-dashboard-nav span,
body.office-page .office-pending-count {
  color: var(--blue);
  background: #e0f7f3;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

body.office-page .office-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

body.office-page .office-section-heading h2 { margin-bottom: 4px; }
body.office-page .office-section-heading .sub { margin: 0; }
body.office-page .office-eyebrow { margin: 0 0 5px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
body.office-page .office-enquiry-section { scroll-margin-top: 16px; }
body.office-page #donor-applications { scroll-margin-top: 16px; }
body.office-page .office-list-heading { margin: 18px 0 10px; }
body.office-page .office-enquiry-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 16px 0; }
body.office-page .office-approval-notice { margin: 0 0 14px; }
body.office-page .approve-donor-form, body.office-page .resend-donor-form { margin: 12px 0 20px; }
body.office-page .approve-button { background: var(--green); }
body.office-page .badge.pending { background: #fff5df; color: #885b00; }

body.office-page .office-document-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

body.office-page .office-document-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

body.office-page .office-document-card strong {
  font-size: 13px;
}

body.office-page .office-document-preview {
  width: 150px;
  height: 190px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f8fafc;
}

body.office-page .office-document-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

body.office-page .office-document-download:hover {
  text-decoration: underline;
}

body.office-page .office-document-download svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

@media(max-width:800px) {
  body.office-page .office-donor-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.office-page .office-enquiry-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.office-page .office-section-heading { align-items: flex-start; flex-direction: column; }
  body.office-page .office-dashboard-nav a { flex: 1 1 100%; }
}
