/* Only the new service detail template is styled here. */
.custom-service-detail-page .custom-appointment-c { display: none; }
.custom-service-detail-c { color: #343435; background: #fff; }
.custom-service-detail-c a, .custom-service-detail-c summary { scroll-margin-block: 220px 40px; }
.custom-service-detail-c .custom-container { --custom-container-width: 1320px; }
.custom-service-hero-c { position: relative; isolation: isolate; overflow: hidden; min-block-size: 400px; padding-block: 55.5px 73px; background: #000; color: #fff; }
.custom-service-hero-image { position: absolute; z-index: -2; top: 0; left: var(--hero-desktop-left); width: var(--hero-desktop-width); height: var(--hero-desktop-height); overflow: hidden; transform: scaleX(var(--hero-desktop-flip)); }
.custom-service-hero-image img { position: absolute; max-width: none; left: var(--hero-desktop-image-left); top: var(--hero-desktop-image-top); width: var(--hero-desktop-image-width); height: var(--hero-desktop-image-height); object-fit: cover; }
.custom-service-hero-c::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,#000 calc(var(--hero-gradient-end) * .6198),#0000 var(--hero-gradient-end)); }
.custom-service-hero-c h1 { max-width: var(--service-title-width,765px); min-block-size: 180px; display: flex; align-items: center; color: #fff; font: italic 800 50px/60px var(--custom-heading-font); letter-spacing: 1.5px; text-transform: uppercase; }
.custom-service-hero-c .custom-primary-button { margin-top: 19.5px; }
.custom-service-content-c { padding-block: 70px 40px; }
.custom-service-content-grid { display: grid; grid-template-columns: minmax(0,874px) minmax(0,416px); grid-template-areas: 'media sidebar' 'intro intro' 'article article' 'faq faq'; column-gap: 29px; align-items: start; }
.custom-service-primary-media { grid-area: media; }
.custom-service-primary-media video { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #111; }
.custom-service-intro { grid-area: intro; margin-top: 13px; }
.custom-service-detail-c h2 { color: #243c71; font: 700 25px/46px var(--custom-heading-font); }
.custom-service-intro p, .custom-service-article p { max-width: 874px; font-size: 18px; line-height: 23.715px; }
.custom-service-intro p { margin-top: 6px; }
.custom-service-intro p + p { margin-top: 17px; }
.custom-service-appointment-card { grid-area: sidebar; padding: 48px 37px 43px; color: #fff; background: var(--custom-red); text-align: center; }
.custom-service-card-icon { display: grid; place-items: center; }
.custom-service-card-icon img { max-width: none; }
.custom-service-appointment-card h2 { max-width: 299px; min-block-size: 64px; margin: 17px auto 0; color: #fff; font-size: 24px; line-height: 32px; }
.custom-service-appointment-card p { min-block-size: 79px; margin-top: 12px; font-size: 18px; line-height: 22px; }
.custom-service-detail-c .custom-service-appointment-card .custom-secondary-button { display: flex; min-width: 0; margin-top: 40px; padding: 10px; border: 0; border-radius: 0; background: #fff; color: var(--custom-red); font-size: 21px; line-height: 36px; }
.custom-service-detail-c .custom-primary-button:hover { border-color: var(--custom-red) !important; background: #fff; color: var(--custom-red) !important; }
.custom-service-detail-c .custom-service-appointment-card .custom-secondary-button:hover { background: #243c71; color: #fff; }
.custom-service-article { grid-area: article; margin-top: 24px; }
.custom-service-article h2:not(:first-child) { margin-top: 14px; }
.custom-service-article p + p { margin-top: 17px; }
.custom-service-article ul { max-width: 874px; margin: 0; padding: 0; list-style: none; }
.custom-service-article .custom-service-checklist-columns { column-count: 2; column-gap: 30px; }
.custom-service-checklist-columns li { break-inside: avoid; }
.custom-service-article li { display: flex; align-items: start; gap: 11px; font-size: 18px; line-height: 32px; }
.custom-service-article li img { flex: 0 0 auto; margin-top: 6.5px; }
.custom-service-photo-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; max-width: 874px; margin-top: 24px; }
.custom-service-photo { position: relative; max-width: 874px; overflow: hidden; aspect-ratio: var(--photo-ratio); margin-top: 24px; }
.custom-service-photo-row .custom-service-photo { margin-top: 0; }
.custom-service-photo img { position: absolute; max-width: none; left: var(--photo-left); top: var(--photo-top); width: var(--photo-width); height: var(--photo-height); object-fit: cover; }
.custom-service-faq-c { grid-area: faq; max-width: 874px; margin-top: 28px; }
.custom-service-faq-list { display: grid; gap: 24px; margin-top: 19px; }
.custom-service-faq-list details { border: 1.5px solid transparent; background: #fff; box-shadow: 0 0 4px #0004; }
.custom-service-faq-list details[open] { border-color: var(--custom-red); box-shadow: none; }
.custom-service-faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 20px; list-style: none; cursor: pointer; color: #243c71; font: 700 18px/27px var(--custom-heading-font); }
.custom-service-faq-list summary::-webkit-details-marker { display: none; }
.custom-service-faq-list summary > span[aria-hidden] { flex: 0 0 21px; }
.custom-service-faq-list summary img + img { display: none; }
.custom-service-faq-list details[open] summary img:first-child { display: none; }
.custom-service-faq-list details[open] summary img + img { display: block; }
.custom-service-faq-list details > p { padding: 16px 20px 27px; font-size: 16px; line-height: 24px; }
@media (min-width:768px) and (max-width:1100px) {
    .custom-service-content-grid { grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 0 24px; }
    .custom-service-appointment-card { padding: 28px 20px; }
    .custom-service-appointment-card h2 { font-size: 20px; line-height: 28px; }
    .custom-service-appointment-card p { font-size: 16px; }
    .custom-service-detail-c .custom-service-appointment-card .custom-secondary-button { margin-top: 20px; font-size: 16px; }
}
@media (max-width:767px) {
    .custom-service-detail-c .custom-container { width: calc(100% - 42px); }
    .custom-service-hero-c { min-block-size: 176px; padding-block: var(--service-mobile-padding) 18px; }
    .custom-service-hero-image { left: var(--hero-mobile-left); width: var(--hero-mobile-width); height: var(--hero-mobile-height); transform: scaleX(var(--hero-mobile-flip)); }
    .custom-service-hero-image img { left: var(--hero-mobile-image-left); top: var(--hero-mobile-image-top); width: var(--hero-mobile-image-width); height: var(--hero-mobile-image-height); }
    .custom-service-hero-c::after { background: linear-gradient(90deg,#000000f2 30.288%,#0008 62.393%,#0000); }
    .custom-service-hero-c h1 { max-width: min(100%,var(--service-mobile-title-width)); min-block-size: 53px; font-size: 21px; line-height: 26.5px; letter-spacing: 0; }
    .custom-service-hero-c .custom-primary-button { min-width: 240px; margin-top: 8px; padding: 15px 12px; border-radius: 4px; font-size: 16px; line-height: 20px; }
    .custom-service-content-c { padding-block: 24px 30px; }
    .custom-service-content-grid { display: flex; flex-direction: column; }
    .custom-service-intro { order: 0; margin-top: 0; }
    .custom-service-detail-c h2 { font-size: 18px; line-height: 22.8px; }
    .custom-service-intro p, .custom-service-article p { font-size: 14px; line-height: 18px; }
    .custom-service-intro p { margin-top: 7px; }
    .custom-service-intro p + p { margin-top: 14px; }
    .custom-service-primary-media { order: 1; width: 100%; margin-top: 19px; }
    .custom-service-appointment-card { order: 2; width: 100%; margin-top: 20px; padding: 23px 30px 25px; }
    .custom-service-card-icon { block-size: 93px; }
    .custom-service-card-icon img { transform: scale(.85); }
    .custom-service-appointment-card h2 { min-block-size: 55px; margin-top: 12px; font-size: 20.6px; line-height: 27.462px; }
    .custom-service-appointment-card p { min-block-size: 56px; margin-top: 11px; font-size: 14px; line-height: 18.88px; }
    .custom-service-detail-c .custom-service-appointment-card .custom-secondary-button { margin-top: 16px; padding: 14px 6px; font-size: 18px; line-height: 30px; }
    .custom-service-article { order: 3; margin-top: 19px; width: 100%; }
    .custom-service-article h2:not(:first-child) { margin-top: 14px; }
    .custom-service-article p { margin-top: 7px; }
    .custom-service-article .custom-service-checklist-columns { column-count: 1; }
    .custom-service-article li { gap: 9px; font-size: 14px; line-height: 24px; }
    .custom-service-article li img { margin-top: 2.5px; }
    .custom-service-photo-row { gap: 9px; margin-top: 17px; }
    .custom-service-photo { aspect-ratio: var(--photo-mobile-ratio); margin-top: 17px; }
    .custom-service-photo img { left: var(--photo-mobile-left); top: var(--photo-mobile-top); width: var(--photo-mobile-width); height: var(--photo-mobile-height); }
    .custom-service-faq-c { order: 4; width: 100%; margin-top: 24px; }
    .custom-service-faq-list { gap: 11px; margin-top: 14px; }
    .custom-service-faq-list summary { gap: 12px; padding: 10px; font-size: 13px; line-height: 18px; }
    .custom-service-faq-list details > p { padding: 11px 10px 16px; font-size: 12px; line-height: 17px; }
}
