/* CBE Group Online Payment System — Brand Styles */
:root,
[data-theme="dark"] {
  --blue: #2167AE;
  --blue-dark: #1a5290;
  --blue-light: #2d7bc4;
  --green: #A6CE39;
  --green-dark: #8fb32e;
  --green-light: #b8d94f;

  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #1a1a1a;
  --border: #2a2a2a;
  --text: #cccccc;
  --text-muted: #888888;
  --heading: #ffffff;
  --header-bg: rgba(10, 10, 10, 0.95);
  --header-bg-mobile: rgba(10, 10, 10, 0.98);
  --input-bg: #0a0a0a;
  --placeholder: #555555;
  --menu-toggle-color: #ffffff;
  --accent-blue-bg: rgba(33, 103, 174, 0.15);
  --accent-blue-bg-strong: rgba(33, 103, 174, 0.2);
  --accent-blue-border: rgba(33, 103, 174, 0.35);
  --accent-green-bg: rgba(166, 206, 57, 0.12);
  --accent-green-border: rgba(166, 206, 57, 0.3);
  --hero-blue-glow: rgba(33, 103, 174, 0.15);
  --hero-green-glow: rgba(166, 206, 57, 0.1);
  --cta-text: rgba(255, 255, 255, 0.85);
  --official-badge-bg: rgba(0, 0, 0, 0.25);
  --process-dot-border: #0a0a0a;
  --btn-text-on-accent: #0a0a0a;
  --error-text: #ff6b7a;
  --focus-ring: rgba(33, 103, 174, 0.15);

  /* Legacy aliases */
  --black: var(--bg);
  --dark: var(--bg-elevated);
  --dark-card: var(--bg-card);
  --dark-border: var(--border);
  --gray-light: var(--text);
  --gray: var(--text-muted);
  --white: var(--heading);

  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --transition: 0.25s ease;
}

[data-theme="light"] {
  --bg: #f0f3f8;
  --bg-elevated: #e8edf4;
  --bg-card: #ffffff;
  --border: #d4dce8;
  --text: #3d4f63;
  --text-muted: #64748b;
  --heading: #1a2332;
  --header-bg: rgba(255, 255, 255, 0.92);
  --header-bg-mobile: rgba(255, 255, 255, 0.98);
  --input-bg: #f8fafc;
  --placeholder: #94a3b8;
  --menu-toggle-color: #1a2332;
  --accent-blue-bg: rgba(33, 103, 174, 0.1);
  --accent-blue-bg-strong: rgba(33, 103, 174, 0.14);
  --accent-blue-border: rgba(33, 103, 174, 0.28);
  --accent-green-bg: rgba(166, 206, 57, 0.18);
  --accent-green-border: rgba(143, 179, 46, 0.45);
  --hero-blue-glow: rgba(33, 103, 174, 0.12);
  --hero-green-glow: rgba(166, 206, 57, 0.15);
  --cta-text: rgba(255, 255, 255, 0.92);
  --official-badge-bg: rgba(255, 255, 255, 0.2);
  --process-dot-border: #f0f3f8;
  --btn-text-on-accent: #0a0a0a;
  --error-text: #dc3545;
  --focus-ring: rgba(33, 103, 174, 0.2);
  --shadow: 0 4px 24px rgba(33, 103, 174, 0.1);
}

/* ── Official Site Affiliation Bar ── */
.official-bar {
  background: linear-gradient(90deg, var(--blue-dark) 0%, var(--blue) 100%);
  border-bottom: 1px solid rgba(166, 206, 57, 0.25);
  font-size: 0.8125rem;
}

.official-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  flex-wrap: wrap;
}

.official-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--official-badge-bg);
  color: var(--white);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  white-space: nowrap;
}

.official-badge svg {
  width: 14px;
  height: 14px;
  color: var(--green);
}

.official-bar-text {
  color: rgba(255, 255, 255, 0.9);
  flex: 1;
  min-width: 200px;
}

.official-bar-text a {
  color: var(--green-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.official-bar-text a:hover {
  color: var(--white);
}

.official-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--green);
  color: var(--btn-text-on-accent) !important;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  white-space: nowrap;
  transition: background var(--transition);
}

