/* =========================================================
   Affirm Employment Services - Design System
   Palette: White, Blue, Gray (Modern UI)
   ========================================================= */

:root {
  --navy:        #073875;
  --corp-blue:   #075BA5;
  --accent-blue: #008BD2;
  --graphite:    #66686B;
  --dark-text:   #172033;
  --light-grey:  #F4F6F8;
  --soft-blue-bg:#F1F7FC;
  --white:       #FFFFFF;

  --shadow-sm:   0 4px 12px rgba(7, 56, 117, 0.04);
  --shadow-md:   0 10px 24px rgba(7, 56, 117, 0.08);
  --shadow-lg:   0 20px 40px rgba(7, 56, 117, 0.12);
  --glow-blue:   0 0 20px rgba(0, 139, 210, 0.25);
  --glow-hover:  0 0 30px rgba(0, 139, 210, 0.4);

  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 24px;
  --transition: 300ms cubic-bezier(0.22, 1, 0.36, 1);

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  --container: 1160px;
  --header-h:  80px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--dark-text); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--corp-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-blue); }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.02em; font-weight: 700; overflow-wrap: break-word; }
h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.35rem); }
p  { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: .75rem 1rem; z-index: 1000; }
.skip-link:focus { left: 0; }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 900px; }
.section { padding: 96px 0; }
.section-alt { background: var(--light-grey); }
.section-dark { background: var(--navy); color: #e2e8f0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.center { text-align: center; }
.section-head { max-width: 800px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { margin-top: .35rem; }
.muted { color: var(--graphite); }
.small { font-size: .875rem; }
.text-accent { color: var(--accent-blue); }

/* ---- Badges ---- */
.badge { display: inline-block; padding: 6px 16px; border-radius: 999px; font-size: clamp(0.7rem, 2vw, 0.8rem); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--corp-blue); background: var(--soft-blue-bg); margin-bottom: 16px; }
.badge-light { color: #fff; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: 10px 22px; border-radius: 999px; font-family: var(--font-heading); font-weight: 600; font-size: .9rem; border: 2px solid transparent; cursor: pointer; transition: all var(--transition); white-space: nowrap; text-decoration: none; }
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn-lg { padding: 12px 28px; font-size: .95rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--corp-blue); color: #fff; box-shadow: 0 4px 12px rgba(7, 91, 165, 0.2); }
.btn-primary:hover { background: var(--accent-blue); color: #fff; box-shadow: var(--glow-hover); }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(7, 56, 117, 0.15); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { background: rgba(255,255,255,.15); color: #fff; border-color: #fff; box-shadow: 0 0 20px rgba(255,255,255,0.2); }

.cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; align-items: center; }
.cta-row.center { justify-content: center; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.98);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(7, 56, 117, 0.08);
  background-image: linear-gradient(to right, transparent 0%, rgba(0, 139, 210, 0.2) 50%, transparent 100%);
  background-size: 100% 1px;
  background-position: bottom;
  background-repeat: no-repeat;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* --- Brand (Logo + Company Name) --- */
/* --- Brand (Logo + Company Name) --- */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform var(--transition);
  max-width: 200px;
}

.brand:hover { transform: scale(1.02); }

.brand-logo {
  height: 48px;
  width: 48px;
  border-radius: 8px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* --- Brand Text (Allows Wrapping) --- */
.brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.3; /* Slightly larger line-height for wrapped text */
  
  /* REMOVED: white-space, overflow, and text-overflow rules */
  /* ADDED: wrapping rules */
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}
/* Ensure header and hero containers align perfectly */
.site-header .container,
.hero-full .container {
  padding-left: 24px;
  padding-right: 24px;
}

/* Remove any internal spacing that shifts the brand */
.brand {
  padding-left: 0;
  margin-left: 0;
}

.brand-logo {
  height: 44px;
  width: 44px;
  object-fit: contain;
  padding: 0;
  margin: 0;
}

/* --- Navigation --- */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  margin-left: auto;
  font-weight: 500;
  font-size: 0.9rem;
}

