/* Contenedor general */
#swan-container {
  width: 90%;
  margin: 0 auto;
  max-width: 1440px;
  padding: 20px;
}

#swan-container .grid {
  display: grid;
  grid-template-columns: 35% 65%;
  column-gap: 50px;
  width: calc(100% - 50px);
  margin-top: 50px;
}

#swan-container h2 {
  text-align: center;
  color: #fff;
  margin-bottom: 30px;
  font-size: 28px;
}

/* Contenedor del formulario con borde negro */
.swan-container {
  /* background: #1a1a1a; */
  border: 2px solid #000;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Estilos formulario */
#swan-custom-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Cada fila: label a la izquierda, input a la derecha */
#swan-custom-form .form-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

#swan-custom-form label {
  width: 30%;
  font-weight: 600;
  text-align: left;
  /* color: #fff; */
  min-width: 120px;
}

/* Campos de formulario - fondo negro con letras blancas */
#swan-custom-form input[type="text"],
#swan-custom-form input[type="email"],
#swan-custom-form input[type="date"],
#swan-custom-form input[type="file"],
#swan-custom-form textarea,
#swan-custom-form select {
  width: 55%;
  padding: 12px 15px;
  border: 2px solid #333;
  border-radius: 40px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: #000;
  color: #fff;
  min-width: 250px;
}

/* Campo fecha específico - mismo tamaño que otros inputs */
#swan-custom-form input[type="date"] {
  height: 23px;
}

#swan-custom-form input[type="file"]{
  color: transparent;
}

/* Placeholder color blanco */
#swan-custom-form input::placeholder,
#swan-custom-form textarea::placeholder {
  color: #ccc;
}

/* Ajuste textarea */
#swan-custom-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Efectos focus */
#swan-custom-form input:focus,
#swan-custom-form textarea:focus,
#swan-custom-form select:focus {
  border-color: #0073aa;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.2);
}

/* Botón */
#swan-custom-form button {
  background: #a74dc2;
  color: #fff;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
  transition: all 0.3s ease;
  margin-top: 10px;
  display: block;
  margin: auto;
}

#swan-custom-form button:hover {
  background: linear-gradient(135deg, #005f8d, #004a70);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#swan-custom-form button:active {
  transform: translateY(0);
}

/* Radio buttons */
.radio-group {
  display: flex;
  gap: 30px;
  width: 65%;
  flex-wrap: wrap;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-width: auto;
  cursor: pointer;
  font-weight: 500;
}

.radio-group input[type="radio"] {
  width: auto;
  margin: 0;
}

/* Lista de archivos - debajo del formulario */
#file-list {
  width: 100%;
  margin-top: 15px;
  padding: 0;
  list-style: none;
  grid-column: 1 / -1;
}

#file-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: #2a2a2a;
  border: 1px solid #333;
  border-radius: 6px;
  margin-bottom: 8px;
  color: #fff;
}

#file-list .remove-file {
  background: #dc3232;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12px;
}

#file-list .remove-file:hover {
  background: #c32222;
}

/* Mensajes de error */
.error-message {
  color: #ff6b6b;
  font-size: 18px;
  display: none;
  margin-top: 5px;
  width: 100%;
  grid-column: 1 / -1;
  text-align: center;
}

.error {
  border-color: #dc3232 !important;
}

.reclamo-only {
  display: none;
}

/* Mensajes de respuesta */
#swan-form-response {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

#swan-form-response .loading {
  color: #0073aa;
  background: rgba(0, 115, 170, 0.1);
  border: 1px solid #0073aa;
}

#swan-form-response .success {
  color: #46b450;
  background: rgba(70, 180, 80, 0.1);
  border: 1px solid #46b450;
}

#swan-form-response .error {
  color: #dc3232;
  background: rgba(220, 50, 50, 0.1);
  border: 1px solid #dc3232;
}

/* Información adicional */
.swan-info {
  padding: 30px;
  height: fit-content;
}

.swan-info p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.swan-info strong {
  font-size: bold;
}

/* Responsive */
@media (max-width: 1024px) {
  #swan-container .grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  #swan-custom-form .form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  #swan-custom-form label {
    width: 100%;
  }
  
  #swan-custom-form input[type="text"],
  #swan-custom-form input[type="email"],
  #swan-custom-form input[type="date"],
  #swan-custom-form textarea,
  #swan-custom-form select {
    width: 90%;
    min-width: auto;
  }
  
  .radio-group {
    width: 100%;
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  #swan-container {
    width: 95%;
    padding: 10px;
  }
  
  .swan-container,
  .swan-info {
    padding: 20px;
  }
  
  #swan-container h2 {
    font-size: 24px;
  }
}
