:root {
  --contact-ink: #073b59;
  --contact-blue: #008bd0;
  --contact-line: #d4e3ea;
  --contact-muted: #587485;
  --contact-surface: #f4fafc;
}

.contact-page { background: #fff; }
.contact-hero {
  position: relative;
  overflow: hidden;
  min-height: 312px;
  border-bottom: 1px solid var(--contact-line);
  background: #f4fafc;
}
.contact-hero-backdrop {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(249, 248, 244, .97) 0%, rgba(246, 250, 251, .88) 52%, rgba(228, 246, 253, .74) 100%), var(--contact-hero-image, url("../assets/kabindra-brand/gorkha-constituency-banner-v1.webp"));
  background-position: center 55%;
  background-size: cover;
}
.contact-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: clamp(64px, 9vw, 150px);
  align-items: center;
  min-height: 312px;
  padding-block: 52px;
}
.contact-hero-copy h1 {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--contact-ink);
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: clamp(54px, 6.2vw, 84px);
  line-height: .91;
  letter-spacing: -.07em;
  text-wrap: balance;
}
.contact-hero-copy > p:last-child {
  max-width: 630px;
  margin: 17px 0 0;
  color: var(--contact-muted);
  font-size: 14px;
  line-height: 1.65;
  text-wrap: pretty;
}
.contact-hero-rule { display: block; width: 36px; height: 3px; margin-top: 19px; background: var(--contact-blue); }
.contact-hero-note {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 17px;
  align-items: start;
  border-top: 1px solid #bcd5e1;
  padding-top: 22px;
}
.contact-icon {
  display: grid;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--contact-blue);
  background: #e3f3fb;
  place-items: center;
  font-size: 21px;
}
.contact-hero-note strong { display: block; margin: 3px 0 9px; color: var(--contact-ink); font-size: 14px; }
.contact-hero-note p { max-width: 340px; margin: 0; color: var(--contact-muted); font-size: 12px; line-height: 1.65; text-wrap: pretty; }

