/* AGN Forms – Diseño mejorado con estilo moderno */

/* Importar fuente Roboto con más pesos */
/*@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');*/

/* Container principal */
.agn-form .fda-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 28px;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* Filas del formulario */
.agn-form .fda-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
  animation: fadeInUp 0.5s ease;
}

@media(min-width:768px) {
  .agn-form .fda-row.two {
    grid-template-columns: 1fr 1fr;
  }
}

/* Labels mejoradas */
.agn-form .fda-label {
  font-weight: 500;
  margin-bottom: 10px;
  color: #2c3e50;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: block;
  transition: color 0.3s ease;
}

/* Campos de formulario con diseño moderno */
.agn-form .fda-input,
.agn-form .fda-select,
.agn-form .fda-text {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid #e0e6ed;
  border-radius: 12px;
  background: #ffffff;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* Select con icono de flecha personalizado */
.agn-form .fda-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a5568' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Texto de ayuda */
.agn-form .fda-help {
  font-size: 13px;
  color: #6b7280;
  margin-top: 8px;
  font-style: italic;
}

/* Cajas de contenido mejoradas */
.agn-form .fda-box {
  padding: 28px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  margin-top: 20px;
  box-shadow: 
    0 4px 6px rgba(0,0,0,0.07),
    0 10px 15px rgba(0,0,0,0.05);
  animation: slideIn 0.6s ease;
}

/* Título de sección */
.agn-form .fda-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 20px;
  color: #1a202c;
  position: relative;
  padding-bottom: 12px;
}

.agn-form .fda-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #0073aa, #00a8cc);
  border-radius: 2px;
}

/* Botón principal con diseño moderno */
.agn-form .fda-btn {
  background: linear-gradient(135deg, #0073aa 0%, #0095dd 100%);
  color: #ffffff;
  padding: 14px 32px;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.4;
  border: none;
  border-radius: 50px;
  box-shadow: 
    0 4px 15px rgba(0, 115, 170, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 16px;
  position: relative;
  overflow: hidden;
}

.agn-form .fda-btn:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.agn-form .fda-btn:hover {
  background: linear-gradient(135deg, #005a87 0%, #0073aa 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(0, 115, 170, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.1);
}

.agn-form .fda-btn:hover:before {
  width: 300px;
  height: 300px;
}

.agn-form .fda-btn:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 8px rgba(0, 115, 170, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Alertas mejoradas */
.agn-form .fda-alert {
  margin: 0 0 24px;
  padding: 16px 20px;
  border-radius: 12px;
  font-weight: 500;
  position: relative;
  animation: slideDown 0.4s ease;
}

.agn-form .fda-ok {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border-left: 4px solid #28a745;
  box-shadow: 0 3px 10px rgba(40, 167, 69, 0.1);
}

.agn-form .fda-error {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border-left: 4px solid #dc3545;
  box-shadow: 0 3px 10px rgba(220, 53, 69, 0.1);
}

/* Hints/Ayuda mejorados con diseño atractivo */
.agn-form .fda-hint {
  margin: 16px 0;
  padding: 16px 20px;
  border-left: 4px solid #0073aa !important;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #e3f2fd 100%);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(0, 115, 170, 0.08);
  position: relative;
  overflow: hidden;
}

.agn-form .fda-hint:before {
  content: '💡';
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 24px;
  opacity: 0.3;
}

.agn-form .fda-hint > div:first-child {
  font-weight: 600;
  margin-bottom: 8px;
  color: #0073aa;
  font-size: 15px;
}

.agn-form .fda-hint ul {
  margin: 8px 0 8px 20px;
  padding: 0;
}

.agn-form .fda-hint li {
  margin-bottom: 4px;
  color: #2c5282;
}

.agn-form .fda-hint em {
  color: #4a5568;
  font-size: 13px;
}

.agn-form .fda-hint strong {
  color: #0073aa;
  font-weight: 600;
}

/* Editor WYSIWYG mejorado */
.agn-form .fda-wysiwyg .wp-editor-wrap {
  border: 2px solid #e0e6ed;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.agn-form .fda-wysiwyg .wp-editor-wrap:hover {
  border-color: #0073aa;
  box-shadow: 0 4px 12px rgba(0, 115, 170, 0.1);
}

/* Nota de archivos */
.agn-form .fda-files-note {
  font-size: 13px;
  color: #6b7280;
  margin-top: 8px;
  font-style: italic;
  padding-left: 20px;
  position: relative;
}

.agn-form .fda-files-note:before {
  content: 'ℹ️';
  position: absolute;
  left: 0;
}

/* Estados Focus mejorados */
.agn-form input.fda-input:focus,
.agn-form textarea.fda-text:focus,
.agn-form select.fda-select:focus {
  border-color: #0073aa;
  background: linear-gradient(to bottom, #ffffff 0%, #f0f9ff 100%);
  outline: none;
  box-shadow: 
    0 0 0 3px rgba(0, 115, 170, 0.1),
    0 4px 6px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.agn-form .fda-btn:focus {
  outline: none;
  box-shadow: 
    0 0 0 3px rgba(0, 115, 170, 0.3),
    0 4px 15px rgba(0, 115, 170, 0.3);
}

/* Input de archivo mejorado */
.agn-form input[type="file"] {
  padding: 12px;
  background: #f8fafc;
  cursor: pointer;
}

.agn-form input[type="file"]:hover {
  background: linear-gradient(to bottom, #ffffff 0%, #e3f2fd 100%);
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mejoras responsive */
@media (max-width: 768px) {
  .agn-form .fda-wrap {
    padding: 24px 16px;
  }
  
  .agn-form .fda-box {
    padding: 20px;
  }
  
  .agn-form .fda-btn {
    width: 100%;
    padding: 16px;
  }
  
  .agn-form .fda-hint {
    padding: 12px 16px;
    font-size: 13px;
  }
}