/* Estilo geral do formulário */
#pagbank-donation-form {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #36393d;
}

#pagbank-donation-form h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #0066b2;
}

/* Estilo das seções */
.donation-step {
  margin-bottom: 20px;
}

.donation-step label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  color: #36393d;
}

/* Estilo dos campos de input */
#pagbank-donation-form input[type="text"],
#pagbank-donation-form input[type="email"],
#pagbank-donation-form input[type="number"],
#pagbank-donation-form select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  background: #fff;
  color: #36393d;
}

#pagbank-donation-form select {
  cursor: pointer;
  appearance: none; /* Remove o estilo padrão do navegador */
  -webkit-appearance: none; /* Safari/Chrome */
  -moz-appearance: none; /* Firefox */
  background-color: #fff;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%2336393d" class="bi bi-chevron-down" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1.646 5.646a.5.5 0 0 1 .708 0L8 11.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
  border: 1px solid #ccc;
  padding: 10px 40px 10px 10px; /* Espaço extra para o ícone */
  font-size: 16px;
  color: #36393d;
  border-radius: 5px;
  cursor: pointer;
}

/* Opcional: para melhorar o foco */
#pagbank-donation-form select:focus {
  border-color: #0066b2;
  outline: none;
}

/* Para garantir consistência nos dispositivos Apple */
#pagbank-donation-form select::-ms-expand {
  display: none;
}

/* Botões de valores pré-definidos */
.donation-amount {
  background: #fcb713;
  color: #36393d;
  border: 2px solid transparent;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-right: 5px;
  margin-bottom: 10px;
}

.donation-amount.selected {
  background: #0066b2;
  color: #fff;
  border-color: #0066b2;
}

/* Botão de envio */
#pagbank-donation-form button[type="submit"] {
  background: #0066b2;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  width: 100%;
  transition: background 0.3s ease;
}

#pagbank-donation-form button[type="submit"]:hover {
  background: #005399;
}

/* Mensagem de feedback */
#pagbank-donation-message {
  font-size: 14px;
  padding: 10px;
  border-radius: 5px;
  margin-top: 15px;
  display: none;
}

#pagbank-donation-message span {
  font-weight: bold;
}

/* Textos explicativos */
.explanation-text {
  font-size: 14px;
  color: #555;
  background: #fff8dc;
  padding: 8px;
  border: 1px solid #fcb713;
  border-radius: 5px;
  margin: 10px 0;
  display: none;
}

/* Cartão de crédito - agrupamento */
#credit_card_fields h4 {
  font-size: 18px;
  color: #0066b2;
  margin-bottom: 10px;
}

/* Estilo básico para inputs do cartão */
#credit_card_fields input {
  margin-bottom: 10px;
}

/* CPF específico */
#cpf_field {
  margin-bottom: 15px;
}

#pagbank-status {
  color: #0066b2;
  padding: 15px;
  margin: 20px 0;
}

/* Classe base para todos os callouts */
.pagbank-donation-message {
  padding: 15px;
  margin: 20px 0;
  border-left: 5px solid;
  border-radius: 3px;
  font-size: 16px;
  line-height: 1.5;
}

/* Classe para callout de erro */
.pagbank-donation-message.error {
  background-color: #fde8e8;
  border-color: #f56565;
  color: #c53030;
}

/* Classe para callout de aviso */
.pagbank-donation-message.warning {
  background-color: #fefcbf;
  border-color: #ecc94b;
  color: #975a16;
}

/* Classe para callout de sucesso */
.pagbank-donation-message.success {
  background-color: #e6fffa;
  border-color: #38b2ac;
  color: #234e52;
}

/* Classe para callout de informação */
.pagbank-donation-message.info {
  background-color: #e6f6ff;
  border-color: #4299e1;
  color: #2c5282;
}

.qrcode_resp {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 5px;
  background-color: #f9f9f9;
  max-width: 600px;
  margin: 20px auto;
  text-align: center;
}

.qrcode_resp img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ccc;
  padding: 5px;
  margin-bottom: 10px;
}

.qrcode_resp p {
  margin-top: 15px;
  margin-bottom: 15px;
  color: #0066b2;
}

.qrcode_resp .alert {
  margin-top: 10px;
  font-weight: bold;
  color: #c53030;
}

.pix-code-container {
  display: flex;
  margin: 20px 0;
  max-width: 600px;
}

.pix-code {
  flex-grow: 1;
  padding: 12px 15px;
  background-color: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  font-family: monospace;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  cursor: default;
}

.copy-button {
  background-color: #4299e1;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  padding: 0 15px;
  cursor: pointer;
  font-weight: bold;
  height: 40px;
}

.copy-button:hover {
  background-color: #0066b2;
}

.copy-success {
  background-color: #38a169;
}

.field-error {
  color: #f56565;
  font-size: 10px;
  margin-top: -3px;
  font-weight: bold;
  text-transform: uppercase;
  margin-left: 5px;
  height: 15px;
  padding-left: 18px;
  line-height: 20px;
  position: relative;
}

.field-error:before {
  content: "⚠️";
  position: absolute;
  left: 0;
  top: -1px;
  font-size: 12px;
}
