/* Operator Match. Builds on /styles.css: Archivo and the AOA navy, gold and off-white. */
:root {
  --gold-ink: #796016;
  --field: #c3c6d6;
  --error: #a4161a;
}
[hidden] {
  display: none !important;
}

/* Hero */
.pm-hero {
  padding-block: 56px 68px;
  background: var(--navy);
  color: var(--paper);
}
.eyebrow {
  margin: 0 0 22px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.pm-hero h1 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4rem);
  text-wrap: balance;
}
.pm-hero h1::after {
  content: '';
  display: block;
  width: 96px;
  height: 3px;
  margin-top: 30px;
  background: var(--gold);
}
.lede {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--mist);
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Layout */
.pm-body {
  display: grid;
  grid-template-columns: 300px minmax(0, 640px);
  gap: 88px;
  align-items: start;
  padding-block: 64px 96px;
}

/* How it works */
.how {
  position: sticky;
  top: 32px;
}
.how h2 {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.how ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: how;
}
.how li {
  position: relative;
  padding: 18px 0 18px 44px;
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.6;
  counter-increment: how;
}
.how li::before {
  content: '0' counter(how);
  position: absolute;
  top: 19px;
  left: 0;
  color: var(--gold-ink);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.how strong {
  display: block;
  color: var(--navy);
}
.fine {
  margin: 8px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  background: #edeef5;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Form sections */
fieldset {
  min-width: 0;
  margin: 0 0 48px;
  padding: 0;
  border: 0;
}
legend {
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: 100%;
  margin-bottom: 26px;
  padding: 0 0 12px;
  border-bottom: 2px solid var(--navy);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.step {
  color: var(--gold-ink);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}
.field {
  display: block;
  margin-bottom: 26px;
}
.field:last-child {
  margin-bottom: 0;
}
.label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}
.hint {
  display: block;
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Inputs */
input[type='text'],
input[type='email'],
select {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--field);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 1rem;
}
input[type='text']:hover,
input[type='email']:hover,
select:hover {
  border-color: var(--muted);
}
input:focus-visible,
select:focus-visible,
button:focus-visible,
.chip input:focus-visible + span {
  border-color: var(--navy);
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Choices */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips.stack {
  flex-direction: column;
}
.chip {
  position: relative;
  cursor: pointer;
}
.chip input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.chip span {
  display: block;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--field);
  border-radius: 10px;
  background: #fff;
  color: var(--slate);
  transition:
    background-color 0.12s,
    border-color 0.12s,
    color 0.12s;
}
.chip:hover span {
  border-color: var(--navy);
}
.chip strong {
  margin-right: 8px;
  color: var(--navy);
}
.chip input:checked + span {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--paper);
}
.chip input:checked + span::before {
  content: '✓';
  margin-right: 8px;
  color: var(--gold);
  font-weight: 700;
}
.chip input:checked + span strong {
  color: var(--gold);
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 700;
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--navy);
}
.trap {
  position: absolute;
  left: -9999px;
}

/* Submit */
button {
  display: block;
  width: 100%;
  min-height: 60px;
  border: 0;
  border-radius: 16px;
  background: var(--gold);
  color: var(--navy);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.12s;
}
button:hover {
  background: #ffd66b;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.6;
  cursor: progress;
}
.error {
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 3px solid var(--error);
  color: var(--error);
  font-weight: 700;
}
.note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Confirmation */
.done {
  padding: 44px 40px;
  border-radius: 16px;
  background: var(--navy);
  color: var(--paper);
}
.done:focus {
  outline: none;
}
.done h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.done h2::after {
  content: '';
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 22px;
  background: var(--gold);
}
.done p {
  margin: 24px 0 0;
  color: var(--mist);
  font-size: 1.15rem;
  line-height: 1.6;
}
.done .note {
  margin-top: 14px;
  font-size: 0.95rem;
}
.done .note:empty {
  display: none;
}
.done a {
  color: var(--gold);
  font-weight: 700;
}

.site-footer .links a {
  margin-right: 22px;
}

@media (max-width: 1050px) {
  .pm-body {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 48px;
  }
}
@media (max-width: 820px) {
  .pm-hero {
    padding-block: 36px 44px;
  }
  .pm-hero h1 {
    font-size: clamp(1.9rem, 8.4vw, 2.8rem);
    overflow-wrap: normal;
  }
  .pm-hero h1::after {
    margin-top: 22px;
  }
  .lede {
    margin-top: 22px;
    font-size: 1.05rem;
  }
  .pm-body {
    display: block;
    padding-block: 32px 64px;
  }
  .how {
    position: static;
    margin-bottom: 44px;
  }
  fieldset {
    margin-bottom: 40px;
  }
  legend {
    font-size: 1.3rem;
  }
  .done {
    padding: 32px 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
