/* ============================================================
   FM Corporation Brand Overrides — matched to www.fmcorp.com
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --fm-black:      #111111;
  --fm-black-soft: #1a1a1a;
  --fm-steel:      #3a7ca5;
  --fm-steel-dark: #2d6285;
  --fm-steel-light:#4a8fb8;
  --fm-white:      #ffffff;
  --fm-off-white:  #f5f5f5;
  --fm-warm-gray:  #f8f7f5;
  --fm-text:       #222222;
  --fm-text-muted: #666666;
  --fm-border:     #e0e0e0;
  --fm-max-width:  1200px;
}

/* --- Base --- */
html, body {
  font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: var(--fm-white);
  color: var(--fm-text);
}

/* --- Navbar --- */
.fm-navbar {
  background-color: transparent !important;
  border-bottom: none !important;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.fm-navbar .container {
  max-width: 1500px;
}

.fm-navbar .navbar-menu {
  background-color: transparent !important;
  box-shadow: none;
}

/* Solid navbar for pages without hero image (admin, job detail) */
.fm-navbar--solid {
  background-color: var(--fm-black) !important;
  position: sticky;
  top: 0;
}

/* Compact navbar for wizard — hide nav links, smaller logo */
.fm-navbar--compact .navbar-menu {
  display: none !important;
}

.fm-navbar--compact .navbar-burger {
  display: none !important;
}

.fm-navbar--compact .fm-logo-img {
  height: 40px !important;
  transition: height 0.2s ease;
}

.fm-navbar--compact .fm-logo {
  padding: 0.5rem 0;
}

/* Shrink on scroll */
.fm-navbar--compact.is-scrolled .fm-logo-img {
  height: 28px !important;
}

.fm-navbar--compact.is-scrolled {
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.fm-navbar--solid + main .section:first-child {
  padding-top: 3rem;
}

.fm-navbar .navbar-item,
.fm-navbar .navbar-link {
  max-height: none !important;  /* override Bulma's navbar-item max-height */
}

.fm-logo {
  padding: 1rem 0;
}

.fm-logo:hover {
  background: transparent !important;
  opacity: 0.85;
}

.fm-logo-img {
  height: 80px;
  width: auto;
  display: block;
  max-height: none !important;  /* override Bulma's img max-height inside navbar */
}

@media (min-width: 1024px) {
  .fm-logo-img {
    height: 93px;
  }
}

.fm-nav-link {
  color: #cccccc !important;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.5rem 1.2rem !important;
  transition: color 0.15s ease;
}

.fm-nav-link:hover {
  color: var(--fm-white) !important;
  background: transparent !important;
}

.fm-nav-link--active {
  color: var(--fm-white) !important;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

/* Red CTA button in navbar */
.fm-nav-cta {
  background-color: #e03030 !important;
  color: var(--fm-white) !important;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.6rem 1.6rem !important;
  border-radius: 2px;
  margin-left: 0.75rem;
  align-self: center !important;
  line-height: 1.4;
  transition: background-color 0.15s ease;
}

.fm-nav-cta:hover {
  background-color: #c42828 !important;
  color: var(--fm-white) !important;
}

/* Mobile navbar menu */
@media (max-width: 1023px) {
  .fm-navbar .navbar-burger {
    color: #ffffff;
    height: 70px;
  }
  .fm-navbar .navbar-burger:hover {
    background-color: rgba(255,255,255,0.08);
    color: #ffffff;
  }
  .fm-navbar .navbar-menu.is-active {
    background-color: rgba(0,0,0,0.92) !important;
    padding: 0.5rem 0;
  }
  .fm-logo-img {
    height: 50px !important;
  }
  .fm-nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
    display: inline-block;
    width: auto;
  }
  .fm-hero-image {
    min-height: 350px;
    padding-top: 80px;
  }
}

/* --- Page containers --- */
.section .container {
  max-width: var(--fm-max-width);
}


/* ============================================================
   HERO — Full-width image with overlay
   ============================================================ */

.fm-hero-image {
  position: relative;
  min-height: 550px;
  background-image: url('/static/images/hero-careers.jpg');
  background-size: cover;
  background-position: center 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 120px;  /* space for overlaid navbar */
}

.fm-hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 100%);
}

