/* Interior pages share the same button hierarchy, including their dark service openings. */
main .cp-button,
main .cr-request .cr-request-submit {
  min-height: 46px;
  padding: .65rem 1.1rem;
  border-radius: .35rem;
  font-size: 1rem;
  line-height: 1.3;
  text-align: center;
}
main .cp-actions, .booking-page .booking-actions {
  gap: .5rem .75rem;
  margin-top: 1.15rem;
}
.cp-service-hero-grid .cp-actions .cp-button,
.cp-contact-copy .cp-actions .cp-button {
  border: 1px solid #fff;
  background: #fff;
  color: #102c47;
}
.cp-service-hero-grid .cp-actions .cp-button-secondary,
.cp-contact-copy .cp-actions .cp-button-secondary {
  border-color: #a9bfd0;
  background: transparent;
  color: #fff;
}
.cp-service-hero-grid .cp-actions .cp-button:is(:hover,:active),
.cp-contact-copy .cp-actions .cp-button:is(:hover,:active) {
  border-color: #d6e5f0;
  background: #d6e5f0;
  color: #102c47;
}
.cp-service-links {
  display: flex;
  flex-wrap: wrap;
  gap: .1rem 1.15rem;
  margin-top: .5rem;
}
.cp-service-links a.cp-text-link,
.cp-contact-copy a.cp-text-link,
.booking-page .booking-direct,
.booking-manual-actions .cp-text-link,
.quote-card button.cp-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.cp-service-hero .cp-service-links a.cp-text-link,
.cp-contact-hero .cp-contact-copy a.cp-text-link { color: #dfedf6; }
main .cp-button:focus-visible,
main :where(.booking-page, .cp-service-links, .cp-contact-copy, .cp-form-card, .quote-card, .cr-request) :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid #1265a0;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #fff;
}
.cp-service-hero .cp-actions :focus-visible,
.cp-service-hero .cp-service-links :focus-visible,
.cp-contact-hero .cp-contact-copy :focus-visible {
  outline: 3px solid #ffcf73;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #102c47;
}

/* Give the title and offer the larger share of the service opening. */
.cp-service-hero:has(.cp-service-hero-grid),
.cp-contact-hero { padding-bottom: clamp(1.8rem, 4vw, 3.5rem); }
.cp-service-hero .cp-service-hero-grid,
.cp-contact-hero .cp-contact-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.75rem);
}
.cp-service-hero .cp-service-hero-grid { min-height: 0; }
.cp-service-hero-grid h1,
.cp-contact-hero .cp-contact-copy h1,
.booking-intro h1,
.quote-intro h1 {
  max-width: 24ch;
  font-size: clamp(2.1rem, 3.8vw, 3.35rem);
  line-height: 1.1;
  text-wrap: balance;
}
.cp-service-hero .cp-service-hero-grid .cp-lead,
.booking-intro .cp-lead {
  max-width: 60ch;
  margin-top: .85rem;
  font-size: clamp(1.05rem, 1.55vw, 1.18rem);
  line-height: 1.5;
}
.cp-service-hero .cp-breadcrumb,
.cp-contact-hero .cp-breadcrumb { padding-block: .75rem 1rem; }
.cp-service-hero-grid .cp-service-photo.cp-brand-service-image.cm-service-art {
  width: min(100%, 30rem);
  justify-self: end;
}

