/* ====== TOKENS DE COR (Viva Mais) ====== */
:root {
  --vinho: #5a2e2e;
  --amarelo-escuro: #ba7b0b;
  --amarelo-claro: #d4a437;
  --branco: #f3f1ee;
  --creme: #d8cfc4;
  --preto: #1a1a1a; /* PLACEHOLDER: valor "Preto" enviado era igual ao "Creme" (#d8cfc4), ajuste aqui quando tiver o hex correto */
}

* { box-sizing: border-box; }

.main-evento {
  font-family: "figtree", sans-serif;
  background-image: linear-gradient(to right, #5a2e2e, transparent 100%), url("../images/vivamaisrun_inscricao.png");
  background-size: cover;
  background-position: center;
  min-height: 92vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px 16px;
}

.card {
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  border-radius: 14px;
  padding: 36px;
  border: 1px solid var(--creme);
  box-shadow: 0 6px 24px rgba(90, 46, 46, 0.08);
}

.card h1 {
  font-family: "figtree", sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 4px;
  color: var(--vinho);
}

.card p.subtitle {
  font-size: 14px;
  color: #7a7168;
  margin: 0 0 24px;
}

.card label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--preto);
  margin-bottom: 6px;
  margin-top: 18px;
}

.card input[type="text"],
.card input[type="email"],
.card input[type="tel"],
.card select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--creme);
  border-radius: 8px;
  font-family: "figtree", sans-serif;
  font-size: 14px;
  color: var(--preto);
  background: var(--branco);
}

.card input:focus,
.card select:focus {
  outline: none;
  border-color: var(--amarelo-escuro);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(186, 123, 11, 0.15);
}

.card select:disabled {
  opacity: 0.6;
}

.size-options {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.size-options label {
  margin: 0;
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border: 1px solid var(--creme);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--preto);
}

.size-options input {
  display: none;
}

.size-options label:has(input:checked) {
  border-color: var(--vinho);
  background: var(--vinho);
  color: var(--branco);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.checkbox-row--top {
  margin-top: 18px;
}

.checkbox-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--vinho);
}

.checkbox-row label {
  margin: 0;
  font-weight: 400;
  font-size: 14px;
  color: var(--preto);
}

.required {
  color: var(--amarelo-escuro);
  margin-left: 2px;
}

.hint {
  font-size: 11px;
  font-weight: 400;
  color: #948b80;
  margin-top: 12px;
  margin-bottom: -8px;
}

#bloco-contato.oculto {
  display: none;
}

.msg-cadastro {
  font-style: italic;
  font-size: 13px;
  color: var(--vinho);
  background: var(--creme);
  padding: 10px 12px;
  border-radius: 8px;
  margin-top: 14px;
  line-height: 1.4;
}

.form-msg {
  font-size: 13px;
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 8px;
}

.form-msg.success {
  background: #eafaf0;
  color: #1a7f4b;
}

.form-msg.error {
  background: #fdeceb;
  color: #c0392b;
}

.card button {
  width: 100%;
  margin-top: 20px;
  padding: 13px;
  background: var(--vinho);
  color: var(--branco);
  border: none;
  border-radius: 8px;
  font-family: "figtree", sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.card button:hover {
  background: var(--amarelo-escuro);
}

.card button:disabled {
  background: var(--creme);
  color: #948b80;
  cursor: not-allowed;
}