/* ONG Contact Form: gold CTA + modal (v1.1.0 attachment field; v1.0.2 submit contrast; LS CSS exclude) */
:root {
  --ong-cf-navy: #0F2442;
  --ong-cf-header-navy: #203450;
  --ong-cf-accent: #2B6CB0;
  --ong-cf-gold: #C9A227;
  --ong-cf-gold-alt: #c4a35a;
  --ong-cf-bg: #f7f9fc;
  --ong-cf-border: #d5dde8;
  --ong-cf-err: #b42318;
  --ong-cf-ok: #067647;
}

/* Nav CTA: gold/mustard pill, navy text (readable on navy #203450 header) */
.ong-cf-nav-item > a.ong-cf-nav-cta,
li.menu-item-ong-contact > a.ong-cf-nav-cta,
.elementor-nav-menu .ong-cf-nav-item > a.ong-cf-nav-cta,
.elementor-nav-menu li.menu-item-ong-contact > a.ong-cf-nav-cta,
.site-header .ong-cf-nav-item > a.ong-cf-nav-cta,
.site-header li.menu-item-ong-contact > a.ong-cf-nav-cta {
  display: inline-block !important;
  padding: 0.45em 1em !important;
  margin-left: 0.35em;
  border-radius: 999px !important;
  background: var(--ong-cf-gold) !important;
  color: var(--ong-cf-navy) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  border: 2px solid var(--ong-cf-gold) !important;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.ong-cf-nav-item > a.ong-cf-nav-cta:hover,
.ong-cf-nav-item > a.ong-cf-nav-cta:focus,
li.menu-item-ong-contact > a.ong-cf-nav-cta:hover,
li.menu-item-ong-contact > a.ong-cf-nav-cta:focus,
.elementor-nav-menu .ong-cf-nav-item > a.ong-cf-nav-cta:hover,
.elementor-nav-menu .ong-cf-nav-item > a.ong-cf-nav-cta:focus,
.elementor-nav-menu li.menu-item-ong-contact > a.ong-cf-nav-cta:hover,
.elementor-nav-menu li.menu-item-ong-contact > a.ong-cf-nav-cta:focus,
.site-header .ong-cf-nav-item > a.ong-cf-nav-cta:hover,
.site-header .ong-cf-nav-item > a.ong-cf-nav-cta:focus,
.site-header li.menu-item-ong-contact > a.ong-cf-nav-cta:hover,
.site-header li.menu-item-ong-contact > a.ong-cf-nav-cta:focus {
  background: var(--ong-cf-gold-alt) !important;
  border-color: var(--ong-cf-gold-alt) !important;
  color: var(--ong-cf-navy) !important;
}
/* Mobile drawer (white panel): same gold fill + navy text for contrast */
.site-header .site-navigation-dropdown .ong-cf-nav-item > a.ong-cf-nav-cta,
.site-header .site-navigation-dropdown li.menu-item-ong-contact > a.ong-cf-nav-cta,
.elementor-nav-menu--dropdown .ong-cf-nav-item > a.ong-cf-nav-cta,
.elementor-nav-menu--dropdown li.menu-item-ong-contact > a.ong-cf-nav-cta {
  background: var(--ong-cf-gold) !important;
  color: var(--ong-cf-navy) !important;
  border-color: var(--ong-cf-gold) !important;
  margin: 0.5em 0 !important;
}

/* Dialog */
.ong-cf-dialog[hidden] { display: none !important; }
.ong-cf-dialog:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.ong-cf-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 36, 66, 0.55);
}
.ong-cf-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(15, 36, 66, 0.35);
  padding: 1.5rem 1.35rem 1.25rem;
  color: var(--ong-cf-navy);
}
.ong-cf-dialog__close {
  position: absolute;
  top: 0.5rem;
  right: 0.65rem;
  border: 0;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ong-cf-navy);
  padding: 0.25rem 0.45rem;
}
.ong-cf-dialog__close:focus { outline: 2px solid var(--ong-cf-accent); outline-offset: 2px; }

.ong-cf-title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  color: var(--ong-cf-navy);
  font-weight: 700;
}
.ong-cf-lede {
  margin: 0 0 1rem;
  color: #3a4a63;
  font-size: 0.95rem;
}
.ong-cf-fallback {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  text-align: center;
}
.ong-cf-fallback a { color: var(--ong-cf-accent); }

