/* AideaYou - Estilos del formulario de contratación */

/* Reset básico */
* {
  box-sizing: border-box;
}

/* Contenedor principal */
.ayou-form-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Tarjeta del formulario */
.ayou-form-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 3rem;
  width: 100%;
  max-width: 500px;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.ayou-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
}

/* Header del formulario */
.ayou-form-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.ayou-form-title {
  font-size: 2rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 0.75rem 0;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.ayou-form-subtitle {
  font-size: 1rem;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
  font-weight: 400;
}

/* Formulario */
.ayou-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Grupos de campos */
.ayou-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Labels */
.ayou-form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
  letter-spacing: 0.025em;
}

/* Inputs */
.ayou-form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  color: #1e293b;
  background: #ffffff;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  font-weight: 400;
}

.ayou-form-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.ayou-form-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

.ayou-form-input:hover:not(:focus) {
  border-color: #cbd5e1;
}

/* Grupo de checkbox */
.ayou-checkbox-group {
  margin-top: 0.5rem;
}

.ayou-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #374151;
  font-weight: 400;
}

/* Checkbox oculto */
.ayou-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Checkbox personalizado */
.ayou-checkbox-custom {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.ayou-checkbox:checked + .ayou-checkbox-custom {
  background: #3b82f6;
  border-color: #3b82f6;
  transform: scale(1.05);
}

.ayou-checkbox:checked + .ayou-checkbox-custom::after {
  content: '';
  width: 0.375rem;
  height: 0.625rem;
  border: 2px solid #ffffff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  margin-top: -0.125rem;
}

.ayou-checkbox:focus + .ayou-checkbox-custom {
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Texto del checkbox */
.ayou-checkbox-text {
  flex: 1;
}

/* Enlaces */
.ayou-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ayou-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Acciones del formulario */
.ayou-form-actions {
  margin-top: 1.5rem;
}

/* Botón principal */
.ayou-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  width: 100%;
  letter-spacing: 0.025em;
}

.ayou-btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.ayou-btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.ayou-btn-primary:active {
  transform: translateY(0);
}

.ayou-btn-primary:focus {
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

/* Icono del botón */
.ayou-btn-icon {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ayou-btn:hover .ayou-btn-icon {
  transform: translateX(3px);
}

/* Alerta de error */
.ayou-error-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Estados de validación */
.ayou-form-input:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.ayou-form-input:valid:not(:placeholder-shown) {
  border-color: #10b981;
}

/* Estados de carga */
.ayou-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.ayou-btn:disabled:hover {
  transform: none;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

/* Responsive */
@media (max-width: 640px) {
  .ayou-form-container {
    padding: 1rem;
    min-height: 100vh;
  }
  
  .ayou-form-card {
    padding: 2rem 1.5rem;
    border-radius: 12px;
  }
  
  .ayou-form-title {
    font-size: 1.75rem;
  }
  
  .ayou-form-subtitle {
    font-size: 0.875rem;
  }
  
  .ayou-form-input {
    padding: 0.75rem 0.875rem;
  }
  
  .ayou-btn {
    padding: 0.875rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .ayou-form-container {
    padding: 0.5rem;
  }
  
  .ayou-form-card {
    padding: 1.5rem 1rem;
  }
  
  .ayou-form-title {
    font-size: 1.5rem;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ayou-form-card {
  animation: fadeIn 0.4s ease-out;
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .ayou-form-card {
    animation: none;
  }
  
  .ayou-btn,
  .ayou-form-input,
  .ayou-checkbox-custom,
  .ayou-btn-icon {
    transition: none;
  }
}

/* Focus visible para navegación por teclado */
.ayou-btn:focus-visible,
.ayou-form-input:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.ayou-checkbox:focus-visible + .ayou-checkbox-custom {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

