/* ============================================================
   M2 Drones — Formulário Trabalhe Conosco
   ============================================================ */

/* ── Hero ───────────────────────────────────────────────────── */
.m2-tc-hero {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  min-height: 420px;
  background: url('/wp-content/uploads/2026/07/IMG_8131.jpg') center center/cover no-repeat;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -10px;
}

.m2-tc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 22, 10, 0.68);
  z-index: 0;
}

.m2-tc-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 24px;
  max-width: 800px;
}

.m2-tc-hero-inner .m2-sobre-tag {
  display: inline-block;
  background: rgba(140, 198, 63, 0.18);
  color: #a8d455;
  border: 1px solid rgba(140, 198, 63, 0.35);
  border-radius: 20px;
  padding: 4px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.m2-tc-hero-inner h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 20px;
  line-height: 1.15;
}

.m2-tc-hero-inner p {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  max-width: 620px;
  margin: 0 auto;
}

/* Ocultar título do tema */
.page-id-1051 .entry-title,
.page-id-1051 h1.page-title,
.page-id-1051 .entry-header {
  display: none !important;
}

/* Remover faixa branca no topo */
.page-id-1051 .entry-content,
.page-id-1051 .entry-content > *:first-child {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.m2-tc-wrap,
.entry-title,
h1.page-title,
.elementor-heading-title {
  text-align: center;
}

.m2-tc-wrap {
  max-width: 720px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: 'Poppins', sans-serif;
}

.m2-tc-intro {
  font-size: 15px;
  color: #4a6042;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ── Mensagens ─────────────────────────────────────────────── */
.m2-tc-success {
  background: #edfae6;
  border-left: 4px solid #4caf28;
  border-radius: 8px;
  padding: 20px 24px;
  font-size: 15px;
  color: #2a6018;
  line-height: 1.6;
}

.m2-tc-error {
  background: #fdf0f0;
  border-left: 4px solid #e04040;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 14px;
  color: #a02020;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ── Grid do formulário ────────────────────────────────────── */
.m2-tc-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.m2-tc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.m2-tc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.m2-tc-full {
  grid-column: 1 / -1;
}

/* ── Labels ────────────────────────────────────────────────── */
.m2-tc-field label {
  font-size: 13px;
  font-weight: 600;
  color: #1c3018;
  letter-spacing: 0.02em;
}

.m2-tc-field label span {
  color: #4caf28;
}

.m2-tc-optional {
  font-weight: 400 !important;
  color: #7a8f74 !important;
  font-size: 12px !important;
}

/* ── Inputs e Selects ──────────────────────────────────────── */
.m2-tc-field input[type="text"],
.m2-tc-field input[type="email"],
.m2-tc-field input[type="tel"],
.m2-tc-field input[type="date"],
.m2-tc-field select {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #1c2b18;
  background: #fff;
  border: 1.5px solid #c8ddc4;
  border-radius: 8px;
  padding: 11px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  appearance: none;
  -webkit-appearance: none;
}

.m2-tc-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234caf28' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.m2-tc-field input:focus,
.m2-tc-field select:focus {
  border-color: #4caf28;
  box-shadow: 0 0 0 3px rgba(76,175,40,0.15);
}

.m2-tc-field input::placeholder {
  color: #a8bea4;
}

/* ── Upload de currículo ───────────────────────────────────── */
.m2-tc-file-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

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

.m2-tc-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid #4caf28;
  color: #3a8d1e;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}

.m2-tc-file-btn:hover {
  background: #4caf28;
  color: #fff;
}

.m2-tc-file-name {
  font-size: 13px;
  color: #7a8f74;
  font-style: italic;
}

/* ── Campo CAAR condicional ────────────────────────────────── */
.m2-tc-caar-wrap {
  background: #f3faf0;
  border: 1.5px solid #c8ddc4;
  border-radius: 10px;
  padding: 18px 20px;
}

.m2-tc-caar-wrap > label {
  font-size: 13px;
  font-weight: 600;
  color: #1c3018;
  margin-bottom: 12px;
  display: block;
}

.m2-tc-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.m2-tc-radio {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 400;
  color: #2c4a24;
  cursor: pointer;
  padding: 8px 16px;
  background: #fff;
  border: 1.5px solid #c8ddc4;
  border-radius: 8px;
  transition: border-color 0.18s, background 0.18s;
  user-select: none;
}

.m2-tc-radio input[type="radio"] {
  display: none;
}

.m2-tc-radio-mark {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  border: 2px solid #c8ddc4;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s;
}

.m2-tc-radio-mark::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf28;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.15s, transform 0.15s;
}

.m2-tc-radio input[type="radio"]:checked + .m2-tc-radio-mark {
  border-color: #4caf28;
}

.m2-tc-radio input[type="radio"]:checked + .m2-tc-radio-mark::after {
  opacity: 1;
  transform: scale(1);
}

.m2-tc-radio:has(input:checked) {
  border-color: #4caf28;
  background: #edfae6;
  color: #1c3018;
  font-weight: 500;
}

/* ── Botão enviar ──────────────────────────────────────────── */
.m2-tc-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #1a56db !important;
  color: #fff !important;
  border: none !important;
  border-radius: 28px;
  padding: 14px 36px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(26,86,219,0.35);
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
  align-self: flex-start;
}

.m2-tc-submit:hover {
  background: #1241a8 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26,86,219,0.45);
}

.m2-tc-submit:active {
  transform: translateY(0);
}

/* ── Responsivo ────────────────────────────────────────────── */
@media (max-width: 600px) {
  .m2-tc-grid {
    grid-template-columns: 1fr;
  }
  .m2-tc-submit {
    width: 100%;
  }
}

/* ── LGPD / Aviso de Privacidade ────────────────────────────── */
.m2-tc-lgpd {
  background: #f0f5eb;
  border: 1px solid #c8dea8;
  border-left: 4px solid #5a9e1a;
  border-radius: 10px;
  padding: 28px 28px 24px;
  margin: 32px 0 24px;
}

.m2-tc-lgpd-titulo {
  font-size: 0.95rem;
  font-weight: 800;
  color: #2d5a10;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 14px;
}

.m2-tc-lgpd-texto {
  font-size: 0.86rem;
  color: #3a4a30;
  line-height: 1.65;
  margin: 0 0 10px;
}

.m2-tc-lgpd-texto:last-of-type {
  margin-bottom: 0;
}

.m2-tc-lgpd-link {
  color: #2d7a0a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.m2-tc-lgpd-link:focus {
  outline: 2px solid #5a9e1a;
  outline-offset: 2px;
  border-radius: 2px;
}

.m2-tc-lgpd-checks {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Wrapper de cada checkbox */
.m2-tc-check-wrap {
  border-radius: 8px;
  padding: 14px 16px;
}

.m2-tc-check-obrigatorio {
  background: #fff;
  border: 1px solid #b8d898;
}

.m2-tc-check-opcional {
  background: #f8fbf4;
  border: 1px dashed #b8d898;
}

/* Label clicável */
.m2-tc-check-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.86rem;
  color: #2a3a20;
  line-height: 1.55;
  font-weight: normal;
  margin: 0;
}

/* Esconde o checkbox nativo mas mantém acessível */
.m2-tc-check-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}

/* Caixa visual customizada */
.m2-tc-check-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #7ab840;
  border-radius: 4px;
  background: #fff;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.m2-tc-check-label input[type="checkbox"]:checked + .m2-tc-check-box {
  background: #5a9e1a;
  border-color: #5a9e1a;
}

.m2-tc-check-label input[type="checkbox"]:checked + .m2-tc-check-box::after {
  content: '';
  display: block;
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* Foco visível acessível */
.m2-tc-check-label:focus-within .m2-tc-check-box {
  outline: 2px solid #5a9e1a;
  outline-offset: 2px;
}

.m2-tc-check-texto {
  flex: 1;
}

/* Asterisco obrigatório */
.m2-tc-check-req {
  color: #c0392b;
  font-weight: 900;
  margin-left: 2px;
}

/* Label opcional */
.m2-tc-check-opt {
  color: #6a7a60;
  font-style: italic;
  font-size: 0.82em;
  margin-left: 4px;
}

/* Responsivo LGPD */
@media (max-width: 600px) {
  .m2-tc-lgpd {
    padding: 20px 16px 18px;
  }
  .m2-tc-check-wrap {
    padding: 12px 12px;
  }
}
