.dja-guide,
.dja-details {
  --dja-primary: #1473e6;
  --dja-primary-soft: #eef6ff;
  --dja-success: #168a45;
  --dja-text: #202936;
  --dja-muted: #66758a;
  --dja-border: #d8e0ea;
  --dja-surface: #f7f9fc;
  box-sizing: border-box;
  color: var(--dja-text);
}

.dja-guide *,
.dja-details * {
  box-sizing: border-box;
}

.dja-details {
  display: flex;
  flex-direction: column;
}

.dja-guide {
  display: flex;
  flex-direction: column;
  clear: both;
  width: 100%;
  margin: 20px 0 0;
  background: #fff;
}

.dja-guide fieldset {
  padding: 20px !important;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
  border-radius: 5px !important;
}
.dja-guide__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  width: 100% !important;
  min-height: 0 !important;
  float: none !important;
  clear: both !important;
  background: var(--dja-surface);
}

.dja-guide__eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--dja-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dja-guide h3,
.dja-guide p {
  margin: 0;
}

.dja-guide__header h3 {
  margin-bottom: 6px;
  font-size: 20px;
  line-height: 1.3;
}

.dja-guide__header p,
.dja-group__help {
  color: var(--dja-muted);
  font-size: 13px;
  line-height: 1.55;
}

.dja-score {
  flex: 0 0 82px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--dja-surface);
  text-align: center;
}

.dja-score strong,
.dja-score span {
  display: block;
}

.dja-score strong {
  color: var(--dja-primary);
  font-size: 20px;
}

.dja-score span {
  margin-top: 2px;
  color: var(--dja-muted);
  font-size: 10px;
}

.dja-progress {
  height: 6px;
  margin: 16px 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf3;
}

.dja-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--dja-primary), #35a7ff);
  transition: width .2s ease;
}

.dja-statuses {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row !important;
  align-items: center !important;
  gap: 7px;
  margin-bottom: 8px;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  float: none !important;
  clear: both !important;
  position: static !important;
}

.dja-statuses span {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  float: none !important;
  clear: none !important;
  position: static !important;
  writing-mode: horizontal-tb !important;
  word-break: normal !important;
  overflow: visible !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef1f5;
  color: var(--dja-muted);
  font-size: 11px;
  font-weight: 600;
}

.dja-statuses span.is-complete {
  background: #e8f7ee;
  color: var(--dja-success);
}

.dja-statuses span.is-complete::before {
  content: "✓ ";
}

.dja-form-error {
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid #efb7b7;
  border-radius: 9px;
  background: #fff2f2;
  color: #a32727;
  font-size: 13px;
}

.dja-group {
  min-width: 0;
  width: 100% !important;
  float: none !important;
  clear: both !important;
  box-shadow: none !important;
  background: transparent !important;
  margin: 22px 0 0;
  padding: 20px 0 0;
  border: 0;
  border-top: 1px solid #e8edf2;
}

.dja-group legend {
  display: block;
  width: 100%;
  margin: 0 0 4px;
  padding: 0;
  color: var(--dja-text);
  font-size: 16px;
  font-weight: 700;
}

.dja-group legend sup {
  color: #d53a3a;
}

.dja-group legend small {
  margin-left: 5px;
  color: var(--dja-muted);
  font-size: 11px;
  font-weight: 500;
}

.dja-choice-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 9px;
  margin-top: 13px;
}

.dja-choice-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dja-choice {
  display: block;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}

.dja-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dja-choice > span {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--dja-border);
  border-radius: 10px;
  background: #fff;
  color: #354154;
  font-size: 13px;
  line-height: 1.35;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.dja-choice > span:hover {
  border-color: #9abce5;
  background: #fbfdff;
}

.dja-choice i {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-right: 9px;
  border: 1.5px solid #aab5c3;
  border-radius: 5px;
  background: #fff;
}

.dja-choice--radio i {
  border-radius: 50%;
}

.dja-choice input:checked + span {
  border-color: var(--dja-primary);
  background: var(--dja-primary-soft);
  box-shadow: 0 0 0 1px rgba(20, 115, 230, .08);
  color: #15579e;
}

