/* WeighLess frontend layout: full available width, capped at 1290px on desktop. */
.wlapp,
.wlapp * { box-sizing: border-box; }
.wlapp {
  --wl-blue: #003EA5;
  --wl-yellow: #FFC72C;
  --wl-orange: #FF6A03;
  --wl-navy: #060D37;
  width: min(100%, 1290px) !important;
  max-width: 1290px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
  color: #172033;
  font-family: inherit;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.wlapp .wlapp-head,
.wlapp .wlapp-card,
.wlapp .wlapp-alert,
.wlapp .wlapp-grid,
.wlapp .wlapp-daily-card { min-width: 0; }
.wlapp .wlapp-head {
  width: 100%;
  max-width: none;
  margin: 0 0 22px;
  padding: clamp(22px, 3vw, 44px);
  border: 1px solid rgba(255,255,255,.2);
  border-bottom: 5px solid var(--wl-yellow);
  border-radius: 26px;
  background: linear-gradient(115deg, var(--wl-blue), var(--wl-navy));
  color: #fff;
  box-shadow: 0 16px 36px rgba(6,13,55,.14);
}
.wlapp .wlapp-head h2 { margin: 0 0 8px; color: var(--wl-yellow); font-size: clamp(28px, 3vw, 42px); line-height: 1.15; }
.wlapp .wlapp-head p { max-width: 900px; margin: 0; color: #fff; }
.wlapp .wlapp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 20px);
  width: 100%;
  max-width: none;
  margin: 0 0 20px;
}
.wlapp .wlapp-card {
  min-width: 0;
  padding: clamp(14px, 1.8vw, 26px);
  border: 1px solid #d7e1f0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(6,13,55,.055);
}
.wlapp .wlapp-card h3 { margin-top: 0; color: var(--wl-blue); }
.wlapp label { display: block; margin: 12px 0 6px; font-weight: 600; }
.wlapp input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]):not([type="file"]),
.wlapp select,
.wlapp textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid #c9d7ed;
  border-radius: 12px;
  background: #fff;
  color: #172033;
  font: inherit;
  box-shadow: none;
  box-sizing: border-box;
}
/* Keep every single-line form control at the same height. Textareas are intentionally excluded. */
.wlapp input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]):not([type="file"]),
.wlapp select {
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px;
  line-height: 1.4;
}
.wlapp textarea { min-height: 96px; height: auto; max-height: none; resize: vertical; }
.wlapp input:focus,
.wlapp select:focus,
.wlapp textarea:focus { outline: 2px solid rgba(0,62,165,.18); outline-offset: 1px; border-color: var(--wl-blue); }
.wlapp button,
.wlapp button[type="submit"] {
  min-height: 44px;
  margin-top: 12px;
  padding: 10px 20px;
  border: 0;
  border-radius: 12px;
  background: var(--wl-orange);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.wlapp a { color: var(--wl-blue); }
.wlapp .wlapp-muted { color: #52627b; }
.wlapp .wlapp-alert { width: 100%; margin: 0 0 18px; padding: 16px 18px; border: 1px solid #f0d8b0; border-left: 5px solid var(--wl-orange); border-radius: 16px; background: #fff4e5; }
.wlapp table { width: 100%; border-collapse: collapse; }
.wlapp th, .wlapp td { padding: 10px; border-bottom: 1px solid #e5eaf2; text-align: left; vertical-align: top; }
.wlapp .wlapp-section-head { margin: 22px 0 10px; padding: 12px 16px; border-radius: 12px; background: var(--wl-yellow); color: var(--wl-blue); }
.wlapp .wlapp-yellow { background: var(--wl-yellow); color: var(--wl-blue); }
@media (min-width: 761px) {
  body .wlapp { width: min(100%, 1290px) !important; max-width: 1290px !important; margin-left: auto !important; margin-right: auto !important; padding: 0 !important; }
}
@media (max-width: 760px) {
  body .wlapp { width: 100% !important; max-width: 1290px !important; margin-left: auto !important; margin-right: auto !important; padding: 0 4px !important; }
  .wlapp .wlapp-head { padding: 22px 18px; border-radius: 18px; margin-bottom: 12px; }
  .wlapp .wlapp-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .wlapp .wlapp-card { padding: 14px; border-radius: 16px; }
  .wlapp th, .wlapp td { padding: 8px 6px; }
}

/* Accessible custom programme-pace selector. Keep the native select in the form,
   but visually hide it; show only the styled trigger until the menu is opened. */
.wlapp .wlapp-select-wrap {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
}
.wlapp select.wlapp-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
}
.wlapp .wlapp-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 10px 14px !important;
  border: 1px solid #c9d7ed !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #172033 !important;
  box-shadow: none !important;
  text-align: left;
  line-height: 1.4;
  font: inherit;
  font-weight: 400;
}
.wlapp .wlapp-select-trigger:hover { background: #f8faff !important; border-color: #9bb7e8 !important; }
.wlapp .wlapp-select-trigger:focus-visible { outline: 2px solid rgba(0,62,165,.28); outline-offset: 2px; border-color: var(--wl-blue) !important; }
.wlapp .wlapp-select-value { display: block; min-width: 0; overflow-wrap: anywhere; }
.wlapp .wlapp-select-chevron { display: block; flex: 0 0 20px; width: 20px; height: 20px; max-width: 20px; }
.wlapp .wlapp-select-menu {
  display: none;
  position: absolute;
  z-index: 1000;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  width: 100%;
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #d7e1f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(6,13,55,.14);
}
.wlapp .wlapp-select-wrap[aria-expanded="true"] .wlapp-select-menu { display: block; }
.wlapp .wlapp-select-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  height: auto;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #172033 !important;
  box-shadow: none !important;
  text-align: left;
  white-space: normal;
  line-height: 1.4;
  font: inherit;
  font-weight: 500;
}
.wlapp .wlapp-select-option:hover,
.wlapp .wlapp-select-option:focus-visible { background: #eef4ff !important; color: var(--wl-blue) !important; outline: none; }
.wlapp .wlapp-select-option[aria-selected="true"] { background: #fff4d0 !important; color: var(--wl-blue) !important; font-weight: 700; }
.wlapp .wlapp-select-option-mark { flex: 0 0 18px; width: 18px; color: var(--wl-blue); visibility: hidden; }
.wlapp .wlapp-select-option[aria-selected="true"] .wlapp-select-option-mark { visibility: visible; }


/* v2.2.8 form-flow cleanup: enforce breathing room around assessment sections
   and keep section headings proportional instead of inheriting oversized theme styles. */
.wlapp form > .wlapp-section-head,
.wlapp form .wlapp-section-head {
  display: block;
  width: 100%;
  margin: 26px 0 12px !important;
  padding: 12px 16px !important;
  border-radius: 12px;
  background: var(--wl-yellow, #FFC72C) !important;
  color: var(--wl-blue, #003EA5) !important;
  font-size: clamp(20px, 2.1vw, 28px) !important;
  font-weight: 750 !important;
  line-height: 1.3 !important;
  letter-spacing: normal !important;
  box-shadow: none !important;
}
.wlapp form textarea {
  margin-bottom: 8px;
}
.wlapp form .wlapp-muted + .wlapp-section-head {
  margin-top: 26px !important;
}
.wlapp form .wlapp-subhead {
  display: block;
  margin: 22px 0 8px !important;
  color: var(--wl-blue, #003EA5);
  font-size: 18px !important;
  line-height: 1.35 !important;
}
.wlapp form .wlapp-grid {
  margin-top: 12px;
  margin-bottom: 14px;
}
.wlapp form .wlapp-grid > div {
  min-width: 0;
}
.wlapp form label {
  margin-top: 14px;
  line-height: 1.4;
}
.wlapp form .wlapp-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 10px 0 !important;
}
.wlapp form .wlapp-check input[type="checkbox"],
.wlapp form .wlapp-check input[type="radio"] {
  flex: 0 0 auto;
  margin-top: 4px;
}
@media (max-width: 760px) {
  .wlapp form > .wlapp-section-head,
  .wlapp form .wlapp-section-head {
    margin: 22px 0 10px !important;
    padding: 11px 14px !important;
    font-size: 21px !important;
  }
  .wlapp form .wlapp-subhead { font-size: 17px !important; }
}

/* Calculated target-weight field: read-only and visibly non-editable. */
.wlapp .wlapp-calculated-field, .wlapp-calculated-field { background:#eef1f5 !important; color:#4b5563 !important; border-color:#cbd5e1 !important; cursor:not-allowed; font-weight:600; }
.wlapp .wlapp-calculated-field:focus, .wlapp-calculated-field:focus { outline:2px solid #cbd5e1; box-shadow:none; }

/* Manual monthly subscription panel */
.wlapp .wlapp-subscription-card {
  border-left: 4px solid #003EA5;
  background: #fff;
}
.wlapp .wlapp-subscription-card h3 {
  margin-top: 0;
  color: #003EA5;
}
.wlapp .wlapp-subscription-card .wlapp-renew-form { margin: 14px 0 0; }
.wlapp .wlapp-subscription-card .wlapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 12px;
  background: #FF6A03;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.wlapp .wlapp-subscription-card .wlapp-button:hover,
.wlapp .wlapp-subscription-card .wlapp-button:focus {
  background: #003EA5;
  color: #FFC72C;
}

/* WeighLess global control sizing: consistent 48px controls throughout the participant interface. */
.wlapp input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="image"]),
.wlapp select,
.wlapp .wlapp-select-trigger {
  box-sizing: border-box !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
}
.wlapp button,
.wlapp input[type="submit"],
.wlapp input[type="button"],
.wlapp input[type="reset"],
.wlapp .button,
.wlapp a.button,
.wlapp .wlapp-button,
.wlapp .wlapp-subscription-card .wlapp-button {
  box-sizing: border-box !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  line-height: 1.25 !important;
}
.wlapp textarea,
.wlapp form textarea {
  height: auto !important;
  min-height: 96px !important;
  max-height: none !important;
}
.wlapp input[type="checkbox"],
.wlapp input[type="radio"] { height: auto !important; min-height: 0 !important; max-height: none !important; }

/* Multi-step participant registration */
.wlapp .wlapp-reg-progress{margin:18px 0 22px;padding:16px 18px;border:1px solid #dbe5f4;border-radius:14px;background:linear-gradient(135deg,#f8fbff 0%,#fff 100%)}
.wlapp .wlapp-reg-progress-track{height:5px;overflow:hidden;border-radius:99px;background:#e5eaf2}
.wlapp .wlapp-reg-progress-track span{display:block;height:100%;width:25%;border-radius:99px;background:#003EA5;transition:width .2s ease}
.wlapp .wlapp-reg-progress p{display:flex;gap:10px;align-items:center;margin:12px 0 10px;color:#060D37}
.wlapp .wlapp-reg-step-count{font-size:13px;white-space:nowrap}
.wlapp .wlapp-reg-step-name{font-size:14px;color:#42516b}
.wlapp .wlapp-reg-step-dots{display:flex;gap:7px}
.wlapp .wlapp-reg-step-dots span{display:block;width:8px;height:8px;border-radius:50%;background:#d8dfeb}
.wlapp .wlapp-reg-step-dots span.is-active,.wlapp .wlapp-reg-step-dots span.is-complete{background:#003EA5}
.wlapp .wlapp-reg-step[hidden],.wlapp .wlapp-reg-nav[hidden]{display:none!important}
.wlapp .wlapp-reg-step-title{margin:0 0 18px;padding-bottom:12px;border-bottom:1px solid #e8edf5;color:#060D37;font-size:19px;font-weight:750;line-height:1.35}
.wlapp .wlapp-reg-nav{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:22px;padding-top:16px;border-top:1px solid #edf0f5}
.wlapp .wlapp-reg-nav button{min-width:132px}
.wlapp .wlapp-reg-nav .wlapp-reg-back{background:#fff!important;color:#003EA5!important;border:1px solid #cbd7e9!important}
.wlapp .wlapp-reg-nav .wlapp-reg-next,.wlapp .wlapp-reg-final-nav button[type=submit]{background:#003EA5!important;color:#FFC72C!important;border:1px solid #003EA5!important}
.wlapp .wlapp-reg-final-nav{justify-content:space-between}
@media(max-width:600px){.wlapp .wlapp-reg-progress{padding:13px}.wlapp .wlapp-reg-nav{gap:8px}.wlapp .wlapp-reg-nav button{min-width:0;flex:1;padding-inline:10px}.wlapp .wlapp-reg-step-title{font-size:17px}}
