/* Form */
.ef-form{max-width:1000px;margin:0 auto;background:#f5f8ff;padding:20px;border-radius:8px}
.ef-form label{display:block;margin-top:12px;font-weight:600}
.ef-form input[type=text],.ef-form input[type=email],.ef-form textarea,.ef-form select{width:100%;padding:10px;border:1px solid #cfd7ea;border-radius:6px;background:#eef3ff}
.ef-scale-wrapper{margin-top:20px}
.ef-item{border:1px solid #cfd7ea;background:#fff;padding:14px;border-radius:8px;margin-bottom:12px}
.ef-radio{display:block;margin:6px 0}
.ef-btn{display:inline-block;padding:10px 14px;border-radius:8px;border:none;cursor:pointer}
.ef-primary{background:#111;color:#fff}
.ef-secondary{background:#e6ecff}
.ef-link{background:transparent;color:#cc0000;padding:4px}
.ef-thanks{padding:16px;background:#ecfff1;border:1px solid #b9f0c9;border-radius:8px;margin-bottom:10px}
/* Analytics sizing */
.ef-chart-wrap{position:relative;height:260px}
.ef-chart-wrap canvas{width:100%!important;height:100%!important;display:block}
/* Modal */
.ef-modal{position:fixed;inset:0;background:rgba(0,0,0,.45);display:none;align-items:center;justify-content:center;z-index:100000}
.ef-modal.show{display:flex}
.ef-modal-content{background:#fff;border-radius:8px;box-shadow:0 10px 30px rgba(0,0,0,.2);padding:16px;width:680px;max-width:96vw}
.ef-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin:6px 0 10px}



/* Bigger group headings for topic sections */
.ef-scale-wrapper .ef-section-heading{
  margin: 20px 0 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}



/* Ensure question title badges accommodate long text */
.ef-item legend {
  width: 100%;
}
.ef-item legend strong {
  display: inline-block;
  max-width: 100%;
  white-space: normal; /* allow wrap */
  overflow: visible;
}
/* Increase the pill width and allow wrapping */
.ef-item legend strong {
  padding: 6px 10px;
  border-radius: 8px;
}
/* Improve radio label spacing and line height */
.ef-radio span{
  line-height: 1.4;
}

.ef-scale-title{margin:16px 0 6px;font-weight:700;font-size:20px}
