/* ============================================================
   FORMULAIRES INTELLIGENTS ERdigIA
   ============================================================ */

.erdigia-form-wrapper {
  max-width: 860px;
  margin: 60px auto;
  padding: 0 20px;
}
.erform-header { text-align: center; margin-bottom: 40px; }
.erform-header .er-badge { margin-bottom: 16px; }
.erform-title {
  font-family: var(--er-font-display) !important;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem) !important;
  font-weight: 700 !important;
  background: var(--er-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 12px 0 8px !important;
}
.erform-intro { color: var(--er-text-light); font-size: 1.05rem; max-width: 600px; margin: 0 auto 20px; }
.erform-price-preview {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(0,200,255,0.08); border: 1px solid rgba(0,200,255,0.2);
  border-radius: var(--er-radius-lg); padding: 12px 24px; margin-top: 12px;
}
.erform-price-from { color: var(--er-text-muted); font-size: 0.85rem; }
.erform-price-display {
  font-family: var(--er-font-display); font-size: 1.8rem; font-weight: 700;
  background: var(--er-gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  transition: var(--er-transition);
}
.erform-progress {
  position: relative; background: var(--er-border); border-radius: 100px;
  height: 6px; margin-bottom: 40px; overflow: visible;
}
.erform-progress-bar {
  height: 100%; background: var(--er-gradient-primary); border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 12px rgba(0,200,255,0.5); position: relative;
}
.erform-progress-bar::after {
  content: ''; position: absolute; right: -4px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; background: var(--er-cyan); border-radius: 50%;
  box-shadow: 0 0 10px var(--er-cyan);
}
.erform-progress-text {
  position: absolute; right: 0; top: -22px;
  font-size: 0.75rem; color: var(--er-text-muted);
  font-family: var(--er-font-heading); letter-spacing: 0.05em;
}
.erform-step { animation: fadeStepIn 0.4s ease; }
@keyframes fadeStepIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.erform-step-header { margin-bottom: 28px; }
.erform-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--er-gradient-primary); color: #fff;
  font-family: var(--er-font-display); font-size: 0.85rem; font-weight: 700;
  margin-bottom: 12px; box-shadow: 0 0 15px rgba(0,200,255,0.4);
}
.erform-step-title {
  font-family: var(--er-font-heading) !important; font-size: 1.4rem !important;
  font-weight: 600 !important; color: var(--er-text-white) !important;
  margin: 0 0 6px !important;
}
.erform-step-desc { color: var(--er-text-muted); font-size: 0.9rem; margin: 0; }
.erform-choices {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px; margin-bottom: 24px;
}
.erform-choice-item {
  position: relative; display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px; background: var(--er-bg-card);
  border: 1px solid var(--er-border); border-radius: var(--er-radius);
  cursor: pointer; transition: var(--er-transition); user-select: none;
}
.erform-choice-item:hover { border-color: var(--er-cyan-border); background: var(--er-bg-card2); }
.erform-choice-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.erform-choice-item.er-selected {
  border-color: var(--er-cyan); background: rgba(0,200,255,0.06);
  box-shadow: 0 0 20px rgba(0,200,255,0.15);
}
.erform-choice-item.er-selected::before {
  content: '✓'; position: absolute; top: 8px; right: 10px;
  color: var(--er-cyan); font-size: 0.85rem; font-weight: 700;
}
.erform-choice-icon { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.erform-choice-content { flex: 1; min-width: 0; }
.erform-choice-title {
  display: block; color: var(--er-text-white);
  font-family: var(--er-font-heading); font-weight: 600; font-size: 0.95rem; margin-bottom: 2px;
}
.erform-choice-desc { display: block; color: var(--er-text-muted); font-size: 0.78rem; line-height: 1.4; }
.erform-choice-price {
  font-family: var(--er-font-display); font-size: 0.8rem; color: var(--er-cyan); white-space: nowrap; flex-shrink: 0;
}
.erform-choice-popular {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  background: var(--er-gradient-primary); color: #fff;
  font-size: 0.65rem; font-family: var(--er-font-heading); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 10px; border-radius: 100px; white-space: nowrap;
}
.erform-choice-item.popular { border-color: rgba(10,126,224,0.4); }
.erform-range-wrapper { margin-bottom: 24px; }
.erform-range {
  -webkit-appearance: none; width: 100% !important; height: 6px !important;
  background: var(--er-border) !important; border-radius: 100px !important;
  outline: none !important; padding: 0 !important; border: none !important;
}
.erform-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px;
  background: var(--er-gradient-primary); border-radius: 50%;
  cursor: pointer; box-shadow: 0 0 10px rgba(0,200,255,0.5);
}
.erform-range-display { display: flex; align-items: baseline; gap: 6px; margin-top: 12px; }
.erform-range-value {
  font-family: var(--er-font-display); font-size: 2rem; font-weight: 700;
  background: var(--er-gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.erform-range-unit { color: var(--er-text-muted); font-size: 1rem; }
.erform-textarea {
  background: var(--er-bg-card) !important; border: 1px solid var(--er-border) !important;
  border-radius: var(--er-radius) !important; color: var(--er-text-white) !important;
  padding: 16px !important; font-family: var(--er-font-body) !important;
  font-size: 0.95rem !important; width: 100% !important; resize: vertical; margin-bottom: 24px;
}
.erform-step-nav {
  display: flex; gap: 12px; margin-top: 32px;
  padding-top: 24px; border-top: 1px solid var(--er-border);
}
.erform-btn-prev {
  background: transparent; border: 1px solid var(--er-border); color: var(--er-text-light);
  padding: 12px 24px; border-radius: var(--er-radius); cursor: pointer;
  font-family: var(--er-font-heading); font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.05em; transition: var(--er-transition);
}
.erform-btn-prev:hover { border-color: var(--er-cyan-border); color: var(--er-cyan); }
.erform-btn-next, .erform-btn-submit {
  background: var(--er-gradient-primary); border: none; color: #fff;
  padding: 14px 32px; border-radius: var(--er-radius); cursor: pointer;
  font-family: var(--er-font-heading); font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; transition: var(--er-transition);
  box-shadow: var(--er-shadow-btn); flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.erform-btn-next:hover, .erform-btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,200,255,0.5); }
.erform-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.erform-field-group label {
  color: var(--er-text-light) !important; font-family: var(--er-font-heading) !important;
  font-size: 0.8rem !important; text-transform: uppercase !important;
  letter-spacing: 0.08em !important; margin-bottom: 8px !important;
  display: flex !important; align-items: center !important; gap: 6px !important;
}
.erform-field-full { grid-column: 1 / -1; }
.erform-recap {
  background: var(--er-bg-card); border: 1px solid var(--er-border);
  border-radius: var(--er-radius); padding: 20px; margin: 20px 0;
}
.erform-recap h4 {
  font-family: var(--er-font-heading) !important; font-size: 0.9rem !important;
  color: var(--er-text-muted) !important; text-transform: uppercase !important;
  letter-spacing: 0.08em !important; margin-bottom: 12px !important;
  display: flex !important; align-items: center !important; gap: 8px !important;
}
.erform-recap h4 i { color: var(--er-cyan); }
.erform-recap-item {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 6px 0; border-bottom: 1px solid var(--er-border); font-size: 0.88rem;
}
.erform-recap-item:last-child { border-bottom: none; }
.erform-recap-item-key { color: var(--er-text-muted); flex-shrink: 0; margin-right: 12px; }
.erform-recap-item-val { color: var(--er-text-light); text-align: right; }
.erform-recap-total {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; border-top: 1px solid rgba(0,200,255,0.3); margin-top: 12px;
  font-family: var(--er-font-heading); font-weight: 600; color: var(--er-text-light);
}
.erform-recap-price {
  font-family: var(--er-font-display); font-size: 1.5rem;
  background: var(--er-gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.erform-success { text-align: center; padding: 60px 20px; animation: fadeStepIn 0.5s ease; }
.erform-success-icon { font-size: 4rem; color: var(--er-cyan); margin-bottom: 20px; animation: pulseGlow 2s ease infinite; }
@keyframes pulseGlow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(0,200,255,0.5)); }
  50%       { filter: drop-shadow(0 0 25px rgba(0,200,255,0.9)); }
}
.erform-success h3 {
  font-family: var(--er-font-display) !important; font-size: 1.8rem !important;
  background: var(--er-gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 12px !important;
}
.erform-success p { color: var(--er-text-light); margin-bottom: 24px; }
.erform-btn-home {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--er-gradient-primary); color: #fff;
  padding: 12px 28px; border-radius: var(--er-radius);
  font-family: var(--er-font-heading); font-weight: 600; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.08em; transition: var(--er-transition);
}
.erform-btn-home:hover { transform: translateY(-2px); color: #fff; box-shadow: var(--er-shadow-btn); }
.erform-error {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,70,70,0.1); border: 1px solid rgba(255,70,70,0.3);
  border-radius: var(--er-radius); padding: 14px 18px; color: #ff6b6b; font-size: 0.9rem; margin-top: 12px;
}
@media (max-width: 600px) {
  .erform-choices { grid-template-columns: 1fr; }
  .erform-contact-grid { grid-template-columns: 1fr; }
  .erform-field-full { grid-column: 1; }
}
