.elementor-kit-6{--e-global-color-primary:#6EC1E4;--e-global-color-secondary:#54595F;--e-global-color-text:#7A7A7A;--e-global-color-accent:#61CE70;--e-global-color-31ca555:#EC8102;--e-global-color-e837ede:#24398F;--e-global-typography-primary-font-family:"Roboto";--e-global-typography-primary-font-weight:600;--e-global-typography-secondary-font-family:"Roboto Slab";--e-global-typography-secondary-font-weight:400;--e-global-typography-text-font-family:"Roboto";--e-global-typography-text-font-weight:400;--e-global-typography-accent-font-family:"Roboto";--e-global-typography-accent-font-weight:500;}.elementor-kit-6 e-page-transition{background-color:#FFBC7D;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1140px;}.e-con{--container-max-width:1140px;}.elementor-widget:not(:last-child){--kit-widget-spacing:20px;}.elementor-element{--widgets-spacing:20px 20px;--widgets-spacing-row:20px;--widgets-spacing-column:20px;}{}h1.entry-title{display:var(--page-title-display);}.site-header .site-branding{flex-direction:column;align-items:stretch;}.site-header{padding-inline-end:0px;padding-inline-start:0px;}.site-footer .site-branding{flex-direction:column;align-items:stretch;}@media(max-width:1024px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:1024px;}.e-con{--container-max-width:1024px;}}@media(max-width:767px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:767px;}.e-con{--container-max-width:767px;}}
/* Start custom CSS *//* ==========================================================================
   SEAMAN — "How to Enroll" 4-step enrollment form
   Restyles the Elementor Pro Form widget to match the approved mockup.

   Paste into: Elementor → Site Settings → Custom CSS
               (or Appearance → Customize → Additional CSS)

   Assumes the Form widget has CSS ID: seaman-enroll
   ========================================================================== */

#seaman-enroll {
  --sf-navy:      #1e3a8a;
  --sf-navy-deep: #16296b;
  --sf-ink:       #4c5a7a;
  --sf-line:      #c7d0e4;
  --sf-panel:     #eff3fb;
  --sf-radius:    10px;
  --sf-gap:       18px;
}

/* --------------------------------------------------------------------------
   1. Step indicator — the white tab card
   -------------------------------------------------------------------------- */

#seaman-enroll .e-form__indicators {
  counter-reset: sfstep;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  gap: 0 !important;
  margin: 0 0 34px;
  padding: 0;
  background: #fff;
  border-radius: var(--sf-radius);
  box-shadow: 0 6px 20px rgba(20, 40, 90, .10);
  overflow: hidden;
}

/* flex-direction MUST be declared. Elementor's own rule stacks the icon
   above the label; declaring `display:flex` alone does not undo that, and a
   stacked indicator reserves far more width than it needs, which overflows
   the card and clips the first and last labels. */
#seaman-enroll .e-form__indicators__indicator {
  counter-increment: sfstep;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 12px;
  border-bottom: 4px solid transparent;
  transition: border-color .18s ease, background-color .18s ease;
}

/* All four steps stay navy — only the underline marks position. */
#seaman-enroll .e-form__indicators__indicator,
#seaman-enroll .e-form__indicators__indicator__label,
#seaman-enroll .e-form__indicators__indicator__icon {
  color: var(--sf-navy);
  opacity: 1;
}

/* Do NOT set fill here. Elementor's fill-based icons already inherit
   currentColor; forcing fill on a stroke-based (outline) icon renders it
   as a solid blob. Size only. */
#seaman-enroll .e-form__indicators__indicator__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

#seaman-enroll .e-form__indicators__indicator__icon svg,
#seaman-enroll .e-form__indicators__indicator__icon i {
  width: 26px;
  height: 26px;
  font-size: 26px;
  flex: 0 0 auto;
}

/* Elementor renders a divider between steps; it eats horizontal space. */
#seaman-enroll .e-form__indicators__indicator__separator {
  display: none !important;
}

