/* ═══════════════════════════════════════════════════════════════════════════
   Trabalhe Conosco — acabamento do card de candidatura (08/10/2026)

   O card onde a pessoa entra com telefone e e-mail e, depois, envia o
   currículo. Pedido do usuário: um tratamento completo de UX/UI nesse card.

   É uma CAMADA por cima: a marcação dos campos, as regras e o script da página
   (trabalhe-conosco.php) continuam os mesmos. Aqui entram
     · o cabeçalho do card, com os três passos (Contato → Código → Candidatura);
     · campos com caixa, ícone e foco âmbar (antes: só um filete laranja);
     · um botão principal só — âmbar, o mesmo do "Enviar Candidatura";
     · o código em seis caixas e os avisos com ícone.
   O que a página já desenhava para a etapa 2 (teste de perfil, alertas,
   currículo) fica como está.

   Carregado só pelo trabalhe-conosco.php, DEPOIS do <style> da página.
   O comportamento novo (passos, seis caixas, "ok" no campo) está no
   js/vp-candidatura.js; sem ele o card funciona igual, só sem esses enfeites.

   Movimento: foco dos campos, a troca do passo e o giro do botão enquanto
   envia. Nada de fundo se mexendo.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── O card ── */
.elementor-element-924d0a2 {
  background: linear-gradient(165deg, #5d6280 0%, #4c5169 100%) !important;
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 28px 60px -28px rgba(38, 42, 66, .7), 0 2px 0 rgba(255, 255, 255, .05) inset;
  position: relative;
  overflow: hidden;
}
/* luz parada no canto, no laranja da marca */
.elementor-element-924d0a2::before {
  content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 183, 53, .22) 0%, rgba(227, 122, 54, .10) 45%, transparent 70%);
  pointer-events: none;
}
.elementor-element-924d0a2 > * { position: relative; }

/* ── Cabeçalho e passos ── */
#vp-form-candidatura .vp-cab { width: calc(100% - 10px); margin: 0 5px 22px; color: #fff; }
#vp-form-candidatura .vp-cab-titulo { margin: 0 0 6px; font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; color: #fff; }
#vp-form-candidatura .vp-cab-sub { margin: 0 0 20px; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .78); min-height: 1.5em; }
#vp-form-candidatura .vp-passos { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 10px; }
#vp-form-candidatura .vp-passos li { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .55); white-space: nowrap; transition: color .25s ease; }
#vp-form-candidatura .vp-passos li + li::before { content: ""; width: clamp(14px, 4vw, 44px); height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .2); transition: background .25s ease; }
#vp-form-candidatura .vp-passos b {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .3); font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .7);
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
#vp-form-candidatura .vp-passos li.atual { color: #fff; }
#vp-form-candidatura .vp-passos li.atual b { border-color: #feb735; color: #feb735; box-shadow: 0 0 0 4px rgba(254, 183, 53, .16); }
#vp-form-candidatura .vp-passos li.feito { color: rgba(255, 255, 255, .85); }
#vp-form-candidatura .vp-passos li.feito b {
  border-color: #feb735; color: transparent;
  background: #feb735 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
}
#vp-form-candidatura .vp-passos li.feito + li::before, #vp-form-candidatura .vp-passos li.atual::before { background: #feb735; }

/* ── Campos ── */
#vp-form-candidatura .elementor-field-label { font-size: 13.5px !important; font-weight: 600 !important; letter-spacing: .01em; color: #fff; margin-bottom: 8px !important; padding: 0 !important; }
#vp-form-candidatura .elementor-field-group { margin-bottom: 16px !important; }
#vp-form-candidatura .elementor-field-textual {
  min-height: 52px; padding: 12px 16px !important; color: #fff !important; font-size: 16px !important;
  background-color: rgba(255, 255, 255, .07) !important;
  border: 1.5px solid rgba(255, 255, 255, .2) !important; border-radius: 12px !important;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
#vp-form-candidatura .elementor-field-textual::placeholder { color: rgba(255, 255, 255, .45); opacity: 1; }
#vp-form-candidatura .elementor-field-textual:hover:not(:disabled) { border-color: rgba(255, 255, 255, .38) !important; }
#vp-form-candidatura .elementor-field-textual:focus {
  outline: 0; border-color: #feb735 !important; background-color: rgba(255, 255, 255, .11) !important;
  box-shadow: 0 0 0 4px rgba(254, 183, 53, .2) !important;
}
#vp-form-candidatura textarea.elementor-field-textual { min-height: 108px; line-height: 1.5; }
/* campo faltando: mesma ideia de antes (vermelho + tremor), agora na caixa inteira */
#vp-form-candidatura .elementor-field-textual.vp-invalido { border-color: #ff8a7e !important; box-shadow: 0 0 0 4px rgba(255, 107, 94, .2) !important; }
#vp-form-candidatura select.elementor-field-textual:not(:disabled) { background-position: right 14px center; padding-right: 42px !important; }

