/* Small additions on top of the original Divi styles. */

/* Home: mission lead line */
.et_pb_cta_1 .ifs-mission-lead {
  text-align: center;
  font-size: 18px;
  padding-bottom: 12px;
}

/* Secure Portal: two boxes, styled like the home page announcement box */
.ifs-portal-boxes { padding-top: 0 !important; }
@media (min-width: 981px) {
  .ifs-portal-boxes { display: flex; }
  .ifs-portal-boxes .ifs-portal-col { display: flex; }
}
.ifs-portal-box {
  background-color: #f8f8f8;
  border-radius: 5px;
  padding: 24px 28px 30px;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.ifs-portal-box h2 {
  color: #E02B20;
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  border-bottom: 1px solid #E02B20;
  padding-bottom: 4px;
  margin-bottom: 16px;
}
.ifs-portal-box p { font-size: 18px; line-height: 1.6em; padding-bottom: 24px; flex: 1; }
.ifs-portal-box .et_pb_button_wrapper { padding-top: 4px; }
.ifs-portal-box .et_pb_button.ifs-box-button {
  color: #FFFFFF !important;
  background-color: #000000;
  border-width: 0 !important;
}
.ifs-portal-box .et_pb_button.ifs-box-button:after { color: #FFFFFF; }

/* All Announcements: keep linked announcements clear of the fixed header */
[data-ifs-all] article { scroll-margin-top: 120px; }
[data-ifs-all] article:target .entry-title { color: #E02B20; }

/* Forms: notice shown while the forms aren't connected yet */
.ifs-form-note { color: #E02B20; font-weight: 600; }

/* Home: service cards no longer link to the empty service pages */
a.ifs-nolink { cursor: default; }

/* While the latest hours/announcements load, hide the old copy for a moment (max 2.5s) */
.ifs-loading [data-ifs-hours], .ifs-loading [data-ifs-latest], .ifs-loading [data-ifs-all] { visibility: hidden; }

/* ===================== Contact Us: redesigned form section ===================== */
.ifs-contact-section {
  background: #f5f5f5;
  padding: 64px max(20px, env(safe-area-inset-right, 0px)) 72px max(20px, env(safe-area-inset-left, 0px)) !important;
}
.ifs-contact-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.ifs-contact-section p { padding-bottom: 0; }

/* Info card */
.ifs-cinfo {
  background: #000;
  color: #fff;
  border-radius: 6px;
  padding: 32px 30px;
}
.ifs-ceyebrow {
  color: #E02B20;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid #E02B20;
  padding-bottom: 6px !important;
  margin-bottom: 14px;
}
.ifs-cintro { color: #cfcfcf; font-size: 15px; line-height: 1.6; margin-bottom: 24px; }
.ifs-clist { margin: 0; display: flex; flex-direction: column; gap: 20px; }
.ifs-clist > div { border-top: 1px solid #2a2a2a; padding-top: 16px; }
.ifs-clist > div:first-child { border-top: 0; padding-top: 0; }
.ifs-clist dt { color: #9a9a9a; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.ifs-clist dd { margin: 0; color: #fff; font-size: 16px; line-height: 1.6; }
.ifs-cphone { color: #fff !important; font-size: 24px; font-weight: 700; letter-spacing: .01em; text-decoration: none; }
.ifs-cphone:hover { color: #E02B20 !important; }
.ifs-clink { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; font-size: 15px; }
.ifs-clink:hover { color: #E02B20 !important; }

/* Form card */
.ifs-ccard {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .06);
  padding: 40px 44px 44px;
  min-width: 0;
}
.ifs-cform { display: flex; flex-direction: column; gap: 22px; }
.ifs-cform[hidden] { display: none; }
.ifs-ccard h2 { font-size: 28px; font-weight: 700; color: #222; line-height: 1.2; padding-bottom: 0; }
.ifs-csub { color: #666; font-size: 15px; line-height: 1.6; margin-top: -12px; }
.ifs-req { color: #E02B20; font-weight: 700; }
.ifs-opt { color: #888; font-weight: 400; font-size: 13px; margin-left: 4px; }
.ifs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ifs-crow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 20px; }
.ifs-cfield { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ifs-cfield label { font-size: 15px; font-weight: 600; color: #222; }
.ifs-cform .ifs-cfield input,
.ifs-cform .ifs-cfield textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: #222;
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  padding: 12px 14px;
  margin: 0;
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
.ifs-cform .ifs-cfield textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.ifs-cform .ifs-cfield input::placeholder,
.ifs-cform .ifs-cfield textarea::placeholder { color: #a5a5a5; }
.ifs-cform .ifs-cfield input:hover,
.ifs-cform .ifs-cfield textarea:hover { border-color: #9d9d9d; }
.ifs-cform .ifs-cfield input:focus,
.ifs-cform .ifs-cfield textarea:focus { outline: none; border-color: #000; box-shadow: 0 0 0 3px rgba(0, 0, 0, .12); }
.ifs-cerr { display: none; color: #c4251c; font-size: 14px; line-height: 1.4; }
.ifs-cfield.has-error .ifs-cerr { display: block; }
.ifs-cform .ifs-cfield.has-error input,
.ifs-cform .ifs-cfield.has-error textarea { border-color: #E02B20; }
.ifs-cform .ifs-cfield.has-error input:focus,
.ifs-cform .ifs-cfield.has-error textarea:focus { box-shadow: 0 0 0 3px rgba(224, 43, 32, .18); }
.ifs-csummary { background: #fdeeed; border: 1px solid #f2b2ad; color: #a3221a; border-radius: 4px; padding: 12px 14px; font-size: 15px; }
.ifs-csummary[hidden] { display: none; }

.ifs-cnotice { display: flex; gap: 12px; align-items: flex-start; background: #f5f5f5; border-radius: 4px; padding: 14px 16px; color: #555; font-size: 14px; line-height: 1.55; }
.ifs-cnotice svg { flex: none; color: #000; margin-top: 1px; }
.ifs-cnotice a { color: #000; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.ifs-cactions { display: flex; }
.ifs-cbtn {
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: #000;
  border: 1px solid #000;
  border-radius: 4px;
  padding: 14px 30px;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.ifs-cbtn:hover { background: #E02B20; border-color: #E02B20; }
.ifs-cbtn:focus-visible { outline: 3px solid #2ea3f2; outline-offset: 2px; }
.ifs-cbtn:disabled { opacity: .65; cursor: progress; }
.ifs-cbtn-outline { background: #fff; color: #000; }
.ifs-cbtn-outline:hover { background: #000; color: #fff; border-color: #000; }

.ifs-csent { text-align: center; padding: 28px 8px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ifs-csent[hidden] { display: none; }
.ifs-csent:focus { outline: none; }
.ifs-csent p { color: #555; font-size: 16px; line-height: 1.6; max-width: 46ch; }
.ifs-csent a { color: #000; font-weight: 600; }

@media (max-width: 900px) {
  .ifs-contact-section { padding-top: 40px !important; padding-bottom: 48px !important; }
  .ifs-contact-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ifs-ccard { order: -1; }
}
@media (max-width: 560px) {
  .ifs-ccard { padding: 28px 20px 30px; }
  .ifs-cinfo { padding: 26px 22px; }
  .ifs-crow { grid-template-columns: minmax(0, 1fr); }
  .ifs-cbtn { width: 100%; }
  .ifs-ccard h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .ifs-cform input, .ifs-cform textarea, .ifs-cbtn { transition: none; } }

/* ShareFile request page: steps, checkbox */
.ifs-csteps { list-style: none; counter-reset: ifs-step; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.ifs-csteps li { counter-increment: ifs-step; position: relative; padding-left: 44px; display: flex; flex-direction: column; gap: 3px; }
.ifs-csteps li::before {
  content: counter(ifs-step);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: #E02B20; color: #fff;
  font-weight: 700; font-size: 15px; line-height: 30px; text-align: center;
}
.ifs-csteps strong { color: #fff; font-size: 16px; }
.ifs-csteps span { color: #cfcfcf; font-size: 15px; line-height: 1.55; }
.ifs-clist-tight { border-top: 1px solid #2a2a2a; padding-top: 18px; gap: 16px; }
.ifs-clist-tight > div:first-child { border-top: 0; padding-top: 0; }
.ifs-cphone-sm { font-size: 18px; }

.ifs-ccheck label { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; font-size: 15px; line-height: 1.5; cursor: pointer; }
.ifs-ccheck input[type=checkbox] { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.ifs-cbox {
  flex: none; width: 22px; height: 22px; margin-top: 0;
  border: 1.5px solid #9d9d9d; border-radius: 4px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .15s, border-color .15s;
}
.ifs-ccheck input:checked + .ifs-cbox { background: #000; border-color: #000; }
.ifs-ccheck input:checked + .ifs-cbox::after {
  content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px);
}
.ifs-ccheck input:focus-visible + .ifs-cbox { box-shadow: 0 0 0 3px rgba(0, 0, 0, .18); border-color: #000; }
.ifs-ccheck.has-error .ifs-cbox { border-color: #E02B20; }
.ifs-ccheck .ifs-cerr { padding-left: 34px; }

/* ShareFile request confirmation page */
.ifs-done { max-width: 680px; margin: 0 auto; }
.ifs-done-card { padding: 48px 52px 44px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.ifs-done-card h2 { font-size: 30px; }
.ifs-done-icon { margin-bottom: 4px; }
.ifs-done-lead { color: #444; font-size: 17px; line-height: 1.6; margin-top: -6px; }
.ifs-done-callout { width: 100%; background: #f5f5f5; border-left: 4px solid #E02B20; border-radius: 0 4px 4px 0; padding: 14px 18px; color: #444; font-size: 15px; line-height: 1.6; }
.ifs-done-callout strong { color: #222; display: block; }
.ifs-done-h { font-size: 13px !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #888; margin-top: 12px; padding-bottom: 0 !important; }
.ifs-csteps-light { margin: 0; width: 100%; }
.ifs-csteps-light strong { color: #222; }
.ifs-csteps-light span { color: #666; }
.ifs-done-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.ifs-done-actions .ifs-cbtn { text-decoration: none; display: inline-block; }
.ifs-done-actions .ifs-cbtn:not(.ifs-cbtn-outline) { color: #fff !important; }
.ifs-done-actions .ifs-cbtn-outline { color: #000 !important; }
.ifs-done-actions .ifs-cbtn-outline:hover { color: #fff !important; }
.ifs-done-help { color: #666; font-size: 15px; border-top: 1px solid #e6e6e6; padding-top: 18px !important; margin-top: 10px; width: 100%; }
.ifs-done-help a { color: #000; font-weight: 600; }
@media (max-width: 560px) {
  .ifs-done-card { padding: 32px 22px 30px; }
  .ifs-done-card h2 { font-size: 25px; }
  .ifs-done-actions { flex-direction: column; width: 100%; }
  .ifs-done-actions .ifs-cbtn { text-align: center; }
}

/* ============================ Accessibility ============================ */
/* Skip link: hidden until a keyboard user tabs to it */
.ifs-skip {
  position: absolute; left: 12px; top: -100px; z-index: 100000;
  background: #000; color: #fff !important; font-weight: 700; font-size: 16px;
  padding: 12px 18px; border-radius: 4px; text-decoration: none;
}
.ifs-skip:focus { top: 12px; outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px #0a6ab4; }
#main-content:focus { outline: none; }

/* Visible keyboard focus everywhere (Divi turned it off) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, iframe:focus-visible, [tabindex]:focus-visible, .mobile_nav:focus-visible {
  outline: 3px solid #0a6ab4 !important;
  outline-offset: 2px !important;
}
.ifs-site-footer :focus-visible, #main-footer :focus-visible, .ifs-cinfo :focus-visible,
.et_pb_promo_button:focus-visible, .ifs-cbtn:focus-visible, .ifs-box-button:focus-visible {
  outline-color: #fff !important;
  box-shadow: 0 0 0 5px #0a6ab4 !important;
}
.ifs-cform .ifs-cfield input:focus-visible, .ifs-cform .ifs-cfield textarea:focus-visible { outline: 2px solid #0a6ab4 !important; outline-offset: 1px !important; }

/* Text colors with enough contrast (the old light blue and red were too faint) */
#top-menu li.current-menu-item > a, #top-menu li.current_page_item > a,
.et_mobile_menu li.current-menu-item > a, .et_mobile_menu li.current_page_item > a { color: #0a6ab4 !important; }
.et_pb_text_inner a:not(.et_pb_button):not(.ifs-cbtn), .post-content a, a.more-link,
.ifs-statement a, .ifs-csteps a { color: #0a6ab4; text-decoration: underline; text-underline-offset: 2px; }
.home .et_pb_text_2.et_pb_text { color: #cc2219 !important; border-bottom-color: #cc2219 !important; }
.ifs-portal-box h2 { color: #cc2219; border-bottom-color: #cc2219; }
.ifs-opt, .ifs-done-h { color: #6b6b6b !important; }
.et_pb_audio_module.et_pb_audio_module { background-color: #2b6f77 !important; }

/* Training page intro (was styled as a heading) */
.ifs-lead { font-size: 18px; font-weight: 500; line-height: 1.6; color: #333; text-align: left; padding-bottom: 10px; }

/* Footer: Accessibility link */
#footer-bottom { padding: 14px 0 !important; }
.ifs-footer-links { margin: 0; padding: 0 !important; font-size: 14px; }
.ifs-footer-links a { color: #fff !important; text-decoration: underline; text-underline-offset: 2px; }

/* Accessibility statement page */
.ifs-statement { padding: 44px 52px; display: flex; flex-direction: column; gap: 14px; }
.ifs-statement h2 { font-size: 22px !important; margin-top: 10px; padding-bottom: 0 !important; }
.ifs-statement h2:first-child { margin-top: 0; }
.ifs-statement p, .ifs-statement li { color: #444; font-size: 16px; line-height: 1.65; }
.ifs-statement ul { margin: 0; padding: 0 0 0 22px; list-style: disc; line-height: 1.65; }
.ifs-statement li { margin-bottom: 4px; }
@media (max-width: 560px) { .ifs-statement { padding: 30px 22px; } }

/* Keep focused items from hiding under the fixed header when tabbing */
html { scroll-padding-top: 24px; }
@media (min-width: 981px) { html { scroll-padding-top: 110px; } }
.ifs-card-title { color: inherit; }