#seaman-enroll .e-form__indicators__indicator__label {
  min-width: 0 !important;
  flex: 0 1 auto;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* "1. CHOOSE COURSE" — number comes from a counter, not hardcoded labels. */
#seaman-enroll .e-form__indicators__indicator__label::before {
  content: counter(sfstep) ". ";
}

#seaman-enroll .e-form__indicators__indicator--state-active {
  border-bottom-color: var(--sf-navy);
}

#seaman-enroll .e-form__indicators__indicator--state-inactive {
  cursor: default;
}

/* --------------------------------------------------------------------------
   2. Step heading row — title left, "STEP n OF 4" right
   -------------------------------------------------------------------------- */

#seaman-enroll .sf-stephead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 6px;
}

#seaman-enroll .sf-stephead__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--sf-navy);
  line-height: 1.25;
}

#seaman-enroll .sf-stephead__count {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--sf-navy);
}

#seaman-enroll .sf-stepnote {
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--sf-ink);
}

/* --------------------------------------------------------------------------
   3. Fields — inline labels on wide screens, stacked below
   -------------------------------------------------------------------------- */

#seaman-enroll .elementor-field-group > label.elementor-field-label {
  font-size: 15px;
  font-weight: 400;
  color: var(--sf-ink);
}

#seaman-enroll .elementor-field-group .elementor-field-textual {
  border: 1px solid var(--sf-line);
  border-radius: 4px;
  background: #fff;
  color: var(--sf-navy-deep);
  font-size: 15px;
  min-height: 38px;
  padding: 8px 12px;
  box-shadow: none;
}

#seaman-enroll .elementor-field-group .elementor-field-textual:focus {
  border-color: var(--sf-navy);
  outline: 2px solid rgba(30, 58, 138, .22);
  outline-offset: 1px;
}

#seaman-enroll .elementor-field-group .elementor-field-textual::placeholder {
  color: #a9b3c9;
}

@media (min-width: 1025px) {
  #seaman-enroll .elementor-field-group:not(.sf-stack) {
    flex-wrap: nowrap;
    align-items: center;
    column-gap: 16px;
  }
  #seaman-enroll .elementor-field-group:not(.sf-stack) > label.elementor-field-label {
    flex: 0 0 118px;
    width: auto;
    margin: 0;
    padding: 0;
  }
  #seaman-enroll .elementor-field-group:not(.sf-stack) > .elementor-field,
  #seaman-enroll .elementor-field-group:not(.sf-stack) > .elementor-field-subgroup {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
}

/* Inline radio subgroups (Gender) */
#seaman-enroll .elementor-field-subgroup.elementor-subgroup-inline {
  display: flex;
  gap: 34px;
}

#seaman-enroll .elementor-field-option label {
  color: var(--sf-navy);
  font-size: 15px;
  line-height: 1.35;
  cursor: pointer;
}

#seaman-enroll .elementor-field-option input {
  accent-color: var(--sf-navy);
  margin-right: 8px;
}

/* --------------------------------------------------------------------------
   4. Step 1 — course picker grid
   -------------------------------------------------------------------------- */

#seaman-enroll .elementor-field-group-course > label.elementor-field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

#seaman-enroll .elementor-field-group-course .elementor-field-subgroup,
#seaman-enroll .elementor-field-group-course .elementor-field-subgroup.elementor-subgroup-inline {
  display: block !important;
  width: 100%;
}

/* Graceful fallback. If the JS grid never builds, these options are still
   direct children of the subgroup, and this stacks them into a readable list
   instead of an inline run-on. Once the grid builds they sit inside
   .sf-course-group and this rule no longer matches them. */
#seaman-enroll .elementor-field-group-course .elementor-field-subgroup > .elementor-field-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px;
  max-width: 640px;
}

#seaman-enroll .elementor-field-group-course .elementor-field-subgroup > .elementor-field-option input {
  margin: 3px 0 0;
  flex: 0 0 auto;
}

#seaman-enroll .sf-course-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
}