.contact-workspace { padding: 44px var(--page-gutter) 64px; background: linear-gradient(90deg, #fbfdfd 0%, #f5fafc 100%); }
.contact-layout-v0 { display: grid; grid-template-columns: minmax(0, .94fr) minmax(500px, 1.06fr); gap: 28px; align-items: start; }
.secretariat-panel { padding: 4px; }
.contact-section-heading { margin-bottom: 20px; }
.contact-section-heading h2 {
  margin: 8px 0 10px;
  color: var(--contact-ink);
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: clamp(34px, 3.2vw, 48px);
  line-height: 1;
  letter-spacing: -.05em;
}
.contact-section-heading > p:last-child { max-width: 560px; margin: 0; color: var(--contact-muted); font-size: 12px; line-height: 1.6; text-wrap: pretty; }
.contact-direct-actions { display: grid; gap: 9px; margin-bottom: 18px; }
.contact-direct-actions a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 12px 14px;
  border: 1px solid #c9dfe8;
  border-radius: 10px;
  background: #fff;
  color: var(--contact-ink);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(7, 59, 89, .04);
}
.contact-direct-actions a:hover,
.contact-direct-actions a:focus-visible { border-color: #69b9da; background: #f7fcfe; box-shadow: 0 12px 28px rgba(7, 59, 89, .08); transform: translateY(-1px); }
.contact-direct-actions a:active { transform: translateY(0) scale(.99); }
.contact-direct-actions > a > i { display: grid; width: 44px; height: 44px; border-radius: 10px; background: #e8f7fd; color: var(--contact-blue); font-size: 21px; place-items: center; }
.contact-direct-actions a > span { display: grid; min-width: 0; gap: 3px; }
.contact-direct-actions small { color: #587889; font-size: 10px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.contact-direct-actions strong { overflow-wrap: anywhere; color: #073b59; font-size: 14px; line-height: 1.35; }
.contact-direct-actions em { color: #657f8d; font-size: 10px; font-style: normal; font-weight: 650; }
.contact-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-height: 242px; }
.contact-card-grid[hidden] { display: none; }
.contact-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  min-height: 116px;
  padding: 15px;
  border: 1px solid var(--contact-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 8px 24px rgba(7, 59, 89, .035);
}
.contact-card .contact-icon { width: 38px; height: 38px; font-size: 18px; }
.contact-card h3 { margin: 1px 0 5px; color: var(--contact-ink); font-size: 11px; line-height: 1.25; }
.contact-card-value { display: block; overflow-wrap: anywhere; color: #355e72; font-size: 11px; font-weight: 600; line-height: 1.35; }
.contact-card p { margin: 5px 0 0; color: #718b98; font-size: 9px; line-height: 1.45; }
.contact-card a { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; margin-top: 5px; color: var(--contact-blue); font-size: 9px; font-weight: 800; }
.contact-card.is-unpublished .contact-card-value { color: #78909b; font-weight: 500; }
.contact-guidance {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  margin-top: 18px;
  padding: 17px;
  border: 1px solid #d1e5ee;
  border-radius: 9px;
  background: #eef8fc;
}
.contact-guidance .contact-icon { width: 36px; height: 36px; background: #fff; font-size: 17px; }
.contact-guidance strong { display: block; margin: 1px 0 5px; color: var(--contact-ink); font-size: 11px; }
.contact-guidance p { margin: 0; color: var(--contact-muted); font-size: 10px; line-height: 1.55; text-wrap: pretty; }
.contact-guidance-copy { display: grid; gap: 7px; }

.contact-form-panel {
  border: 1px solid var(--contact-line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 42px rgba(7, 59, 89, .07);
}
.contact-form-v0 { gap: 17px 15px; padding: 28px; border: 0; border-radius: inherit; box-shadow: none; }
.contact-form-heading { padding-bottom: 5px; border-bottom: 1px solid var(--contact-line); }
.contact-form-heading h2 { margin: 7px 0 10px; color: var(--contact-ink); font-family: "Inter Tight", Inter, sans-serif; font-size: 28px; letter-spacing: -.04em; }
.contact-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.contact-form-v0 label { gap: 7px; font-size: 10px; }
.contact-form-v0 input,
.contact-form-v0 select,
.contact-form-v0 textarea { min-height: 44px; border-radius: 4px; background: #fcfefe; font-size: 12px; }
.contact-form-v0 textarea { min-height: 138px; }
.contact-form-v0 .form-submit { display: inline-flex; align-items: center; gap: 9px; border-radius: 4px; }
.contact-form-v0 .form-submit:disabled { cursor: wait; opacity: .64; transform: none; }
.contact-form-v0 .form-message.success { padding: 15px; border: 1px solid #b9dfca; border-radius: 7px; background: #effaf4; font-size: 14px; font-weight: 700; }
.contact-settings-unavailable { grid-column: 1 / -1; padding: 18px; border: 1px solid var(--contact-line); border-radius: 8px; color: var(--contact-muted); background: #fff; font-size: 14px; }

@media (max-width: 1040px) {
  .contact-hero-layout { grid-template-columns: 1fr .72fr; gap: 48px; }
  .contact-layout-v0 { grid-template-columns: 1fr; gap: 28px; }
  .secretariat-panel { max-width: none; }
}

@media (max-width: 767px) {
  .contact-hero { min-height: 0; }
  .contact-hero-backdrop {
    background-image: linear-gradient(180deg, rgba(247, 250, 250, .95), rgba(231, 247, 252, .79)), url("../assets/kabindra-brand/gorkha-constituency-banner-v1-mobile.webp");
    background-position: center;
  }
  .contact-hero-layout { display: block; min-height: 0; padding: 40px var(--compact-gutter) 34px; }
  .contact-hero-copy h1 { font-size: clamp(43px, 13.6vw, 57px); }
  .contact-hero-copy > p:last-child { font-size: 13px; }
  .contact-hero-note { grid-template-columns: 40px minmax(0, 1fr); margin-top: 27px; padding-top: 18px; }
  .contact-hero-note .contact-icon { width: 38px; height: 38px; font-size: 18px; }
  .contact-workspace { padding: 36px var(--compact-gutter) 46px; }
  .contact-layout-v0 { gap: 24px; }
  .contact-section-heading h2 { font-size: 38px; }
  .contact-direct-actions { gap: 10px; margin-bottom: 16px; }
  .contact-direct-actions a { min-height: 80px; padding: 12px; }
  .contact-direct-actions strong { font-size: 14px; }
  .contact-card-grid { grid-template-columns: 1fr; }
  .contact-card { min-height: 104px; }
  .contact-form-v0 { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .contact-form-v0 label.wide,
  .contact-form-v0 .contact-consent,
  .contact-form-v0 .form-submit,
  .contact-form-v0 .form-message { grid-column: auto; }
  .contact-card a,
  .contact-form-v0 .form-submit { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-page *, .contact-page *::before, .contact-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
