/* Configurações Globais */
:root {
  --gold: #d4af37;
  --gold-dark: #b8932f;
  --black: #0d0d0d;
  --black-soft: #151515;
  --card: #1b1b1b;
  --text: #dddddd;
  --border: rgba(212, 175, 175, 0.18);
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: radial-gradient(circle at top, rgba(212, 175, 55, 0.08), transparent 20%), #0a0a0a;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  width: min(92%, 800px);
  margin: 0 auto;
  padding: 40px 0 80px;
}

/* Header / Logo */
header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-text {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.main-name {
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.sub-name {
  color: #888;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 10px;
}

.hero p {
  color: #aaa;
}

/* Card do Formulário */
.form-card {
  background: var(--card);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin: 30px 0 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
}

/* Grupos de Input */
.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #eee;
}

label span { color: var(--gold); }

input, select {
  width: 100%;
  padding: 12px 15px;
  background: #252525;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  background: #2a2a2a;
}

/* Dinâmica de Funcionários (Vidas) */
.funcionario-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  border-left: 4px solid var(--gold);
  position: relative;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-add {
  background: transparent;
  color: var(--gold);
  border: 1px dashed var(--gold);
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 30px;
  transition: 0.3s;
}

.btn-add:hover {
  background: rgba(212, 175, 55, 0.1);
}

.btn-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff5252;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  cursor: pointer;
  text-transform: uppercase;
}

.idade-info {
  display: block;
  font-size: 0.75rem;
  color: var(--gold);
  margin-top: 5px;
  font-weight: 600;
}

/* Ícones de Validação */
.v-icon {
  position: absolute;
  right: 12px;
  top: 38px;
  color: #4CAF50;
  font-weight: bold;
}

/* LGPD */
.lgpd-box {
  background: rgba(255,255,255,0.02);
  padding: 15px;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 30px 0;
}

.lgpd-box input {
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
}

.lgpd-box label {
  font-size: 0.8rem;
  color: #999;
  font-weight: 400;
  margin: 0;
}

/* Botão Enviar */
.btn-submit {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #111;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.2s;
}

.btn-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-submit:disabled {
  background: #444;
  color: #888;
  cursor: not-allowed;
}

/* Sucesso */
.hidden { display: none !important; }

.success-card {
  text-align: center;
  padding: 40px 20px;
}

.success-card h2 {
  color: var(--gold);
  margin-bottom: 15px;
}

.success-card p { color: #888; }

/* Grupo de Radios para Sexo */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}

.radio-group input {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
}

/* Exibição da Idade Discreta */
.idade-display {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 600;
    margin-top: 4px;
    min-height: 1rem;
    transition: opacity 0.3s;
    opacity: 0;
}

/* Botão de Exclusão Corrigido */
.btn-remove {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4444;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    z-index: 5;
    transition: background 0.2s;
}

.btn-remove:hover {
    background: #cc0000;
}

.funcionario-card {
    position: relative;
    transition: all 0.3s ease;
}
.brand-text { display: flex; flex-direction: column; align-items: center; text-decoration: none; }