.nav a {
  color: var(--dark-text);
  transition: color var(--transition);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-blue);
  transition: width var(--transition);
  box-shadow: var(--glow-blue);
}

.nav a:hover { color: var(--corp-blue); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--corp-blue); font-weight: 600; }

/* --- Header CTAs --- */
.header-cta {
  display: flex;
  gap: 10px;
  margin-left: 12px;
  flex-shrink: 0;
}

/* --- Mobile Menu Toggle --- */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background var(--transition);
}

.menu-toggle:hover { background: var(--soft-blue-bg); }
.menu-toggle span { width: 24px; height: 2px; background: var(--navy); display: block; }

.mobile-menu { border-top: 1px solid rgba(7,56,117,.08); background: #fff; padding: 16px 20px 22px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a { padding: 12px 4px; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--light-grey); }
.mobile-menu-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

/* --- Responsive Header --- */
@media (max-width: 1080px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }
}

@media (max-width: 480px) {
  .brand-text { font-size: 0.9rem; }
  .brand-logo { height: 40px; width: 40px; }
  .brand {  max-width: none;}
}

/* =========================================================
   Hero Section
   ========================================================= */
.hero-full {
  position: relative;
  padding: 140px 0 120px;
  background-image: url('../images/home-logo.jpeg');
  background-size: cover;
  background-position: right 20% center;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    to right,
    rgba(7, 56, 117, 0.95) 0%,
    rgba(7, 56, 117, 0.6) 45%,
    rgba(7, 56, 117, 0.05) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
}

.hero-content h1,
.hero-content .lead,
.hero-content p,
.hero-content .hero-cta,
.hero-content .trust-pills {
  max-width: 680px;
}

.hero-full h1 { color: #fff; }
.hero-full .lead { color: rgba(255,255,255,0.95); font-size: 1.15rem; }
.hero-full p { color: rgba(255,255,255,0.9); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0;
  justify-content: flex-start;
}

.hero-full .trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.2);
  justify-content: flex-start;
}

.hero-full .trust-pills li {
  font-size: .85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all var(--transition);
}

.hero-full .trust-pills li:hover {
  background: rgba(255,255,255,0.2);
  border-color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .hero-full { padding: 100px 0 80px; }
  .hero-content h1,
  .hero-content .lead,
  .hero-content p,
  .hero-content .hero-cta,
  .hero-content .trust-pills { max-width: 100%; }
}

/* =========================================================
   Cards
   ========================================================= */
.card-grid { display: grid; gap: 24px; }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 900px) { .card-grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .card-grid-3 { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid rgba(7,56,117,.08); border-radius: var(--radius); padding: 36px 32px; box-shadow: var(--shadow-sm); transition: all var(--transition); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg), var(--glow-blue); border-color: var(--accent-blue); }
.card h3 { margin-bottom: .75rem; }
.card p { margin: 0; color: var(--graphite); font-size: .95rem; }

.card-image { padding: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(7,56,117,.08); border-radius: var(--radius); background: var(--white); }
.card-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.card-image:hover img { transform: scale(1.08); }
.card-image:hover { box-shadow: var(--shadow-lg), var(--glow-blue); }
.card-image .card-body { padding: 24px 24px 28px; background: var(--white); position: relative; z-index: 2; }

/* =========================================================
   Positions
   ========================================================= */
