/* ==========================================================================
   Harrison College — WordPress additions
   Loads after styles.css (the design). Keep a component's base rule and its
   responsive overrides together here, in cascade order: media queries add no
   specificity, so a later same-specificity rule wins over an earlier @media one.
   ========================================================================== */

/* ---------- WordPress basics ---------- */
img { max-width: 100%; height: auto; } /* height:auto is mandatory — WP prints width/height attributes */
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* ---------- Section settings utilities ---------- */
.hc-pt--none { padding-top: 0 !important; }
.hc-pt--sm { padding-top: clamp(40px, 5vw, 64px) !important; }
.hc-pt--lg { padding-top: clamp(96px, 12vw, 160px) !important; }
.hc-pb--none { padding-bottom: 0 !important; }
.hc-pb--sm { padding-bottom: clamp(40px, 5vw, 64px) !important; }
.hc-pb--lg { padding-bottom: clamp(96px, 12vw, 160px) !important; }
.hc-bg--white { background: #fff; }

/* ---------- Inline styles from the static build, moved here ---------- */
.skills-strip .skills { margin-top: 0; padding-top: 0; border-top: 0; }
.events-upcoming { padding-top: clamp(56px, 6vw, 80px); }
.news-featured { padding-bottom: 64px; }
.news-list { padding-top: 0; }
.section.newsletter { padding: 72px 0; }
.ea-build .lede { margin: 20px 0 28px; }
.ea-build .btn-row { margin-top: 30px; }
.page-hero .hc-hero-btns { margin-top: 32px; }
.section-head.hc-head-tight { margin-bottom: 32px; }
.hc-mt { margin-top: 30px; }
.conf-tagline .text-orange { white-space: nowrap; }

/* ---------- Navigation: WordPress sub menus ---------- */
.subnav li { list-style: none; }
.nav__link[aria-current="page"] { color: var(--orange); }
@media (max-width: 1024px) {
  .subnav li a { display: block; }
}

/* ---------- Font Awesome icons (sized to match the design's SVGs) ---------- */
.hc-fa { line-height: 1; display: inline-block; }
i.stat__icon { display: block; width: auto; height: auto; font-size: 28px; }
.prog-card__icon .hc-fa { font-size: 18px; }
.prog-row__icon .hc-fa { font-size: 24px; }
.cal__icon .hc-fa,
.wp-journey__icon .hc-fa,
.ap-paper__icon .hc-fa { font-size: 22px; }
.mh-urgent__icon .hc-fa { font-size: 26px; color: #fff; }
.svc__act .hc-fa { font-size: 15px; color: var(--orange); }
.sg-mh__icon .hc-fa,
.dialog__badge .hc-fa { font-size: 20px; }
.sg-card__icon .hc-fa { font-size: 28px; margin-bottom: 6px; }
.safeguard-card__icon .hc-fa,
.sp-card__icon .hc-fa,
.ea-feat__icon .hc-fa { font-size: 24px; }
.safeguard-card__links .hc-fa { font-size: 18px; color: var(--orange); text-align: center; }
.ea-aim__icon .hc-fa { font-size: 28px; }
.btn .hc-fa { font-size: 14px; }

/* ---------- Placeholders & editor notices ---------- */
.hc-placeholder {
  display: grid; place-items: center; width: 100%; height: 100%; min-height: 200px;
  background: repeating-linear-gradient(135deg, var(--sand), var(--sand) 12px, #eef0f3 12px, #eef0f3 24px);
  color: var(--muted); font: 700 11px/1.4 var(--font); letter-spacing: .14em; text-transform: uppercase; text-align: center; padding: 16px;
}
.hc-editor-notice { margin: 24px auto; }
.hc-editor-notice p { padding: 14px 18px; border: 2px dashed var(--orange); border-radius: 8px; background: #fff7f3; color: var(--ink); font-size: 14px; }
.hc-empty { font-size: 15.5px; color: var(--muted); }

/* ---------- Generic content (posts, fallback pages, Rich text section) ---------- */
.hc-entry { max-width: 780px; color: var(--body); font-size: 16.5px; line-height: 1.75; }
.hc-entry > * + * { margin-top: 1.1em; }
.hc-entry h2, .hc-entry h3, .hc-entry h4 { color: var(--ink); line-height: 1.2; letter-spacing: -.01em; margin-top: 1.8em; }
.hc-entry h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; }
.hc-entry h3 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 800; }
.hc-entry h4 { font-size: 18px; font-weight: 700; }
.hc-entry .eyebrow + h2, .hc-entry > h2:first-child { margin-top: 0; }
.hc-entry a { color: var(--orange); font-weight: 600; }
.hc-entry ul, .hc-entry ol { padding-left: 1.3em; }
.hc-entry ul { list-style: disc; }
.hc-entry li + li { margin-top: .4em; }
.hc-entry blockquote { border-left: 4px solid var(--orange); padding: 4px 0 4px 20px; font-size: 18px; color: var(--ink); font-weight: 500; }
.hc-entry img, .hc-entry figure { border-radius: var(--radius); }
.hc-entry figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.hc-entry .alignleft { float: left; margin: 0 24px 16px 0; }
.hc-entry .alignright { float: right; margin: 0 0 16px 24px; }
.hc-entry .aligncenter { margin-left: auto; margin-right: auto; }
.hc-entry table { width: 100%; border-collapse: collapse; font-size: 15px; }
.hc-entry th, .hc-entry td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.hc-rich-text .hc-entry { max-width: 860px; }
.hc-single__media { margin: 0 0 40px; border-radius: 16px; overflow: hidden; max-width: 1000px; }
.hc-single__media img { width: 100%; }
.hc-back { margin-top: 48px; }
.hc-back .link-arrow svg { width: 14px; height: 14px; }
.page-hero .hc-meta { margin-top: 18px; color: var(--on-navy); font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.hc-status { display: inline-block; margin-bottom: 24px; padding: 10px 16px; border-radius: 6px; background: #fdecea; color: #b42318; font-weight: 700; }
.search-form { display: flex; gap: 10px; max-width: 520px; margin-top: 20px; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; height: 50px; border: 1.5px solid var(--line); border-radius: 8px; padding: 0 16px; font: inherit; }
.search-form .search-submit { height: 50px; padding: 0 22px; border: 0; border-radius: 4px; background: var(--orange); color: #fff; font: 700 12px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; }

/* Lists typed into the Chapters editor match the design's .sp-points */
.sp-ch__body ul:not([class]) { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.sp-ch__body ul:not([class]) li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.7; }
.sp-ch__body ul:not([class]) li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }

/* WYSIWYG output inside design components */
.cal__day p { margin: 0; }
.svc > p + p { margin-top: 12px; }
.ap-paper__return p { margin: 0; }
.ap-paper__return address { font-style: normal; display: inline; }
.prose ul:not([class]) { list-style: disc; padding-left: 1.2em; margin-top: 16px; }

/* ==========================================================================
   Gravity Forms — styled to match the design's .field controls.
   Gravity Forms prints its CSS-API variables in an inline <style> scoped to
   #gform_wrapper_{id}; an ID selector can't be out-specified, so the variables
   are overridden with !important. Everything else is ordinary specificity.
   ========================================================================== */
.hc-form .gform_wrapper.gform-theme,
.hc-form .gform_wrapper {
  --gf-color-primary: #F7652D !important;
  --gf-color-primary-rgb: 247, 101, 45 !important;
  --gf-color-primary-contrast: #fff !important;
  --gf-color-primary-darker: #E2531C !important;
  --gf-color-primary-lighter: #fa8a5f !important;
  --gf-color-in-ctrl-primary: #F7652D !important;
  --gf-ctrl-border-color: #E5E7EB !important;
  --gf-ctrl-radius: 8px !important;
  --gf-radius: 8px !important;
  --gf-ctrl-size: 52px !important;
  --gf-ctrl-size-md: 52px !important;
  --gf-ctrl-font-size: 15px !important;
  --gf-font-size-primary: 15px !important;
  --gf-font-family-primary: var(--font) !important;
  --gf-font-family-base: var(--font) !important;
  --gf-ctrl-label-color-primary: #0F2437 !important;
  --gf-ctrl-label-font-size-primary: 12px !important;
  --gf-ctrl-label-font-weight-primary: 700 !important;
  --gf-ctrl-label-letter-spacing-primary: .12em !important;
  --gf-ctrl-btn-bg-color-primary: #F7652D !important;
  --gf-ctrl-btn-bg-color-hover-primary: #E2531C !important;
  --gf-ctrl-btn-color-primary: #fff !important;
  --gf-ctrl-btn-radius: 4px !important;
  --gf-ctrl-btn-font-size: 13px !important;
  --gf-ctrl-btn-font-weight: 700 !important;
  --gf-ctrl-btn-letter-spacing: .12em !important;
  --gf-ctrl-btn-text-transform: uppercase !important;
  --gf-ctrl-btn-size: 52px !important;
  --gf-ctrl-btn-padding-x: 26px !important;
  --gf-ctrl-choice-check-color: #F7652D !important;
  --gf-ctrl-outline-color-focus: rgba(247, 101, 45, .35) !important;
  font-family: var(--font);
  margin: 0;
}
.hc-form .gform_wrapper .gform_heading { display: none; }
.hc-form .gform_wrapper .gfield_label,
.hc-form .gform_wrapper .gform-field-label--type-sub,
.hc-form .gform_wrapper legend.gfield_label {
  font: 700 12px/1.45 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
}
.hc-form .gform_wrapper .gfield_required { color: var(--orange); }
.hc-form .gform_wrapper input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]):not([type="hidden"]),
.hc-form .gform_wrapper select,
.hc-form .gform_wrapper textarea {
  width: 100%; min-height: 52px; border: 1.5px solid var(--line); border-radius: 8px; background-color: #fff;
  padding: 0 16px; font: 400 15px/1.4 var(--font); color: var(--ink); box-shadow: none;
  transition: border-color .2s, box-shadow .2s;
}
.hc-form .gform_wrapper textarea { padding: 14px 16px; min-height: 140px; }
.hc-form .gform_wrapper input:focus,
.hc-form .gform_wrapper select:focus,
.hc-form .gform_wrapper textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(247, 101, 45, .15); }
.hc-form .gform_wrapper .gfield_error input,
.hc-form .gform_wrapper .gfield_error select,
.hc-form .gform_wrapper .gfield_error textarea { border-color: #d93025; }
.hc-form .gform_wrapper .gfield_validation_message,
.hc-form .gform_wrapper .validation_message { font-size: 13px; font-weight: 600; color: #d93025; background: none; border: 0; padding: 6px 0 0; }
.hc-form .gform_wrapper .gform_validation_errors { border-radius: 8px; }
.hc-form .gform_wrapper .gfield_description { font-size: 13px; color: var(--muted); }
.hc-form .gform_wrapper .gfield_checkbox label,
.hc-form .gform_wrapper .gfield_radio label { text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 500; color: var(--ink); }
.hc-form .gform_wrapper .gform_footer,
.hc-form .gform_wrapper .gform_page_footer { margin-top: 24px; padding: 0; }
.hc-form .gform_wrapper .gform_button,
.hc-form .gform_wrapper .gform_next_button,
.hc-form .gform_wrapper .gform_previous_button,
.hc-form .gform_wrapper input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 16px 26px;
  border: 1.5px solid transparent; border-radius: 4px; background: var(--orange); color: #fff; cursor: pointer;
  font: 700 13px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; transition: background .25s;
}
.hc-form .gform_wrapper .gform_button:hover,
.hc-form .gform_wrapper .gform_next_button:hover,
.hc-form .gform_wrapper input[type="submit"]:hover { background: var(--orange-dark); }
.hc-form .gform_wrapper .gform_previous_button { background: transparent; border-color: var(--navy); color: var(--navy); }
.hc-form .gform_wrapper .gform_previous_button:hover { background: var(--navy); color: #fff; }
.dialog .hc-form .gform_wrapper .gform_button,
.contact-form-card .gform_wrapper .gform_button { width: 100%; }
.hc-form .gform_confirmation_message { font-size: 16px; font-weight: 600; color: var(--ink); padding: 18px 20px; border-radius: 10px; background: rgba(247, 101, 45, .08); }

/* Multi-page application: GF progress bar / steps in the design's colours */
.ap-form .gf_progressbar_wrapper { margin-bottom: 36px; }
.ap-form .gf_progressbar_title { font: 700 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }
.ap-form .gf_progressbar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; padding: 0; }
.ap-form .gf_progressbar_percentage { height: 100%; border-radius: 6px; background: var(--orange) !important; }
.ap-form .gf_progressbar_percentage span { display: none; }
/* Step indicators: one row, equal columns, like the design's .ap-progress.
   Gravity Forms' Orbital theme lays the steps out as a wrapping flex row with its own
   sizes, so the layout properties below use !important. */
.ap-form .gform_wrapper .gf_page_steps {
  display: grid !important; grid-auto-flow: column !important; grid-auto-columns: minmax(0, 1fr) !important;
  grid-template-columns: none !important; flex-wrap: nowrap !important;
  gap: 8px !important; margin: 0 0 18px !important; padding: 0 !important; border: 0 !important;
}
.ap-form .gform_wrapper .gf_page_steps .gf_step_clear { display: none !important; }
.ap-form .gform_wrapper .gf_page_steps .gf_step {
  display: flex !important; flex-direction: column !important; align-items: center !important; gap: 8px !important;
  width: auto !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important; text-align: center;
  font-size: 12px; line-height: 1.3; color: var(--muted); opacity: 1;
}
.ap-form .gform_wrapper .gf_page_steps .gf_step_number {
  display: grid !important; place-items: center; width: 34px !important; height: 34px !important; flex: none;
  border: 2px solid var(--line) !important; border-radius: 50% !important; background: #fff !important;
  font: 800 14px/1 var(--font); color: var(--muted); transition: all .3s var(--ease);
}
.ap-form .gform_wrapper .gf_page_steps .gf_step_number::before,
.ap-form .gform_wrapper .gf_page_steps .gf_step_number::after { display: none !important; }
.ap-form .gform_wrapper .gf_page_steps .gf_step_label {
  font: 600 12px/1.3 var(--font) !important; letter-spacing: 0 !important; text-transform: none !important; color: inherit !important; padding: 0 !important;
}
.ap-form .gform_wrapper .gf_page_steps .gf_step_active { color: var(--ink); }
.ap-form .gform_wrapper .gf_page_steps .gf_step_active .gf_step_number { border-color: var(--orange) !important; background: var(--orange) !important; color: #fff; box-shadow: 0 0 0 5px rgba(247, 101, 45, .15); }
.ap-form .gform_wrapper .gf_page_steps .gf_step_completed .gf_step_number { border-color: var(--navy) !important; background: var(--navy) !important; color: #fff; }
/* Progress line and "Step 1 of 6" heading added by fmd_hc_gf_step_heading() */
.ap-form .gform_wrapper .ap-bar { margin-bottom: 36px; }
.ap-form .gform_wrapper .ap-step__title { margin: 0 0 28px; }
@media (max-width: 600px) {
  /* Six labels don't fit on a phone: keep the circles in one row, show the current step's
     name only in the heading below. */
  .ap-form .gform_wrapper .gf_page_steps .gf_step_label { display: none !important; }
}

/* Newsletter: single-line form on navy */
.hc-form--inline .gform_wrapper form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.hc-form--inline .gform_wrapper .gform_body { flex: 1 1 220px; min-width: 0; }
.hc-form--inline .gform_wrapper .gform_footer { margin: 0; padding: 0; }
.hc-form--inline .gform_wrapper .gform_fields { row-gap: 10px; }
.hc-form--dark .gform_wrapper .gfield_label { color: #fff; }
.hc-form--dark .gform_wrapper input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]) {
  min-height: 50px; border-color: var(--line-navy); background: rgba(255, 255, 255, .05); color: #fff;
}
.hc-form--dark .gform_wrapper input::placeholder { color: var(--on-navy-2); }
.hc-form--dark .gform_confirmation_message { color: #fff; background: rgba(255, 255, 255, .06); }
.newsletter .hc-form small { display: block; font-size: 12px; color: var(--on-navy-2); margin-top: 12px; }

/* Login form in the dialog */
#dialog-login .dialog__form .field input { width: 100%; }
#dialog-login .btn--block { width: 100%; margin-top: 8px; }

/* Footer: social links in the right-hand panel (Site Settings → "Disable my account") */
.footer-social .social { gap: 12px; }
.footer-social .social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--orange); color: #fff; opacity: 1; transition: background .2s, transform .2s; }
.footer-social .social a:hover { background: #fff; color: var(--orange); transform: translateY(-2px); }
.footer-social .social svg { width: 19px; height: 19px; }

/* ---------- Gravity Forms: radio choices as pills (design's .pill-opt) ----------
   Applies to radio questions in the contact form, and to any radio field given the
   CSS class "hc-pills" in Gravity Forms (Field → Appearance → Custom CSS Class).
   The real radio input stays in the page for keyboard and screen-reader users; it is
   only hidden visually, and the label becomes the bordered pill. */
.contact-form-card .gform_wrapper .gfield--type-radio .gfield_radio,
.hc-form .gform_wrapper .hc-pills .gfield_radio { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-form-card .gform_wrapper .gfield--type-radio .gchoice,
.hc-form .gform_wrapper .hc-pills .gchoice { position: relative; display: block; margin: 0; padding: 0; }
.contact-form-card .gform_wrapper .gfield--type-radio input[type="radio"],
.hc-form .gform_wrapper .hc-pills input[type="radio"] {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.contact-form-card .gform_wrapper .gfield--type-radio .gchoice label,
.hc-form .gform_wrapper .hc-pills .gchoice label {
  display: inline-block; max-width: none; margin: 0; padding: 11px 16px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  font: 600 14px/1.3 var(--font); letter-spacing: 0; text-transform: none; color: var(--ink);
  transition: border-color .2s, background .2s, color .2s;
}
.contact-form-card .gform_wrapper .gfield--type-radio .gchoice label::before,
.contact-form-card .gform_wrapper .gfield--type-radio .gchoice label::after,
.hc-form .gform_wrapper .hc-pills .gchoice label::before,
.hc-form .gform_wrapper .hc-pills .gchoice label::after { display: none; }
.contact-form-card .gform_wrapper .gfield--type-radio .gchoice label:hover,
.hc-form .gform_wrapper .hc-pills .gchoice label:hover { border-color: #cdd2d9; }
.contact-form-card .gform_wrapper .gfield--type-radio input[type="radio"]:checked + label,
.hc-form .gform_wrapper .hc-pills input[type="radio"]:checked + label { background: var(--orange); border-color: var(--orange); color: #fff; }
.contact-form-card .gform_wrapper .gfield--type-radio input[type="radio"]:focus-visible + label,
.hc-form .gform_wrapper .hc-pills input[type="radio"]:focus-visible + label { outline: 2px solid var(--orange); outline-offset: 3px; }

/* Pills sit in a row. Gravity Forms' Orbital theme lays choices out as a column
   (display:grid / flex-direction:column, width:100% on each choice) using selectors
   whose specificity varies by version and can include the form's ID, so the layout
   properties here use !important. Only layout is forced; colours/borders above are
   ordinary specificity. */
.contact-form-card .gform_wrapper .gfield--type-radio .gfield_radio,
.hc-form .gform_wrapper .hc-pills .gfield_radio {
  display: flex !important; flex-direction: row !important; flex-wrap: wrap !important;
  align-items: center !important; gap: 8px !important; grid-template-columns: none !important;
}
.contact-form-card .gform_wrapper .gfield--type-radio .gchoice,
.hc-form .gform_wrapper .hc-pills .gchoice {
  display: block !important; flex: 0 0 auto !important; width: auto !important; max-width: none !important;
}

/* Pagination: "…" between grouped page numbers (not a button), and wrap on small screens */
.pager { flex-wrap: wrap; }
.pager .pager__gap { min-width: 0; padding: 0 4px; border: 0; color: var(--muted); letter-spacing: 0; }

/* Featured news story with no image: title in the left third, article copy in the
   right two-thirds. Base and responsive rules kept together, in cascade order. */
.featured--text { grid-template-columns: 1fr 2fr; }
.featured--text .featured__head { padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line-navy); }
.featured--text .featured__head .pill { position: static; align-self: flex-start; margin-bottom: 18px; }
.featured--text .featured__head h2 { margin-bottom: 0; }
.featured--text .featured__copy p { font-size: 15.5px; line-height: 1.7; margin: 0 0 14px; }
.featured--text .featured__copy { margin-bottom: 12px; }
@media (max-width: 860px) {
  .featured--text { grid-template-columns: 1fr; }
  .featured--text .featured__head { border-right: 0; border-bottom: 1px solid var(--line-navy); }
}

/* News card with no image: just the white text panel; badge sits above the date */
.news-card--noimg .body > .pill { position: static; align-self: flex-start; margin-bottom: 14px; }

/* Progress line under the steps. Forced so Gravity Forms' own element resets inside the
   form can't collapse or hide it. The fill width comes from --p (set inline). */
.ap-form .gform_wrapper .ap-bar {
  display: block !important; position: relative !important; width: 100% !important; height: 6px !important;
  margin: 0 0 36px !important; padding: 0 !important; border: 0 !important; border-radius: 6px !important;
  background: var(--line) !important; overflow: hidden !important;
}
.ap-form .gform_wrapper .ap-bar span {
  display: block !important; height: 100% !important; width: var(--p, 16.6%) !important;
  border-radius: 6px !important; background: var(--orange) !important; transition: width .5s var(--ease);
}

/* "Step 1 of 6 / Personal Details" heading: Gravity Forms resets headings inside forms,
   so the design's .ap-step__title type is re-applied with !important. */
.ap-form .gform_wrapper .ap-step__title {
  display: block !important; margin: 0 0 28px !important; padding: 0 !important;
  font-family: var(--font) !important; font-size: clamp(24px, 3vw, 32px) !important; font-weight: 800 !important;
  line-height: 1.15 !important; letter-spacing: -.02em !important; text-transform: none !important; color: var(--ink) !important;
}
.ap-form .gform_wrapper .ap-step__title span {
  display: block !important; margin-bottom: 8px !important;
  font-size: 12px !important; font-weight: 700 !important; line-height: 1.3 !important;
  letter-spacing: .14em !important; text-transform: uppercase !important; color: var(--orange) !important;
}

/* Date fields: the input fills the column and Gravity Forms' calendar button sits inside
   its border on the right (GF otherwise shrinks the input and puts the icon after it). */
.hc-form .gform_wrapper .ginput_container_date { position: relative !important; display: block !important; width: 100% !important; }
.hc-form .gform_wrapper .ginput_container_date input {
  width: 100% !important; max-width: none !important; padding-right: 48px !important;
}
.hc-form .gform_wrapper .ginput_container_date .ui-datepicker-trigger,
.hc-form .gform_wrapper .ginput_container_date > img,
.hc-form .gform_wrapper .ginput_container_date > button {
  position: absolute !important; top: 50% !important; right: 16px !important; left: auto !important;
  transform: translateY(-50%); margin: 0 !important; width: 18px !important; height: 18px !important;
  padding: 0 !important; border: 0 !important; background: none; cursor: pointer; opacity: .7;
}
.hc-form .gform_wrapper .ginput_container_date .ui-datepicker-trigger:hover { opacity: 1; }

/* Stepped form footer, as the design's .ap-nav:  [Previous]  Step 2 of 6  [Next →]
   A rule above with space either side; the count sits left on step 1 (no Previous).
   Gravity Forms' Orbital theme sets its own footer margins/padding/layout, hence !important. */
.ap-form .gform_wrapper .gform_page_footer {
  display: flex !important; flex-wrap: nowrap !important; align-items: center !important; gap: 16px !important;
  justify-content: flex-start !important; margin: 40px 0 0 !important; padding: 28px 0 0 !important;
  border-top: 1px solid var(--line) !important;
}
.ap-form .gform_wrapper .gform_page_footer .gform_previous_button { order: 1; margin: 0 !important; }
.ap-form .gform_wrapper .gform_page_footer .ap-nav__count { order: 2; margin: 0 auto !important; font-size: 14px; font-weight: 600; color: var(--muted); }
.ap-form .gform_wrapper .gform_page_footer.is-first .ap-nav__count { margin-left: 0 !important; }
.ap-form .gform_wrapper .gform_page_footer .gform_next_button,
.ap-form .gform_wrapper .gform_page_footer .gform_button { order: 3; margin: 0 !important; }
.ap-form .gform_wrapper .gform_page_footer > *:not(.gform_previous_button):not(.ap-nav__count):not(.gform_next_button):not(.gform_button) { order: 4; }
/* Arrows (the buttons are <input>s, so they're drawn as background images) */
.ap-form .gform_wrapper .gform_next_button,
.ap-form .gform_wrapper .gform_page_footer .gform_button {
  padding-right: 46px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 22px center !important; background-size: 15px !important;
}
.ap-form .gform_wrapper .gform_previous_button {
  padding-left: 46px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F2437' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5'/%3E%3Cpath d='m12 19-7-7 7-7'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: left 22px center !important; background-size: 15px !important;
}
.ap-form .gform_wrapper .gform_previous_button:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5'/%3E%3Cpath d='m12 19-7-7 7-7'/%3E%3C/svg%3E") !important;
}
@media (max-width: 600px) {
  .ap-form .gform_wrapper .gform_page_footer { flex-wrap: wrap !important; }
  .ap-form .gform_wrapper .gform_page_footer .ap-nav__count { order: 0; flex-basis: 100%; margin: 0 !important; }
}

/* ---------- News hero: LinkedIn feed (Elfsight) — replaces the Facebook feed ---------- */
.li-feed { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); color: var(--ink); width: 100%; max-width: 440px; justify-self: end; }
.li-feed__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.li-feed__icon svg { width: 36px; height: 36px; padding: 8px; border-radius: 9px; background: #0A66C2; color: #fff; display: block; }
.li-feed__head span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.2; flex: 1; min-width: 0; }
.li-feed__head b { font-size: 14px; font-weight: 800; }
.li-feed__head small { font-size: 12px; color: var(--muted); }
.li-feed__follow { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--orange); padding: 9px 12px; border-radius: 6px; text-decoration: none; }
.li-feed__follow:hover { background: var(--orange-dark); color: #fff; }
.li-feed__frame { position: relative; min-height: 420px; max-height: 520px; overflow-y: auto; overscroll-behavior: contain; background: var(--sand); scrollbar-width: thin; scrollbar-color: rgba(15, 36, 55, .25) transparent; }
.li-feed__app { position: relative; z-index: 1; }
.li-feed__fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: none; padding: 20px; text-align: center; }
.li-feed__fallback svg { width: 14px; height: 14px; color: var(--orange); }
.li-feed__frame:has(.li-feed__app > *) { background: #0b1b2a; padding: 10px; } /* matches the dark Elfsight theme; change if the widget is switched to a light theme */
.li-feed__frame:has(.li-feed__app > *) .li-feed__fallback { display: none; }
@media (max-width: 960px) { .li-feed { justify-self: start; } }
