body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #eef2f5;
  margin: 0;
  padding: 30px;
}

.form-container {
  background: #fff;
  max-width: 900px;
  margin: auto;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

h2 {
  text-align: center;
  color: #111;
}

.alert {
  background: #fff3cd;
  border-left: 5px solid #ffca2c;
  padding: 12px;
  margin-bottom: 25px;
  border-radius: 4px;
}

fieldset {
  border: 1px solid #ccc;
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 8px;
}

legend {
  font-weight: bold;
  font-size: 15px;
}

label {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  color: #333;
}

label::after {
  content: attr(data-required);
  color: #dc3545;
  margin-left: 3px;
}

/* Alternativa: usar seletor de conteúdo */
label:has(+ input[required])::after,
label:has(+ select[required])::after,
label:has(+ textarea[required])::after {
  content: " *";
  color: #dc3545;
  font-weight: bold;
}

input, select, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 4px;
  border: 1px solid #bbb;
  border-radius: 6px;
  font-size: 14px;
}

textarea {
  min-height: 85px;
  resize: vertical;
}

button {
  width: 100%;
  background: #0062cc;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  transition: 0.2s;
}

button:hover {
  background: #004fa3;
}

button.loading {
  background: #999 !important;
  cursor: not-allowed;
}

#msg {
  margin-top: 20px;
  text-align: center;
  font-weight: bold;
}

h3 {
  margin-top: 25px;
  margin-bottom: 15px;
  padding-top: 20px;
  border-top: 2px solid #0062cc;
  color: #0062cc;
  font-size: 16px;
}

small {
  display: block;
  color: #666;
  font-size: 12px;
  margin-bottom: 5px;
  font-style: italic;
}

#aliquotasPersonalizadas,
#banco1Container,
#banco2Container {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid #0062cc;
}