.positions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .positions-grid { grid-template-columns: 1fr; } }
.position-card { background: var(--white); border: 1px solid rgba(7,56,117,.08); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-sm); transition: all var(--transition); }
.position-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg), var(--glow-blue); border-color: transparent; }
.position-card h3 { padding-bottom: 16px; border-bottom: 2px solid var(--soft-blue-bg); margin-bottom: 24px; }
.job-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.job-tags span { display: inline-block; padding: 8px 16px; background: var(--soft-blue-bg); color: var(--corp-blue); border-radius: 999px; font-size: .85rem; font-weight: 600; transition: all var(--transition); }
.job-tags span:hover { background: var(--corp-blue); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.callout-block { margin-top: 48px; padding: 32px; background: var(--soft-blue-bg); border-radius: var(--radius); text-align: center; border: 1px dashed rgba(7,56,117,.15); }

/* =========================================================
   Backup Provider
   ========================================================= */
.backup-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 40px 0; }
@media (max-width: 768px) { .backup-grid { grid-template-columns: 1fr; } }
.backup-card { display: flex; align-items: flex-start; gap: 16px; background: var(--white); padding: 24px; border-radius: var(--radius); border: 1px solid rgba(7,56,117,.06); box-shadow: var(--shadow-sm); transition: all var(--transition); }
.backup-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md), var(--glow-blue); border-color: var(--accent-blue); }
.backup-icon { flex-shrink: 0; width: 24px; height: 24px; background: var(--soft-blue-bg); color: var(--accent-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.8rem; }
.backup-card p { margin: 0; font-weight: 500; color: var(--navy); font-size: 0.95rem; }

/* =========================================================
   Why Affirm / Try Affirm
   ========================================================= */
.why-affirm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .why-affirm-grid { grid-template-columns: 1fr; } }

.try-affirm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0; }
@media (max-width: 900px) { .try-affirm-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .try-affirm-grid { grid-template-columns: 1fr; } }
.try-card { background: var(--white); border: 1px solid rgba(7,56,117,.08); border-radius: var(--radius); padding: 24px 20px; text-align: center; font-weight: 600; color: var(--navy); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; min-height: 80px; transition: all var(--transition); }
.try-card:hover { border-color: var(--accent-blue); color: var(--corp-blue); box-shadow: var(--shadow-md), var(--glow-blue); transform: translateY(-4px); }

/* =========================================================
   How Affirm Works
   ========================================================= */
.flow-container { position: relative; display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; }
.flow-line { position: absolute; top: 32px; left: 40px; right: 40px; height: 2px; background: rgba(7, 56, 117, 0.1); z-index: 1; }
.flow-step { position: relative; z-index: 2; flex: 1; text-align: center; background: transparent; }
.flow-num { width: 64px; height: 64px; border-radius: 50%; background: var(--soft-blue-bg); color: var(--corp-blue); font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; border: 4px solid var(--white); box-shadow: var(--shadow-sm); transition: all var(--transition); }
.flow-step:hover .flow-num { background: var(--corp-blue); color: #fff; transform: scale(1.1); box-shadow: var(--glow-blue); }
.flow-step h3 { margin-bottom: .5rem; font-size: 1.1rem; }
.flow-step p { color: var(--graphite); font-size: .9rem; margin: 0; }
@media (max-width: 900px) {
  .flow-container { flex-direction: column; gap: 40px; }
  .flow-line { display: none; }
  .flow-step { text-align: left; display: flex; gap: 20px; }
  .flow-num { margin: 0; flex-shrink: 0; }
}

/* =========================================================
   Leadership
   ========================================================= */
.leadership-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 700px) { .leadership-grid { grid-template-columns: 1fr; } }
.leader-card { background: var(--white); padding: 40px 32px; border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid rgba(7,56,117,.06); text-align: center; transition: all var(--transition); }
.leader-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg), var(--glow-blue); }
.leader-avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-blue), var(--corp-blue)); color: #fff; font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.leader-role { color: var(--accent-blue); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }

/* =========================================================
   Service Area & Vendor
   ========================================================= */
.service-area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 700px) { .service-area-grid { grid-template-columns: 1fr; gap: 24px; } }
.city-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.city-list li { padding: 8px 16px; background: var(--soft-blue-bg); color: var(--corp-blue); border-radius: 999px; font-weight: 600; font-size: .9rem; transition: all var(--transition); }
.city-list li:hover { background: var(--corp-blue); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.vendor-card { background: var(--white); border: 1px solid rgba(7,56,117,.08); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-sm); max-width: 800px; margin: 0 auto 40px; text-align: left; }
.vendor-card h3 { margin-bottom: 20px; }
.check-list { list-style: none; }
.check-list li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px dashed rgba(7,56,117,.1); }
.check-list li:last-child { border-bottom: none; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 10px; color: var(--accent-blue); font-weight: 800; }