.official-bar-link:hover {
  background: var(--green-light);
  color: var(--btn-text-on-accent) !important;
}

/* ── Affiliation Section ── */
.affiliation-section {
  padding: 3rem 0;
  background: var(--dark);
  border-bottom: 1px solid var(--dark-border);
}

.affiliation-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.75rem;
  align-items: center;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
}

.affiliation-logo-wrap {
  width: 72px;
  height: 72px;
  background: var(--accent-blue-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.affiliation-logo-wrap svg {
  width: 36px;
  height: 36px;
  color: var(--blue-light);
}

.affiliation-content h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.affiliation-content p {
  color: var(--gray);
  font-size: 0.95rem;
  margin: 0;
}

.affiliation-content p + p {
  margin-top: 0.75rem;
}

.affiliation-content .official-domain {
  color: var(--green);
  font-weight: 600;
}

.footer-official-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent-blue-bg);
  border: 1px solid var(--accent-blue-border);
  border-radius: var(--radius-sm);
  color: var(--blue-light) !important;
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-official-link:hover {
  background: var(--accent-blue-bg-strong);
  color: var(--white) !important;
}

.footer-official-link svg {
  width: 14px;
  height: 14px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

[data-theme="light"] {
  color-scheme: light;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition), color var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--green-light);
}

h1, h2, h3, h4 {
  color: var(--heading);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Header & Navigation ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition), border-color var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-link img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--heading);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--green);
  color: var(--btn-text-on-accent) !important;
  padding: 0.6rem 1.4rem !important;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--green-light);
  color: var(--btn-text-on-accent) !important;
}

/* ── Floating theme toggle (sticky, right edge) ── */
.theme-toggle {
  position: fixed;
  right: max(0px, env(safe-area-inset-right, 0px));
  top: 50%;
  transform: translateY(-50%);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 56px;
  padding: 0.85rem 0.5rem;
  background: var(--bg-card);
  border: 2px solid var(--green);
  border-right: none;
  border-radius: 14px 0 0 14px;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  color: var(--heading);
  transition: background-color var(--transition), border-color var(--transition),
              box-shadow var(--transition), transform var(--transition);
}

.theme-toggle:hover {
  background: var(--accent-green-bg);
  box-shadow: -6px 0 28px rgba(166, 206, 57, 0.25);
  transform: translateY(-50%) translateX(-2px);
}

.theme-toggle svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.theme-toggle-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green-dark);
  line-height: 1;
}

[data-theme="dark"] .theme-toggle-label {
  color: var(--green);
}

.theme-toggle .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

@media (max-width: 768px) {
  .theme-toggle {
    width: 62px;
    padding: 1rem 0.55rem;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
  }

  .theme-toggle svg {
    width: 24px;
    height: 24px;
  }

  .theme-toggle-label {
    font-size: 0.7rem;
  }
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--menu-toggle-color);
  transition: var(--transition);
}

.hero-card,
.step-card,
.feature-card,
.role-card,
.form-card,
.info-panel,
.affiliation-card,
.value-item,
.division-card,
.contact-item-icon,
.apply-intro,
.hours-table,
.about-image,
.mission-card .icon-circle {
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.section-alt {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.btn-block {
  width: 100%;
}

.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ── */
.hero {
  position: relative;
  padding: 5rem 0 6rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--hero-blue-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--hero-green-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-green-bg);
  border: 1px solid var(--accent-green-border);
  color: var(--green);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero h1 .highlight {
  color: var(--blue-light);
  font-style: italic;
}

.hero p {
  font-size: 1.125rem;
  color: var(--gray);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}

.btn-primary {
  background: var(--green);
  color: var(--btn-text-on-accent);
}

.btn-primary:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(166, 206, 57, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--heading);
  border: 2px solid var(--blue);
}

.btn-secondary:hover {
  background: var(--blue);
  color: #ffffff;
  transform: translateY(-2px);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--dark-border);
}

.hero-stat:last-child { border-bottom: none; }

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon.blue { background: var(--accent-blue-bg-strong); color: var(--blue-light); }
.stat-icon.green { background: var(--accent-green-bg); color: var(--green-dark); }