.fm-hero-image-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 1.5rem;
}

.fm-hero-image-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 4rem;
  color: var(--fm-white);
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  .fm-hero-image {
    min-height: 280px;
  }
  .fm-hero-image-title {
    font-size: 2.5rem;
  }
  .fm-hero-image-content {
    padding: 2rem 1.25rem;
  }
}


/* ============================================================
   SECTION HEADERS
   ============================================================ */

.fm-section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.fm-section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--fm-black);
  letter-spacing: -0.01em;
}

.fm-section-count {
  color: var(--fm-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


/* ============================================================
   JOB LISTINGS TABLE
   ============================================================ */

.fm-job-list {
  border: 1px solid var(--fm-border);
  border-radius: 2px;
  overflow: hidden;
}

.fm-job-list-header {
  display: flex;
  align-items: center;
  background-color: var(--fm-black);
  color: var(--fm-white);
  padding: 0.75rem 1.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fm-job-row {
  display: flex;
  align-items: center;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--fm-border);
  background: var(--fm-white);
  transition: background-color 0.15s ease;
}

.fm-job-row:last-child {
  border-bottom: none;
}

.fm-job-row:hover {
  background-color: #f7f9fb;
}

/* Column widths */
.fm-col-title   { flex: 3; min-width: 0; padding-right: 1rem; }
.fm-col-dept    { flex: 2; padding-right: 1rem; font-size: 0.85rem; color: var(--fm-text-muted); }
.fm-col-loc     { flex: 2; padding-right: 1rem; font-size: 0.85rem; color: var(--fm-text-muted); }
.fm-col-date    { flex: 0 0 8rem; padding-right: 1rem; font-size: 0.8rem; color: var(--fm-text-muted); white-space: nowrap; }
.fm-col-actions { flex: 0 0 auto; display: flex; gap: 0.5rem; align-items: center; }

.fm-job-row-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--fm-black);
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

a.fm-job-row-title:hover {
  color: var(--fm-steel);
  text-decoration: underline;
}

/* mobile sub-line */
.fm-row-mobile-sub {
  display: none;
  font-size: 0.78rem;
  color: var(--fm-text-muted);
  margin-top: 0.2rem;
}

/* Row action buttons */
.fm-row-btn {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45em 0.9em;
  border-radius: 2px;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.fm-row-btn-primary {
  background-color: var(--fm-black);
  color: var(--fm-white) !important;
  border: 1px solid var(--fm-black);
}

.fm-row-btn-primary:hover {
  background-color: var(--fm-steel);
  border-color: var(--fm-steel);
}

/* Job type tag */
.fm-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2em 0.55em;
  border-radius: 2px;
  background-color: rgba(58, 124, 165, 0.1);
  color: var(--fm-steel-dark);
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* Responsive: collapse columns on mobile */
@media (max-width: 768px) {
  .fm-col-dept,
  .fm-col-loc,
  .fm-col-date { display: none; }
  .fm-row-mobile-sub { display: block; }
  .fm-col-actions { flex-direction: column; gap: 0.35rem; }
  .fm-job-list-header .fm-col-dept,
  .fm-job-list-header .fm-col-loc,
  .fm-job-list-header .fm-col-date { display: none; }
}


/* ============================================================
   DEPARTMENT CARDS
   ============================================================ */

.fm-departments-section {
  background-color: var(--fm-warm-gray);
}

.fm-dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.fm-dept-card {
  background: var(--fm-white);
  border: 1px solid var(--fm-border);
  border-radius: 2px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.fm-dept-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.fm-dept-card--wide {
  grid-column: 1 / -1;
}

.fm-dept-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.fm-dept-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.fm-dept-card:hover .fm-dept-card-img img {
  transform: scale(1.03);
}

.fm-dept-card-body {
  padding: 1.5rem;
}

.fm-dept-card-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fm-black);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.fm-dept-card-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--fm-text);
  margin-bottom: 0.75rem;
}

