/* ==========================================================================
   KUMA STUDIOS — trabalhe.css
   Complementa analise.css com os componentes extras do formulário
   "Trabalhe Conosco": múltiplos campos por etapa, seleção múltipla,
   checkbox, select e upload de arquivo.
   ========================================================================== */

/* Fonte do formulário: Inter no lugar do DM Sans/DM Mono do analise.css --- */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Várias perguntas na mesma etapa ------------------------------------------ */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 24px;
}

.field-group .field { margin-top: 0; }

.field--options label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 8px;
}

/* Opções em "chips" (mais compactas que o grid cheio do analise.css) ------- */
.options--chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.options--chips .option {
  width: auto;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  text-align: center;
}

.options.is-invalid {
  outline: 2px solid #ff4d6d;
  outline-offset: 6px;
  border-radius: 14px;
}

/* Select (UF) --------------------------------------------------------------- */
.field select {
  width: 100%;
  height: 54px;
  padding: 14px 16px;
  background: var(--c-input);
  border: 2px solid var(--c-border);
  border-radius: 12px;
  color: var(--c-text);
  font-size: 16px;
  font-family: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23737373'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  transition: border-color 0.25s var(--ease);
}
.field select:focus { outline: none; border-color: var(--c-accent); }
.field select.is-invalid { border-color: #ff4d6d; }
.field select option { background: var(--c-input); color: var(--c-text); }

/* Checkbox (maior de idade / consentimento) --------------------------------- */
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.check-row input {
  position: absolute;
  opacity: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.check-box {
  display: inline-block;
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 2px solid var(--c-border);
  border-radius: 6px;
  background: var(--c-input);
  position: relative;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.check-row input:checked ~ .check-box {
  border-color: var(--c-accent);
  background: var(--c-accent);
}

.check-row input:checked ~ .check-box::after {
  content: '';
  position: absolute;
  left: 6px; top: 2px;
  width: 6px; height: 11px;
  border: solid var(--c-bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.check-row input:focus-visible ~ .check-box {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

.check-text {
  font-size: 15px;
  line-height: 1.45;
  color: var(--c-text);
}

.field--check.is-invalid .check-box { border-color: #ff4d6d; }

/* Upload de arquivo (currículo) --------------------------------------------- */
.file-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.file-btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--c-card);
  border: 2px solid var(--c-gray);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  cursor: pointer;
  transition: border-color 0.25s var(--ease);
}
.file-btn:hover { border-color: #4d4d4d; }

.file-name {
  font-size: 13.5px;
  color: var(--c-muted);
}

/* Overlay de envio ------------------------------------------------------------ */
.sending-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 15, 15, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: overlay-in 0.25s var(--ease) both;
}
.sending-overlay[hidden] { display: none; }

.sending-overlay__card {
  max-width: 340px;
  text-align: center;
  outline: none;
}

.sending-spinner {
  width: 52px;
  height: 52px;
  margin: 0 auto 22px;
  border: 3px solid rgba(245, 26, 119, 0.2);
  border-top-color: var(--c-accent);
  border-radius: 50%;
  animation: sending-spin 0.8s linear infinite;
}

.sending-title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.sending-hint {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--c-muted);
}

body.is-sending { overflow: hidden; }

@keyframes sending-spin { to { transform: rotate(360deg); } }
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .sending-spinner { animation: none !important; }
}

/* Intro ---------------------------------------------------------------------*/
.step__hint { margin-bottom: 4px; }

/* Mobile ---------------------------------------------------------------------*/
@media (max-width: 600px) {
  .field-group { gap: 22px; margin-top: 20px; }
  .options--chips .option { padding: 9px 16px; font-size: 14px; }
}