/* =========================================================
   Forms
   ========================================================= */
.form { max-width: 900px; margin: 0 auto; background: var(--white); padding: 48px; border: 1px solid rgba(7,56,117,.08); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; transition: box-shadow var(--transition); }
.form:hover { box-shadow: var(--shadow-lg), var(--glow-blue); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--navy); }
.field-full { grid-column: 1 / -1; }
.field input, .field textarea { font: inherit; font-weight: 400; font-size: 1rem; padding: 14px 16px; border: 1px solid rgba(7,56,117,.15); border-radius: var(--radius-sm); color: var(--dark-text); background: var(--white); transition: border-color var(--transition), box-shadow var(--transition); width: 100%; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 4px rgba(0, 139, 210, 0.1), var(--glow-blue); }
.form-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.form-note { margin: 0; font-size: .9rem; color: var(--graphite); }
.form-status { margin-top: 16px; font-size: .95rem; font-weight: 500; }
.form-status.ok { color: #15803d; }
.form-status.err { color: #b91c1c; }

/* =========================================================
   Contact Cards
   ========================================================= */
.contact-grid-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .contact-grid-modern { grid-template-columns: 1fr; }
}

.contact-card {
  background: var(--white);
  border: 1px solid rgba(7,56,117,.08);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--glow-blue);
  border-color: transparent;
}

.contact-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-card-header h3 { margin: 0; font-size: 1.15rem; }

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--soft-blue-bg);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-details { display: flex; flex-direction: column; gap: 16px; }

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--graphite);
}

.contact-row .material-symbols-outlined {
  color: var(--accent-blue);
  font-size: 1.25rem;
}

.contact-row a { color: var(--corp-blue); font-weight: 500; display: flex; align-items: center; gap: 4px; }
.contact-row a:hover { color: var(--accent-blue); }

.contact-row svg { flex-shrink: 0; margin-top: 3px; }

.contact-divider { height: 1px; background: rgba(7,56,117,.08); margin: 8px 0; }

.contact-card h4 { margin: 0 0 8px; font-size: 1rem; color: var(--navy); }

.mt-4 { margin-top: 24px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--navy); color: #cbd5e1; padding: 80px 0 0; }
.site-footer h4 { color: #fff; margin-bottom: 1rem; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; font-family: var(--font-heading); }
.site-footer a { color: #cbd5e1; transition: color var(--transition); }
.site-footer a:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.5); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-tag { font-weight: 600; color: #fff; margin-top: 16px; font-size: .9rem; }
.footer-nav { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; font-size: .85rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }
.site-footer img { max-height: 60px; width: auto; }

/* =========================================================
   Scrollspy
   ========================================================= */
.scroll-nav { position: fixed; right: 24px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; z-index: 1000; }
.scroll-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(7, 56, 117, 0.15); transition: all 0.3s ease; position: relative; }
.scroll-dot.active { background: var(--accent-blue); transform: scale(1.4); box-shadow: var(--glow-blue); }
.scroll-dot:hover { background: var(--corp-blue); transform: scale(1.2); box-shadow: var(--glow-blue); }
@media (max-width: 900px) { .scroll-nav { display: none; } }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Candidate Registration Popup Modal
   ========================================================= */
body.modal-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms ease;
  overflow-y: auto;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 820px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--white);
  border-radius: 20px;
  padding: 40px 44px;
  box-shadow: 0 25px 60px rgba(7, 56, 117, 0.22);
  border: 1px solid rgba(7, 56, 117, 0.08);
  transform: translateY(16px) scale(0.98);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  margin: auto;
}