.fm-dept-card-positions {
  font-size: 0.82rem;
  color: var(--fm-text-muted);
  line-height: 1.5;
  border-top: 1px solid var(--fm-border);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.fm-dept-card-positions strong {
  color: var(--fm-black);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

/* Additional departments card */
.fm-dept-additional {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.fm-dept-additional h4 {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--fm-black);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.fm-dept-additional p {
  font-size: 0.88rem;
  color: var(--fm-text-muted);
  line-height: 1.5;
}

.fm-dept-card-note {
  font-size: 0.8rem;
  color: #999;
  font-style: italic;
}

/* Responsive: stack dept cards on tablet and below */
@media (max-width: 960px) {
  .fm-dept-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   GENERAL APPLICATION CTA
   ============================================================ */

.fm-cta-section {
  background-color: var(--fm-white);
}

.fm-cta-box {
  text-align: center;
  padding: 3rem 2rem;
  border: 2px solid var(--fm-border);
  border-radius: 2px;
  background: var(--fm-off-white);
}

.fm-cta-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--fm-black);
  margin-bottom: 0.5rem;
}

.fm-cta-text {
  font-size: 0.95rem;
  color: var(--fm-text-muted);
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}


/* ============================================================
   EEO & COMPLIANCE
   ============================================================ */

.fm-eeo-section {
  background-color: var(--fm-warm-gray);
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.fm-eeo-text {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--fm-text-muted);
  margin-bottom: 0.75rem;
}

.fm-eeo-text a {
  color: var(--fm-steel);
  text-decoration: none;
}

.fm-eeo-text a:hover {
  text-decoration: underline;
}

.fm-eeo-links {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--fm-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.fm-eeo-links a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fm-steel);
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.fm-eeo-links a:hover {
  color: var(--fm-steel-dark);
  text-decoration: underline;
}

.fm-eeo-sep {
  color: #ccc;
  font-size: 0.7rem;
}


/* ============================================================
   BUTTONS — Primary & Apply
   ============================================================ */

.fm-btn-primary,
.button.fm-btn-primary {
  background-color: var(--fm-black) !important;
  border-color: var(--fm-black) !important;
  color: var(--fm-white) !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  padding: 0.6em 1.4em;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.fm-btn-primary:hover,
.button.fm-btn-primary:hover {
  background-color: var(--fm-steel) !important;
  border-color: var(--fm-steel) !important;
  color: var(--fm-white) !important;
}

.fm-apply-btn,
.button.fm-apply-btn {
  background-color: var(--fm-steel) !important;
  border-color: var(--fm-steel) !important;
  color: var(--fm-white) !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background-color 0.15s ease;
}

.fm-apply-btn:hover,
.button.fm-apply-btn:hover {
  background-color: var(--fm-steel-dark) !important;
  border-color: var(--fm-steel-dark) !important;
  color: var(--fm-white) !important;
}


/* ============================================================
   HERO — Dark band (used on job detail page)
   ============================================================ */

.fm-hero {
  background-color: var(--fm-black);
  color: var(--fm-white);
  padding: 3.5rem 1.5rem;
  border-bottom: 3px solid var(--fm-steel);
}

@media (max-width: 768px) {
  .fm-hero {
    padding: 1.5rem 1.25rem;
  }
  .fm-hero .title.is-2 {
    font-size: 1.4rem !important;
  }
}

.fm-hero .title {
  color: var(--fm-white) !important;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.fm-hero .subtitle {
  color: #aaaaaa !important;
  font-weight: 400;
}

/* Tags in the hero band on job detail */
.fm-hero-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3em 0.7em;
  border-radius: 2px;
  background-color: rgba(255,255,255,0.12);
  color: #dddddd;
}

.fm-hero-tag--muted {
  background-color: transparent;
  color: #888888;
  padding-left: 0;
}


/* ============================================================
   JOB DETAIL PAGE
   ============================================================ */

.fm-back-link {
  display: inline-block;
  margin-bottom: 1.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fm-steel);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.fm-back-link:hover {
  color: var(--fm-steel-dark);
  text-decoration: underline;
}

.fm-job-meta {
  color: var(--fm-text-muted) !important;
  font-size: 0.85rem !important;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* ============================================================
   EMPTY STATE
   ============================================================ */

.fm-empty-state {
  background-color: var(--fm-off-white);
  border: 1px dashed var(--fm-border);
  border-radius: 2px;
  padding: 3rem;
  text-align: center;
  color: var(--fm-text-muted);
}


/* ============================================================
   FOOTER
   ============================================================ */

.fm-footer {
  background-color: var(--fm-black) !important;
  padding: 2.5rem 1.5rem;
  margin-top: 0;
}

.fm-footer-text {
  color: #888888;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.fm-footer strong {
  color: var(--fm-white) !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fm-footer-link {
  color: #888;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.15s ease;
}

.fm-footer-link:hover {
  color: var(--fm-white);
}


/* ============================================================
   ADMIN — tables, login, forms (unchanged)
   ============================================================ */

.table th {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fm-text-muted);
  font-weight: 600;
  border-bottom: 2px solid var(--fm-border) !important;
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
}

.fm-login-body {
  background-color: var(--fm-off-white);
  min-height: 100vh;
}

.fm-login-body .section {
  padding-top: 6rem;
}

.fm-login-body .box {
  border-top: 3px solid var(--fm-steel);
  border-radius: 2px;
}

.input:focus,
.textarea:focus,
.select select:focus {
  border-color: var(--fm-steel);
  box-shadow: 0 0 0 2px rgba(58, 124, 165, 0.15);
}

.breadcrumb a {
  color: var(--fm-steel);
  font-size: 0.85rem;
}

.breadcrumb li.is-active a {
  color: var(--fm-text-muted);
}

.notification {
  border-radius: 2px;
  font-size: 0.9rem;
}


/* ============================================================
   WIZARD — Application Form (mobile-first)
   ============================================================ */

.fm-wizard-container {
  max-width: 540px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- Progress Bar --- */
.fm-wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 0.5rem;
}

.fm-wizard-step {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #999;
  background: var(--fm-off-white);
  border: 2px solid var(--fm-border);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.fm-wizard-step.is-active {
  background: var(--fm-steel);
  border-color: var(--fm-steel);
  color: var(--fm-white);
}

.fm-wizard-step.is-complete {
  background: var(--fm-steel);
  border-color: var(--fm-steel);
  color: var(--fm-white);
}

.fm-wizard-connector {
  height: 2px;
  flex: 1;
  max-width: 60px;
  background: var(--fm-border);
  transition: background 0.2s ease;
}

.fm-wizard-connector.is-complete {
  background: var(--fm-steel);
}

.fm-wizard-step-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.fm-wizard-step-text {
  font-size: 0.78rem;
  color: var(--fm-text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fm-wizard-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: none;
  padding: 0;
  color: var(--fm-steel);
  transition: background-color 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  text-decoration: none;
}

.fm-wizard-chevron:hover {
  background: rgba(58, 124, 165, 0.1);
  color: var(--fm-steel);
}

.fm-wizard-chevron:active {
  background: rgba(58, 124, 165, 0.2);
}

.fm-wizard-chevron-disabled {
  width: 44px;
  height: 44px;
  visibility: hidden;
}

/* --- Card --- */
.fm-wizard-card {
  background: var(--fm-white);
  border: 1px solid var(--fm-border);
  border-top: 3px solid var(--fm-steel);
  border-radius: 2px;
  padding: 2rem 1.5rem;
}

.fm-wizard-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--fm-black);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

/* --- Form Fields --- */
.fm-wizard-field {
  margin-bottom: 1.25rem;
}

.fm-wizard-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fm-black);
  margin-bottom: 0.4rem;
}

.fm-required {
  color: #e03030;
}

.fm-wizard-input {
  font-size: 16px !important;  /* prevents iOS auto-zoom */
  min-height: 48px;
  border-radius: 2px;
  font-family: 'Montserrat', sans-serif;
}

.fm-wizard-select select {
  font-size: 16px !important;
  min-height: 48px;
  font-family: 'Montserrat', sans-serif;
}

.fm-wizard-help {
  font-size: 0.8rem;
  color: var(--fm-text-muted);
  margin-top: 0.3rem;
}

.fm-wizard-field.has-error .fm-wizard-input {
  border-color: #e03030;
}

/* --- Side-by-side fields (state + zip) --- */
.fm-wizard-row {
  display: flex;
  gap: 1rem;
}

.fm-wizard-field-grow {
  flex: 1;
}

/* --- Language Cards --- */
.fm-lang-cards {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fm-lang-card {
  display: flex;
  align-items: center;
  padding: 0.9rem 1.2rem;
  border: 2px solid var(--fm-border);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  min-height: 56px;
}

.fm-lang-card:hover {
  border-color: var(--fm-steel-light);
  background: #f7f9fb;
}

.fm-lang-card.is-selected,
.fm-lang-card:has(input:checked) {
  border-color: var(--fm-steel);
  background: rgba(58, 124, 165, 0.06);
}

.fm-lang-card input[type="radio"] {
  margin-right: 0.8rem;
  width: 18px;
  height: 18px;
  accent-color: var(--fm-steel);
}

.fm-lang-card-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fm-black);
}

/* --- Shift Cards --- */
.fm-shift-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.fm-shift-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  border: 2px solid var(--fm-border);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  min-height: 48px;
  text-align: center;
}

.fm-shift-card:hover {
  border-color: var(--fm-steel-light);
  background: #f7f9fb;
}

.fm-shift-card.is-selected,
.fm-shift-card:has(input:checked) {
  border-color: var(--fm-steel);
  background: rgba(58, 124, 165, 0.06);
}

.fm-shift-card input[type="radio"] {
  display: none;
}

.fm-shift-card-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fm-black);
}

