/* ==========================
   MARCA D'ÁGUA RESPONSIVA AUTOMÁTICA
========================== */
.container {
  position: relative; /* garante que a marca d'água fique dentro do container */
}

.container::before {
  content: "";
  position: absolute;
  top: 2.5%;
  left: 4.2%;
  transform: translate(-50%, -50%);
  
  /* Responsividade automática com limites */
  width: clamp(50px, 8vw, 100px);
  height: clamp(50px, 8vw, 100px);
  
  background-image: url('https://axkorcosmeticos.com.br/img/Logo-axkor.png'); 
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 1; /* ajuste da transparência */
  pointer-events: none; 
  z-index: 0; 
}

/* ==========================
   FONTES
========================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* ==========================
   RESET / BOX-SIZING
========================== */
* {
  box-sizing: border-box;
}

/* ==========================
   BODY E LAYOUT
========================== */
body {
  font-family: 'Roboto', sans-serif;
  background-color: #f4f7f6;
  color: #333;
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* ==========================
   CABEÇALHO
========================== */
header {
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

header h1 {
  color: #2c3e50;
  margin-bottom: 10px;
}

header p {
  font-size: 1.1em;
  color: #555;
}

/* ==========================
   FORMULÁRIOS
========================== */
fieldset {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
}

legend {
  font-weight: 700;
  color: #3498db;
  padding: 0 10px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
}

textarea {
  resize: vertical;
}

input[type="checkbox"] {
  margin-right: 10px;
}

/* ==========================
   BOTÕES
========================== */
button {
  width: 100%;
  padding: 15px;
  background-color: #3498db;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #2980b9;
}

button:disabled {
  background-color: #bdc3c7;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-remover {
  font-size: 12px;
  padding: 2px 6px;
  border: none;
  border-radius: 4px;
  background-color: #f44336;
  color: #fff;
  cursor: pointer;
  height: auto;
  width: auto;
  min-width: 0;
}

/* ==========================
   FEEDBACK E POPUP
========================== */
#feedback-message {
  display: none;
  padding: 15px;
  margin: 15px 0;
  border-radius: 5px;
  font-weight: bold;
}

#feedback-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#feedback-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

#popup-feedback {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none;
  max-width: 90%;
  text-align: center;
}

#popup-feedback.success {
  border-left: 6px solid #28a745;
}

#popup-feedback.error {
  border-left: 6px solid #dc3545;
}

#popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* ==========================
   LISTAS E ITENS
========================== */
.arquivo-item {
  margin-bottom: 5px;
  list-style: none;
  display: flex;
  align-items: center;
}

/* ==========================
   RECAPTCHA
========================== */
.recaptcha-container {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}

/* ==========================
   UTILITÁRIOS
========================== */
.hidden {
  display: none;
}

.error {
  color: red;
}

.success {
  color: green;
}

/* ==========================
   RESPONSIVIDADE
========================== */
@media (max-width: 768px) {
  .container::before {
    width: 200px;
    height: 200px;
    opacity: 0.06; /* um pouco mais discreta no mobile */
  }

  .container {
    padding: 20px;
  }

  header h1 {
    font-size: 1.5em;
  }
}

@media (max-width: 480px) {
  .container::before {
    width: 150px;
    height: 150px;
    opacity: 0.05;
  }

  button {
    font-size: 1em;
    padding: 12px;
  }
}
