/* Estilos específicos para la vista del Formulario Móvil */

.form-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 60px);
  padding: 20px;
}

.glass-card {
  width: 100%;
  max-width: 480px;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.form-header {
  text-align: center;
  margin-bottom: 28px;
}

.logo-wrapper {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.logo-icon {
  color: var(--primary);
  width: 28px;
  height: 28px;
}

.form-header h1 {
  font-size: 24px;
  margin-bottom: 8px;
  background: linear-gradient(to right, var(--text-primary), #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.form-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Iconos integrados en los inputs */
.input-icon-wrapper {
  position: relative;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  transition: var(--transition-fast);
  pointer-events: none;
}

/* Ajuste específico para textarea */
textarea.form-input {
  resize: vertical;
  min-height: 80px;
}
.input-icon-wrapper textarea + .input-icon {
  top: 22px;
  transform: none;
}

.form-input {
  padding-left: 44px; /* Espacio para el icono */
}

.form-input:focus + .input-icon {
  color: var(--primary);
}

/* Fila de campos dobles */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 400px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

/* Alertas de error/éxito */
.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  border-left: 4px solid transparent;
  animation: fadeIn 0.3s ease;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--error);
  color: #fca5a5;
}

.alert-error i {
  color: var(--error);
  flex-shrink: 0;
}

/* Clases utilitarias */
.hidden {
  display: none !important;
}

.w-full {
  width: 100%;
}

.mb-3 {
  margin-bottom: 12px;
}

.mr-2 {
  margin-right: 8px;
}

/* Animación del Botón (Spinner de carga) */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Vista de Éxito */
.success-header {
  text-align: center;
  margin-bottom: 24px;
}

.success-icon-wrapper {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  margin-bottom: 16px;
}

.success-icon {
  color: var(--success);
  width: 36px;
  height: 36px;
}

.success-header h2 {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.success-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Resumen del contacto en el éxito */
.card-summary {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 28px;
  font-size: 14px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-label {
  color: var(--text-muted);
  font-weight: 500;
}

.summary-value {
  color: var(--text-primary);
  font-weight: 600;
}

/* Footer */
.form-footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--text-muted);
}

.form-footer span {
  color: var(--primary);
  font-weight: 600;
}

/* Animaciones */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

select.form-input option {
  background-color: #111827;
  color: var(--text-primary);
}