#seaman-enroll .sf-course-group + .sf-course-group {
  margin-top: 26px;
}

#seaman-enroll .sf-course-group__title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--sf-navy);
  letter-spacing: .01em;
}

#seaman-enroll .sf-course-group .elementor-field-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px;
}

#seaman-enroll .sf-course-group .elementor-field-option input {
  margin: 3px 0 0;
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   5. Step 3 — file uploads
   -------------------------------------------------------------------------- */

#seaman-enroll .elementor-field-type-upload .elementor-field {
  border: 1px solid var(--sf-line);
  border-radius: 4px;
  background: #fafbfe;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--sf-ink);
  max-width: 320px;
}

#seaman-enroll .elementor-field-type-upload input[type="file"] {
  font-size: 13px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   6. Step 4 — review panel
   -------------------------------------------------------------------------- */

#seaman-enroll .sf-review {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 48px;
  padding: 26px 28px;
  background: var(--sf-panel);
  border-radius: var(--sf-radius);
}

#seaman-enroll .sf-review__block--col1 { grid-column: 1; }
#seaman-enroll .sf-review__block--col2 { grid-column: 2; }

/* Personal Details is much taller than the two blocks beside it; without this
   the right column's second block is pushed below the whole first row. */
#seaman-enroll .sf-review__block--span2 { grid-row: span 2; }

#seaman-enroll .sf-review__block-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--sf-navy);
}

#seaman-enroll .sf-review__edit {
  margin-left: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sf-navy);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

#seaman-enroll .sf-review__edit:hover,
#seaman-enroll .sf-review__edit:focus-visible {
  color: var(--sf-navy-deep);
}

#seaman-enroll .sf-review__row {
  font-size: 15px;
  line-height: 1.55;
  color: var(--sf-navy);
}

#seaman-enroll .sf-review__row--file::before {
  content: "↳ ";
  color: var(--sf-ink);
}

#seaman-enroll .sf-review__row--empty {
  color: #98a3bb;
  font-style: italic;
}

#seaman-enroll .sf-review__note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px;
  color: var(--sf-ink);
}

/* Declaration block */
#seaman-enroll .sf-declaration {
  margin-top: 26px;
  padding: 20px 22px;
  background: #f4f6fb;
  border-radius: var(--sf-radius);
}

#seaman-enroll .sf-declaration .sf-stephead__title {
  font-size: 16px;
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */

#seaman-enroll .e-form__buttons {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 30px;
}

/* Flattens Elementor's prev/next wrapper so both buttons and the submit
   button become siblings in the same flex row. */
#seaman-enroll .e-form__buttons__wrapper {
  display: contents !important;
}

#seaman-enroll .e-form__buttons .elementor-button {
  width: auto !important;
  flex: 0 0 auto;
}

#seaman-enroll .elementor-button {
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 14px 30px;
  transition: background-color .18s ease, color .18s ease;
}

#seaman-enroll .e-form__buttons__wrapper__button-next,
#seaman-enroll .elementor-button[type="submit"] {
  background: var(--sf-navy);
  color: #fff;
  min-width: 300px;
}

#seaman-enroll .e-form__buttons__wrapper__button-next:hover,
#seaman-enroll .elementor-button[type="submit"]:hover {
  background: var(--sf-navy-deep);
}

#seaman-enroll .e-form__buttons__wrapper__button-next .elementor-button-text::after {
  content: "›";
  margin-left: 20px;
  font-weight: 400;
}

/* Back button — absent from the mockup, kept for usability. */
#seaman-enroll .e-form__buttons__wrapper__button-previous {
  margin-right: auto;
  min-width: 0;
  background: transparent;
  color: var(--sf-navy);
  border: 1.5px solid var(--sf-line);
}

#seaman-enroll .e-form__buttons__wrapper__button-previous:hover {
  background: var(--sf-panel);
  color: var(--sf-navy-deep);
}