.dja-choice input:checked + span i {
  border-color: var(--dja-primary);
  background: var(--dja-primary);
}

.dja-choice input:checked + span i::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.dja-choice--radio input:checked + span i::after {
  left: 4px;
  top: 4px;
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  transform: none;
}

.dja-choice input:focus-visible + span {
  outline: 3px solid rgba(20, 115, 230, .22);
  outline-offset: 2px;
}

.dja-other {
  display: block;
  margin-top: 13px;
}

.dja-other > span {
  display: block;
  margin-bottom: 6px;
  color: #435064;
  font-size: 12px;
  font-weight: 600;
}

.dja-guide .dja-other input[type="text"] {
  width: 100%;
  height: 42px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid var(--dja-border);
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
}

.dja-repeatable__list {
  display: grid;
  gap: 8px;
}

.dja-repeatable__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dja-guide .dja-repeatable__row input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
}

.dja-repeatable__add,
.dja-repeatable__remove {
  appearance: none;
  border: 1px solid var(--dja-border);
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
}

.dja-repeatable__add {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  margin-top: 8px;
  padding: 7px 12px;
  background: var(--dja-primary-soft);
  color: #15579e;
  font-size: 12px;
  font-weight: 700;
}

.dja-repeatable__add span {
  font-size: 19px;
  line-height: 1;
}

.dja-repeatable__remove {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: #fff;
  color: #a32727;
  font-size: 21px;
  line-height: 1;
}

.dja-repeatable__add:hover,
.dja-repeatable__add:focus-visible {
  border-color: var(--dja-primary);
  outline: 0;
}

.dja-repeatable__remove:hover,
.dja-repeatable__remove:focus-visible {
  border-color: #d98d8d;
  background: #fff5f5;
  outline: 0;
}

.dja-repeatable__add[hidden],
.dja-repeatable__remove[hidden] {
  display: none !important;
}

.dja-guide .dja-other input[type="text"]:focus {
  border-color: var(--dja-primary);
  box-shadow: 0 0 0 3px rgba(20, 115, 230, .12);
  outline: 0;
}

.dja-group.has-error legend {
  color: #a32727;
}

.dja-group.has-error .dja-choice > span,
.dja-group.has-error .dja-other input {
  border-color: #df9a9a;
}

.dja-details {
  clear: both;
  width: 100%;
  margin: 4px 0 25px;
  padding: 22px;
  border: 1px solid var(--dja-border);
  border-radius: 14px;
  background: var(--dja-surface);
}

.dja-details > h2 {
  margin: 0 0 18px;
  font-size: 20px;
}

.dja-details__group + .dja-details__group {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e0e6ed;
}

.dja-details__group h3 {
  margin: 0 0 10px;
  color: var(--dja-text);
  font-size: 15px;
}

.dja-details__group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dja-details__group li {
  position: relative;
  margin: 7px 0;
  padding-left: 22px;
  color: #364255;
  line-height: 1.5;
}

.dja-details__group li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--dja-success);
  font-weight: 700;
}

.dja-details__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.dja-details__facts > div {
  padding: 11px 12px;
  border-radius: 9px;
  background: #fff;
}

.dja-details__facts dt {
  margin-bottom: 3px;
  color: var(--dja-muted);
  font-size: 11px;
}

.dja-details__facts dd {
  margin: 0;
  color: var(--dja-text);
  font-weight: 600;
}

.dja-details__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.dja-details__tags span {
  padding: 7px 10px;
  border: 1px solid #cce0f7;
  border-radius: 999px;
  background: #fff;
  color: #245f98;
  font-size: 12px;
}

@media (max-width: 760px) {
  .dja-guide {
    padding: 17px;
    border-radius: 11px;
  }

  .dja-guide__header {
    display: block;
  }

  .dja-score {
    display: inline-block;
    margin-top: 12px;
  }

  .dja-choice-grid,
  .dja-choice-grid--compact,
  .dja-details__facts {
    grid-template-columns: 1fr;
  }

  .dja-choice > span {
    min-height: 44px;
  }
}
