:root {
  --blue: #074a83;
  --blue2: #0b67a8;
  --gold: #ddb329;
  --cream: #fff8df;
  --ink: #26364a;
  --muted: #647184;
  --line: #d9e1e9;
  --red: #b4232b;
  --green: #247047;
  --bg: #eef3f7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.hero {
  background: linear-gradient(130deg, #063d70, #0c69a9);
  border-bottom: 7px solid var(--gold);
  color: #fff;
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0;
}
.eyebrow {
  margin: 0 0 7px;
  color: #f7da6b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.eyebrow.dark {
  color: #9b7610;
}
.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.05;
}
.hero-copy {
  max-width: 740px;
  margin: 0;
  color: #e6f0f8;
  font-size: 18px;
  line-height: 1.5;
}
.mac-logo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  clip-path: circle(48%);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.28));
}
.notice {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  padding: 15px 18px;
  background: var(--cream);
  border-left: 6px solid var(--gold);
  border-radius: 8px;
  line-height: 1.5;
}
.notice strong {
  color: var(--blue);
  white-space: nowrap;
}
.guidance-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 20px;
  padding: 16px 18px;
  background: #eaf4fb;
  border: 1px solid #c7dce9;
  border-left: 6px solid var(--blue);
  border-radius: 8px;
}
.guidance-bar div {
  flex: 1 1 auto;
}
.guidance-bar strong {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
}
.guidance-bar span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.guidance-bar .gold-link {
  flex: 0 0 auto;
}
.panel {
  margin: 20px 0;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(20, 48, 92, 0.09);
}
.panel h2 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 30px;
}
.section-copy {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.5;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.category-button {
  min-height: 160px;
  padding: 19px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--accent, var(--gold));
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    0.18s transform,
    0.18s box-shadow;
}
.category-button:hover,
.category-button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(20, 48, 92, 0.14);
  outline: 3px solid rgba(221, 179, 41, 0.35);
}
.category-button .icon {
  display: block;
  margin-bottom: 10px;
  font-size: 30px;
}
.category-button strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 18px;
}
.category-button span:last-child {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.hidden {
  display: none !important;
}
.text-button {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.assessment-heading {
  display: flex;
  align-items: center;
  gap: 15px;
}
.category-icon {
  font-size: 43px;
}
.progress-track {
  height: 9px;
  margin: 20px 0 7px;
  background: #e7edf2;
  border-radius: 99px;
  overflow: hidden;
}
.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #f2cc49);
  transition: width 0.25s;
}
.progress-text {
  margin: 0 0 23px;
  color: var(--muted);
  font-size: 13px;
}
fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
legend {
  width: 100%;
  margin-bottom: 7px;
  color: var(--blue);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
}
.question-help {
  margin: 0 0 17px;
  color: var(--muted);
  line-height: 1.5;
}
.answer-area {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.choice {
  position: relative;
}
.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice label {
  display: block;
  height: 100%;
  padding: 15px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}
.choice input:checked + label {
  border-color: var(--blue);
  background: #eaf4fb;
  color: var(--blue);
  box-shadow: 0 0 0 2px rgba(7, 74, 131, 0.1);
}
.number-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--blue);
  font-weight: 700;
}
.number-field input {
  width: 100%;
  max-width: 360px;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
.number-field input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(7, 74, 131, 0.12);
}
.form-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}
.primary-button,
.secondary-button,
.primary-link,
.gold-link {
  display: inline-block;
  padding: 12px 17px;
  border-radius: 7px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.primary-button,
.primary-link {
  border: 2px solid var(--blue);
  background: var(--blue);
  color: #fff;
}
.secondary-button {
  border: 2px solid var(--blue);
  background: #fff;
  color: var(--blue);
}
.gold-link {
  border: 2px solid var(--gold);
  background: var(--gold);
  color: #171717;
}
.result-panel {
  border-top: 8px solid var(--gold);
}
.result-status {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e7f4ec;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.result-status.review {
  background: #fff0e4;
  color: #9b4b13;
}
.result-summary {
  font-size: 18px;
  line-height: 1.55;
}
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 20px 0;
}
.result-grid > div {
  padding: 18px;
  background: #f5f8fa;
  border-radius: 9px;
}
.result-grid h3 {
  margin: 0 0 10px;
  color: var(--blue);
}
.result-grid ul {
  margin: 0;
  padding-left: 20px;
}
.result-grid li {
  margin: 7px 0;
  line-height: 1.45;
}
.result-warning {
  padding: 15px 17px;
  background: var(--cream);
  border-left: 5px solid var(--gold);
  border-radius: 7px;
  line-height: 1.5;
}
.contact-line {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.contact-line a {
  color: var(--blue);
  font-weight: 700;
}
.embedded .hero {
  display: none;
}
.embedded .wrap {
  width: 100%;
}
.embedded main.wrap {
  margin: 0;
}
.embedded .notice {
  margin-top: 0;
}
.embedded .guidance-bar {
  margin-top: 0;
}
.embedded body {
  background: #fff;
}
.embedded .panel {
  box-shadow: none;
}
.category-button .icon {
  display: flex;
  align-items: center;
  height: 54px;
  margin-bottom: 10px;
  font-size: 0;
}
.category-button .icon img {
  display: block;
  width: 78px;
  height: 52px;
  object-fit: contain;
  object-position: left center;
}
.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 92px;
  width: 92px;
  height: 72px;
  background: #f2f6f9;
  border-radius: 9px;
  font-size: 0;
}
.category-icon img {
  display: block;
  max-width: 80px;
  max-height: 60px;
}
@media (max-width: 680px) {
  .guidance-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .guidance-bar .gold-link {
    text-align: center;
  }
}
@media (max-width: 850px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-inner {
    align-items: flex-start;
  }
  .mac-logo {
    width: 100px;
    height: 100px;
  }
  .notice {
    display: block;
  }
  .notice strong {
    display: block;
    margin-bottom: 4px;
    white-space: normal;
  }
  .result-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 540px) {
  .wrap {
    width: min(100% - 20px, 1120px);
  }
  .hero-inner {
    padding: 23px 0;
  }
  .mac-logo {
    width: 76px;
    height: 76px;
  }
  .panel {
    padding: 19px;
  }
  .category-grid,
  .answer-area {
    grid-template-columns: 1fr;
  }
  .category-button {
    min-height: 130px;
  }
  .assessment-heading {
    align-items: flex-start;
  }
  .panel h2 {
    font-size: 26px;
  }
  legend {
    font-size: 21px;
  }
}