/* --- Action Buttons --- */
.fm-wizard-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--fm-border);
}

.fm-wizard-btn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  min-height: 52px;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.fm-wizard-btn-next {
  flex: 1;
  background-color: var(--fm-steel) !important;
  border-color: var(--fm-steel) !important;
  color: var(--fm-white) !important;
}

.fm-wizard-btn-next:hover {
  background-color: var(--fm-steel-dark) !important;
  border-color: var(--fm-steel-dark) !important;
  color: var(--fm-white) !important;
}

.fm-wizard-btn-verify {
  flex: 0 0 auto;
  background-color: transparent !important;
  border-color: var(--fm-steel) !important;
  color: var(--fm-steel) !important;
  font-size: 0.82rem;
}

.fm-wizard-btn-verify:hover {
  background-color: rgba(58, 124, 165, 0.08) !important;
}

/* --- USPS address verification --- */
.fm-usps-result {
  margin-bottom: 1rem;
}

.fm-usps-match {
  background: #e8f5e9;
  border: 1px solid #4caf50;
  border-radius: 2px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: #2e7d32;
  font-weight: 500;
}

.fm-usps-error {
  background: #fff3e0;
  border: 1px solid #ff9800;
  border-radius: 2px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: #e65100;
}

.fm-usps-suggestion {
  background: #e3f2fd;
  border: 1px solid #2196f3;
  border-radius: 2px;
  padding: 0.75rem 1rem;
}

