/* FCNL design tokens */
:root {
  --fcnl-navy: #0d2f6b;
  --fcnl-navy-deep: #051127;
  --fcnl-banner: #295ea0;
  --fcnl-banner-text: #ffffff;
  --fcnl-orange: #de4828;
  --fcnl-orange-hover: #a13119;
  --fcnl-text: #212529;
  --fcnl-muted: #707987;
  --fcnl-rule: #dee2e6;
  --fcnl-field-bg: #ffffff;
  --fcnl-page-bg: #ffffff;
  /* Content gets serif (Calendas Plus); form chrome + headers get Roboto. */
  --fcnl-font-content: "Calendas Plus", Georgia, "Times New Roman", serif;
  --fcnl-font-ui: "Roboto", "Open Sans", system-ui, -apple-system, sans-serif;
}

@font-face {
  font-display: swap;
  font-family: "Calendas Plus";
  font-style: normal;
  font-weight: 700;
  src: url("https://www.fcnl.org/themes/custom/fcnl2020/assets/fonts/calendas-plus/bold/calendas_plus_bold-webfont.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Calendas Plus";
  font-style: normal;
  font-weight: 400;
  src: url("https://www.fcnl.org/themes/custom/fcnl2020/assets/fonts/calendas-plus/regular/calendas_plus-webfont.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Calendas Plus";
  font-style: italic;
  font-weight: 400;
  src: url("https://www.fcnl.org/themes/custom/fcnl2020/assets/fonts/calendas-plus/italic/calendas_plus_italic-webfont.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  src: url("https://www.fcnl.org/themes/custom/fcnl2020/assets/fonts/roboto/roboto-regular.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  src: url("https://www.fcnl.org/themes/custom/fcnl2020/assets/fonts/roboto/roboto-bold.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Roboto";
  font-style: italic;
  font-weight: 400;
  src: url("https://www.fcnl.org/themes/custom/fcnl2020/assets/fonts/roboto/roboto-italic.woff2") format("woff2");
}

* { box-sizing: border-box; }

html { min-height: 100%; }
body {
  margin: 0;
  padding: 0;
  background: var(--fcnl-page-bg);
  color: var(--fcnl-text);
  font-family: var(--fcnl-font-content);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
body > .fcnl-footer { flex-shrink: 0; }

/* Form chrome and headings use Roboto */
h1, h2, h3, h4, h5, h6,
input, select, textarea, button,
label,
.select2-container,
.select2-container--default .select2-selection__rendered,
.select2-results__option,
.picker__input,
.picker__holder,
.fcnl-checkbox,
.fcnl-radio-group label,
.fcnl-field__box label,
.fcnl-field__label,
.fcnl-add-another,
.fcnl-submit,
.fcnl-header__nav,
.fcnl-header__donate {
  font-family: var(--fcnl-font-ui);
}

a { color: var(--fcnl-navy); }
a:hover { color: var(--fcnl-orange); }

.fcnl-header {
  border-bottom: 1px solid var(--fcnl-rule);
  padding: 18px 24px;
}
.fcnl-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.fcnl-header__logo img { height: 56px; display: block; }
.fcnl-header__nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.fcnl-header__nav a {
  color: var(--fcnl-navy);
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
}
.fcnl-header__social {
  display: flex;
  gap: 12px;
  color: #b9bcc4;
}
.fcnl-header__social a { color: inherit; text-decoration: none; }
.fcnl-header__donate {
  background: var(--fcnl-orange);
  color: white;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}
.fcnl-header__donate:hover { background: var(--fcnl-orange-hover); color: white; }

.fcnl-page-banner {
  background: var(--fcnl-banner);
  color: var(--fcnl-banner-text);
  padding: 28px 24px;
}
.fcnl-page-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.fcnl-page-banner h1 {
  margin: 0;
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
}

.fcnl-form-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.fcnl-intro {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 32px;
}
.fcnl-intro p { margin: 0 0 16px; }
.fcnl-intro strong { font-weight: 700; }
.fcnl-intro em { font-style: italic; }

/* Field styling — mirrors live site (white bg, 3px navy border for boxed fields) */
.fcnl-field {
  margin-bottom: 14px;
}
.fcnl-field--block {
  margin-bottom: 28px;
}
.fcnl-field__box {
  background: var(--fcnl-field-bg);
  border: 1px solid var(--fcnl-rule);
  padding: 10px 14px 8px;
  position: relative;
}
.fcnl-field__box label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--fcnl-text);
  margin-bottom: 2px;
}
.fcnl-field__box .req { color: var(--fcnl-orange); margin-left: 2px; }
.fcnl-field__box input,
.fcnl-field__box select {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font: inherit; font-family: var(--fcnl-font-ui);
  color: var(--fcnl-text);
  padding: 4px 0;
}
.fcnl-field__box select { -webkit-appearance: menulist; appearance: menulist; }

.fcnl-field--prominent label.fcnl-field__label {
  display: block;
  font-weight: 700;
  font-size: 17px;
  color: var(--fcnl-text);
  margin: 16px 0 6px;
  line-height: 1.35;
}
.fcnl-field--prominent .fcnl-field__hint {
  font-style: italic;
  color: var(--fcnl-muted);
  font-size: 14px;
  margin-bottom: 6px;
}
.fcnl-field--prominent textarea,
.fcnl-field--prominent input[type="text"],
.fcnl-field--prominent input[type="number"],
.fcnl-field--prominent input[type="email"],
.fcnl-field--prominent input[type="url"],
.fcnl-field--prominent input[type="date"] {
  width: 100%;
  border: 3px solid var(--fcnl-navy);
  background: white;
  padding: 14px 12px;
  font: inherit; font-family: var(--fcnl-font-ui);
  color: var(--fcnl-text);
  border-radius: 0;
}
.fcnl-field--prominent textarea {
  min-height: 110px;
  resize: vertical;
  font-family: var(--fcnl-font-ui);
}
.fcnl-field--prominent input::placeholder,
.fcnl-field--prominent textarea::placeholder { color: #b9bcc4; }

/* Select2 overrides to match the navy-bordered prominent style */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  min-height: 56px !important;
  border: 3px solid var(--fcnl-navy) !important;
  border-radius: 0 !important;
  padding: 8px 10px !important;
  font-family: var(--fcnl-font-ui);
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 38px;
  padding-left: 0;
  padding-right: 24px;
  color: var(--fcnl-text);
}
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 50px; right: 4px; }
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: #eef3fb;
  border: 1px solid #c8d6ed;
  color: var(--fcnl-navy);
  padding: 4px 8px;
  margin-top: 6px;
}
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--focus .select2-selection--single {
  outline: 2px solid var(--fcnl-banner);
  outline-offset: 0;
}
.select2-dropdown { border: 1px solid var(--fcnl-navy); border-radius: 0; }
.select2-results__option--highlighted {
  background-color: var(--fcnl-banner) !important;
  color: white !important;
}