[data-theme="dark"] .stat-icon.green { color: var(--green); }

.stat-icon svg { width: 24px; height: 24px; }

.stat-text strong {
  display: block;
  color: var(--white);
  font-size: 1.1rem;
}

.stat-text span {
  font-size: 0.875rem;
  color: var(--gray);
}

/* ── Sections ── */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-header .label {
  display: inline-block;
  color: var(--green);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--gray);
  margin-top: 1rem;
  font-size: 1.05rem;
}

/* ── How It Works ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}

.step-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 1.25rem;
}

.step-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: rgba(166, 206, 57, 0.4);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  color: var(--white);
}

.feature-card h3 {
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.925rem;
  color: var(--gray);
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, #1e5a96 100%);
  border-radius: var(--radius);
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(166, 206, 57, 0.2) 0%, transparent 70%);
}

.cta-banner h2 {
  margin-bottom: 1rem;
  position: relative;
}

.cta-banner p {
  color: var(--cta-text);
  max-width: 520px;
  margin: 0 auto 2rem;
  position: relative;
}

.cta-banner .btn-primary {
  position: relative;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  padding: 4rem 0 3rem;
  text-align: center;
  background: linear-gradient(180deg, var(--dark) 0%, var(--black) 100%);
  border-bottom: 1px solid var(--dark-border);
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.page-hero p {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ── About Page ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-content p {
  margin-bottom: 1.25rem;
  color: var(--gray);
}

.about-content h2 {
  margin-bottom: 1.25rem;
  color: var(--blue-light);
  font-style: italic;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.value-item {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.value-item h4 {
  color: var(--green);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.value-item p {
  font-size: 0.875rem;
  color: var(--gray);
  margin: 0;
}

.about-image {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
}

.about-image .spark {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
}

.about-image h3 {
  color: var(--blue-light);
  font-style: italic;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.about-image p {
  color: var(--green);
  font-weight: 600;
}

.mission-section {
  background: var(--dark);
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
}

.mission-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.mission-card {
  text-align: center;
  padding: 2rem;
}

.mission-card .icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-blue-bg);
  border: 2px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.mission-card .icon-circle svg {
  width: 28px;
  height: 28px;
  color: var(--blue-light);
}

.mission-card h3 {
  margin-bottom: 0.75rem;
}

.mission-card p {
  font-size: 0.925rem;
  color: var(--gray);
}

/* ── Contact Page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
}

.contact-info h2 {
  margin-bottom: 1.25rem;
}

.contact-info > p {
  color: var(--gray);
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: rgba(166, 206, 57, 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green);
}

.contact-item-icon svg { width: 20px; height: 20px; }

.contact-item-text strong {
  display: block;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.contact-item-text span,
.contact-item-text a {
  font-size: 0.925rem;
  color: var(--gray);
}

.hours-table {
  margin-top: 2rem;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.hours-table table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--dark-border);
}

.hours-table tr:last-child td { border-bottom: none; }

.hours-table td:first-child {
  color: var(--white);
  font-weight: 500;
}

.hours-table td:last-child {
  color: var(--gray);
  text-align: right;
}

/* ── Forms ── */
.form-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.form-card h2 {
  margin-bottom: 0.5rem;
}

.form-card > p {
  color: var(--gray);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group label {
  display: block;
  color: var(--heading);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group label .required {
  color: var(--green);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--heading);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--placeholder);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-group input[type="file"] {
  padding: 0.5rem;
  font-size: 0.875rem;
}

.form-group .hint {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 0.35rem;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--green);
  cursor: pointer;
  flex-shrink: 0;
}

.form-checkbox label {
  font-size: 0.875rem;
  color: var(--gray);
  cursor: pointer;
}

.form-checkbox label a {
  color: var(--blue-light);
}

.form-submit {
  width: 100%;
}

.form-message {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.925rem;
}

.form-message.success {
  display: block;
  background: var(--accent-green-bg);
  border: 1px solid var(--accent-green-border);
  color: var(--green);
}

.form-message.error {
  display: block;
  background: rgba(220, 53, 69, 0.12);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: var(--error-text);
}