#seaman-enroll .elementor-button:focus-visible {
  outline: 3px solid rgba(30, 58, 138, .45);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   8. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
  #seaman-enroll .e-form__indicators__indicator { padding: 16px 8px; gap: 7px; }
  #seaman-enroll .e-form__indicators__indicator__label { font-size: 13px; }
}

@media (max-width: 1024px) {
  #seaman-enroll .sf-review { grid-template-columns: 1fr; }
  #seaman-enroll .sf-review__block--col1,
  #seaman-enroll .sf-review__block--col2 { grid-column: auto; }
  #seaman-enroll .sf-review__block--span2 { grid-row: auto; }
}

@media (max-width: 767px) {
  /* The base rules use !important to beat Elementor, so these need it too —
     a media query adds no specificity of its own. */
  #seaman-enroll .e-form__indicators { flex-wrap: wrap !important; }
  #seaman-enroll .e-form__indicators__indicator {
    flex: 1 1 50% !important;
    max-width: 50% !important;
    justify-content: flex-start;
    padding: 12px 10px;
    gap: 8px;
    border-bottom-width: 3px;
  }
  #seaman-enroll .e-form__indicators__indicator--state-active { background: #f4f7fd; }

  /* Wrap to a second line rather than truncating. "1. CHOO…" tells the
     applicant nothing. */
  #seaman-enroll .e-form__indicators__indicator__label {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    text-align: left;
    font-size: 12px;
    line-height: 1.25;
  }
  #seaman-enroll .e-form__indicators__indicator__icon svg,
  #seaman-enroll .e-form__indicators__indicator__icon i {
    width: 20px; height: 20px; font-size: 20px;
  }

  #seaman-enroll .sf-review { padding: 20px 18px; gap: 22px; }

  /* Graceful fallback. If the JS grid never builds, these options are still
   direct children of the subgroup, and this stacks them into a readable list
   instead of an inline run-on. Once the grid builds they sit inside
   .sf-course-group and this rule no longer matches them. */
#seaman-enroll .elementor-field-group-course .elementor-field-subgroup > .elementor-field-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px;
  max-width: 640px;
}

#seaman-enroll .elementor-field-group-course .elementor-field-subgroup > .elementor-field-option input {
  margin: 3px 0 0;
  flex: 0 0 auto;
}

#seaman-enroll .sf-course-grid { grid-template-columns: 1fr; }
  #seaman-enroll .sf-course-grid > .sf-course-col + .sf-course-col { margin-top: 26px; }

  #seaman-enroll .sf-stephead { flex-direction: column; gap: 2px; }
  #seaman-enroll .sf-stephead__title { font-size: 19px; }

  #seaman-enroll .e-form__buttons { flex-wrap: wrap !important; }
  #seaman-enroll .e-form__buttons .elementor-button { width: 100% !important; min-width: 0; }
  #seaman-enroll .e-form__buttons__wrapper__button-previous { margin-right: 0; order: 2; }
}

@media (prefers-reduced-motion: reduce) {
  #seaman-enroll * { transition: none !important; }
}

/* ==========================================================================
   9. Success modal
   Scoped separately because the modal is appended to <body>, outside
   #seaman-enroll, so it can't inherit that block's custom properties.
   ========================================================================== */

#sf-success-modal {
  --sf-navy:      #1e3a8a;
  --sf-navy-deep: #16296b;
  --sf-ink:       #4c5a7a;

  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(16, 28, 64, .55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

#sf-success-modal[hidden] {
  display: none !important;
}

#sf-success-modal .sf-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 40px 34px 30px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(12, 24, 60, .32);
  text-align: center;
  animation: sf-modal-in .22s ease-out;
}

#sf-success-modal .sf-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--sf-ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

#sf-success-modal .sf-modal__close:hover {
  background: #eef2fa;
  color: var(--sf-navy);
}

#sf-success-modal .sf-modal__icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--sf-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

#sf-success-modal .sf-modal__icon svg {
  width: 30px;
  height: 30px;
  stroke: #fff;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#sf-success-modal .sf-modal__title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--sf-navy);
  line-height: 1.25;
}