.ong-cf-wrap--page {
  max-width: 560px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--ong-cf-bg);
  border: 1px solid var(--ong-cf-border);
  border-radius: 12px;
}
body.ong-cf-page .entry-content { max-width: 640px; margin-left: auto; margin-right: auto; }

.ong-cf-field { margin-bottom: 0.9rem; }
.ong-cf-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: var(--ong-cf-navy);
}
.ong-cf-req { color: var(--ong-cf-err); }
.ong-cf-opt { font-weight: 400; color: #6b7a90; font-size: 0.85em; }
.ong-cf-field input,
.ong-cf-field select,
.ong-cf-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--ong-cf-border);
  border-radius: 8px;
  font: inherit;
  color: var(--ong-cf-navy);
  background: #fff;
}
.ong-cf-field input:focus,
.ong-cf-field select:focus,
.ong-cf-field textarea:focus {
  outline: 2px solid var(--ong-cf-accent);
  outline-offset: 1px;
  border-color: var(--ong-cf-accent);
}
/* Submit: beat Hello Elementor reset.css button/#c36 outline (transparent+magenta).
   Scoped to contact form only; header .ong-cf-nav-cta untouched.
   Gold fill + navy text matches header Contact CTA; high contrast on white card. */
.ong-cf-form button.ong-cf-submit[type="submit"],
.ong-cf-wrap button.ong-cf-submit[type="submit"],
.ong-cf-dialog__panel button.ong-cf-submit[type="submit"],
button.ong-cf-submit[type="submit"] {
  display: inline-block !important;
  width: 100% !important;
  padding: 0.7rem 1rem !important;
  border-radius: 8px !important;
  border: 2px solid var(--ong-cf-gold) !important;
  background: var(--ong-cf-gold) !important;
  background-color: var(--ong-cf-gold) !important;
  color: var(--ong-cf-navy) !important;
  -webkit-text-fill-color: var(--ong-cf-navy) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  line-height: 1.25 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.ong-cf-form button.ong-cf-submit[type="submit"]:hover,
.ong-cf-form button.ong-cf-submit[type="submit"]:focus,
.ong-cf-wrap button.ong-cf-submit[type="submit"]:hover,
.ong-cf-wrap button.ong-cf-submit[type="submit"]:focus,
.ong-cf-dialog__panel button.ong-cf-submit[type="submit"]:hover,
.ong-cf-dialog__panel button.ong-cf-submit[type="submit"]:focus,
button.ong-cf-submit[type="submit"]:hover,
button.ong-cf-submit[type="submit"]:focus {
  background: var(--ong-cf-gold-alt) !important;
  background-color: var(--ong-cf-gold-alt) !important;
  border-color: var(--ong-cf-gold-alt) !important;
  color: var(--ong-cf-navy) !important;
  -webkit-text-fill-color: var(--ong-cf-navy) !important;
}
.ong-cf-form button.ong-cf-submit[type="submit"]:disabled,
.ong-cf-wrap button.ong-cf-submit[type="submit"]:disabled,
button.ong-cf-submit[type="submit"]:disabled {
  opacity: 0.65 !important;
  cursor: wait !important;
}

.ong-cf-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.ong-cf-status:not([hidden]) {
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  font-size: 0.92rem;
}
.ong-cf-status--ok { background: #ecfdf3; color: var(--ong-cf-ok); border: 1px solid #abefc6; }
.ong-cf-status--err { background: #fef3f2; color: var(--ong-cf-err); border: 1px solid #fecdca; }
.ong-cf-banner { padding: 0.85rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.ong-cf-banner--ok { background: #ecfdf3; color: var(--ong-cf-ok); border: 1px solid #abefc6; }
.ong-cf-banner--err { background: #fef3f2; color: var(--ong-cf-err); border: 1px solid #fecdca; }

body.ong-cf-modal-open { overflow: hidden; }

/* v1.1.0 attachment field: input inherits .ong-cf-field input styling; only the help line is new. */
.ong-cf-file-help {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #3a4a63;
}
.ong-cf-field input[type="file"] { cursor: pointer; }
/* v1.1.0 a11y: the (optional) hint was 4.13:1 on the page card; darkened slightly to pass 4.5:1. */
.ong-cf-opt { color: #566579; }