.modal-overlay.is-open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(7, 56, 117, 0.12);
  background: var(--light-grey);
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.candidate-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--corp-blue);
  margin-bottom: 10px;
}

.candidate-kicker::after {
  content: "";
  display: inline-block;
  width: 36px;
  height: 2px;
  background: var(--corp-blue);
  border-radius: 2px;
}

.modal-header h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.modal-header p {
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 28px;
}

.candidate-form .form-grid {
  gap: 20px 24px;
}

.candidate-form .field {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark-text);
  gap: 7px;
}

.candidate-form .field .label-optional {
  font-weight: 400;
  color: var(--graphite);
}

.candidate-form .field input[type="text"],
.candidate-form .field input[type="email"],
.candidate-form .field input[type="tel"],
.candidate-form .field select,
.candidate-form .field textarea {
  font: inherit;
  font-weight: 400;
  font-size: 0.95rem;
  padding: 12px 15px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: var(--dark-text);
  background-color: var(--white);
  transition: border-color 200ms ease, box-shadow 200ms ease;
  width: 100%;
}

.candidate-form .field input::placeholder,
.candidate-form .field textarea::placeholder {
  color: #94a3b8;
}

.candidate-form .field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231e293b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}

.candidate-form .field select.is-placeholder {
  color: #64748b;
}

.candidate-form .field input:focus,
.candidate-form .field select:focus,
.candidate-form .field textarea:focus {
  outline: none;
  border-color: var(--corp-blue);
  box-shadow: 0 0 0 3px rgba(7, 91, 165, 0.12);
}

/* Radio Group (Transportation) */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  padding-top: 2px;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  font-size: 0.93rem;
  color: var(--dark-text);
  cursor: pointer;
  user-select: none;
}

.radio-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid #94a3b8;
  border-radius: 50%;
  background: var(--white);
  margin: 0;
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: border-color 180ms ease;
}

.radio-option input[type="radio"]::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 150ms ease-in-out;
  background: var(--corp-blue);
}

.radio-option input[type="radio"]:checked {
  border-color: var(--corp-blue);
}

.radio-option input[type="radio"]:checked::before {
  transform: scale(1);
}

/* Resume Upload Dropzone */
.resume-dropzone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  background: #f3f7fb;
  border: 1.5px dashed #bfd0e2;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease;
}

.resume-dropzone:hover,
.resume-dropzone.is-dragover {
  background: #eaf2fa;
  border-color: var(--corp-blue);
}

.resume-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.resume-icon {
  flex-shrink: 0;
  width: 44px;
  height: 52px;
  color: #5b9bd5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resume-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.resume-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

.resume-sub {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--graphite);
}

/* Consent Checkbox */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  line-height: 1.45;
}

.consent-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1.5px solid #475569;
  border-radius: 4px;
  background: var(--white);
  margin: 1px 0 0;
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: all 150ms ease;
}

.consent-row input[type="checkbox"]::before {
  content: "";
  width: 11px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  margin-top: -2px;
  transition: transform 150ms ease;
}

.consent-row input[type="checkbox"]:checked {
  background: var(--corp-blue);
  border-color: var(--corp-blue);
}

.consent-row input[type="checkbox"]:checked::before {
  transform: rotate(-45deg) scale(1);
}

/* Submit Button & Footer Disclaimer */
.btn-submit-app {
  width: 100%;
  margin-top: 20px;
  padding: 15px 24px;
  border-radius: 10px;
  background: var(--corp-blue);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(7, 91, 165, 0.22);
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.btn-submit-app:hover {
  background: var(--accent-blue);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 139, 210, 0.28);
}

.btn-submit-app:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.candidate-disclaimer {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--graphite);
}

.candidate-disclaimer a {
  color: var(--corp-blue);
  text-decoration: underline;
  font-weight: 500;
}

@media (max-width: 680px) {
  .modal-dialog {
    padding: 28px 20px;
  }
  .radio-group {
    gap: 16px;
  }
}