/* Contact details are printed on the navy opening, the forms on white. */
.cp-contact-copy :is(.cp-contact-hours, .cp-contact-note, section p) { color: #dce8ef; }
.cp-contact-copy :is(.cp-contact-hours strong, section strong, section h2) { color: #fff; }
.cp-contact-copy .cp-contact-hours { margin-top: .9rem; line-height: 1.55; }
.cp-contact-copy section[aria-label] { margin-top: 1.3rem; }
.cp-contact-copy section[aria-label] h2 { margin-bottom: .45rem; font-size: clamp(1.5rem, 2.3vw, 2rem); }
.cp-contact-copy section[aria-label] p { margin-block: .45rem; line-height: 1.5; }
.cp-contact-copy .credass-public-profiles a { color: #dfedf6; text-underline-offset: .2em; }
.cp-contact-copy .cp-direct-links { gap: .2rem .85rem; }
.cp-contact-copy .cp-direct-links a { min-height: 44px; padding-block: .5rem; }
.cp-contact-copy .cp-direct-links a:hover strong { text-decoration: underline; }
.cp-contact-forms > .cp-form-card, .quote-layout > .quote-card {
  padding: clamp(1rem, 2.2vw, 1.9rem);
  border-radius: .6rem;
  box-shadow: 0 .3rem 1rem #102c470c;
}
main .cp-form-card .cp-field :is(input,select,textarea),
main .cr-request-fields input, main .cr-request-product select {
  min-height: 46px;
  border-color: #788fa2;
  font-size: 1rem;
}
main .cp-form-card .cp-field small, main .cp-form-card .cp-optional { color: #52677a; }
main .cp-form-card .cp-consent, main .cr-request .cr-request-consent {
  align-items: flex-start;
  min-height: 44px;
  padding-block: .3rem;
  font-size: .9rem;
  line-height: 1.45;
}
main .cp-form-card .cp-consent { margin-block: .55rem; color: #415870; }
main .cp-form-card .cp-consent input { width: 20px; height: 20px; margin-top: .08rem; }
main .cp-form-card summary, main .quote-goal summary {
  align-content: center;
  min-height: 44px;
  color: #244e70;
  cursor: pointer;
}
main .cp-submit, main .quote-card .quote-next { justify-content: center; }
main .cr-request, main .cp-form-card, main .quote-card { scroll-margin-block-start: 5.5rem; }
main .quote-product { align-content: center; min-height: 46px; }
main .quote-product strong { font-size: .95rem; }
main .quote-product small { font-size: .82rem; }
main .quote-intro { padding-top: .3rem; }
main .quote-intro h1 { margin-bottom: .9rem; }
main .quote-goal summary { padding-block: .55rem; }

.booking-page { max-width: 68rem; padding-block: .8rem 3rem; }
.booking-page .booking-intro {
  grid-template-columns: minmax(0,1fr) clamp(10rem,18vw,13rem);
  align-items: start;
  gap: clamp(1.4rem,5vw,4rem);
  padding-block: clamp(1.5rem,3vw,2.8rem);
}
.booking-intro .cp-lead + p { margin-top: .5rem; line-height: 1.55; }
.booking-page .booking-direct { color: #244e70; font-weight: 600; }
.booking-page .booking-times {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .5rem 1.3rem;
  margin: 1.3rem 0 0;
  border-left: 3px solid #ad9158;
  padding: .35rem 0 .35rem .85rem;
  font-size: .97rem;
  line-height: 1.4;
}
.booking-page .booking-times div + div { margin: 0; }
.booking-page .booking-manual { gap: 1.25rem; padding-block: 1.5rem; }
.booking-manual h2, .booking-calendar h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.booking-manual p { margin-top: .5rem; line-height: 1.55; }
.booking-page .booking-manual-actions { gap: .25rem; }

@media (max-width: 820px) {
  .cp-service-hero .cp-service-hero-grid, .cp-contact-hero .cp-contact-grid,
  .booking-page .booking-intro { grid-template-columns: minmax(0,1fr); }
  .cp-service-hero-grid .cp-service-photo.cp-brand-service-image.cm-service-art {
    justify-self: start;
    width: min(100%, 26rem);
  }
  .cp-service-hero-grid .cp-service-photo.cp-brand-service-image.cm-service-art > img:first-child {
    max-height: clamp(9rem, 32vw, 13rem);
  }
  .booking-page .booking-person { display: none; }
  .cp-contact-copy .cp-direct-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cp-contact-copy .cp-direct-links > a:nth-child(3) { grid-column: auto; }
  .cp-contact-copy .cp-direct-links > a[href^="mailto:"] { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .cp-contact-hero .cp-contact-copy .cp-actions { align-items: stretch; }
  .cp-contact-copy .cp-actions > .cp-text-link { width: fit-content; }
  .booking-page .booking-times { grid-template-columns: minmax(0,1fr); }
  .booking-page .booking-actions { align-items: flex-start; }
  .booking-page .booking-manual { grid-template-columns: minmax(0,1fr); }
}