.fm-usps-label {
  font-size: 0.78rem;
  color: #1565c0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}

.fm-usps-addr {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.fm-usps-actions {
  display: flex;
  gap: 0.5rem;
}

.fm-wizard-btn-submit {
  background-color: #2a8c4a !important;
  border-color: #2a8c4a !important;
}

.fm-wizard-btn-submit:hover {
  background-color: #237a3f !important;
  border-color: #237a3f !important;
}

.fm-wizard-btn-back {
  background-color: transparent !important;
  border-color: var(--fm-border) !important;
  color: var(--fm-text-muted) !important;
  flex: 0 0 auto;
}

.fm-wizard-btn-back:hover {
  background-color: var(--fm-off-white) !important;
  color: var(--fm-text) !important;
}

/* --- Complete Page --- */
.fm-wizard-complete {
  text-align: center;
  padding: 1rem 0;
}

.fm-wizard-checkmark {
  margin-bottom: 1.5rem;
}

.fm-wizard-complete-text {
  font-size: 1rem;
  color: var(--fm-text-muted);
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto;
}

/* --- Shift locked (single shift) --- */
.fm-shift-locked {
  background: var(--fm-off-white);
  border: 2px solid var(--fm-steel);
  border-radius: 2px;
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fm-steel-dark);
  text-align: center;
}

/* --- Employment History Cards --- */
.fm-emp-card {
  border: 1px solid var(--fm-border);
  border-radius: 2px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: var(--fm-off-white);
  position: relative;
}

.fm-emp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.fm-emp-card-number {
  background: var(--fm-steel);
  color: var(--fm-white);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.fm-emp-remove {
  background: none;
  border: 1px solid #ddd;
  border-radius: 2px;
  color: #999;
  cursor: pointer;
  font-size: 1.2rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.fm-emp-remove:hover {
  background: #fee;
  border-color: #e03030;
  color: #e03030;
}

.fm-emp-card .fm-wizard-field {
  margin-bottom: 0.75rem;
}

.fm-emp-card .fm-wizard-label {
  font-size: 0.85rem;
}

/* Add Another button */
.fm-wizard-btn-add {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--fm-steel) !important;
  background: transparent !important;
  border: 2px dashed var(--fm-steel) !important;
  border-radius: 2px;
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fm-wizard-btn-add:hover {
  background: rgba(58, 124, 165, 0.06) !important;
}

/* --- File Upload --- */
.fm-file-input .file-cta {
  background: var(--fm-steel) !important;
  border-color: var(--fm-steel) !important;
  color: var(--fm-white) !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  min-height: 48px;
}

.fm-file-input .file-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  min-height: 48px;
  display: flex;
  align-items: center;
  border-color: var(--fm-border);
}

.fm-resume-current {
  background: rgba(58, 124, 165, 0.06);
  border: 1px solid var(--fm-steel);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fm-resume-icon {
  font-size: 1.3rem;
}

/* --- Consent / Signature --- */
.fm-consent-block {
  border: 1px solid var(--fm-border);
  border-radius: 2px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  background: var(--fm-off-white);
}

.fm-consent-block.has-error {
  border-color: #e03030;
}

.fm-consent-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--fm-black);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.fm-consent-text {
  margin-bottom: 0.75rem;
}

.fm-consent-text p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--fm-text-muted);
}

