/* ============================================================
   EBN Forms - Verde #2E6B0A + sfondo viola con sfumature
   ============================================================ */
:root {
  --ebn-bg:        #F0EDF8;
  --ebn-bg-d:      #E3DCF2;
  --ebn-bg-card:   #FAF8FF;
  --ebn-green:     #2E6B0A;
  --ebn-green-l:   #5AAD1A;
  --ebn-green-p:   #85CC45;
  --ebn-text:      #1A1035;
  --ebn-mu:        #6B5F8A;
  --ebn-border:    #CEC4E8;
  --ebn-radius:    14px;
  --ebn-radius-sm: 8px;
}

.ebn-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  background: linear-gradient(160deg, #EDE8F5 0%, #F5F2FC 50%, #E8E2F5 100%);
  border-radius: 20px;
}

.ebn-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
}
.ebn-progress-bar {
  flex: 1;
  height: 3px;
  background: var(--ebn-border);
  border-radius: 3px;
  overflow: hidden;
}
.ebn-progress-fill {
  height: 100%;
  background: var(--ebn-green);
  border-radius: 3px;
  transition: width 0.4s ease;
  width: 0%;
}
.ebn-progress-txt {
  font-size: 12px;
  color: var(--ebn-mu);
  white-space: nowrap;
}

.ebn-card {
  background: var(--ebn-bg-card);
  border-radius: var(--ebn-radius);
  border: 1px solid var(--ebn-border);
  padding: 2rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 12px rgba(100, 80, 160, 0.07);
}

.ebn-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ebn-green-l);
  background: var(--ebn-bg-d);
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  font-weight: 500;
}

.ebn-title {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ebn-green);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.ebn-desc {
  font-size: 13px;
  color: var(--ebn-mu);
  line-height: 1.7;
  margin: 0 0 1.5rem 0;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--ebn-border);
}

.ebn-field { margin-bottom: 1.25rem; }
.ebn-field:last-child { margin-bottom: 0; }

.ebn-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ebn-text);
  margin-bottom: 4px;
}

.ebn-hint {
  font-size: 12px;
  color: var(--ebn-mu);
  font-style: italic;
  line-height: 1.6;
  margin: 0 0 6px 0;
}

.ebn-input,
.ebn-textarea {
  width: 100%;
  background: var(--ebn-bg);
  border: 1px solid var(--ebn-border);
  border-radius: var(--ebn-radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ebn-text);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}
.ebn-input:focus,
.ebn-textarea:focus {
  border-color: var(--ebn-green-l);
  background: var(--ebn-bg-card);
}
.ebn-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.7;
}

.ebn-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 520px) {
  .ebn-row-2 { grid-template-columns: 1fr; }
}

.ebn-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
}
.ebn-pill {
  cursor: pointer;
  padding: 6px 16px;
  border: 1px solid var(--ebn-border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--ebn-mu);
  background: var(--ebn-bg);
  transition: all 0.15s;
  font-family: inherit;
  user-select: none;
}
.ebn-pill:hover { border-color: var(--ebn-green-p); color: var(--ebn-text); }
.ebn-pill.active {
  border-color: var(--ebn-green);
  background: var(--ebn-green);
  color: #fff;
}

.ebn-stars {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}
.ebn-star-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--ebn-border);
  border-radius: var(--ebn-radius-sm);
  background: var(--ebn-bg);
  font-size: 14px;
  cursor: pointer;
  color: var(--ebn-mu);
  transition: all 0.15s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ebn-star-btn:hover { border-color: var(--ebn-green-p); color: var(--ebn-text); }
.ebn-star-btn.active {
  background: var(--ebn-green);
  border-color: var(--ebn-green);
  color: #fff;
  font-weight: 600;
}
.ebn-star-label {
  font-size: 12px;
  color: var(--ebn-mu);
  margin-left: 6px;
  font-style: italic;
}

.ebn-dim {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--ebn-border);
}
.ebn-dim:last-child { border-bottom: none; padding-bottom: 0; }
.ebn-dim-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ebn-green-l);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.ebn-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}
.ebn-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ebn-step-count { font-size: 12px; color: var(--ebn-mu); }

.ebn-btn-primary {
  padding: 10px 24px;
  border-radius: var(--ebn-radius-sm);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  background: var(--ebn-green);
  border: 1px solid var(--ebn-green);
  color: #fff;
  transition: background 0.15s;
  font-weight: 500;
}
.ebn-btn-primary:hover { background: #1e4a07; }
.ebn-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.ebn-btn-secondary {
  padding: 10px 20px;
  border-radius: var(--ebn-radius-sm);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--ebn-border);
  color: var(--ebn-mu);
  transition: all 0.15s;
}
.ebn-btn-secondary:hover { border-color: var(--ebn-green-p); color: var(--ebn-text); }

.ebn-step { display: none; }
.ebn-step.active { display: block; }

.ebn-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--ebn-bg-d);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 24px;
  color: var(--ebn-green);
}

.ebn-spin {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ebn-spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes ebn-spin { to { transform: rotate(360deg); } }