/* telefone e e-mail: ícone à esquerda e, quando o que foi digitado está completo, um "ok" à direita */
#vp-form-candidatura #vp-telefone, #vp-form-candidatura #vp-email { padding-left: 46px !important; background-repeat: no-repeat; background-position: 15px center; background-size: 19px; }
#vp-form-candidatura #vp-telefone { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd591' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.5 2.7.6a2 2 0 0 1 1.7 2Z'/%3E%3C/svg%3E"); }
#vp-form-candidatura #vp-email { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd591' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E"); }
#vp-form-candidatura .vp-campo-ok { position: relative; }
#vp-form-candidatura .vp-campo-ok::after {
  content: ""; position: absolute; right: calc(var(--vp-col-gap, 10px) / 2 + 14px); bottom: 15px; width: 22px; height: 22px; border-radius: 50%;
  background: #7ed996 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f3a29' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
  animation: vp-ok-entra .25s cubic-bezier(.3, 1.5, .5, 1) both; pointer-events: none;
}
#vp-form-candidatura .vp-campo-ok .elementor-field-textual { padding-right: 46px !important; }
@keyframes vp-ok-entra { from { transform: scale(0); } to { transform: scale(1); } }
/* campo que ficou travado depois da identificação: legível, só sem cara de editável */
#vp-form-candidatura .elementor-field-textual.vp-travado:not(select) { opacity: .75; }

/* ── Botões principais: um desenho só (âmbar, como o Enviar) ── */
#vp-form-candidatura #vp-btn-continuar,
#vp-form-candidatura #vp-btn-verificar,
#vp-form-candidatura #vp-btn-enviar {
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 50px;
  background-color: #feb735; color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .01em;
  box-shadow: 0 10px 22px -10px rgba(254, 183, 53, .75);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background-color .15s ease, box-shadow .15s ease, transform .1s ease, opacity .15s ease;
}
#vp-form-candidatura #vp-btn-continuar:hover, #vp-form-candidatura #vp-btn-continuar:focus,
#vp-form-candidatura #vp-btn-verificar:hover, #vp-form-candidatura #vp-btn-verificar:focus {
  background-color: #e9a324; color: #fff; box-shadow: 0 12px 26px -10px rgba(233, 163, 36, .85);
}
#vp-form-candidatura #vp-btn-continuar:active, #vp-form-candidatura #vp-btn-verificar:active, #vp-form-candidatura #vp-btn-enviar:active { transform: translateY(1px); }
#vp-form-candidatura #vp-btn-verificar { width: 100%; margin-top: 4px; }
/* a seta do "seguir em frente" */
#vp-form-candidatura #vp-btn-continuar::after, #vp-form-candidatura #vp-btn-verificar::after {
  content: ""; width: 19px; height: 19px; flex: none; transition: transform .2s cubic-bezier(.2, .7, .3, 1);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
}
#vp-form-candidatura #vp-btn-continuar:hover::after, #vp-form-candidatura #vp-btn-verificar:hover::after { transform: translateX(4px); }
#vp-form-candidatura #vp-btn-continuar:disabled, #vp-form-candidatura #vp-btn-verificar:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }
/* Continuar só fica desabilitado enquanto o código está sendo enviado: aí a seta vira o giro */
#vp-form-candidatura #vp-btn-continuar:disabled { cursor: progress; opacity: .85; }
#vp-form-candidatura #vp-btn-continuar:disabled::after {
  background: none; width: 17px; height: 17px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  animation: vp-gira .7s linear infinite;
}
@keyframes vp-gira { to { transform: rotate(360deg); } }

/* No passo do código quem manda é o "Confirmar código". O Continuar continua ali (é ele que
   reenvia se a pessoa corrigir o telefone ou o e-mail), mas como botão de contorno. */
#vp-form-candidatura #vp-btn-continuar.vp-fantasma {
  min-height: 44px; background-color: transparent; box-shadow: none; border: 1.5px solid rgba(255, 255, 255, .4); font-size: 14.5px; font-weight: 600;
}
#vp-form-candidatura #vp-btn-continuar.vp-fantasma:hover, #vp-form-candidatura #vp-btn-continuar.vp-fantasma:focus {
  background-color: rgba(255, 255, 255, .08); border-color: #fff; box-shadow: none;
}
#vp-form-candidatura #vp-btn-continuar.vp-fantasma::after { display: none; }
#vp-form-candidatura #vp-btn-continuar.vp-fantasma:disabled::after { display: block; }

/* ── Passo do código ── */
#vp-form-candidatura #vp-passo-codigo { width: calc(100% - 10px); margin-inline: 5px; padding: 18px 18px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
#vp-form-candidatura #vp-codigo-destino { font-size: 14px; line-height: 1.5; opacity: 1; color: rgba(255, 255, 255, .85); margin: 0 0 14px; width: 100%; }
/* seis caixas (js/vp-candidatura.js); o campo de verdade sai da tela, mas continua sendo o que a página lê */
#vp-form-candidatura .vp-otp { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr) 4px repeat(3, 1fr); gap: 8px; }
#vp-form-candidatura .vp-otp input {
  width: 100%; height: 58px; margin: 0; padding: 0; text-align: center; color: #fff; font-size: 25px; font-weight: 700; font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, .08); border: 1.5px solid rgba(255, 255, 255, .22); border-radius: 12px; caret-color: #feb735;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