.fm-consent-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fm-black);
  padding-top: 0.5rem;
  border-top: 1px solid var(--fm-border);
}

.fm-consent-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--fm-steel);
}

/* Signature tabs */
.fm-sig-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0.75rem;
  border: 1px solid var(--fm-border);
  border-radius: 2px;
  overflow: hidden;
}

.fm-sig-tab {
  flex: 1;
  padding: 0.6rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  border: none;
  background: var(--fm-off-white);
  color: var(--fm-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.fm-sig-tab.is-active {
  background: var(--fm-steel);
  color: var(--fm-white);
}

.fm-sig-tab:not(.is-active):hover {
  background: #eee;
}

/* Canvas */
.fm-sig-canvas {
  width: 100%;
  max-width: 480px;
  height: 160px;
  border: 2px solid var(--fm-border);
  border-radius: 2px;
  background: var(--fm-white);
  cursor: crosshair;
  touch-action: none;
  display: block;
}

.fm-sig-clear {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fm-text-muted);
  background: none;
  border: 1px solid var(--fm-border);
  border-radius: 2px;
  padding: 0.3rem 0.8rem;
  margin-top: 0.5rem;
  cursor: pointer;
}

.fm-sig-clear:hover {
  color: #e03030;
  border-color: #e03030;
}

/* Type-to-sign */
.fm-sig-type-input {
  margin-bottom: 0.5rem;
}

.fm-sig-preview {
  font-family: 'Brush Script MT', 'Segoe Script', 'Comic Sans MS', cursive;
  font-size: 2rem;
  color: var(--fm-black);
  padding: 0.75rem 1rem;
  min-height: 60px;
  border: 1px dashed var(--fm-border);
  border-radius: 2px;
  background: var(--fm-white);
}

/* --- Sticky Action Buttons (admin + wizard) --- */
.fm-sticky-actions {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--fm-white);
  border-bottom: 1px solid var(--fm-border);
  padding: 0.75rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* --- Verification Page --- */
.fm-verify-demo {
  background: #fff8e1;
  border: 2px solid #ffc107;
  border-radius: 2px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.fm-verify-demo-title {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9a7b00;
  margin-bottom: 0.5rem;
}

.fm-verify-demo p {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: var(--fm-text);
}

.fm-verify-demo-code {
  font-family: 'Courier New', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--fm-white);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  border: 1px solid #e0d090;
  letter-spacing: 0.15em;
  color: var(--fm-black);
}

.fm-verify-code-input {
  font-family: 'Courier New', monospace !important;
  font-size: 1.5rem !important;
  text-align: center;
  letter-spacing: 0.3em;
  max-width: 200px;
}

.fm-verify-done {
  background: #e8f5e9;
  border: 1px solid #4caf50;
  border-radius: 2px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2e7d32;
}

.fm-verify-skip {
  background: var(--fm-off-white);
  border: 1px solid var(--fm-border);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--fm-text-muted);
}

