/* ========== APPLY PAGES — CANDIDATURA ========== */

.apply-body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #07060d;
  color: #fff;
  min-height: 100vh;
}

/* Header minimalista */
.apply-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 6, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.apply-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.apply-header .logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.apply-back {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.apply-back:hover {
  color: #fff;
}

/* Main */
.apply-main {
  min-height: calc(100vh - 80px);
  padding: 64px 32px 96px;
}

/* ========== PORTA DE ENTRADA (gate) ========== */

.apply-gate {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px;
  overflow: hidden;
  text-align: center;
}

.apply-gate-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.apply-gate-orb-1 {
  width: 520px;
  height: 520px;
  background: #00bcd4;
  top: -120px;
  left: -180px;
}

.apply-gate-orb-2 {
  width: 480px;
  height: 480px;
  background: #26c6da;
  top: 200px;
  right: -180px;
  opacity: 0.25;
}

.apply-gate-orb-3 {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
  background: #00bcd4;
  bottom: -120px;
  left: 30%;
}

.apply-gate-container {
  position: relative;
  z-index: 1;
}

.apply-eyebrow {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #00bcd4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.apply-gate-title {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  background: linear-gradient(135deg, #fff 30%, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.apply-gate-message p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 auto 16px;
  max-width: 600px;
}

.apply-gate-message p + p {
  margin-top: 12px;
}

.apply-gate-list {
  list-style: none;
  padding: 0;
  margin: 48px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.apply-gate-list li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  text-align: left;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.apply-gate-list li:hover {
  border-color: rgba(0, 188, 212, 0.45);
  background: rgba(0, 188, 212, 0.05);
}

.apply-gate-list-num {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #00bcd4;
  min-width: 36px;
  letter-spacing: -0.02em;
}

.apply-gate-list strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.apply-gate-list span {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.apply-gate-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
  justify-content: center;
}

.btn-gate-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #00141a;
  background: linear-gradient(135deg, #00dcff 0%, #00bcd4 50%, #0097a7 100%);
  padding: 16px 36px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 18px rgba(0, 220, 255, 0.35);
}

.btn-gate-primary:hover {
  background: linear-gradient(135deg, #4be8ff 0%, #00cce8 50%, #00a5b8 100%);
  transform: scale(1.04);
  box-shadow: 0 0 28px rgba(0, 220, 255, 0.55);
}

.btn-gate-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  padding: 16px 28px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-gate-secondary:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.apply-gate-note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 28px;
}

.apply-gate-note a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ========== FORMULÁRIO ========== */

.apply-section {
  max-width: 880px;
  margin: 0 auto;
}

.apply-container {
  padding: 24px 0;
}

.apply-container-narrow {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 64px 0;
}

.apply-intro {
  margin-bottom: 56px;
}

.apply-title {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 16px 0 16px;
  color: #fff;
}

.apply-subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  max-width: 580px;
  margin: 0;
}

.apply-form {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.form-group {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 32px;
}

.form-group-title {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.form-group-hint {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 24px;
  line-height: 1.5;
}

.form-group-title + .form-row,
.form-group-title + .form-field {
  margin-top: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.005em;
}

.form-field label .req {
  color: #ff5a5a;
  font-weight: 700;
  margin-left: 2px;
}

.form-field input,
.form-field textarea {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  width: 100%;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(0, 188, 212, 0.6);
  background: rgba(255, 255, 255, 0.06);
}

/* borda vermelha removida — só fica vermelho ao tentar enviar (.form-field.error) */
.form-field.error input,
.form-field.error textarea,
.form-field.error select,
.form-field.error .input-prefix-group {
  border-color: rgba(255, 80, 80, 0.5);
}

/* === campo com prefixo fixo (@) === */
.input-prefix-group {
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.input-prefix-group:focus-within {
  border-color: rgba(0, 188, 212, 0.6);
  background: rgba(255, 255, 255, 0.06);
}
.input-prefix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  font-weight: 500;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
}
.input-prefix-group input {
  flex: 1;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 14px 14px !important;
  color: #fff;
  font-size: 15px;
  outline: none;
  min-width: 0;
}

/* === WhatsApp com DDI === */
.whatsapp-group {
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.whatsapp-group:focus-within {
  border-color: rgba(0, 188, 212, 0.6);
  background: rgba(255, 255, 255, 0.06);
}
.whatsapp-ddi {
  background: rgba(255, 255, 255, 0.05);
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 15px;
  padding: 0 32px 0 14px;
  min-width: 110px;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='rgba(255,255,255,0.5)' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.whatsapp-ddi option {
  background: #14121f;
  color: #fff;
}
.whatsapp-group input {
  flex: 1;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 14px 14px !important;
  color: #fff;
  font-size: 15px;
  outline: none;
  min-width: 0;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
}

.btn-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #00141a;
  background: linear-gradient(135deg, #00dcff 0%, #00bcd4 50%, #0097a7 100%);
  padding: 16px 40px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  min-width: 220px;
  box-shadow: 0 0 18px rgba(0, 220, 255, 0.35);
}

.btn-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #4be8ff 0%, #00cce8 50%, #00a5b8 100%);
  transform: scale(1.03);
  box-shadow: 0 0 28px rgba(0, 220, 255, 0.55);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-submit.loading .btn-spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-disclaimer {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.form-error {
  font-size: 14px;
  color: #ff5a5a;
  background: rgba(255, 90, 90, 0.08);
  border: 1px solid rgba(255, 90, 90, 0.2);
  border-radius: 12px;
  padding: 14px 18px;
  display: none;
}

.form-error.visible {
  display: block;
}

/* ========== TELA DE SUCESSO ========== */

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(0, 188, 212, 0.15);
  border: 1px solid rgba(0, 188, 212, 0.4);
  color: #00bcd4;
  margin-bottom: 28px;
}

.success-title {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: clamp(32px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 20px;
}

.success-message {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  max-width: 520px;
  margin: 0 auto 24px;
}

.success-signature {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 40px;
  letter-spacing: 0.02em;
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-back-home:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

/* ========== RESPONSIVO ========== */

@media (max-width: 720px) {
  .apply-header-inner {
    padding: 14px 20px;
  }

  .apply-main {
    padding: 32px 20px 64px;
  }

  .form-group {
    padding: 24px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .apply-gate-list li {
    padding: 18px 18px;
  }

  .apply-gate-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-gate-primary,
  .btn-gate-secondary {
    width: 100%;
  }

  .btn-submit {
    width: 100%;
  }
}

/* ============================================
   EFEITOS APLICADOS NA PÁGINA DE CANDIDATURA
   ============================================ */

/* Garantir que apply-main fique sobre o algo-fx */
.apply-main.has-algo-bg {
  position: relative;
}
.apply-main.has-algo-bg > .algo-fx,
.apply-main.has-algo-bg::before,
.apply-main.has-algo-bg::after {
  z-index: 0;
}
.apply-main.has-algo-bg > *:not(.algo-fx) {
  position: relative;
  z-index: 1;
}

/* Brilho leve e borda animada nos cards 01/02/03 */
.apply-gate-list li {
  position: relative;
  overflow: hidden;
}
.apply-gate-list li::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(0, 220, 255, 0.08) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: gate-card-shine 5.5s ease-in-out infinite;
  opacity: 0.7;
}
.apply-gate-list li:nth-child(1)::after { animation-delay: 0s; }
.apply-gate-list li:nth-child(2)::after { animation-delay: 1.8s; }
.apply-gate-list li:nth-child(3)::after { animation-delay: 3.6s; }
@keyframes gate-card-shine {
  0%, 100% { background-position: 200% 0; opacity: 0.4; }
  50%      { background-position: -100% 0; opacity: 0.9; }
}
.apply-gate-list-num {
  text-shadow: 0 0 12px rgba(0, 220, 255, 0.45);
}

/* Botão Continuar candidatura: borda cyan girando + brilho */
@property --gate-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.btn-gate-primary {
  position: relative;
  isolation: isolate;
}
.btn-gate-primary::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  padding: 2px;
  background: conic-gradient(from var(--gate-angle), transparent 0deg, rgba(0, 220, 255, 0.95) 60deg, rgba(0, 220, 255, 0) 180deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  filter: drop-shadow(0 0 5px rgba(0, 220, 255, 0.7));
  animation: gate-border-rotate 5s linear infinite;
  pointer-events: none;
  z-index: 2;
}
.btn-gate-secondary {
  position: relative;
  isolation: isolate;
}
.btn-gate-secondary::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  padding: 1px;
  background: conic-gradient(from calc(var(--gate-angle) + 180deg), transparent 0deg, rgba(0, 220, 255, 0.7) 60deg, rgba(0, 220, 255, 0) 180deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  filter: drop-shadow(0 0 4px rgba(0, 220, 255, 0.5));
  animation: gate-border-rotate 5s linear infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes gate-border-rotate {
  to { --gate-angle: 360deg; }
}

/* Brilho de fundo pulsando atrás do título */
.apply-eyebrow {
  position: relative;
  text-shadow: 0 0 10px rgba(0, 188, 212, 0.55);
  animation: gate-eyebrow-pulse 2.4s ease-in-out infinite;
}
@keyframes gate-eyebrow-pulse {
  0%, 100% { text-shadow: 0 0 8px rgba(0, 188, 212, 0.4); opacity: 0.95; }
  50%      { text-shadow: 0 0 18px rgba(0, 220, 255, 0.85); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .apply-gate-list li::after,
  .btn-gate-primary::before,
  .btn-gate-secondary::before,
  .apply-eyebrow { animation: none !important; }
}

/* ============================================
   EFEITOS NO FORMULÁRIO (candidatura-form.html)
   ============================================ */

/* Borda cyan girando no botão "Enviar candidatura" */
.btn-submit {
  position: relative;
  isolation: isolate;
}
.btn-submit::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  padding: 2px;
  background: conic-gradient(from var(--gate-angle), transparent 0deg, rgba(0, 220, 255, 0.95) 60deg, rgba(0, 220, 255, 0) 180deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  filter: drop-shadow(0 0 5px rgba(0, 220, 255, 0.7));
  animation: gate-border-rotate 5s linear infinite;
  pointer-events: none;
  z-index: 2;
}

/* Brilho leve passando nos campos quando focados */
.apply-form input:focus,
.apply-form textarea:focus {
  box-shadow: 0 0 0 1px rgba(0, 220, 255, 0.55), 0 0 18px rgba(0, 188, 212, 0.25);
}

/* Brilho cyan passando pelos titulos das etapas */
.form-group-title {
  position: relative;
  text-shadow: 0 0 12px rgba(0, 188, 212, 0.35);
}

/* Botão voltar pra home (tela de sucesso) com borda animada */
.btn-back-home {
  position: relative;
  isolation: isolate;
}
.btn-back-home::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  padding: 1px;
  background: conic-gradient(from calc(var(--gate-angle) + 180deg), transparent 0deg, rgba(0, 220, 255, 0.7) 60deg, rgba(0, 220, 255, 0) 180deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  filter: drop-shadow(0 0 4px rgba(0, 220, 255, 0.5));
  animation: gate-border-rotate 5s linear infinite;
  pointer-events: none;
  z-index: 2;
}

/* Brilho pulsando atrás do icone de sucesso */
.success-icon {
  position: relative;
}
.success-icon::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 220, 255, 0.35) 0%, rgba(0, 188, 212, 0) 70%);
  animation: success-glow 2.4s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}
@keyframes success-glow {
  0%, 100% { opacity: 0.5; transform: scale(0.95); }
  50%      { opacity: 1;   transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-submit::before,
  .btn-back-home::before,
  .success-icon::after { animation: none !important; }
}
