/* Compatibility for Django forms; the original PHP CSS remains unmodified. */
.navbar-default1{background-color:#fff;border-color:#fff;margin-bottom:0}
.test-answer{display:block;position:relative;width:60px;height:60px;margin:0;cursor:pointer}
.test-answer-input{position:absolute;width:1px;height:1px;opacity:0}
.test-answer:has(input:focus-visible){outline:2px solid #068f90;outline-offset:2px}
.test-answer .sprite{display:block;cursor:pointer}
.test_body_button a.btn{line-height:36px}
.errorlist{color:#a94442;text-align:left}
.form-horizontal .errorlist{list-style:none;text-align:center;padding:0}
.frontend-form input:not([type=hidden]),.frontend-form select{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background:#fff;border:1px solid #ccc;border-radius:4px}

/* Finish Page (/tests/figure-reasoning/finish/) */
.finish-section {
  padding: 18px 0 12px;
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}

.finish-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 28px;
  align-items: start;
}

.finish-main,
.finish-sidebar {
  min-width: 0;
}

.finish-card {
  background: #ffffff;
  border: 1px solid #d8e5e7;
  border-top: 4px solid #068f90;
  border-radius: 12px;
  padding: 26px 26px 24px;
  box-shadow: 0 2px 6px rgba(18, 42, 48, 0.04), 0 10px 26px rgba(18, 42, 48, 0.04);
}

.finish-card-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ebf1f2;
}

.finish-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #e8f5f5;
  border: 1px solid #c4e3e2;
  color: #057576;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
}

.finish-title {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 650;
  line-height: 1.35;
  color: #1b3136;
  letter-spacing: -0.2px;
}

.finish-subtitle {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #5f747a;
}

.finish-alert {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fdf3f2;
  border: 1px solid #f1c7c4;
  color: #9e2a2b;
  font-size: 13.5px;
}

.finish-alert .errorlist {
  list-style: none;
  margin: 0;
  padding: 0;
  color: inherit;
}

.finish-fields {
  display: grid;
  gap: 16px;
}

.finish-field {
  min-width: 0;
}

.finish-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 7px;
}

.finish-label {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: #21373d;
  line-height: 1.4;
}

.finish-field-hint {
  font-size: 12.5px;
  color: #6b8086;
  font-weight: 400;
}

.finish-field-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 6px;
  background: #eef6f6;
  border: 1px solid #d2e6e6;
  color: #196467;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.finish-input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 9px 14px;
  font-size: 15px;
  line-height: 1.45;
  color: #1d2f34;
  background-color: #fbfdfd;
  border: 1px solid #c6d6d9;
  border-radius: 8px;
  box-shadow: inset 0 1px 2px rgba(18, 42, 48, 0.02);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.finish-input::placeholder {
  color: #8ea0a6;
}

.finish-input:hover {
  border-color: #9fb8bc;
  background-color: #ffffff;
}

.finish-input:focus {
  outline: none;
  border-color: #068f90;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(6, 143, 144, 0.14);
}

.finish-input:-webkit-autofill,
.finish-input:-webkit-autofill:hover,
.finish-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #1d2f34;
  -webkit-box-shadow: 0 0 0 1000px #f4fafa inset;
  border-color: #a9cecf;
  transition: background-color 5000s ease-in-out 0s;
}

.finish-field .errorlist {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  font-size: 12.5px;
  color: #b4232c;
}

.finish-account-box {
  padding: 13px 15px;
  border-radius: 9px;
  background: #f5fafa;
  border: 1px solid #d5e7e7;
}

.finish-account-email {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: #194d52;
  overflow-wrap: anywhere;
}

.finish-privacy-note {
  margin: 15px 0 0;
  font-size: 12.5px;
  color: #74888e;
  line-height: 1.5;
}

.finish-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #ebf1f2;
}

.finish-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.finish-btn-secondary {
  background: #ffffff;
  border: 1px solid #c9d7da;
  color: #4f656b;
}

.finish-btn-secondary:hover,
.finish-btn-secondary:focus-visible {
  background: #f4f8f9;
  border-color: #aebfc3;
  color: #21373d;
}

.finish-btn-primary {
  background: #068f90;
  border: 1px solid #068f90;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(6, 143, 144, 0.2);
}

.finish-btn-primary:hover,
.finish-btn-primary:focus-visible {
  background: #057879;
  border-color: #057879;
  color: #ffffff;
}

.finish-progress-card {
  background: #fbfdfd;
  border: 1px solid #e1ecee;
  border-radius: 12px;
  padding: 22px 24px;
}

.finish-progress-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.finish-progress-title {
  font-size: 14px;
  font-weight: 650;
  color: #253d43;
  white-space: nowrap;
}

.finish-progress-line {
  flex: 1;
  height: 10px;
  border-radius: 5px;
  background: #eef4f5;
}

.finish-ring-wrap {
  position: relative;
  width: 248px;
  height: 248px;
  max-width: 100%;
  margin: 4px auto 8px;
}

.finish-ring-wrap canvas.test-progress {
  display: block;
  width: 100%;
  height: 100%;
}

.finish-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.finish-ring-value {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.08;
  color: #068f90;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

.finish-ring-caption {
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 500;
  color: #63797f;
}

.finish-notes {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid #e6eff1;
}

.finish-notes-title {
  font-size: 13.5px;
  font-weight: 650;
  color: #253d43;
  margin-bottom: 8px;
}

.finish-notes-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.65;
  color: #5d7379;
}

.finish-notes-list li + li {
  margin-top: 6px;
}

.finish-notes-list strong {
  color: #068f90;
  font-weight: 600;
}

@media (max-width: 767px) {
  .finish-section {
    padding: 10px 0 6px;
  }
  .finish-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .finish-sidebar {
    display: none !important;
  }
  .finish-card {
    padding: 20px 18px;
  }
  .finish-title {
    font-size: 19px;
  }
  .finish-actions {
    grid-template-columns: 1fr 1.25fr;
    gap: 10px;
  }
}
