/* ============================================
   STYLES FORMULAIRE PERSONNALISÉ
   ============================================ */

.question-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 15px;
  transition: all 0.3s ease;
}

.question-item:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(30,144,255,0.3);
  transform: translateX(5px);
}

.question-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.question-drag-handle {
  cursor: grab;
  color: #666;
  font-size: 1.2rem;
  line-height: 1;
}

.question-drag-handle:active {
  cursor: grabbing;
}

.question-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.question-type-badge {
  background: rgba(30,144,255,0.2);
  color: #4da6ff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.question-text {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
}

.required-badge {
  background: rgba(255,68,68,0.2);
  color: #ff4444;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.question-actions {
  display: flex;
  gap: 8px;
}

.btn-icon {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
}

.btn-icon:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: scale(1.1);
}

.question-options {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: #888;
  font-size: 0.85rem;
}

/* Styles pour les formulaires dans les modals */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #fff;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #0d0d0d;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #1e90ff;
  box-shadow: 0 0 0 3px rgba(30,144,255,0.1);
}

.form-group small {
  display: block;
  color: #888;
  font-size: 0.85rem;
  margin-top: 6px;
}

/* ============================================
   TEMPLATES DE FORMULAIRE
   ============================================ */

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 2rem;
}

.template-card {
  background: linear-gradient(135deg, rgba(30,144,255,0.05), rgba(0,191,255,0.05));
  border: 2px solid rgba(30,144,255,0.2);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.template-card:hover {
  border-color: rgba(30,144,255,0.5);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(30,144,255,0.2);
}

.template-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.template-card h4 {
  color: #fff;
  font-size: 1.1rem;
  margin: 0 0 8px 0;
}

.template-card p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin: 0 0 16px 0;
}

.template-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.field-badge {
  background: rgba(0,255,136,0.15);
  color: #00ff88;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ============================================
   QUESTIONS SUGGÉRÉES
   ============================================ */

.questions-suggestions {
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  padding: 20px;
}

.suggestion-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.suggestion-item:hover {
  background: rgba(30,144,255,0.1);
  border-color: rgba(30,144,255,0.3);
  transform: translateX(5px);
}

.suggestion-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.suggestion-text {
  color: #fff;
  font-size: 0.95rem;
  flex: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .templates-grid {
    grid-template-columns: 1fr;
  }

  .template-card {
    padding: 20px;
  }
}