#sf-success-modal .sf-modal__lead {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--sf-ink);
}

#sf-success-modal .sf-modal__list {
  margin: 0 0 26px;
  padding: 18px 20px;
  list-style: none;
  background: #eff3fb;
  border-radius: 10px;
  text-align: left;
}

#sf-success-modal .sf-modal__list li {
  position: relative;
  margin: 0;
  padding: 0 0 0 22px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--sf-navy);
}

#sf-success-modal .sf-modal__list li + li {
  margin-top: 10px;
}

#sf-success-modal .sf-modal__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sf-navy);
}

#sf-success-modal .sf-modal__done {
  width: 100%;
  padding: 14px 30px;
  border: 0;
  border-radius: 4px;
  background: var(--sf-navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

#sf-success-modal .sf-modal__done:hover {
  background: var(--sf-navy-deep);
}

#sf-success-modal button:focus-visible {
  outline: 3px solid rgba(30, 58, 138, .45);
  outline-offset: 2px;
}

@keyframes sf-modal-in {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  #sf-success-modal .sf-modal__dialog { animation: none; }
}

@media (max-width: 400px) {
  #seaman-enroll .e-form__indicators__indicator { padding: 10px 8px; gap: 6px; }
  #seaman-enroll .e-form__indicators__indicator__label { font-size: 11px; }
  #seaman-enroll .e-form__indicators__indicator__icon svg,
  #seaman-enroll .e-form__indicators__indicator__icon i {
    width: 18px; height: 18px; font-size: 18px;
  }
}

@media (max-width: 767px) {
  #sf-success-modal { padding: 14px; }
  #sf-success-modal .sf-modal__dialog { padding: 32px 22px 24px; }
  #sf-success-modal .sf-modal__title { font-size: 19px; }
  #sf-success-modal .sf-modal__icon { width: 54px; height: 54px; margin-bottom: 16px; }
  #sf-success-modal .sf-modal__list { padding: 16px 16px; }
}

/* ==========================================================================
   10. Validation / error states
   Elementor adds .elementor-error to the field group and injects a
   .elementor-message-danger span. Neither is styled by default.
   ========================================================================== */

#seaman-enroll .elementor-field-group.elementor-error .elementor-field-textual,
#seaman-enroll .elementor-field-group.elementor-error select,
#seaman-enroll .elementor-field-group.elementor-error textarea {
  border-color: #c0392b;
  background: #fef7f6;
}

#seaman-enroll .elementor-field-group .elementor-message-danger {
  width: 100%;
  margin-top: 6px;
  color: #c0392b;
  font-size: 13px;
  font-weight: 600;
}

/* The course field's own label is visually hidden, so its error message has
   to sit above the grid or the applicant never sees why they're stuck. */
#seaman-enroll .elementor-field-group-course .elementor-message-danger {
  order: -1;
  margin: 0 0 14px;
  padding: 11px 15px;
  background: #fef2f2;
  border-left: 3px solid #c0392b;
  border-radius: 4px;
  font-size: 14px;
}

#seaman-enroll .elementor-mark-required .elementor-field-label:after {
  content: " *";
  color: #c0392b;
}

/* Guard message injected by the script when a step guard blocks progress.
   order:-1 lifts it above the course grid; the field group is flex. */
#seaman-enroll .sf-guard-error {
  order: -1;
  width: 100%;
  margin: 0 0 14px;
  padding: 11px 15px;
  background: #fef2f2;
  border-left: 3px solid #c0392b;
  border-radius: 4px;
  color: #c0392b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

/* ==========================================================================
   11. Date picker (Flatpickr)
   Elementor ships Flatpickr and uses it when the Date field's "Native HTML5"
   switch is OFF. The calendar is appended to <body>, outside #seaman-enroll,
   so these rules are unscoped and will restyle every Elementor date field on
   the site. That's usually what you want; if not, see the note in the guide.
   ========================================================================== */

