* {
  box-sizing: border-box;
}

html {
  font-family: Arial, Helvetica, sans-serif;
  background: #f2f5f7;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #1f2937;
}

.container {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  padding: 30px 20px;
}

.header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.header h1 {
  margin: 0 0 5px;
  font-size: 28px;
  color: #075e54;
}

.header p {
  margin: 0;
  color: #64748b;
}

.pix-icon {
  width: 58px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;

  background: #00a884;
  color: #fff;

  font-size: 30px;
  font-weight: bold;
}

.card {
  background: #fff;

  border-radius: 16px;

  padding: 30px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;

  margin-bottom: 7px;

  font-size: 14px;
  font-weight: bold;

  color: #374151;
}

.form-group small {
  display: block;

  margin-top: 6px;

  color: #6b7280;
  font-size: 12px;
}

.form-row {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 20px;
}

input,
textarea {
  width: 100%;

  padding: 13px 14px;

  border: 1px solid #d1d5db;

  border-radius: 9px;

  font-family: inherit;
  font-size: 15px;

  outline: none;

  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

input:focus,
textarea:focus {
  border-color: #00a884;

  box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.12);
}

textarea {
  resize: vertical;
}

.btn {
  width: 100%;

  border: none;
  border-radius: 9px;

  padding: 14px 20px;

  background: #00a884;
  color: #fff;

  font-size: 16px;
  font-weight: bold;

  cursor: pointer;

  transition:
    background 0.2s,
    transform 0.1s;
}

.btn:hover {
  background: #008f72;
}

.btn:active {
  transform: scale(0.99);
}

.btn-secondary {
  margin-top: 12px;

  background: #075e54;
}

.btn-secondary:hover {
  background: #064e46;
}

.alert {
  padding: 14px 16px;

  margin-bottom: 20px;

  border-radius: 8px;

  font-size: 14px;
}

.alert.error {
  background: #fee2e2;
  color: #991b1b;

  border: 1px solid #fecaca;
}

.resultado {
  margin-top: 35px;

  padding-top: 30px;

  border-top: 1px solid #e5e7eb;

  text-align: center;
}

.resultado h2 {
  margin-top: 0;

  color: #075e54;
}

.qrcode-box {
  width: 330px;
  max-width: 100%;

  margin: 20px auto;

  padding: 15px;

  background: #fff;

  border-radius: 12px;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.qrcode-box img {
  display: block;

  width: 100%;
  height: auto;
}

.copy-box {
  margin-top: 25px;

  text-align: left;
}

.copy-box label {
  display: block;

  margin-bottom: 8px;

  font-weight: bold;

  color: #374151;
}

.copy-message {
  min-height: 20px;

  margin-top: 8px;

  text-align: center;

  font-size: 14px;
}

.copy-message.success {
  color: #008f72;
}

.dados {
  margin-top: 25px;

  padding: 20px;

  background: #f8fafc;

  border-radius: 10px;

  text-align: left;
}

.dados h3 {
  margin-top: 0;

  color: #075e54;
}

.dados p {
  margin: 8px 0;

  word-break: break-word;
}

footer {
  margin-top: 25px;

  text-align: center;

  color: #94a3b8;

  font-size: 13px;
}

@media (max-width: 650px) {
  .container {
    padding: 20px 12px;
  }

  .card {
    padding: 20px;
  }

  .header {
    align-items: flex-start;
  }

  .header h1 {
    font-size: 22px;
  }

  .pix-icon {
    width: 48px;
    height: 48px;

    font-size: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;

    gap: 0;
  }
}
