/* === 1) Header row: single flex line with space for nav === */
.header, .site-header, .reclin-header {
  position: relative;
  z-index: 1002;
}
.site-header .container,
.reclin-header .container,
.header .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;   /* keep row on one line */
}

/* === 2) Logo never grows, nav can shrink, toggle stays visible === */
.site-header .logo,
.reclin-header .logo,
.header .logo {
  flex: 0 0 auto !important;
}
.site-header .main-navigation,
.reclin-header .main-navigation,
.header .main-navigation {
  flex: 1 1 auto !important;      /* allow the nav to SHRINK */
  min-width: 0 !important;        /* critical: allows shrinking without wrapping */
}
.menu-toggle,
.mobile-menu-toggle,
.navbar-toggler,
.hamburger,
.btn-menu {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px; height: 42px;
  line-height: 1;
  cursor: pointer;
}

/* === 3) Desktop nav: no wrap, tighter spacing, no big gaps === */
.main-navigation > ul,
.main-navigation .menu,
.primary-menu > ul,
.navbar-nav {
  display: flex !important;
  flex-wrap: nowrap !important;    /* do NOT wrap */
  white-space: nowrap !important;  /* keep items on one line */
  gap: 0 12px !important;          /* reduce inter-item gap */
}
.main-navigation ul > li { 
  margin: 0 4px !important;        /* trim margins between items */
  flex: 0 0 auto !important;       /* keep each item natural width, no wrap */
}
.main-navigation ul > li > a {
  padding: 6px 8px !important;     /* tighter padding so more fits */
  line-height: 1.2 !important;
  font-size: 15px;                  /* adjust to 14px if needed */
}

/* === 4) Prevent parent containers from clipping nav line === */
.header, .site-header, .reclin-header,
.header * , .site-header * , .reclin-header * {
  overflow: visible !important;
}

/* === 5) Show toggle only below 1025px (adjust if you like) === */
@media (min-width: 1025px) {
  .menu-toggle,
  .mobile-menu-toggle,
  .navbar-toggler,
  .hamburger,
  .btn-menu {
    display: none !important;
  }
}

/* Optional: if you see the last item getting cut, allow slight squeeze */
@media (min-width: 1025px) and (max-width: 1300px) {
  .main-navigation ul > li > a { font-size: 14px; padding: 6px 7px !important; }
}
/* === Application Form Styling === */

/* Center the form container */
.sfsl-application {
  max-width: 800px;   /* control width */
  margin: 0 auto;     /* center horizontally */
  text-align: center; /* center-aligns inline elements */
}

/* Two-column layout for grouped fields */
.sfsl-application .two-col {
  display: flex;
  justify-content: center;     /* center the group */
  gap: 20px;                   /* space between columns */
  flex-wrap: wrap;              /* wrap on smaller screens */
  text-align: left;             /* keep labels/inputs left-aligned inside each column */
}

.sfsl-application .two-col span {
  flex: 1;
  min-width: 250px;             /* prevents squishing */
  max-width: 100%;              /* responsive */
}

/* Center the submit button */
.sfsl-application input[type="submit"] {
  display: block;
  margin: 20px auto;
}

/* Hover effect for button */
.sfsl-application input[type="submit"]:hover {
  background-color: #ffffff;
  color: #2E2E2E;
  border-color: #2E2E2E;
}

/* === End Application Form Styling === */
/* === Application Form Fixes (place at the end) === */
.sfsl-application {
  max-width: 800px;
  margin: 0 auto;
  text-align: center; /* centers headings and any inline text */
}

.sfsl-application .two-col {
  display: flex !important;                 /* ensure flex applies */
  justify-content: center;                  /* center the row */
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  text-align: left;                         /* keep labels/inputs left-aligned */
}

.sfsl-application .two-col > span {
  flex: 1 1 calc(50% - 10px);               /* two per row */
  min-width: 260px;                         /* prevents squish */
  max-width: 100%;
}

/* Make labels block so inputs sit beneath cleanly */
.sfsl-application label {
  display: block;
}

/* CF7 inputs fill their column */
.sfsl-application .wpcf7-form-control {
  width: 100%;
  box-sizing: border-box;
}

/* Center the submit button */
.sfsl-application .actions {
  display: flex;
  justify-content: center;
}

.sfsl-application input[type="submit"] {
  display: block;
  margin: 20px auto;
  background-color: #2E2E2E;
  color: #fff;
  padding: 12px 30px;
  border: 2px solid #2E2E2E;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.sfsl-application input[type="submit"]:hover {
  background-color: #fff;
  color: #2E2E2E;
  border-color: #2E2E2E;
}
/* === End Application Form Fixes === */