/* ── Apply Page ── */
.apply-intro {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.apply-intro-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-blue-bg-strong);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue-light);
}

.apply-intro-icon svg { width: 22px; height: 22px; }

.apply-intro p {
  color: var(--gray);
  font-size: 0.95rem;
  margin: 0;
}

.apply-intro strong {
  color: var(--white);
}

.form-section-title {
  color: var(--green);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 2rem 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--dark-border);
}

.form-section-title:first-of-type {
  margin-top: 0;
}

/* ── Footer ── */
.site-footer {
  margin-top: auto;
  background: var(--dark);
  border-top: 1px solid var(--dark-border);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--gray);
  max-width: 280px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: var(--gray);
  font-size: 0.875rem;
}

.footer-col a:hover {
  color: var(--green);
}

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--gray);
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual { order: -1; }

  .hero-card { max-width: 100%; }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid,
  .mission-cards {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--header-bg-mobile);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--dark-border);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--dark-border);
  }

  .nav-links a::after { display: none; }

  .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero { padding: 3rem 0 4rem; }

  section { padding: 3.5rem 0; }

  .form-card { padding: 1.5rem; }

  .official-bar-inner {
    justify-content: center;
    text-align: center;
  }

  .official-bar-text {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cta-banner { padding: 2.5rem 1.25rem; }
}

/* ── Stats Bar ── */
.stats-bar {
  padding: 2.5rem 0;
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
  background: var(--dark);
}

.stats-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-block {
  text-align: center;
  padding: 1rem;
}

.stat-block .stat-value {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1.2;
}

.stat-block .stat-label {
  font-size: 0.875rem;
  color: var(--gray);
  margin-top: 0.35rem;
}

/* ── Job Roles ── */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.role-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.role-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
}

.role-card .role-tag {
  display: inline-block;
  background: var(--accent-blue-bg);
  color: var(--blue-light);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  width: fit-content;
}

.role-card h3 {
  margin-bottom: 0.75rem;
}

.role-card .role-pay {
  color: var(--green);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.role-card p {
  font-size: 0.9rem;
  color: var(--gray);
  flex: 1;
  margin-bottom: 1.25rem;
}

.role-card ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.role-card li {
  font-size: 0.85rem;
  color: var(--gray-light);
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.role-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

/* ── Requirements & Benefits ── */
.info-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.info-panel {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 2rem;
}

.info-panel h3 {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.info-panel h3 svg {
  width: 24px;
  height: 24px;
  color: var(--green);
  flex-shrink: 0;
}

.check-list {
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 0.925rem;
  color: var(--gray-light);
  border-bottom: 1px solid var(--dark-border);
}

.check-list li:last-child { border-bottom: none; }

.check-list li svg {
  width: 18px;
  height: 18px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Timeline / Process ── */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
}

.process-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-left: 2px solid var(--dark-border);
  margin-left: 1.25rem;
  padding-left: 2rem;
  position: relative;
}

.process-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 1.75rem;
  width: 12px;
  height: 12px;
  background: var(--blue);
  border-radius: 50%;
  border: 2px solid var(--process-dot-border);
}

.process-item:last-child { border-left-color: transparent; }

.process-item h4 {
  color: var(--white);
  margin-bottom: 0.35rem;
}

.process-item p {
  font-size: 0.9rem;
  color: var(--gray);
}

.process-item .process-time {
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 600;
  white-space: nowrap;
  min-width: 80px;
}

/* ── About extras ── */
.division-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.division-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
}

.division-card h4 {
  color: var(--blue-light);
  margin-bottom: 0.5rem;
}

.division-card p {
  font-size: 0.875rem;
  color: var(--gray);
}

.compliance-notice {
  background: var(--accent-blue-bg);
  border: 1px solid var(--accent-blue-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.compliance-notice strong {
  color: var(--blue-light);
}

@media (max-width: 992px) {
  .roles-grid,
  .info-split,
  .division-cards {
    grid-template-columns: 1fr;
  }

  .stats-bar-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .affiliation-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .affiliation-logo-wrap {
    margin: 0 auto;
  }

  .affiliation-card .btn {
    width: 100%;
    justify-content: center;
  }
}
