body {
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /*background-color: #f4f4f4;*/
  margin: 0;
  padding-top: 10px;
  padding-bottom: 10px;
}
.language-selector {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.language-selector a {
  margin: 0 5px;
  text-decoration: none;
  color: #007bff;
}
.language-selector a.active {
  font-weight: bold;
  text-decoration: underline;
}
.container_brbk {
  background-color: #fff;
  padding: 0vw 30px 25px 40px; /* padding en porcentajes para adaptarse mejor */
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  /*max-width: 420px; /* ancho máximo opcional para no verse demasiado grande en pantallas grandes */
  box-sizing: border-box;
}
.form-group {
  margin-bottom: 5px;
}
label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
input[type="tel"] {
  width: 100%;
  height: 38px; /* Altura fija para alinear con otros inputs */
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  /* Se omite el padding para que la librería lo controle */
}
input[type="email"]::placeholder {
  color: #999;
}
.iti {
  width: 100%;
}
.file-drop-area {
  position: relative;
  border: 2px dashed #ccc;
  padding: 15px;
  margin-right: 12px;

  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.file-drop-area.drag-over {
  border-color: #007bff;
  background-color: #e9ecef;
}
.file-drop-area input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-name {
  margin-top: 10px;
  font-size: 0.9em;
  color: #333;
  word-wrap: break-word;
}
#submitBtn {
  background-color: #007bff;
  color: white;
  margin-top: 15px;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 99%;
  transition: background-color 0.3s ease;
}
#submitBtn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  width: 99%;
}
#submitBtn:hover:enabled {
  background-color: #0056b3;
}
#loading-animation {
  display: none;
  text-align: center;
  margin-top: 20px;
  font-style: italic;
  color: #555;
}
#response-container {
  display: none;
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f9f9f9;
  word-wrap: break-word;
}
.error-message {
  color: red;
  font-size: 0.9em;
  margin-top: 5px;
}
.centrar {
  text-align: center;
}
.aviso {
  height: 150px;
  max-height: 150px;
  overflow-y: auto;
  font-size: 0.85em;
  color: #555;
  margin-top: 10px;
  padding: 20px 30px 20px 30px;
}
.aviso ul li {
  font-size: 0.8em;
  color: #555;
  margin: 0px 0px 10px -20px;
  padding: 0px 0px 0px 0px;
}
.gracias {
  font-size: 0.9em;
  color: #555;
  margin-top: 20px;
  text-align: center;
}
.progress-bar-bg {
  width: 100%;
  max-width: 350px;
  height: 18px;
  background: #e9ecef;
  border-radius: 10px;
  margin: 15px auto 0 auto;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.progress-bar-fill {
  height: 100%;
  background-color: #4caf50;
  border-radius: 5px;
  transition: width 0.3s ease-in-out;
}

#chronometer {
  text-align: center;
  margin-top: 10px;
  font-size: 1.2em;
  color: #aaa;
}

#stage-text {
  text-align: center;
  font-style: italic;
  margin-top: 6px;
  margin-bottom: 8px;
  font-weight: 500;
  color: #007bff;
  letter-spacing: 0.3px;
}
.success-check-anim, .center-check {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  animation: pop-in-check 0.45s cubic-bezier(0.2,1.2,0.7,1.2);
}
@keyframes pop-in-check {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.check-text {
  color: #28a745;
  font-weight: bold;
  font-size: 1.1em;
  margin-top: 6px;
}