/* Checkbox row */
.fcnl-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 14px;
  font-size: 15px;
  font-weight: 700;
}
.fcnl-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--fcnl-banner);
}

/* Radio row */
.fcnl-radio-group { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.fcnl-radio-group label { display: flex; gap: 8px; align-items: center; font-size: 15px; }

/* "+ ADD ANOTHER" button — repeater */
.fcnl-add-another {
  background: white;
  display: inline-block;
  border: 1px solid #ccc;
  color: #585857;
  padding: 5px 12px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.04em;
  border-radius: 15px;
  cursor: pointer;
  margin-top: 4px;
  font-family: var(--fcnl-font-ui);
}
.fcnl-add-another:hover { background: #f3f6f7; }
.fcnl-repeater-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}
.fcnl-repeater-row input { flex: 1; }
.fcnl-repeater-row .fcnl-remove {
  background: transparent;
  border: none;
  color: var(--fcnl-muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 4px 8px;
}
.fcnl-repeater-row .fcnl-remove:hover { color: var(--fcnl-orange); }

/* Submit button */
.fcnl-submit {
  background: var(--fcnl-orange);
  color: white;
  font-weight: 700;
  border: none;
  padding: 12px 28px;
  font-size: 15px;
  cursor: pointer;
  margin-top: 18px;
  font-family: var(--fcnl-font-ui);
}
.fcnl-submit:hover { background: var(--fcnl-orange-hover); }
.fcnl-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Date picker (pickadate) */
.picker__holder { font-family: var(--fcnl-font-ui); }
.picker__holder button { background: white !important; color: black !important; }
.picker__input {
  width: 100%;
  border: 3px solid var(--fcnl-navy) !important;
  padding: 14px 12px !important;
  border-radius: 0 !important;
  background: white !important;
  font: inherit !important; font-family: var(--fcnl-font-ui) !important;
  color: var(--fcnl-text) !important;
}

/* Date+time row */
.date-and-time { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 12px; }
.date-and-time > * { flex-basis: 48%; }

/* Footer */
.fcnl-footer {
  border-top: 1px solid var(--fcnl-rule);
  padding: 36px 24px 60px;
  font-size: 14px;
  color: var(--fcnl-text);
}
.fcnl-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
}
.fcnl-footer img.fcnl-footer__logo { height: 44px; display: block; margin-bottom: 18px; }
.fcnl-footer__seals { display: flex; gap: 14px; align-items: center; }
.fcnl-footer__seals img { height: 80px; width: auto; }
.fcnl-footer__social { display: flex; gap: 14px; color: var(--fcnl-navy); margin-bottom: 14px; }
.fcnl-footer__social a { color: inherit; text-decoration: none; }
.fcnl-footer__address {
  color: var(--fcnl-navy);
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
}
.fcnl-footer__address a { color: inherit; }

@media (max-width: 700px) {
  .fcnl-header__inner { gap: 12px; }
  .fcnl-page-banner h1 { font-size: 26px; }
  .fcnl-footer__inner { grid-template-columns: 1fr; }
  .date-and-time { flex-wrap: wrap; }
  .date-and-time > * { flex-basis: 100%; }
}

/* Index landing page */
.fcnl-landing { max-width: 720px; margin: 60px auto; padding: 0 24px; }
.fcnl-landing h1 { font-size: 28px; color: var(--fcnl-navy); }
.fcnl-landing ul { list-style: none; padding: 0; }
.fcnl-landing li {
  border: 1px solid var(--fcnl-rule);
  padding: 18px 20px;
  margin-bottom: 12px;
}
.fcnl-landing li a {
  color: var(--fcnl-navy);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}
.fcnl-landing li a:hover { text-decoration: underline; }
.fcnl-landing li p { margin: 4px 0 0; color: var(--fcnl-muted); font-size: 14px; }
