:root {
  --ink: #102a38;
  --ink-soft: #49616d;
  --navy: #12384a;
  --teal: #008da1;
  --teal-dark: #007487;
  --mint: #eaf7f5;
  --sky: #eef7fb;
  --white: #ffffff;
  --line: #dbe6e9;
  --orange: #ec6b2d;
  --shadow: 0 16px 42px rgba(16, 42, 56, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--white);
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 32px, 1160px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(219, 230, 233, 0.86);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(100% - 32px, 1160px);
  min-height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.brand img {
  width: 112px;
  mix-blend-mode: multiply;
}

.brand span {
  display: none;
}

.menu-toggle {
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
}

.menu-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.menu-icon {
  width: 22px;
  height: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-icon i {
  width: 100%;
  height: 2px;
  display: block;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-icon i:first-child {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-icon i:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-panel {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  max-height: calc(100vh - 72px);
  padding: 18px 16px 24px;
  display: grid;
  gap: 6px;
  overflow-y: auto;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  visibility: hidden;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.menu-open .nav-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.nav-panel a {
  min-height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  border-radius: 7px;
  font-weight: 700;
  text-decoration: none;
}

.nav-panel a:hover,
.nav-panel a:focus-visible {
  color: var(--teal-dark);
  background: var(--mint);
}

.nav-panel .nav-call {
  margin-top: 8px;
  justify-content: center;
  color: var(--white);
  background: var(--teal);
}

.hero {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  background: var(--sky);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: 64% center;
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.9) 52%, rgba(255,255,255,0.38) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 64px;
  padding-bottom: 54px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 600px;
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 13vw, 4.6rem);
  line-height: 1.02;
}

.hero-copy {
  max-width: 540px;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.7;
}

.hero-actions {
  display: grid;
  gap: 12px;
}

.button {
  width: 100%;
  min-height: 50px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 12px 28px rgba(0, 141, 161, 0.24);
}

.button-primary:hover {
  background: var(--teal-dark);
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.trust-row {
  margin-top: 26px;
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
}

.trust-row span::before {
  margin-right: 8px;
  color: var(--teal);
  content: "✓";
}

.section {
  padding: 64px 0;
}

.section-heading {
  max-width: 690px;
  margin-bottom: 32px;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 9vw, 3.35rem);
  line-height: 1.1;
}

.section-heading > p:last-child,
.about-copy > p,
.contact-panel > div > p:last-child {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.service-grid {
  display: grid;
  gap: 16px;
}

.service-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(16, 42, 56, 0.07);
}

.service-number {
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 800;
  background: var(--mint);
}

.service-card:nth-child(3n + 2) .service-number {
  color: #ad461c;
  background: #fff0e8;
}

.service-card h3,
.benefit h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.service-card p,
.benefit p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.service-link {
  min-height: 42px;
  width: fit-content;
  margin-top: 18px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: none;
  background: var(--mint);
}

.service-link:hover,
.service-link:focus-visible {
  color: var(--white);
  background: var(--teal);
}

.about-section {
  background: var(--sky);
}

.about-layout {
  display: grid;
  gap: 36px;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap > img {
  width: 100%;
  min-height: 330px;
  object-fit: cover;
  object-position: 70% center;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.experience-note {
  width: calc(100% - 28px);
  margin: -38px auto 0;
  position: relative;
  padding: 18px;
  display: grid;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.experience-note strong {
  color: var(--teal-dark);
}

.experience-note span {
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.about-copy > p {
  line-height: 1.75;
}

.text-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: none;
}

.why-section {
  color: var(--white);
  background: var(--navy);
}

.section-heading-light .eyebrow {
  color: #73d3dc;
}

.section-heading-light > p:last-child,
.benefit p {
  color: rgba(255, 255, 255, 0.72);
}

.benefit-grid {
  display: grid;
  gap: 14px;
}

.benefit {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.check {
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  font-weight: 800;
  background: #73d3dc;
}

.contact-section {
  background: var(--mint);
}

.contact-panel {
  display: grid;
  gap: 30px;
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.contact-method {
  min-width: 0;
  min-height: 74px;
  padding: 14px 16px;
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  background: var(--white);
}

.contact-method span {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-method strong {
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 54px 0 24px;
  color: rgba(255, 255, 255, 0.72);
  background: #0b2634;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

.footer-brand img {
  width: 150px;
  margin-bottom: 14px;
  padding: 8px;
  border-radius: 6px;
  background: var(--white);
}

.footer-brand p {
  max-width: 390px;
}

.site-footer h2 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 1rem;
}

.site-footer a {
  min-height: 42px;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
}

.footer-bottom p {
  margin-bottom: 0;
}

@media (min-width: 600px) {
  .container,
  .header-inner {
    width: min(100% - 48px, 1160px);
  }

  .brand img {
    width: 130px;
  }

  .brand span {
    max-width: 150px;
    display: block;
  }

  .hero {
    min-height: 650px;
    align-items: center;
  }

  .hero-content {
    padding-block: 78px;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .button {
    width: auto;
  }

  .trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
  }

  .service-grid,
  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-actions .button {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 0.7fr 0.8fr;
  }
}

@media (min-width: 900px) {
  html {
    scroll-padding-top: 88px;
  }

  body.menu-open {
    overflow: auto;
  }

  .header-inner {
    min-height: 88px;
  }

  .brand img {
    width: 142px;
  }

  .menu-toggle {
    display: none;
  }

  .nav-panel {
    position: static;
    max-height: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    overflow: visible;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
  }

  .nav-panel a {
    padding-inline: 14px;
    font-size: 0.9rem;
  }

  .nav-panel .nav-call {
    margin: 0 0 0 8px;
    padding-inline: 20px;
  }

  .hero {
    min-height: 670px;
  }

  .hero-image {
    object-position: center;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.92) 35%, rgba(255,255,255,0.4) 59%, rgba(255,255,255,0) 76%);
  }

  .section {
    padding: 96px 0;
  }

  .section-heading {
    margin-bottom: 44px;
  }

  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .about-layout {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.86fr);
    gap: 72px;
    align-items: center;
  }

  .about-image-wrap > img {
    min-height: 490px;
  }

  .benefit-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  .contact-panel {
    grid-template-columns: minmax(0, 0.78fr) minmax(500px, 1fr);
    gap: 72px;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.video-page {
  min-height: 100vh;
  background:
    linear-gradient(140deg, rgba(238, 247, 251, 0.92), rgba(234, 247, 245, 0.72)),
    var(--white);
}

.private-video-main {
  min-height: 100vh;
  padding: 24px 0;
  display: grid;
  place-items: center;
}

.private-video-shell {
  width: min(100% - 32px, 980px);
}

.private-video-brand {
  width: fit-content;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.private-video-brand img {
  width: 58px;
  height: auto;
}

.private-video-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.private-video-card h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  line-height: 1.12;
}

.private-video-card p:not(.eyebrow) {
  margin: 0 0 20px;
  color: var(--ink-soft);
}

.private-video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(16, 42, 56, 0.14);
}

.private-video-button {
  width: 100%;
  margin-top: 20px;
}

@media (min-width: 700px) {
  .private-video-main {
    padding: 48px 0;
  }

  .private-video-card {
    padding: 32px;
  }

  .private-video-card h1 {
    font-size: 2.5rem;
  }

  .private-video-button {
    width: fit-content;
  }
}

.hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.contractor-application-body {
  background: var(--sky);
}

.contractor-page {
  min-height: calc(100vh - 88px);
  padding: clamp(38px, 6vw, 70px) 0 72px;
  background:
    linear-gradient(180deg, rgba(238, 247, 251, 0.95), rgba(234, 247, 245, 0.82)),
    var(--sky);
}

.contractor-shell {
  width: min(100% - 32px, 1150px);
  margin-inline: auto;
}

.contractor-intro {
  display: grid;
  gap: 8px;
  justify-items: center;
  margin-bottom: 18px;
  text-align: center;
}

.contractor-kicker {
  width: fit-content;
  border: 1px solid rgba(0, 141, 161, 0.24);
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  text-transform: uppercase;
}

.contractor-intro h1 {
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 900;
  line-height: 1.08;
}

.application-card,
.success-card {
  border: 1px solid rgba(219, 230, 233, 0.96);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 26px 70px rgba(16, 42, 56, 0.12);
  scroll-margin-top: 110px;
}

.application-card {
  display: grid;
  grid-template-columns: minmax(190px, 235px) minmax(0, 1fr);
  overflow: hidden;
}

.application-card[hidden],
.success-card[hidden] {
  display: none !important;
}

.form-progress {
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, var(--white), var(--mint));
  padding: clamp(18px, 2.2vw, 24px);
}

.progress-eyebrow {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progress-header {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

.progress-header strong {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.2;
}

.progress-header span {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  margin: 16px 0 18px;
  border-radius: 999px;
  background: rgba(0, 141, 161, 0.13);
}

.progress-bar {
  width: 12.5%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  transition: width 240ms ease;
}

.step-list {
  display: grid;
  gap: 7px;
}

.step-dot {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 8px;
  text-align: left;
}

.step-dot::before {
  content: attr(data-number);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 141, 161, 0.12);
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 900;
}

.step-dot.is-active {
  border-color: rgba(0, 141, 161, 0.28);
  background: var(--white);
  color: var(--ink);
}

.step-dot.is-active::before,
.step-dot.is-complete::before {
  color: var(--white);
  background: var(--teal);
}

.contractor-form {
  min-width: 0;
}

.form-step {
  display: none;
  padding: clamp(20px, 3vw, 34px);
}

.form-step.is-active {
  display: block;
  animation: stepIn 220ms ease both;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-heading {
  display: grid;
  gap: 8px;
  max-width: 620px;
  margin-bottom: 20px;
}

.step-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 900;
  line-height: 1.08;
}

.step-heading p,
.contractor-help {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-grid,
.document-grid,
.review-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-full {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field-inline {
  grid-template-columns: minmax(130px, 0.42fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.field-compact-control select,
.field-compact-control input {
  max-width: 210px;
  justify-self: start;
}

.field-label,
.check-group legend {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.35;
}

.required-mark,
.document-card a {
  color: var(--teal-dark);
}

.contractor-form input,
.contractor-form select,
.contractor-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c8d6dc;
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  padding: 10px 12px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.contractor-form textarea {
  min-height: 78px;
  resize: vertical;
}

.values-docs-step .form-grid,
.independence-insurance-step .form-grid,
.trust-limits-step .form-grid {
  gap: 10px;
}

.values-docs-step textarea,
.independence-insurance-step textarea,
.trust-limits-step textarea {
  min-height: 56px;
}

.contractor-form input::placeholder,
.contractor-form textarea::placeholder {
  color: #738893;
}

.contractor-form input:focus,
.contractor-form select:focus,
.contractor-form textarea:focus,
.step-button:focus-visible,
.submit-button:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 141, 161, 0.16);
  outline: 0;
}

.contractor-form [aria-invalid="true"] {
  border-color: #b42318;
  background: #fffafa;
}

.field-error {
  display: none;
  margin: 0;
  color: #b42318;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.45;
}

.field-error.show {
  display: block;
}

.check-group {
  border: 0;
  margin: 0;
  padding: 0;
}

.check-options,
.certification-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.check-options label,
.certification-list label,
.document-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 12px;
}

.check-options label,
.certification-list label {
  grid-template-columns: auto 1fr;
  align-items: start;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.45;
}

.certification-list label {
  display: flex;
  gap: 12px;
}

.certification-list label > span {
  min-width: 0;
}

.certification-list input {
  flex: 0 0 18px;
}

.check-options input,
.certification-list input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--teal);
}

.document-card {
  border-style: dashed;
}

.document-card strong {
  color: var(--ink);
  font-weight: 900;
}

.document-card input {
  margin-top: 2px;
}

.form-alert {
  display: none;
  border: 1px solid #ffc9c4;
  border-radius: 8px;
  margin: 0 0 18px;
  padding: 14px;
  background: #fff1f0;
  color: #b42318;
  font-weight: 900;
  line-height: 1.45;
}

.form-alert.show {
  display: block;
}

.review-grid {
  margin-top: 14px;
}

.review-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 16px;
}

.review-section h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 900;
}

.review-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.review-item {
  display: grid;
  gap: 2px;
}

.review-item dt {
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.review-item dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.certification-list {
  grid-template-columns: 1fr;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 16px clamp(20px, 3vw, 34px);
}

.step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-left: auto;
}

.step-button,
.submit-button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 10px 18px;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.step-button.primary,
.submit-button {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(0, 141, 161, 0.22);
}

.step-button.secondary {
  border-color: #c8d6dc;
  background: var(--white);
  color: var(--ink);
}

.step-button:hover,
.submit-button:hover {
  transform: translateY(-1px);
}

.step-button.primary:hover,
.submit-button:hover {
  background: var(--teal-dark);
}

.step-button[disabled],
.submit-button[disabled] {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.success-card {
  display: none;
  gap: 16px;
  padding: clamp(28px, 5vw, 58px);
}

.success-card.show {
  display: grid;
  animation: stepIn 220ms ease both;
}

.success-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 1.6rem;
  font-weight: 900;
}

.success-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.06;
}

.success-card p {
  max-width: 680px;
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.7;
}

@media (max-width: 860px) {
  .contractor-page {
    padding: 28px 0 48px;
  }

  .application-card {
    grid-template-columns: 1fr;
  }

  .form-progress {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .progress-header {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 12px;
  }

  .step-list {
    display: none;
  }

  .form-grid,
  .document-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    align-items: stretch;
  }

  .form-actions > p,
  .step-actions,
  .step-actions button,
  .submit-button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .contractor-application-body {
    height: 100dvh;
    overflow: hidden;
  }

  .contractor-application-body .site-header,
  .contractor-application-body .site-footer {
    display: none;
  }

  .contractor-page {
    display: grid;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    padding: max(6px, env(safe-area-inset-top)) 6px max(6px, env(safe-area-inset-bottom));
  }

  .contractor-shell {
    width: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
  }

  .contractor-kicker {
    display: none;
  }

  .contractor-intro {
    margin-bottom: 4px;
  }

  .contractor-intro h1 {
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(0.92rem, 4vw, 1.12rem);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .application-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
  }

  .form-progress {
    padding: 8px 10px;
  }

  .progress-eyebrow {
    display: none;
  }

  .progress-header {
    margin-top: 0;
  }

  .progress-header strong {
    font-size: 0.82rem;
  }

  .progress-header span {
    font-size: 0.7rem;
  }

  .progress-track {
    height: 5px;
    margin: 6px 0 0;
  }

  .contractor-form {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
    overflow: hidden;
  }

  .form-step {
    min-height: 0;
    overflow-y: auto;
    padding: 10px;
    scrollbar-width: thin;
  }

  .check-options,
  .document-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .check-options label,
  .document-card {
    padding: 7px;
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .step-heading {
    gap: 2px;
    margin-bottom: 8px;
  }

  .step-heading h2 {
    font-size: 1rem;
  }

  .step-heading p {
    display: none;
  }

  .form-grid,
  .document-grid,
  .review-grid {
    gap: 7px;
  }

  .field {
    gap: 3px;
  }

  .field-label,
  .check-group legend {
    font-size: 0.7rem;
    line-height: 1.2;
  }

  .field-inline {
    grid-template-columns: minmax(110px, 0.42fr) minmax(0, 1fr);
    gap: 8px;
  }

  .field-compact-control select,
  .field-compact-control input {
    max-width: 180px;
  }

  .contractor-form input,
  .contractor-form select,
  .contractor-form textarea {
    min-height: 32px;
    font-size: 0.78rem;
    padding: 5px 8px;
  }

  .contractor-form textarea {
    min-height: 38px;
  }

  .independence-insurance-step .form-grid,
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .independence-insurance-step .field-full {
    grid-column: 1 / -1;
  }

  .review-section {
    padding: 8px;
  }

  .review-section h3 {
    margin-bottom: 5px;
    font-size: 0.74rem;
  }

  .review-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .review-item dt {
    font-size: 0.58rem;
  }

  .review-item dd {
    overflow: hidden;
    font-size: 0.68rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .certification-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .certification-list label {
    padding: 7px;
    font-size: 0.66rem;
    line-height: 1.18;
  }

  .certification-list input {
    width: 15px;
    min-height: 15px;
    margin-top: 1px;
  }

  .form-actions > p {
    display: none;
  }

  .form-actions {
    gap: 7px;
    padding: 8px 10px;
  }

  .step-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .step-button,
  .submit-button {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 0.78rem;
  }

  .submit-button {
    grid-column: 1 / -1;
  }

  .success-card {
    align-self: center;
    padding: 18px;
  }

  .success-card h2 {
    font-size: 1.45rem;
  }

  .success-card p {
    font-size: 0.9rem;
    line-height: 1.45;
  }
}
