:root {
  --navy: #1c1c1e;
  --navy-2: #343434;
  --blue: #ed3135;
  --cyan: #ff6b6e;
  --accent: #ed3135;
  --accent-2: #c41f25;
  --bg: #f6f6f7;
  --card: #ffffff;
  --text: #2a2a2c;
  --muted: #66666b;
  --border: #e4e4e7;
  --ok: #12a05c;
  --error: #d93838;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(28, 28, 30, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img, svg { display: block; }
a { color: inherit; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  color: var(--navy-2);
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 4px 20px rgba(28, 28, 30, 0.06);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 16px;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 56px; width: auto; }
.nav { display: flex; gap: 24px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--accent); }
.header-outline {
  text-decoration: none; font-weight: 700; font-size: 0.9rem;
  padding: 9px 18px; border-radius: 999px; border: 2px solid var(--navy-2); color: var(--navy-2);
}
.header-outline:hover { border-color: var(--accent); color: var(--accent); }
.footer-logo { height: 44px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; }
.header-cta {
  text-decoration: none; font-weight: 700; font-size: 0.9rem;
  padding: 10px 18px; border-radius: 999px; background: var(--accent); color: #fff;
}
.header-cta:hover { background: var(--accent-2); }
@media (max-width: 820px) { .nav { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(237, 49, 53, 0.35), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(237, 49, 53, 0.2), transparent 40%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: 96px 0 110px;
  text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, #000 30%, transparent 75%);
}
.hero .container { position: relative; }
.eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.1; letter-spacing: -0.03em;
  margin: 20px auto 18px; max-width: 820px;
}
.hero h1 .hl {
  background: linear-gradient(90deg, var(--cyan), #ff9a9c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { font-size: clamp(1rem, 2vw, 1.2rem); opacity: 0.85; max-width: 680px; margin: 0 auto 40px; }

/* ---------- Big CTA button ---------- */
.btn-giant {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 26px 48px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-size: clamp(1.15rem, 2.6vw, 1.6rem); font-weight: 800; letter-spacing: -0.01em;
  color: #fff; text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 40px rgba(196, 31, 37, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: pulse 2.4s infinite;
}
.btn-giant:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 24px 50px rgba(196, 31, 37, 0.5); }
.btn-giant svg { width: 28px; height: 28px; transition: transform 0.2s; }
.btn-giant:hover svg { transform: translateX(4px); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 18px 40px rgba(196, 31, 37, 0.4), 0 0 0 0 rgba(237, 49, 53, 0.5); }
  50% { box-shadow: 0 18px 40px rgba(196, 31, 37, 0.4), 0 0 0 16px rgba(237, 49, 53, 0); }
}
@media (max-width: 480px) { .btn-giant { padding: 22px 28px; width: 100%; } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.alt { background: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .tag {
  color: var(--blue); font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); letter-spacing: -0.02em; margin: 8px 0 12px; line-height: 1.2; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--cyan); }
.card h3 { margin: 16px 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(237, 49, 53, 0.15), rgba(237, 49, 53, 0.15));
  color: var(--blue);
}
.icon svg { width: 26px; height: 26px; }

