*,
::after,
::before {
  box-sizing: border-box;
}

body {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.429;
  color: #545454;
  background-color: #fff;
  margin: 0;
  padding: 0;
  display: flex;
  max-width: 100%;
}

h3 {
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 10px;
  margin-top: 20px;
  font-size: 25px;
}

form,
.gracias {
  padding: 15px;
  width: 100%;
}

.form-row {
  display: flex; /* Nueva clase: Para que los elementos dentro estén en fila */
  gap: 20px; /* Espacio entre las columnas */
}

.form-group {
  flex: 1; /* Cada grupo ocupará el mismo ancho en la fila */
  margin: 30px 0; /* Ajuste del margen para mejorar la disposición en columnas */
  position: relative;
}

.form-group.check {
  margin: 10px 0;
}

.form-label {
  background: #eee;
  bottom: 100%;
  display: block;
  font-size: 14px;
  font-weight: 400;
  left: 0;
  margin: 0;
  overflow: hidden;
  padding: 5px 10px;
  position: absolute;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.error {
  background: #ffedf1;
  color: #ff0136;
  display: inline-block;
  font-size: 14px;
  font-weight: 400;
  overflow: hidden;
  padding: 5px 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

input:focus + .form-label {
  background: #ddd;
  color: #071956;
}

[required] + label::after {
  color: #c33;
  content: "\2A";
  margin-left: 5px;
}

input[type="text"],
input[type="email"],
input[type="file"],
select {
  width: 100%; /* Los inputs ocupan todo el ancho del contenedor */
  height: 38px;
  padding: 8px 12px;
  font-size: 16px;
  background-color: #fff;
  background-image: none;
  border: 1px solid #eee;
  border-radius: 0;
  display: block;
  line-height: 1.429;
  color: #555;
}

input:focus {
  border-color: #ddd;
  outline: 0;
}

.label-forms-checkbox {
  display: block !important;
  font-weight: 700;
}

.forms-checkbox {
  margin-left: 8px;
}

input[type="submit"],
.btn {
  margin-top: 20px;
  display: inline-block;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  border: 1px solid transparent;
  letter-spacing: 0.5px;
  padding: 15px 25px;
  font-size: 14px;
  line-height: 1.429;
  color: #fff;
  background-color: #1965e1;
  text-decoration: none;
  cursor: pointer;
}

input[type="submit"]:hover,
.btn:hover {
  background-color: #1450b3;
}

.forms-checkbox-required {
  color: #ff0136;
}

#otros {
  display: none;
}

details {
  margin-top: 5px;
}

details ul {
  margin: 6px 0px;
}

details p {
  margin: 3px 0px;
}

/* Añadido: Media query para dispositivos móviles */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column; /* Las columnas se apilan en pantallas pequeñas */
  }
}