#vp-form-candidatura .vp-otp input:nth-child(4) { grid-column: 5; }
#vp-form-candidatura .vp-otp input:focus { outline: 0; border-color: #feb735; box-shadow: 0 0 0 4px rgba(254, 183, 53, .2); }
#vp-form-candidatura .vp-otp input.cheio { border-color: rgba(254, 183, 53, .75); background: rgba(254, 183, 53, .14); }
#vp-form-candidatura .vp-otp.vp-invalido input { border-color: #ff8a7e; box-shadow: 0 0 0 3px rgba(255, 107, 94, .18); }
#vp-form-candidatura .vp-otp.vp-tremendo { animation: vp-shake .4s; }
#vp-form-candidatura #vp-codigo.vp-otp-origem { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; }
#vp-form-candidatura .vp-codigo-tempo { display: flex; align-items: center; gap: 8px; margin: 12px 0 12px; font-size: 13.5px; opacity: 1; color: rgba(255, 255, 255, .85); }
#vp-form-candidatura .vp-codigo-tempo::before {
  content: ""; flex: none; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd591' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center/contain no-repeat;
}
#vp-form-candidatura .vp-link-botao { margin-top: 14px; font-size: 13.5px; font-weight: 600; text-decoration: none; opacity: .9; border-bottom: 1px solid rgba(255, 255, 255, .4); padding: 2px 0; }
#vp-form-candidatura .vp-link-botao:hover:not([disabled]) { border-bottom-color: #feb735; color: #feb735; }

/* ── Teste de perfil: o dia em que foi feito, ao lado do "Refazer o teste" ── */
#vp-form-candidatura .vp-teste-data {
  display: inline-flex; align-items: center; gap: 7px; margin: 14px 0 0 14px;
  font-size: 13.5px; font-weight: 600; color: #c9f2d5; white-space: nowrap; font-variant-numeric: tabular-nums;
}
#vp-form-candidatura .vp-teste-data::before {
  content: ""; flex: none; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237ed996' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center/contain no-repeat;
}
@media (max-width: 480px) {
  #vp-form-candidatura .vp-teste-data { display: flex; margin: 12px 0 0; }   /* no celular vai para a linha de baixo */
}

/* ── Avisos ── */
#vp-form-candidatura #vp-erro, #vp-form-candidatura .vp-flash {
  width: calc(100% - 10px); display: flex; align-items: flex-start; gap: 10px; margin: 12px 5px 0; padding: 11px 14px; border-radius: 11px;
  background: rgba(255, 107, 94, .14); border: 1px solid rgba(255, 138, 126, .45); color: #ffe1dd; font-size: 14px; font-weight: 600; line-height: 1.45; opacity: 1;
}
#vp-form-candidatura .vp-flash { margin: 0 5px 16px; }
#vp-form-candidatura #vp-erro::before, #vp-form-candidatura .vp-flash::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffb3ab' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0Z'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E") center/contain no-repeat;
}
/* nota de privacidade: uma linha discreta, com cadeado, separada do formulário */
#vp-form-candidatura .vp-lgpd {
  display: block; position: relative; margin: 18px 5px 0; width: calc(100% - 10px); padding: 16px 0 0 26px;
  border-top: 1px solid rgba(255, 255, 255, .14); font-size: 12.5px; line-height: 1.55; opacity: 1; color: rgba(255, 255, 255, .7);
}
#vp-form-candidatura .vp-lgpd::before {
  content: ""; position: absolute; left: 0; top: 18px; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd591' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center/contain no-repeat;
}
#vp-form-candidatura .vp-lgpd a { color: #feb735; font-weight: 600; }

/* ── Telas estreitas ── */
@media (max-width: 767px) {
  .elementor-element-924d0a2 { padding: 26px 20px !important; }
  #vp-form-candidatura .vp-cab-titulo { font-size: 23px; }
  #vp-form-candidatura .vp-passos { gap: 7px; }
  #vp-form-candidatura .vp-passos li { font-size: 12px; gap: 6px; }
  #vp-form-candidatura .vp-passos li + li::before { width: 12px; }
  #vp-form-candidatura .vp-otp { gap: 6px; grid-template-columns: repeat(3, 1fr) 2px repeat(3, 1fr); }
  #vp-form-candidatura .vp-otp input { height: 52px; font-size: 22px; }
  #vp-form-candidatura #vp-passo-codigo { padding: 16px 14px 12px; }
}
@media (max-width: 360px) {
  #vp-form-candidatura .vp-passos li:not(.atual) span { display: none; }   /* só o passo atual mostra o nome */
}

@media (prefers-reduced-motion: reduce) {
  #vp-form-candidatura .vp-campo-ok::after, #vp-form-candidatura .vp-otp.vp-tremendo { animation: none; }
  #vp-form-candidatura .elementor-field-textual, #vp-form-candidatura .vp-otp input, #vp-form-candidatura .vp-passos li, #vp-form-candidatura .vp-passos b { transition: none; }
}
