/* Health Check-specific additions.
   The shared site system supplies typography, layout, buttons, cards, header and footer. */

.health-hero .u-image-background-container img {
  object-position: 100% 52%;
}

.health-hero .page-header__hero-content__intro {
  max-width: 56rem;
}

.health-checks .cb__heading {
  max-width: 78rem;
}

.health-checks__grid .post,
.health-check-card .post__content {
  height: 100%;
}

.health-check-card .post__content {
  display: flex;
  flex-direction: column;
}

.health-check-card .post__content-intro {
  display: grid;
  gap: 1.4rem;
}

.health-check-card .post__content-intro p:first-child {
  font-weight: 700;
}

.health-check-card .post__content-link {
  margin-top: auto;
}

/* Connect the opening three-step summary to the three Masterminds domains. */
.health-check-page .service-summary__item:nth-child(1) {
  border-top-color: #00abb6;
}

.health-check-page .service-summary__item:nth-child(2) {
  border-top-color: #f99f3f;
}

.health-check-page .service-summary__item:nth-child(3) {
  border-top-color: #a967aa;
}

.health-process .service-step:nth-child(2) {
  --service-accent: #f99f3f;
}

.health-process .service-step:nth-child(3) {
  --service-accent: #a967aa;
}

.health-process .service-step:nth-child(4) {
  --service-accent: #00abb6;
}

.health-cortex p {
  opacity: .86;
}

.health-cortex img {
  display: block;
  width: 100%;
  margin-top: 2.4rem;
  border-radius: 1.2rem;
  background: #fff;
}

.health-request {
  scroll-margin-top: 8rem;
}

.health-request__copy > h2 {
  margin-bottom: 1.6rem;
}

.health-request__copy > .cb__lead {
  max-width: 58rem;
  color: #38495d;
}

.health-request__copy .service-checklist {
  margin-top: 2.8rem;
}

.health-request__copy .service-summary__start {
  margin-top: 3.2rem;
}

.health-form-card {
  padding: clamp(3.2rem, 3vw, 4.4rem);
}

.health-form-card form {
  gap: 1.8rem;
}

.hc-start-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.hc-start-fieldset legend {
  margin-bottom: 1.2rem;
  color: #003469;
  font-size: var(--font-size--s);
  font-weight: 700;
  text-transform: uppercase;
}

.hc-start-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.form-card .hc-start-choice {
  --choice-accent: #003469;
  position: relative;
  display: block;
  min-width: 0;
  color: #003469;
  cursor: pointer;
  font-size: inherit;
  font-weight: 400;
  text-transform: none;
}

.form-card .hc-start-choice--data {
  --choice-accent: #00abb6;
}

.form-card .hc-start-choice--analytics {
  --choice-accent: #f99f3f;
}

.form-card .hc-start-choice--devops {
  --choice-accent: #a967aa;
}

.form-card .hc-start-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
}

.hc-start-choice > span {
  display: grid;
  min-height: 10rem;
  align-content: center;
  gap: .6rem;
  padding: 1.6rem 1.8rem;
  border: 1px solid #d7e0ea;
  border-top: .5rem solid var(--choice-accent);
  border-radius: 1.2rem;
  background: #fff;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.hc-start-choice strong {
  font-size: var(--font-size--s);
  line-height: 1.1;
  text-transform: uppercase;
}

.hc-start-choice small {
  color: #4d5d73;
  font-size: var(--font-size--xs);
  line-height: 1.25;
}

.hc-start-choice:hover > span {
  border-color: var(--choice-accent);
  transform: translateY(-2px);
}

.hc-start-choice input:checked + span {
  border-color: var(--choice-accent);
  background: #f4f7fa;
  box-shadow: inset 0 0 0 1px var(--choice-accent);
}

.hc-start-choice input:checked + span::after {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: 50%;
  background: #003469;
  color: #fff;
  content: "✓";
  font-size: 1.3rem;
  font-weight: 700;
}

.hc-start-choice input:focus-visible + span {
  outline: 3px solid #00abb6;
  outline-offset: 3px;
}

.hc-selection-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hc-form-status {
  min-height: 1.8rem;
  margin-top: .6rem;
  color: #4d5d73;
  font-size: var(--font-size--xs);
  line-height: 1.3;
}

.hc-label-text {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.hc-label-text small {
  color: #4d5d73;
  font-size: var(--font-size--xs);
  font-weight: 400;
  text-transform: none;
}

.health-form-card button[type="submit"] {
  width: 100%;
}

.health-form-card button[type="submit"]:disabled {
  cursor: wait !important;
  opacity: .72;
}

@media (min-width: 1280px) {
  .health-request .photo-split {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: clamp(5rem, 5vw, 7rem);
  }
}

@media (min-width: 769px) and (max-width: 1279px) {
  .health-request .photo-split {
    grid-template-columns: 1fr;
    max-width: 78rem;
  }
}

@media (max-width: 768px) {
  .health-hero .u-image-background-container img {
    object-position: 100% 50%;
  }

  .health-check-card .post__content-link {
    width: 100%;
  }

  .health-form-card {
    padding: 2.8rem 2.2rem;
  }
}

@media (max-width: 520px) {
  .hc-start-grid {
    grid-template-columns: 1fr;
  }

  .hc-start-choice > span {
    min-height: 8.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hc-start-choice > span {
    transition: none;
  }

  .hc-start-choice:hover > span {
    transform: none;
  }
}
