:root {
  --opertrans-primary: #0071bb;
  --opertrans-primary-dark: #083c8c;
  --opertrans-navy: #08234c;
  --opertrans-soft: #e4f4ff;
  --opertrans-surface: #f6f9fc;
  --opertrans-border: #dbe6ef;
  --opertrans-text: #1e293b;
  --opertrans-muted: #5f6f82;
}

html {
  scroll-behavior: smooth;
}

body.opertrans-contract-page {
  color: var(--opertrans-text);
  background: var(--opertrans-surface);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  padding: 10px 16px;
  color: #fff;
  background: var(--opertrans-navy);
  border-radius: 4px;
  transform: translateY(-150%);
}

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

.contract-hero {
  padding: 68px 0 48px;
  background:
    radial-gradient(circle at 90% 10%, rgba(0, 113, 187, .18), transparent 32%),
    linear-gradient(180deg, #fff 0%, #f6f9fc 100%);
}

.opertrans-horizontal-logo {
  display: block;
  width: min(100%, 520px);
  height: auto;
  margin-bottom: 28px;
}

.contract-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  color: var(--opertrans-primary-dark);
  background: var(--opertrans-soft);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.contract-hero h1,
.confirmation-card h1,
.terms-card h1 {
  color: var(--opertrans-navy);
}

.contract-hero h1 {
  max-width: 840px;
  font-size: 50px;
  line-height: 1.08;
}

.contract-hero .lead {
  max-width: 780px;
  color: var(--opertrans-muted);
}

.contract-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.contract-step {
  display: flex;
  gap: 12px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--opertrans-border);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.contract-step-number {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--opertrans-primary);
  border-radius: 50%;
  font-weight: 600;
}

.contract-step strong {
  display: block;
  color: var(--opertrans-navy);
}

.contract-main {
  padding: 0 0 80px;
}

.contract-card,
.confirmation-card,
.terms-card {
  background: #fff;
  border: 1px solid var(--opertrans-border);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}

.contract-card {
  padding: 38px;
}

.contract-plan {
  position: sticky;
  top: 90px;
}

.contract-price {
  color: var(--opertrans-primary);
  font-family: "Poppins", sans-serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.1;
}

.contract-price-note,
.contract-muted {
  color: var(--opertrans-muted);
}

.contract-feature-list {
  padding: 0;
  list-style: none;
}

.contract-feature-list li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed #e7edf3;
}

.contract-feature-list li:last-child {
  border-bottom: 0;
}

.contract-feature-list .fa {
  margin-top: 4px;
  color: #198754;
}

.contract-secure-note,
.hubspot-config-notice,
.payment-box {
  padding: 18px;
  background: #f4faff;
  border: 1px solid #cfe7f7;
  border-radius: 8px;
}

.hubspot-form-shell {
  min-height: 540px;
}

.hubspot-form-target {
  min-height: 320px;
}

.hubspot-form-target .hs-button {
  min-height: 48px;
  padding: 12px 26px;
  color: #fff;
  background: var(--opertrans-primary);
  border: 0;
  border-radius: 4px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  cursor: pointer;
}

.hubspot-form-target .hs-button:hover,
.hubspot-form-target .hs-button:focus {
  background: #005f9e;
}

.hubspot-form-target input:not([type="checkbox"]):not([type="radio"]),
.hubspot-form-target select,
.hubspot-form-target textarea {
  width: 100% !important;
  border: 1px solid #d7e1ea;
  border-radius: 4px;
}

.hubspot-form-target input:focus,
.hubspot-form-target select:focus,
.hubspot-form-target textarea:focus {
  border-color: var(--opertrans-primary);
  outline: 2px solid rgba(0, 113, 187, .18);
}

.contract-legal-note a,
.terms-card a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.confirmation-wrap,
.terms-wrap {
  padding: 72px 0 80px;
}

.confirmation-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px;
}

.confirmation-logo,
.terms-logo {
  width: min(100%, 420px);
  height: auto;
}

.success-icon {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #198754;
  background: #eaf8ef;
  border-radius: 50%;
  font-size: 34px;
}

.payment-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid #dbe6ef;
}

.payment-row:last-of-type {
  border-bottom: 0;
}

.payment-total {
  color: var(--opertrans-navy);
  font-size: 20px;
}

.terms-card {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px;
}

.terms-card h2 {
  margin-top: 34px;
  color: var(--opertrans-navy);
  font-size: 24px;
}

.simple-footer .bg-gray-15 {
  padding-top: 48px;
  padding-bottom: 42px;
}

.simple-footer .footer-brand img {
  width: 191px;
  height: auto;
}

.simple-footer-links {
  padding: 0;
  list-style: none;
}

.simple-footer-links li + li {
  margin-top: 9px;
}

@media (max-width: 991px) {
  .contract-steps {
    grid-template-columns: 1fr;
  }

  .contract-plan {
    position: static;
  }
}

@media (max-width: 767px) {
  .contract-hero {
    padding: 48px 0 36px;
  }

  .contract-hero h1 {
    font-size: 36px;
  }

  .contract-main {
    padding-bottom: 56px;
  }

  .contract-card,
  .confirmation-card,
  .terms-card {
    padding: 26px 20px;
  }

  .confirmation-wrap,
  .terms-wrap {
    padding: 48px 0 56px;
  }

  .payment-row {
    align-items: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
