/* =========================================================
   Career application form — custom styles on top of Bootstrap 5
   Brand color is driven by a single variable so it is easy to
   match your site: change --brand below.
   ========================================================= */
:root {
  --brand: #ed3326;          /* primary / accent — change to match your brand */
  --brand-dark: #c5271c;
  --brand-soft: #fdeceb;     /* light tint of brand for hover / drop zone */
  --ink: #1a1d21;
  --muted: #6b7280;
  --line: #e3e6ea;
  --line-strong: #c9cfd6;
  --bg: #f4f6f8;
  --card: #ffffff;
  --danger: #d92d20;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

.apply-page {
  padding: 40px 16px 80px;
}

.apply-container {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px;
  
}

/* ---------- Header ---------- */
.apply-header {
  margin-bottom: 8px;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lang-switch {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  padding: 4px 10px;
  border-radius: 8px;
  transition: all 0.15s ease;
}
.lang-switch:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.apply-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 6px;
}
.apply-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 6px;
}
.apply-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}
.req-mark { color: var(--danger); font-weight: 600; }

/* ---------- Sections ---------- */
.form-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.section-title {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0 0 4px;
}
.section-help {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0 0 18px;
}

/* ---------- Form controls ---------- */
.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}
.form-control {
  border-radius: 8px;
  border-color: var(--line-strong);
  padding: 10px 12px;
  font-size: 0.92rem;
}
.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(237, 51, 38, 0.18);
}
textarea.form-control { resize: vertical; }

.char-counter {
  text-align: right;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}

.link-ico { color: var(--brand); margin-right: 4px; }

/* ---------- Repeatable items ---------- */
.repeat-list { display: flex; flex-direction: column; gap: 16px; }

.repeat-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fbfcfd;
  animation: slideIn 0.22s ease;
}
.profile-item { padding: 14px 16px; }

.repeat-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.repeat-item-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.btn-remove-item {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.btn-remove-item:hover {
  background: #fdecec;
  color: var(--danger);
}

.current-check .form-check-label,
.consent-check .form-check-label {
  font-size: 0.88rem;
}
.form-check-input:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}
.form-check-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(237, 51, 38, 0.18);
}

/* ---------- Add button ---------- */
.btn-add {
  margin-top: 16px;
  border: 1.5px dashed var(--line-strong);
  color: var(--brand);
  background: transparent;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: 10px;
  transition: all 0.15s ease;
}
.btn-add:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

/* ---------- Resume drop zone ---------- */
.drop-zone {
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 34px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
  background: #fbfcfd;
}
.drop-zone:hover,
.drop-zone:focus-visible {
  border-color: var(--brand);
  background: var(--brand-soft);
  outline: none;
}
.drop-zone.dragover {
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: scale(1.01);
}
.drop-icon { font-size: 2rem; color: var(--brand); }
.drop-text { margin: 10px 0 0; color: var(--muted); font-size: 0.9rem; }
.drop-link { color: var(--brand); font-weight: 600; text-decoration: underline; }

.file-preview {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: #fff;
  animation: slideIn 0.22s ease;
}
.file-icon { font-size: 1.6rem; color: var(--brand); }
.file-meta { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.file-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-size { font-size: 0.78rem; color: var(--muted); }
.btn-remove-file {
  border: none;
  background: transparent;
  color: var(--muted);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-remove-file:hover { background: #fdecec; color: var(--danger); }

/* ---------- Consent + submit ---------- */
.consent-check { margin-bottom: 24px; }

.submit-row { display: flex; justify-content: flex-end; }
.btn-submit {
  background: var(--brand);
  border-color: var(--brand);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
}
.btn-submit:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-submit:disabled { opacity: 0.6; }

/* ---------- Success panel ---------- */
.success-panel {
  text-align: center;
  padding: 50px 20px;
  animation: slideIn 0.3s ease;
}
.success-panel i { font-size: 3rem; color: #16a34a; }
.success-panel h2 { margin: 14px 0 6px; font-weight: 700; }
.success-panel p { color: var(--muted); margin: 0; }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Mobile ---------- */
@media (max-width: 575.98px) {
  .apply-container { padding: 24px 18px; }
  .apply-title { font-size: 1.4rem; }
  .submit-row { justify-content: stretch; }
  .btn-submit { width: 100%; }
}
