/* ============================================
   Tilburg Investment Club — v2 overlay
   Loaded AFTER style.css to override/extend.
   Goal: strip emoji styling, add apply flow,
   tighten institutional tone.
   ============================================ */

/* --- Inline-icon cleanup --------------------------------- */
/* Remove sizing quirks from span.icon + any large emoji divs */
.dropdown-link .icon,
.dept-badge,
.contact-item-icon,
.mission-item > div:first-child,
.value-icon,
.board-card-linkedin {
  /* Left in place visually via HTML-level replacement —
     this rule just prevents 2rem emoji boxes showing up. */
  font-size: inherit;
}

/* --- SVG inline icons -------------------------------- */
.ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  flex-shrink: 0;
}
.ic svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Icon box on dark sections */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.12);
  color: var(--color-accent-light);
  margin-bottom: 1rem;
}
.icon-box .ic { width: 24px; height: 24px; }

/* Value card icon */
.value-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.value-icon .ic { width: 22px; height: 22px; }

/* Dept badge (teams / sectors list on dept heroes) */
.dept-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  letter-spacing: 0.01em;
}
.dept-badge .ic { width: 14px; height: 14px; color: rgba(255,255,255,0.7); }

/* Dropdown icons */
.dropdown-link .ic {
  width: 16px;
  height: 16px;
  color: var(--color-mid-gray);
  margin-right: 0.5rem;
}
.dropdown-link:hover .ic { color: var(--color-accent); }

/* Contact item icon replacement */
.contact-item-icon {
  color: var(--color-accent);
}
.contact-item-icon .ic { width: 20px; height: 20px; }

/* Mission pillars icon */
.mission-item .pillar-ic {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}
.mission-item .pillar-ic .ic { width: 22px; height: 22px; color: #fff; }

/* Check marks in team-card lists — replace the emoji &#10003; */
.team-card ul .check {
  display: inline-flex;
  width: 18px; height: 18px;
  margin-right: 0.6rem;
  color: var(--color-accent);
}
.team-card ul .check .ic { width: 100%; height: 100%; }


/* --- Hide DS-Store-style artifacts --- */
.emoji-kill { display: none !important; }


/* --- Apply Now form ------------------------------------- */

.apply-hero {
  padding: 9rem 0 4.5rem;
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
}
.apply-hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: rgba(37,99,235,0.06);
}
.apply-hero .container { position: relative; z-index: 2; }
.apply-hero h1 {
  color: #fff;
  max-width: 700px;
  margin-bottom: 1.25rem;
}
.apply-hero .lead {
  color: var(--color-text-on-dark);
  font-size: 1.12rem;
  max-width: 600px;
}

.apply-wrap {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 3.5rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.apply-sidebar {
  position: sticky;
  top: 6rem;
}
.apply-sidebar h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}
.apply-sidebar p {
  font-size: 0.96rem;
  color: var(--color-mid-gray);
  margin-bottom: 1.25rem;
}
.apply-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}
.apply-steps li {
  display: flex;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-dark-gray);
  font-size: 0.93rem;
}
.apply-steps li:first-child { border-top: none; }
.apply-steps .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-off-white);
  color: var(--color-accent);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--color-border);
}
.apply-steps strong {
  display: block;
  color: var(--color-text);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.apply-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2.25rem 2rem;
  box-shadow: var(--shadow-md);
}
.apply-card h2 { margin-bottom: 0.35rem; font-size: 1.6rem; }
.apply-card .form-subtitle {
  color: var(--color-mid-gray);
  font-size: 0.96rem;
  margin-bottom: 2rem;
}

.field {
  margin-bottom: 1.35rem;
}
.field label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-dark-gray);
  margin-bottom: 0.45rem;
}
.field label .req { color: #dc2626; }

.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.field textarea { resize: vertical; min-height: 140px; }
.field .hint {
  display: block;
  font-size: 0.82rem;
  color: var(--color-mid-gray);
  margin-top: 0.35rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Division picker (radio as cards) */
.division-pick {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.65rem;
}
.division-pick input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.division-pick label {
  display: block;
  padding: 1rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-dark-gray);
  transition: all var(--transition);
  letter-spacing: 0;
  text-transform: none;
}
.division-pick label span {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--color-mid-gray);
  margin-top: 0.2rem;
}
.division-pick input[type="radio"]:checked + label {
  border-color: var(--color-accent);
  background: rgba(37, 99, 235, 0.04);
  color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

/* File drop zone */
.cv-drop {
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--color-off-white);
}
.cv-drop:hover { border-color: var(--color-accent); background: rgba(37,99,235,0.03); }
.cv-drop.has-file {
  border-style: solid;
  border-color: var(--color-accent);
  background: rgba(37, 99, 235, 0.04);
}
.cv-drop .label-main {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-text);
}
.cv-drop .label-sub {
  display: block;
  font-size: 0.82rem;
  color: var(--color-mid-gray);
  margin-top: 0.25rem;
}
.cv-drop input[type="file"] { display: none; }

/* Honeypot — visually hidden, still focusable/fillable by bots */
.honeypot {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Submit feedback */
.apply-status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
}
.apply-status.ok {
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.18);
}
.apply-status.err {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, 0.18);
}
.apply-status.info {
  background: rgba(37, 99, 235, 0.06);
  color: var(--color-accent-hover);
  border: 1px solid rgba(37, 99, 235, 0.14);
}


/* --- Partners ticker polish --------------------------- */
.partners-track span {
  /* darker for contrast, less opacity */
  opacity: 0.65 !important;
  color: var(--color-dark-gray) !important;
}


/* --- Portal CTA strip --------------------------------- */
.portal-strip {
  background: var(--color-off-white);
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
}
.portal-strip .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.portal-strip .tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}
.portal-strip h3 {
  font-size: 1.2rem;
  margin-bottom: 0;
}
.portal-strip p {
  font-size: 0.93rem;
  color: var(--color-mid-gray);
  margin-top: 0.3rem;
}


/* --- Responsive tweaks --------------------------------- */
@media (max-width: 900px) {
  .apply-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .apply-sidebar { position: static; }
  .field-row { grid-template-columns: 1fr; }
  .division-pick { grid-template-columns: 1fr; }
  .apply-card { padding: 1.5rem 1.25rem; }
}