.flatpickr-calendar {
  --sf-navy:      #1e3a8a;
  --sf-navy-deep: #16296b;
  --sf-ink:       #4c5a7a;
  --sf-line:      #e3e8f2;

  width: 322px !important;
  padding: 0;
  border: 1px solid var(--sf-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(16, 28, 64, .18);
  font-family: inherit;
  overflow: hidden;
}

.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowBottom:before { border-bottom-color: var(--sf-line); }
.flatpickr-calendar.arrowTop:after     { border-bottom-color: var(--sf-navy); }
.flatpickr-calendar.arrowBottom:after  { border-top-color: #fff; }

/* --- Header ------------------------------------------------------------- */

.flatpickr-months {
  padding: 12px 8px;
  background: var(--sf-navy);
  align-items: center;
}

.flatpickr-months .flatpickr-month {
  height: auto;
  background: transparent;
  color: #fff;
  overflow: visible;
}

.flatpickr-current-month {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: auto;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  padding: 3px 6px;
  border: 0;
  border-radius: 5px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.flatpickr-current-month .flatpickr-monthDropdown-months option {
  background: #fff;
  color: var(--sf-navy);
}

/* The year is an <input>. Elementor's global form styles leak into it and
   break the header layout, so every inherited property is reset here. */
.flatpickr-calendar .numInputWrapper,
.flatpickr-calendar .numInput,
.flatpickr-calendar input.cur-year {
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 3px 2px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

.flatpickr-calendar .numInputWrapper { max-width: 66px; }
.flatpickr-calendar .numInputWrapper:hover { background: rgba(255, 255, 255, .12); }
.flatpickr-calendar .numInputWrapper span { border: 0; }
.flatpickr-calendar .numInputWrapper span:hover { background: rgba(255, 255, 255, .2); }
.flatpickr-calendar .numInputWrapper span.arrowUp:after { border-bottom-color: #fff; }
.flatpickr-calendar .numInputWrapper span.arrowDown:after { border-top-color: #fff; }

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  top: 0;
  height: 100%;
  padding: 0 12px;
  display: flex;
  align-items: center;
  fill: #fff;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg { width: 13px; height: 13px; }
.flatpickr-months .flatpickr-prev-month svg path,
.flatpickr-months .flatpickr-next-month svg path { fill: #fff; }
.flatpickr-months .flatpickr-prev-month:hover svg path,
.flatpickr-months .flatpickr-next-month:hover svg path { fill: #c3cfe9; }

/* --- Weekday row --------------------------------------------------------- */

.flatpickr-weekdays {
  height: auto;
  padding: 12px 10px 6px;
  background: #fff;
}

.flatpickr-weekdaycontainer { background: #fff; }

span.flatpickr-weekday {
  background: #fff;
  color: #8794ae;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* --- Days ---------------------------------------------------------------- */

.flatpickr-days { width: 100% !important; padding: 0 10px 12px; }
.dayContainer { width: 100% !important; min-width: 0 !important; max-width: none !important; padding: 0; }

.flatpickr-day {
  max-width: none;
  height: 38px;
  line-height: 38px;
  margin: 1px 0;
  border: 0;
  border-radius: 8px;
  color: #22304f;
  font-size: 14px;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
  background: #eff3fb;
  border-color: transparent;
  color: var(--sf-navy);
}

.flatpickr-day.today {
  border: 0;
  box-shadow: inset 0 0 0 1.5px var(--sf-navy);
  color: var(--sf-navy);
  font-weight: 700;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
  background: var(--sf-navy);
  border-color: var(--sf-navy);
  box-shadow: none;
  color: #fff;
  font-weight: 700;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay { color: #c2cadb; }

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  background: transparent;
  color: #dbe0ea;
  cursor: not-allowed;
}

@media (max-width: 400px) {
  .flatpickr-calendar { width: 292px !important; }
  .flatpickr-day { height: 34px; line-height: 34px; }
}/* End custom CSS */