:root {
  --bg-base: #0c0816;
  --bg-surface: #151025;
  --bg-elevated: #1e1736;
  --accent: #7c4dff;
  --accent-glow: rgba(124, 77, 255, 0.25);
  --text-main: #f3f0ff;
  --text-muted: #aba2c5;
  --border-subtle: rgba(243, 240, 255, 0.08);
  --border-focus: rgba(124, 77, 255, 0.6);
  --ok: #34d399;
  --err: #f87171;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-base);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* Utility badges & typography */
.badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(124, 77, 255, 0.1);
  padding: 6px 14px;
  border-radius: 100px;
  display: inline-block;
}

h1, h2, h3 { font-family: 'Poppins', sans-serif; font-weight: 600; }

/* ---------- NEW HERO SECTION ---------- */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  position: relative;
  background: radial-gradient(circle at top right, rgba(124, 77, 255, 0.12), transparent 45%),
              radial-gradient(circle at bottom left, rgba(79, 70, 229, 0.08), transparent 40%);
}
.hero-content {
  max-width: 760px;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.1;
  margin-top: 20px;
  letter-spacing: -0.02em;
}
.hero h1 span {
  color: var(--text-muted);
  font-weight: 300;
}
.hero p {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-top: 24px;
  max-width: 600px;
  font-weight: 300;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.1); }
.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover { border-color: var(--text-muted); }

/* ---------- SECTION COMMONS ---------- */
section { padding: 100px 0; border-top: 1px solid var(--border-subtle); }
.section-header { margin-bottom: 50px; }
.section-header h2 { font-size: clamp(2rem, 3vw, 2.5rem); margin-top: 16px; }
.section-header p { color: var(--text-muted); margin-top: 10px; font-size: 1.05rem; }

/* ---------- ROLES CARDS ---------- */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.role-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.role-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.role-card h3 { font-size: 1.25rem; margin-top: 12px; }
.role-card p { color: var(--text-muted); font-size: 0.92rem; margin-top: 12px; flex: 1; }
.role-link {
  margin-top: 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.role-link svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.role-card:hover .role-link svg { transform: translateX(4px); }

/* ---------- PROCESS STEPS ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.process-step {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 28px;
  border-radius: 10px;
}
.step-num {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--accent);
}
.process-step h4 { font-size: 1.05rem; margin-top: 10px; }
.process-step p { color: var(--text-muted); font-size: 0.9rem; margin-top: 8px; }

/* ---------- REDESIGNED FORM SECTION (CLEAR & HIGH CONTRAST) ---------- */
.apply-section {
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-surface) 100%);
}
.form-container {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
@media(max-width: 768px) { .form-container { padding: 24px; } }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media(max-width: 768px) { .form-grid { grid-template-columns: 1fr; gap: 0; } }

.field {
  margin-bottom: 24px;
}
.field.full {
  grid-column: span 2;
}
@media(max-width: 768px) { .field.full { grid-column: span 1; } }

.field label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 8px;
}
.field label span { color: var(--accent); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid rgba(243, 240, 255, 0.15);
  color: var(--text-main);
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 5l5 5 5-5' fill='none' stroke='%23aba2c5' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.field select option { background: var(--bg-surface); color: var(--text-main); }
.field textarea { resize: vertical; min-height: 120px; }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(171, 162, 197, 0.4); }

.file-drop {
  border: 2px dashed rgba(243, 240, 255, 0.2);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  background: var(--bg-surface);
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.file-drop:hover { border-color: var(--accent); }
.file-drop input { display: none; }
.file-drop p { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; }
.file-drop strong { color: var(--text-main); }

.consent-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
}
.consent-group input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; }
.consent-group label { font-size: 0.9rem; color: var(--text-muted); font-weight: 300; line-height: 1.4; }

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: 'Montserrat', sans-serif;
  display: none;
}
.form-status.show { display: flex; align-items: center; gap: 10px; }
.form-status.success { background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.3); color: var(--ok); }
.form-status.error { background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.3); color: var(--err); }

/* ---------- FOOTER ---------- */
footer {
  padding: 60px 0;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}