.webform-submission-ahc-alumni-engagement-and-tracki-form {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem;
  background: #fff;
  border-radius: var(--ahc-radius, 14px);
  box-shadow: 0 10px 30px rgba(2, 87, 82, 0.08);
}
/* ---- Progress bar (stepper) ----
   Base markup/CSS comes from the third-party "progress-tracker" library
   that Webform loads (.progress-tracker / .progress-marker / .progress-text).
   Wrapped in a tinted card, bigger circular markers, a checkmark for
   completed steps, a glow ring on the active step, and de-emphasized
   labels for upcoming steps so the current step reads clearly. */
.webform-submission-ahc-alumni-engagement-and-tracki-form .webform-progress {
  margin: 0 0 2.5rem;
  padding: 1.75rem 1.5rem 1.25rem;
  background: var(--ahc-mint, #e8f4e0);
  border-radius: var(--ahc-radius, 14px);
}
.webform-submission-ahc-alumni-engagement-and-tracki-form .progress-tracker {
  margin: 0;
}
.webform-submission-ahc-alumni-engagement-and-tracki-form .progress-marker::before {
  box-sizing: border-box;
  width: 38px;
  height: 38px;
  font-size: 0.95rem;
  font-weight: 700;
  background-color: #fff !important;
  color: var(--ahc-muted, #5c665f);
  border: 2px solid var(--ahc-sand, #e3dfd7);
}
.webform-submission-ahc-alumni-engagement-and-tracki-form .progress-marker::after {
  height: 3px;
  top: 17px;
  background-color: var(--ahc-sand, #e3dfd7) !important;
}
.webform-submission-ahc-alumni-engagement-and-tracki-form .progress-step.is-active .progress-marker::before {
  background-color: var(--ahc-teal, #025752) !important;
  border-color: var(--ahc-teal, #025752);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(2, 87, 82, 0.18);
}
.webform-submission-ahc-alumni-engagement-and-tracki-form .progress-step.is-complete .progress-marker::before {
  background-color: var(--ahc-green-dark, #6fae47) !important;
  border-color: var(--ahc-green-dark, #6fae47);
  color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3,8.5 6.5,12 13,4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}
.webform-submission-ahc-alumni-engagement-and-tracki-form .progress-step.is-complete .progress-marker::after {
  background-color: var(--ahc-green-dark, #6fae47) !important;
}
.webform-submission-ahc-alumni-engagement-and-tracki-form .progress-text {
  padding: 10px 4px 0;
}
.webform-submission-ahc-alumni-engagement-and-tracki-form .progress-title {
  max-width: 100px;
  margin: 0 auto !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  line-height: 1.25;
  color: var(--ahc-muted, #5c665f);
}
.webform-submission-ahc-alumni-engagement-and-tracki-form .progress-step.is-active .progress-title {
  color: var(--ahc-teal, #025752) !important;
  font-weight: 700 !important;
}
.webform-submission-ahc-alumni-engagement-and-tracki-form .progress-step.is-complete .progress-title {
  color: var(--ahc-ink, #101413);
}
.webform-submission-ahc-alumni-engagement-and-tracki-form .webform-progress__status {
  text-align: center;
  margin-top: 1rem;
}
.webform-submission-ahc-alumni-engagement-and-tracki-form .webform-progress__summary {
  display: inline-block;
  background: #fff;
  color: var(--ahc-teal, #025752);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
}
.webform-submission-ahc-alumni-engagement-and-tracki-form h2 {
  color: var(--ahc-teal, #025752);
  font-weight: 700;
  border-bottom: 2px solid var(--ahc-mint, #e8f4e0);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}
.webform-submission-ahc-alumni-engagement-and-tracki-form label {
  font-weight: 600;
  color: var(--ahc-ink, #101413);
}
.webform-submission-ahc-alumni-engagement-and-tracki-form .form-control,
.webform-submission-ahc-alumni-engagement-and-tracki-form input[type="text"],
.webform-submission-ahc-alumni-engagement-and-tracki-form input[type="email"],
.webform-submission-ahc-alumni-engagement-and-tracki-form input[type="tel"],
.webform-submission-ahc-alumni-engagement-and-tracki-form input[type="number"],
.webform-submission-ahc-alumni-engagement-and-tracki-form select,
.webform-submission-ahc-alumni-engagement-and-tracki-form textarea {
  border-radius: 8px;
  border: 1px solid var(--ahc-sand, #e3dfd7);
  padding: 0.55rem 0.75rem;
}
.webform-submission-ahc-alumni-engagement-and-tracki-form .form-control:focus,
.webform-submission-ahc-alumni-engagement-and-tracki-form input:focus,
.webform-submission-ahc-alumni-engagement-and-tracki-form select:focus,
.webform-submission-ahc-alumni-engagement-and-tracki-form textarea:focus {
  border-color: var(--ahc-teal, #025752);
  box-shadow: 0 0 0 3px rgba(2, 87, 82, 0.15);
  outline: none;
}
.webform-submission-ahc-alumni-engagement-and-tracki-form .webform-button--submit,
.webform-submission-ahc-alumni-engagement-and-tracki-form .webform-button--next,
.webform-submission-ahc-alumni-engagement-and-tracki-form .webform-button--previous {
  border-radius: 10px;
  padding: 0.6rem 1.75rem;
  font-weight: 600;
  border-width: 2px;
  border-style: solid;
}
.webform-submission-ahc-alumni-engagement-and-tracki-form .webform-button--submit,
.webform-submission-ahc-alumni-engagement-and-tracki-form .webform-button--next {
  background: var(--ahc-teal, #025752);
  border-color: var(--ahc-teal, #025752);
  color: #fff;
}
.webform-submission-ahc-alumni-engagement-and-tracki-form .webform-button--submit:hover,
.webform-submission-ahc-alumni-engagement-and-tracki-form .webform-button--next:hover {
  background: var(--ahc-teal-dark, #013b37);
  border-color: var(--ahc-teal-dark, #013b37);
}
.webform-submission-ahc-alumni-engagement-and-tracki-form .webform-button--previous {
  background: var(--ahc-green, #8dc965);
  border-color: var(--ahc-green, #8dc965);
  color: var(--ahc-teal-dark, #013b37);
}
.webform-submission-ahc-alumni-engagement-and-tracki-form .webform-button--previous:hover {
  background: var(--ahc-green-dark, #6fae47);
  border-color: var(--ahc-green-dark, #6fae47);
  color: #fff;
}
.webform-submission-ahc-alumni-engagement-and-tracki-form fieldset {
  border: 1px solid var(--ahc-sand, #e3dfd7);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}
/* The site theme hides .form-item labels sitewide (placeholder-as-label
   pattern for short contact forms). This is a long questionnaire with
   essay-style questions, so labels must stay visible or the question
   text disappears the moment someone starts typing. */
.webform-submission-ahc-alumni-engagement-and-tracki-form .form-item label,
.webform-submission-ahc-alumni-engagement-and-tracki-form label {
  display: block !important;
  margin-bottom: 0.4rem !important;
}
/* The theme force-capitalizes every form label via `form .form-item label
   { text-transform: capitalize }`. That mangles programme/course names
   (e.g. "PhD in Public Health" -> "PhD In Public Health"), so preserve
   the actual casing on this form. */
.webform-submission-ahc-alumni-engagement-and-tracki-form .form-item label {
  text-transform: none !important;
}
/* Nationality and Region render as webform_select_other composites, which
   Drupal wraps in a <fieldset> — the theme's default fieldset/legend
   styling made them look like separate bordered "cards" next to plain
   single-line fields. Strip that box so they read as normal fields. */
.webform-submission-ahc-alumni-engagement-and-tracki-form .webform-select-other--wrapper {
  border: none !important;
  padding: 0 !important;
  margin: 0 0 20px !important;
  background: none !important;
}

/* Bootstrap's default <legend> font-size (~1.4rem) is much larger than a
   normal field <label>, so fieldset-based fields (select-other, radios,
   checkboxes groups) read at a different scale than plain text fields.
   Force every label/legend in this form to the same size/weight. */
.webform-submission-ahc-alumni-engagement-and-tracki-form label,
.webform-submission-ahc-alumni-engagement-and-tracki-form legend,
.webform-submission-ahc-alumni-engagement-and-tracki-form .fieldset-legend {
  font-size: 1rem !important;
  font-weight: 600 !important;
  float: none !important;
  width: auto !important;
}
/* The theme applies width:100%/min-height:60px/padding:0 30px to every
   <input> inside a webform (meant for text fields), which blows up
   checkboxes/radios into giant misaligned squares stacked away from
   their labels. Reset them to a normal small control sitting inline
   with its label on one line. */
.webform-submission-ahc-alumni-engagement-and-tracki-form .form-item.form-type-checkbox,
.webform-submission-ahc-alumni-engagement-and-tracki-form .form-item.form-type-radio {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 0 0.6rem !important;
}
.webform-submission-ahc-alumni-engagement-and-tracki-form .form-item.form-type-checkbox input[type="checkbox"],
.webform-submission-ahc-alumni-engagement-and-tracki-form .form-item.form-type-radio input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 18px !important;
  accent-color: var(--ahc-teal, #025752);
}
.webform-submission-ahc-alumni-engagement-and-tracki-form .form-item.form-type-checkbox label.option,
.webform-submission-ahc-alumni-engagement-and-tracki-form .form-item.form-type-radio label.option {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.95rem !important;
  font-weight: 400 !important;
}
/* Give the Previous/Next/Submit button row breathing room from the last
   field above it and from the bottom edge of the card. The theme floats
   `.form-actions` (float: left), which pulls it out of normal flow so
   the card's own bottom padding never actually wraps around it -- the
   buttons rendered flush against the card's edge. Un-float it first. */
.webform-submission-ahc-alumni-engagement-and-tracki-form .form-actions {
  float: none !important;
  clear: both !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 1rem !important;
  width: auto !important;
  margin-top: 1.75rem !important;
  margin-bottom: 1.5rem !important;
}
/* ---- Confirmation ("Complete") step ----
   Rendered via confirmation_type: inline, so it shares this form's own
   render context (and therefore all the styling above, including the
   progress bar). Style the message block itself + the celebration icon. */
.webform-submission-ahc-alumni-engagement-and-tracki-form .webform-confirmation {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  padding: 1rem 0 0.5rem;
}
.webform-submission-ahc-alumni-engagement-and-tracki-form .webform-confirmation__icon {
  margin: 0 auto 1.25rem;
}
.webform-submission-ahc-alumni-engagement-and-tracki-form .webform-confirmation__icon img {
  width: 120px;
  height: 120px;
  display: inline-block;
}
.webform-submission-ahc-alumni-engagement-and-tracki-form .webform-confirmation__message {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ahc-ink, #101413);
}
.webform-submission-ahc-alumni-engagement-and-tracki-form .webform-confirmation__back {
  margin-top: 1.75rem;
}
.webform-submission-ahc-alumni-engagement-and-tracki-form .webform-confirmation__back a {
  display: inline-block;
  background: var(--ahc-teal, #025752);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.6rem 1.75rem;
  font-weight: 600;
}
.webform-submission-ahc-alumni-engagement-and-tracki-form .webform-confirmation__back a:hover {
  background: var(--ahc-teal-dark, #013b37);
}

/* --- 1. The row ---------------------------------------------------------- */
 
.scale-circles .webform-scale {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px;               /* spacing between circles — tune this */
  margin: 0.75rem 0 0.25rem;
  padding: 0;
  border: 0;
}
 
/* Webform ships the scale as a table/inline-block layout in some versions.
   These resets stop that fighting the flex row above. */
.scale-circles .webform-scale,
.scale-circles .webform-scale .js-form-item,
.scale-circles .webform-scale .form-item {
  float: none;
  width: auto;
  table-layout: auto;
}
 
.scale-circles .webform-scale .form-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}
 
/* --- 2. Hide the native radio (keep it focusable & screen-reader visible) -- */
 
.scale-circles .webform-scale input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
}
 
/* --- 3. The circle ------------------------------------------------------- */
 
.scale-circles .webform-scale .form-item label,
.scale-circles .webform-scale .form-item label.option {
  box-sizing: border-box;
 
  /* A fixed square + border-radius:50% is the only reliable way to get a
     true circle. Padding is what turns these into ovals — keep it at 0. */
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
 
  display: inline-flex;
  align-items: center;
  justify-content: center;
 
  border: 1.5px solid #cfd8d4;
  border-radius: 50%;
  background: #fff;
 
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  color: #16211e;
  text-align: center;
  cursor: pointer;
 
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
 
/* --- 4. States ----------------------------------------------------------- */
 
.scale-circles .webform-scale .form-item label:hover {
  background: #e6f1ec;
  border-color: #1a7a5e;
}
 
.scale-circles .webform-scale input[type="radio"]:checked + label,
.scale-circles .webform-scale input[type="radio"]:checked + label.option {
  background: #0f5d4a;      /* match your Submit button green */
  border-color: #0f5d4a;
  color: #fff;
}
 
/* Fallback for themes that render the label *before* the input. */
.scale-circles .webform-scale .form-item:has(input[type="radio"]:checked) label {
  background: #0f5d4a;
  border-color: #0f5d4a;
  color: #fff;
}
 
.scale-circles .webform-scale input[type="radio"]:focus-visible + label {
  outline: none;
  box-shadow: 0 0 0 4px rgba(15, 93, 74, 0.28);
}
 
/* --- 5. Description line ("1=Not relevant, 2=…") ------------------------- */
 
.scale-circles > .description,
.scale-circles .description {
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #5f6e69;
}
 
/* --- 6. Small screens ---------------------------------------------------- */
 
@media (max-width: 480px) {
  .scale-circles .webform-scale {
    gap: 10px;
  }
  .scale-circles .webform-scale .form-item label,
  .scale-circles .webform-scale .form-item label.option {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    height: 40px;
    font-size: 14px;
  }
}
 
@media (prefers-reduced-motion: reduce) {
  .scale-circles .webform-scale .form-item label {
    transition: none;
  }
}