/* ============================================================
   TRABALHE CONOSCO — Transformare Bambini
   Todas as classes usam o prefixo "tc-" para não conflitar
   com o CSS existente do site (style.css, popup.css, etc.)
   ============================================================ */

:root {
  --tc-primary: #149E53;
  --tc-primary-dark: #0d7a3f;
  --tc-navy: #284B8B;
  --tc-crimson: #EC305A;
  --tc-bg-soft: #f5f6fa;
  --tc-text: #1a2a3a;
  --tc-text-light: #5a6878;
  --tc-border: #d5dee7;
  --tc-radius-lg: 24px;
  --tc-radius-md: 14px;
  --tc-shadow: 0 10px 30px rgba(26, 42, 58, 0.08);
}

/* ---------- Hero ---------- */
.tc-hero {
  background: linear-gradient(135deg, var(--tc-navy) 0%, #1a2a3a 100%);
  padding: 72px 20px 90px;
  text-align: center;
  color: #fff;
}

.tc-hero__eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.tc-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}

.tc-hero__subtitle {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

/* ---------- Benefícios ---------- */
.tc-benefits {
  background: var(--tc-bg-soft);
  padding: 50px 20px 10px;
}

.tc-benefits__grid {
  max-width: 1040px;
  margin: -60px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tc-benefit-card {
  background: #fff;
  border-radius: var(--tc-radius-md);
  box-shadow: var(--tc-shadow);
  padding: 26px 20px;
  text-align: center;
  border: 1px solid var(--tc-border);
}

.tc-benefit-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: #e9f7ef;
  color: var(--tc-primary);
}

.tc-benefit-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--tc-text);
  margin-bottom: 6px;
}

.tc-benefit-card p {
  font-size: 0.88rem;
  color: var(--tc-text-light);
  margin: 0;
  line-height: 1.5;
}

/* ---------- Seção do formulário ---------- */
.tc-section {
  background: var(--tc-bg-soft);
  padding: 60px 20px 90px;
}

.tc-form-wrapper {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--tc-radius-lg);
  box-shadow: var(--tc-shadow);
  border: 1px solid var(--tc-border);
  padding: clamp(24px, 5vw, 48px);
}

.tc-form-wrapper__title {
  text-align: center;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 800;
  color: var(--tc-text);
  margin-bottom: 6px;
}

.tc-form-wrapper__subtitle {
  text-align: center;
  color: var(--tc-text-light);
  font-size: 0.95rem;
  margin-bottom: 30px;
}

/* ---------- Campos ---------- */
.tc-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.tc-field {
  margin-bottom: 20px;
}

.tc-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--tc-text);
  margin-bottom: 7px;
}

.tc-field label .tc-optional {
  font-weight: 400;
  color: var(--tc-text-light);
  font-size: 0.78rem;
}

.tc-field input[type="text"],
.tc-field input[type="email"],
.tc-field input[type="tel"],
.tc-field select,
.tc-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--tc-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--tc-text);
  background: #fbfcfe;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tc-field input:focus,
.tc-field select:focus,
.tc-field textarea:focus {
  outline: none;
  border-color: var(--tc-primary);
  box-shadow: 0 0 0 3px rgba(20, 158, 83, 0.15);
}

.tc-field textarea {
  resize: vertical;
  min-height: 120px;
}

.tc-field small.tc-error {
  display: none;
  color: var(--tc-crimson);
  font-size: 0.78rem;
  margin-top: 6px;
}

.tc-field.tc-field--invalid input,
.tc-field.tc-field--invalid select,
.tc-field.tc-field--invalid textarea {
  border-color: var(--tc-crimson);
}

.tc-field.tc-field--invalid small.tc-error {
  display: block;
}

/* ---------- Upload de currículo ---------- */
.tc-upload {
  border: 2px dashed var(--tc-border);
  border-radius: var(--tc-radius-md);
  background: #fbfcfe;
  padding: 22px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tc-upload:hover,
.tc-upload.tc-upload--dragover {
  border-color: var(--tc-primary);
  background: #f1fbf5;
}

.tc-upload input[type="file"] {
  display: none;
}

.tc-upload__icon {
  font-size: 1.8rem;
  color: var(--tc-primary);
  margin-bottom: 8px;
  display: block;
}

.tc-upload__text {
  font-size: 0.9rem;
  color: var(--tc-text);
  font-weight: 600;
}

.tc-upload__hint {
  font-size: 0.78rem;
  color: var(--tc-text-light);
  margin-top: 4px;
}

.tc-upload__filename {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--tc-primary-dark);
  font-weight: 600;
  word-break: break-all;
}

/* ---------- Honeypot (campo armadilha anti-spam, invisível para humanos) ---------- */
.tc-honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* ---------- reCAPTCHA ---------- */
.tc-recaptcha {
  display: flex;
  justify-content: center;
  margin: 10px 0 24px;
}

/* ---------- Botão enviar ---------- */
.tc-submit-btn {
  width: 100%;
  background: linear-gradient(145deg, var(--tc-primary) 0%, var(--tc-primary-dark) 100%);
  color: #fff;
  border: none;
  padding: 15px 20px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(20, 158, 83, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tc-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(20, 158, 83, 0.4);
}

.tc-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Mensagens de feedback (sucesso / erro) ---------- */
.tc-alert {
  display: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.92rem;
  margin-bottom: 22px;
  align-items: flex-start;
  gap: 10px;
}

.tc-alert.tc-alert--active {
  display: flex;
}

.tc-alert--success {
  background: #e9f7ef;
  color: #0d7a3f;
  border: 1px solid #b7e4c7;
}

.tc-alert--danger {
  background: #fdeef2;
  color: #a4123a;
  border: 1px solid #f3b9c6;
}

/* ---------- Responsivo ---------- */
@media (max-width: 768px) {
  .tc-benefits__grid {
    grid-template-columns: 1fr;
    margin-top: -40px;
  }

  .tc-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .tc-hero {
    padding: 56px 16px 80px;
  }
}