:root {
  --preto: #060606;
  --dourado: #513704;
  --laranja: #FFA300;
  --texto-claro: #f3f3f3;
  --cinza: #1a1a1a;
  --cinza-borda: #2a2a2a;
  --input-bg: #0f0f0f;
  --shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

/* Modo claro opcional */
html[data-theme="light"] {
  --preto: #fefefe;
  --dourado: #b8893b;
  --laranja: #ff9800;
  --texto-claro: #202020;
  --cinza: #f5f5f5;
  --cinza-borda: #d0d0d0;
  --input-bg: #ffffff;
  --shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

body {
  background-color: var(--preto);
  color: var(--texto-claro);
  font-family: "Poppins", sans-serif;
  margin: 0;
  transition: background 0.4s, color 0.4s;
}

/* HEADER CENTRALIZADO */
.ts-header {
  display: flex;
  justify-content: center;   /* Centraliza horizontalmente */
  align-items: center;       /* Centraliza verticalmente */
  background: var(--preto);
  padding: 1rem 0;
  border-bottom: 1px solid var(--dourado);
  box-shadow: var(--shadow);
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ts-header .logo {
  height: 70px;               /* Tamanho da logo */
  object-fit: contain;
  transition: transform 0.3s ease;
}

.ts-header .logo:hover {
  transform: scale(1.05);     /* Efeito leve de destaque */
}

.theme-toggle {
  border: 1px solid var(--laranja);
  background: transparent;
  color: var(--laranja);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 500;
}
.theme-toggle:hover {
  background: var(--laranja);
  color: var(--preto);
}

/* CONTAINER PRINCIPAL */
.main-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 140px);
  padding: 2rem 1rem;
}
.form-card {
  background: var(--cinza);
  border: 1px solid var(--dourado);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 2.5rem;
  max-width: 700px;
  width: 100%;
}

/* TITULOS */
.form-title {
  color: var(--laranja);
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.form-subtitle {
  color: #bbb;
  margin-bottom: 1.5rem;
}

/* CAMPOS */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.field input,
.field select,
.field textarea {
  background: var(--input-bg);
  color: var(--texto-claro);
  border: 1px solid var(--cinza-borda);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  transition: 0.3s;
}
.field select option {
  background: var(--preto);
  color: var(--texto-claro);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--laranja);
  box-shadow: 0 0 10px var(--laranja);
}

/* GRID */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

/* GRUPOS DINÂMICOS */
.group {
  background: #0b0b0b;
  border: 1px solid var(--dourado);
  padding: 1.2rem;
  border-radius: 12px;
  margin-top: 1rem;
}
.group h2 {
  color: var(--laranja);
  margin: 0 0 0.8rem 0;
  font-size: 1.1rem;
}
/* checkbox grid */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.4rem 1rem;
  margin-bottom: 0.6rem;
}

.hidden {
  display: none !important;
}

/* BOTÃO */
.btn-submit {
  background: var(--laranja);
  color: var(--preto);
  border: none;
  font-weight: 600;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(255, 163, 0, 0.4);
}
.btn-submit:hover {
  background: var(--dourado);
  box-shadow: 0 0 20px rgba(255, 163, 0, 0.6);
  transform: scale(1.03);
}

/* TEXTO AUXILIAR */
.hint {
  color: #aaa;
  font-size: 0.85rem;
  margin-top: 1.2rem;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 1rem;
  color: #777;
  font-size: 0.85rem;
  border-top: 1px solid var(--dourado);
}

/* SCROLLBARS E SELETORES */
select,
input,
textarea {
  scrollbar-color: var(--laranja) var(--preto);
  scrollbar-width: thin;
}

/* PLACEHOLDER */
::placeholder {
  color: #999;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .form-card {
    padding: 1.6rem 1.4rem;
    max-width: 95%;
  }
  .ts-header {
    padding: 0.6rem 1rem;
  }
  .ts-header .logo {
    height: 48px;
  }
}