/* Propósito */
.purpose {
  background:
    radial-gradient(circle at 90% 10%, rgba(237, 49, 53, 0.35), transparent 50%),
    linear-gradient(135deg, var(--navy-2), var(--navy));
  color: #fff; border-radius: 24px; padding: clamp(32px, 6vw, 64px);
  display: grid; gap: 32px; grid-template-columns: 1.2fr 1fr; align-items: center;
}
.purpose .tag { color: var(--cyan); }
.purpose h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1.2; margin: 8px 0 16px; letter-spacing: -0.02em; }
.purpose p { opacity: 0.88; margin: 0; }
.purpose ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.purpose li {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 14px 18px; border-radius: 12px;
}
.purpose li b { color: var(--cyan); display: block; }
@media (max-width: 820px) { .purpose { grid-template-columns: 1fr; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-top: 48px; }
.stat { text-align: center; padding: 20px; border-radius: var(--radius); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }
.stat strong { display: block; font-size: 2rem; color: #fff; }
.stat span { font-size: 0.9rem; opacity: 0.75; }

/* CTA final */
.cta-final { text-align: center; padding: 100px 0; background: var(--navy); color: #fff; }
.cta-final h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 12px; letter-spacing: -0.02em; }
.cta-final p { opacity: 0.8; margin: 0 auto 40px; max-width: 600px; }

/* Footer */
.footer { background: #071426; color: rgba(255, 255, 255, 0.6); padding: 28px 0; font-size: 0.9rem; }
.footer .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* =========================================================
   Página de candidatura
   ========================================================= */
.page-head {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 56px 0 120px; text-align: center;
}
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 12px 0 8px; letter-spacing: -0.02em; }
.page-head p { opacity: 0.8; margin: 0; }

.form-wrap { margin-top: -80px; padding-bottom: 80px; }
.form-card {
  background: #fff; border-radius: 24px; box-shadow: 0 20px 60px rgba(28, 28, 30, 0.12);
  padding: clamp(24px, 4vw, 48px); max-width: 900px; margin: 0 auto;
}
.form-step + .form-step { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--border); }
.step-title { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; font-size: 1.3rem; }
.step-num {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 0.95rem;
  background: var(--blue); color: #fff;
}
.step-desc { color: var(--muted); margin: 0 0 24px 44px; }
@media (max-width: 560px) { .step-desc { margin-left: 0; } }

/* Cards de cargo */
.roles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.role { position: relative; cursor: pointer; }
.role input { position: absolute; opacity: 0; pointer-events: none; }
.role-box {
  height: 100%; border: 2px solid var(--border); border-radius: 14px; padding: 18px;
  display: flex; flex-direction: column; gap: 10px; transition: all 0.18s; background: #fff;
}
.role-box .icon { width: 44px; height: 44px; border-radius: 12px; }
.role-box .icon svg { width: 22px; height: 22px; }
.role-box strong { font-size: 1rem; }
.role-box small { color: var(--muted); line-height: 1.4; }
.role:hover .role-box { border-color: var(--cyan); }
.role input:checked + .role-box {
  border-color: var(--blue); background: rgba(237, 49, 53, 0.05);
  box-shadow: 0 0 0 4px rgba(237, 49, 53, 0.12);
}
.role input:checked + .role-box .icon { background: var(--blue); color: #fff; }
.role input:focus-visible + .role-box { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* Campos */
.fields { display: grid; gap: 18px 20px; grid-template-columns: repeat(2, 1fr); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }

.field > label, .field > .label { font-weight: 600; font-size: 0.93rem; }
.req { color: var(--error); }
.hint { color: var(--muted); font-size: 0.82rem; }

.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="number"], .field input[type="url"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 0.97rem; color: var(--text);
  padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; background: #fafafa;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 4px rgba(237, 49, 53, 0.12);
}

.options { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--border); background: #fafafa; font-size: 0.9rem; transition: all 0.15s;
  user-select: none;
}
.chip:hover span { border-color: var(--cyan); }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }

.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.field.invalid .chip span, .field.invalid .dropzone { border-color: var(--error); }
.error-msg { color: var(--error); font-size: 0.82rem; display: none; }
.field.invalid .error-msg { display: block; }

.role-section-title {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-radius: 12px; background: rgba(237, 49, 53, 0.06);
  color: var(--blue); font-weight: 700;
}
.role-section-title svg { width: 20px; height: 20px; }

.empty-state {
  border: 2px dashed var(--border); border-radius: 14px; padding: 28px;
  text-align: center; color: var(--muted);
}

/* Upload */
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  border: 2px dashed #cfcfd4; border-radius: 14px; padding: 32px 20px; cursor: pointer;
  background: #fafafa; transition: all 0.15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--blue); background: rgba(237, 49, 53, 0.04); }
.dropzone svg { width: 40px; height: 40px; color: var(--blue); }
.dropzone strong { font-size: 1rem; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone.has-file { border-style: solid; border-color: var(--ok); background: rgba(18, 160, 92, 0.05); }
.dropzone.has-file svg { color: var(--ok); }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: none; }

.actions { margin-top: 32px; display: flex; justify-content: flex-end; }
.btn-submit {
  font: inherit; font-weight: 800; font-size: 1.1rem; cursor: pointer; border: 0;
  padding: 18px 40px; border-radius: 999px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px rgba(196, 31, 37, 0.35); transition: transform 0.15s;
}
.btn-submit:hover { transform: translateY(-2px); }
.btn-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }
@media (max-width: 560px) { .btn-submit { width: 100%; } }

/* Sucesso */
.success { text-align: center; padding: 32px 8px; }
.success .check {
  width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(18, 160, 92, 0.12); color: var(--ok);
}
.success .check svg { width: 44px; height: 44px; }
.success h2 { margin: 0 0 10px; font-size: 1.8rem; }
.success p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; }
.btn-outline {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 12px 24px; border-radius: 999px; border: 2px solid var(--blue); color: var(--blue);
}
.btn-outline:hover { background: var(--blue); color: #fff; }

.hidden { display: none !important; }
