.ip-audit {
  --audit-ink: #171d3e;
  --audit-muted: #4b536b;
  --audit-paper: #f5f6f1;
  --audit-line: #d7dbe4;
  color: var(--audit-ink);
  font: 1rem/1.55 Arial, Helvetica, sans-serif;
}

.ip-audit *,
.ip-audit *::after,
.ip-audit *::before { box-sizing: border-box; }

.ip-audit [hidden] { display: none; }
.ip-audit a:focus-visible,
.ip-audit button:focus-visible,
.ip-audit summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.audit-wrap { width: min(1110px, calc(100% - 64px)); margin-inline: auto; }

.audit-hero {
  padding-block: clamp(36px, 7vw, 94px);
  border-block-start: 1px solid #354374;
  border-radius: 6px 6px 0 0;
  background:
    radial-gradient(ellipse at 87% 14%, #243469 0%, transparent 62%),
    #101744;
  color: #fff;
}

.audit-hero h1 {
  max-width: 22ch;
  margin: 0;
  border-inline-start: 3px solid var(--ip-lime, #b7ff32);
  padding-inline-start: clamp(14px, 2.8vw, 28px);
  font: 700 clamp(2.15rem, 5vw, 4.8rem)/1.07 Georgia, "Times New Roman", serif;
  letter-spacing: -.032em;
  text-wrap: balance;
}

.audit-hero p {
  max-width: 59ch;
  margin: 1.15rem 0 1.45rem;
  color: #e8ebf8;
  font-size: clamp(1.05rem, 1.5vw, 1.19rem);
}

.ip-audit .audit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 46px;
  padding: .68rem 1.16rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--ip-lime, #b7ff32);
  color: #020647;
  font: 700 1rem/1.35 Arial, Helvetica, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.ip-audit .audit-button:hover:not(:disabled) { background: #d1ff80; }
.ip-audit .audit-button:disabled { opacity: .7; cursor: wait; }
.audit-hero .audit-button:focus-visible { outline-color: #fff; }

.audit-content {
  padding-block: clamp(28px, 5.2vw, 72px);
  border-radius: 0 0 6px 6px;
  background: var(--audit-paper);
}

.audit-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(18px, 3.2vw, 42px);
  line-height: 1.55;
}

.audit-overview section + section {
  border-inline-start: 1px solid var(--audit-line);
  padding-inline-start: clamp(16px, 3vw, 36px);
}

.audit-overview h2,
.audit-request h2 {
  margin: 0 0 .45rem;
  color: #0e1749;
  font: 700 clamp(1.28rem, 2vw, 1.7rem)/1.22 Georgia, "Times New Roman", serif;
  letter-spacing: -.02em;
}

.audit-overview p,
.audit-overview ul { margin-block: 0; color: var(--audit-muted); }
.audit-overview ul { padding-inline-start: 1.2em; }
.audit-overview li + li { margin-top: .15em; }

.audit-request {
  max-width: 782px;
  margin-top: clamp(30px, 5vw, 60px);
  padding: clamp(20px, 4vw, 42px);
  border: 1px solid var(--audit-line);
  border-block-start: 4px solid #4f7022;
  border-radius: 6px;
  background: #fff;
  scroll-margin-top: 68px;
}

.audit-request__header { margin-bottom: 1.25rem; }
.audit-request__header p { margin: 0; color: var(--audit-muted); }
.audit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1rem; }
.audit-field { min-width: 0; }
.audit-field label { display: block; margin-bottom: .28rem; font-weight: 700; }
.audit-field input,
.audit-field select,
.audit-field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #aeb5c5;
  border-radius: 4px;
  padding: .55rem .7rem;
  background: #fff;
  color: var(--audit-ink);
  font: inherit;
}

.audit-field input:focus-visible,
.audit-field select:focus-visible,
.audit-field textarea:focus-visible,
.audit-consent input:focus-visible { outline: 2px solid #284b92; outline-offset: 2px; }
.audit-field textarea { display: block; resize: vertical; }
.audit-hint { margin: 0 0 .32rem; color: var(--audit-muted); font-size: .9rem; }
.audit-form__message { margin-top: .95rem; }

.audit-form__optional {
  margin-top: 1rem;
  border-block: 1px solid var(--audit-line);
  padding-block: .6rem;
}

.audit-form__optional summary { font-weight: 700; color: #1d285d; cursor: pointer; }
.audit-form__optional[open] .audit-grid { padding: .68rem 0 .25rem; }

.audit-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .5rem;
  margin: 1rem 0 .85rem;
  color: var(--audit-muted);
  font-size: .91rem;
}

.audit-consent input { width: 1.12rem; height: 1.12rem; margin: .17rem 0 0; accent-color: #1d285d; }
.audit-consent a { color: #1d285d; text-underline-offset: .15em; }
.audit-feedback { margin: .75rem 0 0; }
.audit-feedback:empty { margin: 0; }
.audit-feedback[data-tone="error"] { color: #982c22; }
.audit-feedback[data-tone="success"] { color: #21572c; }

.audit-form__trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

@media (max-width: 760px) {
  .audit-wrap { width: calc(100% - 36px); }
  .audit-overview { grid-template-columns: minmax(0, 1fr); gap: .95rem; }
  .audit-overview section + section { border-inline-start: none; border-block-start: 1px solid var(--audit-line); padding: .95rem 0 0; }
}

@media (max-width: 520px) {
  .audit-hero h1 { font-size: clamp(1.8rem, 8.5vw, 3.1rem); }
  .audit-request { padding: 18px; }
  .audit-grid { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
}
