.oj-contact-page {
  color: #111;
  background: #fff;
}
.oj-contact-page *, .oj-contact-page *::before, .oj-contact-page *::after {
  box-sizing: border-box;
}
.oj-contact-hero {
  width: 100%;
  overflow: hidden;
  background: #eee;
}
.oj-contact-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: cover;
}
.oj-contact-narrow {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
}
.oj-contact-intro {
  padding: 40px 0 22px;
  text-align: center;
}
.oj-contact-intro h1 {
  margin: 0;
  font-size: clamp(34px, 2.25vw, 44px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.oj-contact-intro p {
  margin: 38px 0 0;
  font-size: 15px;
  line-height: 1.5;
}
.oj-contact-form-section {
  padding: 0 0 58px;
}
.oj-contact-form-card {
  width: min(760px, calc(100% - 40px));
  min-height: 1040px;
  margin: 0 auto;
  padding: 52px 86px 66px;
  color: #fff;
  background: #2d4771;
}
.oj-contact-form h2,
.oj-contact-success h2 {
  margin: 0 0 50px;
  text-align: center;
  color: #fff;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
}
.oj-contact-form fieldset {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}
.oj-contact-form legend {
  width: 100%;
  margin: 0 0 28px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(255,255,255,.38);
  color: #fff;
  font-size: 20px;
  font-weight: 400;
}
.oj-contact-form label:not(.oj-check) {
  display: block;
  margin: 0 0 9px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.oj-contact-form label span,
.oj-contact-form strong b {
  color: #ff8f8f;
}
.oj-contact-form input[type="text"],
.oj-contact-form input[type="email"],
.oj-contact-form input[type="tel"],
.oj-contact-form select,
.oj-contact-form textarea {
  display: block;
  width: 100%;
  min-height: 38px;
  margin: 0 0 25px;
  padding: 8px 11px;
  border: 1px solid #d6dbe5;
  border-radius: 0;
  outline: 0;
  color: #172237;
  background: #fff;
  font: inherit;
  font-size: 14px;
}
.oj-contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
.oj-contact-form input:focus,
.oj-contact-form select:focus,
.oj-contact-form textarea:focus {
  border-color: #8da4d6;
  box-shadow: 0 0 0 2px rgba(141,164,214,.22);
}
.oj-name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 25px;
}
.oj-name-grid input {
  margin-bottom: 4px !important;
}
.oj-name-grid small {
  display: block;
  color: #fff;
  font-size: 11px;
}
.oj-phone-control {
  display: flex;
  width: 100%;
  min-height: 38px;
  margin-bottom: 25px;
  background: #fff;
}
.oj-phone-prefix {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-right: 1px solid #d6dbe5;
  color: #172237 !important;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
}
.oj-phone-control input {
  margin: 0 !important;
  border: 0 !important;
}
.oj-consent-group {
  margin-top: 8px;
}
.oj-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin: 0 0 30px;
  color: #fff;
  cursor: pointer;
}
.oj-check input {
  width: 17px;
  height: 17px;
  margin: 3px 0 0;
}
.oj-check span {
  color: #fff !important;
}
.oj-check strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
}
.oj-check em {
  display: block;
  color: #fff;
  font-size: 12px;
  line-height: 1.42;
}
.oj-check a {
  color: #fff !important;
  text-decoration: underline !important;
}
.oj-submit-wrap {
  text-align: center;
  padding-top: 4px;
}
.oj-submit-wrap button {
  min-width: 112px;
  padding: 11px 24px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #8fa5e9;
  font-size: 13px;
  font-weight: 500;
}
.oj-submit-wrap button:hover {
  background: #a4b6f0;
}
.oj-contact-alt {
  padding: 10px 0 40px;
  text-align: center;
}
.oj-contact-alt p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.45;
}
.oj-contact-alt a {
  color: #174d9b !important;
}
.oj-contact-success {
  text-align: center;
  padding: 120px 0;
}
.oj-contact-success p {
  margin-bottom: 24px;
  font-size: 16px;
}
.oj-contact-success a {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  color: #fff !important;
  background: #8fa5e9;
  text-decoration: none !important;
}

@media (max-width: 767.98px) {
  .oj-contact-hero img {
    aspect-ratio: 1.5 / 1;
  }
  .oj-contact-intro {
    padding-top: 32px;
  }
  .oj-contact-intro p {
    margin-top: 24px;
  }
  .oj-contact-form-card {
    width: calc(100% - 28px);
    min-height: 0;
    padding: 36px 22px 44px;
  }
  .oj-contact-form h2 {
    margin-bottom: 36px;
    font-size: 22px;
  }
  .oj-name-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