/* --- Disclosure blocks (step 1) --- */
.fm-disclosure-block {
  background: #f9f9f9;
  border-left: 3px solid var(--fm-steel);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  border-radius: 0 2px 2px 0;
}

.fm-disclosure-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fm-black);
  margin-bottom: 0.25rem;
}

.fm-disclosure-text {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #444;
  margin: 0;
}

.fm-disclosure-note {
  font-size: 0.78rem;
  color: var(--fm-text-muted);
  margin-bottom: 1rem;
  font-style: italic;
}

/* --- Inline field validation (step 2) --- */
.fm-field-valid {
  border-color: #4caf50 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%234caf50' d='M6.5 12.5l-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px !important;
}

.fm-inline-err {
  margin-top: 0.25rem;
}

/* --- SMS consent (step 2) --- */
.fm-sms-notice {
  font-size: 0.78rem;
  color: var(--fm-text-muted);
  margin-top: 0.25rem;
}

.fm-sms-consent {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

/* --- Enhanced verify page --- */
.fm-verify-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--fm-border);
}

.fm-verify-hint {
  font-size: 0.78rem;
  color: #888;
  font-style: italic;
}

.fm-verify-flash {
  background: #e3f2fd;
  border: 1px solid #2196f3;
  border-radius: 2px;
  padding: 0.6rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #1565c0;
  font-weight: 500;
}

.fm-verify-edit-details {
  font-size: 0.85rem;
}

.fm-verify-edit-link {
  color: var(--fm-steel);
  cursor: pointer;
  font-size: 0.82rem;
}

.fm-verify-edit-link:hover {
  text-decoration: underline;
}

.fm-verify-edit-form {
  margin-top: 0.5rem;
}

.fm-verify-resend {
  font-size: 0.82rem;
  color: var(--fm-text-muted);
  margin-top: 0.5rem;
}

.fm-verify-resend a {
  color: var(--fm-steel);
}

.fm-verify-vcard {
  font-size: 0.8rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.fm-verify-vcard a {
  color: var(--fm-steel);
}

.fm-verify-skip-link {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.78rem;
}

.fm-verify-skip-link a {
  color: #999;
}

.fm-verify-skip-link a:hover {
  color: #666;
}

/* --- Inactivity Timeout Modal --- */
.fm-timeout-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.fm-timeout-modal {
  background: var(--fm-white);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.fm-timeout-icon {
  margin-bottom: 1rem;
}
.fm-timeout-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--fm-text);
  margin-bottom: 0.5rem;
}
.fm-timeout-text {
  font-size: 1rem;
  color: var(--fm-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.fm-timeout-actions {
  display: flex;
  justify-content: center;
}
.fm-timeout-actions .button {
  min-width: 180px;
  font-size: 1.1rem;
  padding: 0.75rem 2rem;
}

/* --- Mobile responsive --- */
@media (max-width: 540px) {
  .fm-wizard-card {
    padding: 1.5rem 1rem;
  }
  .fm-wizard-actions {
    flex-direction: column-reverse;
  }
  .fm-wizard-btn-back {
    flex: 1;
  }
  .fm-shift-cards {
    grid-template-columns: 1fr;
  }
  .fm-sig-canvas {
    height: 120px;
  }
}
