/* === Bitform WordPress Styling === */

/* Container du formulaire */
.bitform-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Question/Label */
.bitform-field label,
.bitform-field .bf-label {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 1rem;
  line-height: 1.4;
}

/* Conteneur des options radio */
.bitform-radio-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Style des cartes radio */
.bitform-radio-card {
  position: relative;
  flex: 1;
  min-width: 140px;
}

.bitform-radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Label de la carte radio */
.bitform-radio-card .bf-radio-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  color: #495057;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bitform-radio-card .bf-radio-label:hover {
  border-color: #6366f1;
  background: #f0f1fe;
}

/* Sélection */
.bitform-radio-card input[type="radio"]:checked + .bf-radio-label {
  background: #6366f1;
  border-color: #6366f1;
  color: #fff;
}

/* Bouton submit */
.bitform-submit {
  margin-top: 1.5rem;
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bitform-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.bitform-submit:active {
  transform: translateY(0);
}

/* Message de succès */
.bitform-success {
  display: none;
  padding: 2rem;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #34d399;
  border-radius: 12px;
  text-align: center;
}

.bitform-success.show {
  display: block;
  animation: fadeIn 0.4s ease;
}

.bitform-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bitform-success-icon svg {
  width: 32px;
  height: 32px;
  color: #fff;
}

.bitform-success h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  color: #065f46;
}

.bitform-success p {
  margin: 0;
  color: #047857;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}