/* ===========================================
   ENJOYWORK TEST (QUESTIONS) LAYOUT
   =========================================== */

/* Κεντρικό container του τεστ */
.ew-app {
  max-width: 860px;
  margin: 20px auto;
  padding: 10px;
}

/* Top bar + progress */
.ew-app .ew-topbar {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ew-app .ew-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ew-app .ew-progress-bar {
  flex: 1;
  height: 8px;
  background: #eee;
  border-radius: 8px;
  overflow: hidden;
}

.ew-app .ew-progress-bar span {
  display: block;
  height: 100%;
  background: #4c8bf5;
  width: 0%;
  transition: width .25s ease;
}

.ew-app .ew-progress-percent {
  min-width: 52px;
  text-align: right;
  font-size: 12px;
  color: #555;
}

/* Sections */
.ew-app .ew-section {
  display: none;
  opacity: 0;
  transition: opacity .2s ease;
}

.ew-app .ew-section.active {
  display: block;
  opacity: 1;
}

/* Κάρτες ερωτήσεων */
.ew-app .ew-question {
  border: 1px solid #e7e7e7;
  border-radius: 6px;
  padding: 24px;
  margin: 20px 0;
  transition: opacity .2s ease;
  cursor: pointer;
}

.ew-app .ew-question.ghost {
  opacity: .2;
}

.ew-app .ew-question.active {
  opacity: 1;
}

.ew-app .ew-question.answered {
  opacity: .5;
}

/* Κλίμακα 1–5 σε μία γραμμή */
.ew-app .ew-q-scale {
  display: flex !important;
  align-items: center;
  gap: 25px;
  margin-top: 10px;
  font-size: 24px;
}

.ew-app .ew-q-scale .ew-scale-option {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Κουμπιά κάτω από τις ερωτήσεις */
.ew-app .ew-section-controls {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.ew-app .ew-submit-row {
  text-align: right;
  margin-top: 14px;
}

/* Instructions επάνω από το τεστ */
.ew-instructions {
  margin-bottom: 35px;
  text-align: center;
  font-size: 16px;
  color: #444;
  line-height: 1.5;
}


/* ===========================================
   ENJOYWORK REPORT (RESULTS) LAYOUT
   =========================================== */

.ew-report {
  max-width: 840px;
  margin: 0 auto;
  text-align: left;
}

.ew-report,
.ew-report p,
.ew-report li {
  color: #000;
}

.ew-report-block {
  margin-bottom: 40px;
}

/* Γενικοί τίτλοι blocks */
.ew-block-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #00569a;
}

/* ΜΟΝΟ ο τίτλος του Overall στο κέντρο */
.ew-block-title-center {
  text-align: center;
}

/* ===========================================
   OVERALL SCORE (ΚΥΚΛΟΣ + ΚΕΙΜΕΝΟ)
   =========================================== */

.ew-overall-block {
  margin-bottom: 40px;
}

.ew-overall-wrapper {
  text-align: center;
  margin: 8px 0 20px;
}

/* Δαχτυλίδι: ποσοστό με χρώμα, υπόλοιπο γκρι
   Περιμένει inline style π.χ.:
   <div class="ew-circle" style="--percent:67; --ew-circle-color:#5cb85c;"> */
.ew-circle {
  --size: 180px;
  --percent: 0;
  --ew-circle-color: #4c8bf5;

  width: var(--size);
  height: var(--size);
  margin: 0 auto;
  border-radius: 50%;
  position: relative;

  background:
    radial-gradient(circle at center, #fff 62%, transparent 63%),
    conic-gradient(
      var(--ew-circle-color) 0 calc(var(--percent) * 1%),
      #e6e6e6 0 100%
    );

  display: flex;
  align-items: center;
  justify-content: center;
}

/* 64% στο κέντρο */
.ew-circle-text {
  position: relative;
  font-size: 40px;
  font-weight: 700;
  color: #000;
}

/* Κείμενο κάτω από overall score */
.ew-overall-text {
  max-width: 480px;
  margin: 16px auto 0;
  font-size: 16px;
  line-height: 1.5;
  color: #444;
  text-align: center;
}

/* Fallback αν ο renderer δεν υποστηρίζει conic-gradient */
@supports not (background: conic-gradient(red, blue)) {
  .ew-circle {
    background: #e6e6e6;
  }
}
/* κρύβω την μπάρα στο site, φαίνεται μόνο ο κύκλος */
.ew-overall-bar-wrapper {
  display: none;
}

/* ===========================================
   Highest / Lowest Dimension γραμμές
   =========================================== */

.ew-profile-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 10px;
  font-size: 20px;
  color: #000;
  line-height: 1.4;
}

.ew-profile-line::before {
  content: "";
  width: 12px;
  height: 12px;
  background: #9c27b0; /* μωβ bullet */
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

/* ===========================================
   Cards / κείμενα αποτελεσμάτων
   =========================================== */

.ew-bar-card {
  margin-top: 10px;
  margin-bottom: 18px;
}

.ew-bar-title {
  font-size: 22px;
  font-weight: 800;
  color: #000;
}

.ew-bar-percent {
  font-weight: 700;
  margin-right: 6px;
}

.ew-bar-text {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  margin-top: 8px;
}

/* Μπάρες (Groups / Appendix) */
.ew-bar-track {
  width: 100%;
  height: 8px;
  background: #e6e6e6;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}

.ew-bar-fill {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: #e6e6e6 !important;
  /* ΔΕΝ βάζουμε χρώμα εδώ, το δίνει inline η PHP για groups */
}

/* Μην ορίζεις background στις group bars από CSS,
   άφησέ το να έρθει από το inline style της PHP */
.ew-group-results .ew-bar-fill {
  background: none;
}

/* ===========================================
   Λίστες Top Strengths / Priority Growth Areas
   =========================================== */

.ew-strengths-list,
.ew-growth-list {
  list-style: disc;
  margin-left: 25px;
  padding-left: 5px;
}

.ew-strengths-list li,
.ew-growth-list li {
  margin-bottom: 10px;
}

/* ===========================================
   Appendix spacing
   =========================================== */

.ew-appendix-groups .ew-bar-card,
.ew-appendix-sections .ew-bar-card {
  margin-bottom: 18px;
}

/* Αν θες να κρύψεις τις μπάρες στα Section Results του Appendix:
   ξεκλείδωσε αυτές τις γραμμές
*/
/*
.ew-appendix-sections .ew-bar-track,
.ew-appendix-sections .ew-bar-fill {
  display: none !important;
}
*/

/* ===========================================
   Export button spacing
   =========================================== */

.ew-export {
  margin: 40px 0 10px;
}
