/* Capitol Pools Instant Pool Quote — wizard styles (Bootstrap 5.3 base).
   Visual language follows the Capitol Pools walkthrough: Oswald headings, orange
   progress bar and buttons, dark category pills, YES / NO pill switches. */

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/roboto-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("../fonts/oswald-latin.woff2") format("woff2");
}

:root {
  --cp-orange: #f0a548;
  --cp-orange-dark: #e08d26;
  --cp-ink: #333;
  --cp-text: #333;
  --cp-muted: #6c6c6c;
  --cp-line: #e6e6e6;
  --cp-pill: #333;
  --cp-blue: #2a7bbf;
  --cp-switch-off: #5f5f5f;
  --cp-field: #eaf1fb;
  --cp-heading: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --bs-body-font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --bs-body-color: var(--cp-text);
  --bs-link-color: #2a7bbf;
  --bs-link-color-rgb: 42, 123, 191;
}

.cp-body { background: #fff; color: var(--cp-text); font-size: 13px; line-height: 1.6; }
.cp-wrap { max-width: 842px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header (official logo on white) ---------- */
.cp-header {
  background: linear-gradient(180deg, #fff 0%, #fff 55%, #e5f4fa 100%);
  border-bottom: 1px solid #d9eef6;
}
.cp-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; max-width: 1100px; }
.cp-brand { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; }
.cp-logo { display: block; height: auto; width: auto; max-height: 104px; max-width: min(170px, 42vw); object-fit: contain; }
.cp-logo-text { color: #0a3a5c; font-family: var(--cp-heading); font-size: 1.6rem; }
/* Header call-to-action (top right): "Questions? Call Us" above tel:608-837-7665 */
.cp-header-cta { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.cp-header-cta-label { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cp-muted); line-height: 1.2; white-space: nowrap; }
.cp-header-phone {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  font-family: var(--cp-heading); font-size: 1.25rem; font-weight: 400; color: var(--cp-ink);
  text-decoration: none; letter-spacing: .02em; white-space: nowrap;
}
.cp-header-phone-icon { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--cp-orange); color: #222; flex: 0 0 auto; transition: background-color .15s; }
.cp-header-phone:hover, .cp-header-phone:focus-visible { color: var(--cp-orange-dark); }
.cp-header-phone:hover .cp-header-phone-icon, .cp-header-phone:focus-visible .cp-header-phone-icon { background: var(--cp-orange-dark); }
/* Mobile (767px and below): label 14px, phone number 20px */
@media (max-width: 767.98px) { .cp-header-cta-label { font-size: 14px; } .cp-header-phone { font-size: 20px; } }
@media (max-width: 575.98px) { .cp-header-phone { gap: 6px; } .cp-header-phone-icon { width: 26px; height: 26px; padding: 6px; } }

/* Breadcrumb: Home / Instant Pool Quote */
.cp-breadcrumb { margin: 0 0 10px; font-size: .85rem; }
.cp-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; }
.cp-breadcrumb li { color: var(--cp-muted); }
.cp-breadcrumb li + li::before { content: "/"; padding: 0 8px; color: #b5b5b5; }
.cp-breadcrumb a { color: #b45f06; text-decoration: none; }
.cp-breadcrumb a:hover, .cp-breadcrumb a:focus-visible { color: var(--cp-ink); text-decoration: underline; }
@media (max-width: 575.98px) { .cp-logo { max-height: 72px; } }

.cp-main { padding: 34px 0 60px; }
.cp-page-title, .cp-step-title {
  font-family: var(--cp-heading); font-weight: 300; color: var(--cp-ink); letter-spacing: 0;
  font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.35rem); line-height: 1.2;
  border-bottom: 1px solid var(--cp-line); padding-bottom: 14px; margin: 0 0 22px;
}
.cp-step-title:focus { outline: none; }
.cp-loading { text-align: center; padding: 56px 0; color: var(--cp-muted); }
.cp-loading .spinner-border { color: var(--cp-orange); }

/* ---------- Introduction ("How It Works") ---------- */
.cp-intro { line-height: 1.75; }
.cp-intro::after { content: ""; display: table; clear: both; }
.cp-intro h2, .cp-intro h3 { font-family: var(--cp-heading); font-weight: 400; color: var(--cp-ink); font-size: 1.9rem; margin: 0 0 12px; }
.cp-intro ul { padding-left: 1.2rem; }
.cp-intro li { margin-bottom: 8px; }
.cp-intro img { max-width: 100%; height: auto; }
@media (min-width: 768px) { .cp-intro img { float: right; max-width: 42%; margin: 4px 0 16px 24px; } }
/* 767px and below: the image sits on its own line, centred and never wider than the screen,
   with the text starting underneath it (it no longer sits inline with the first words). */
@media (max-width: 767.98px) {
  .cp-intro img { display: block; float: none; width: auto; max-width: 100%; height: auto; margin: 0 auto 16px; vertical-align: top; }
}
.cp-start { margin: 28px 0 10px; }

/* ---------- Buttons ---------- */
.cp-btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 3px; background: var(--cp-orange); color: #222;
  font-family: var(--cp-heading); font-weight: 400; text-transform: uppercase; font-size: 1rem; letter-spacing: .01em;
  padding: 9px 18px; box-shadow: 0 2px 0 var(--cp-orange-dark); text-decoration: none; cursor: pointer;
  transition: background-color .15s, transform .05s;
}
.cp-btn:hover { background: #f4b464; color: #222; }
.cp-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--cp-orange-dark); }
.cp-btn:focus-visible { outline: 3px solid #1d5f99; outline-offset: 2px; }
.cp-btn:disabled { opacity: .65; cursor: progress; }
.cp-btn-light { background: #eee; box-shadow: 0 2px 0 #ccc; }
.cp-chev { font-size: 1.4rem; line-height: .8; margin-top: -2px; }
.cp-tick { font-size: .85rem; }

/* ---------- Progress bar with n/N knob ---------- */
.cp-wizard { padding-top: 36px; scroll-margin-top: 12px; }
.cp-progress { position: relative; height: 60px; margin: 0 29px 18px 0; }
.cp-progress-track { position: absolute; left: 0; right: 0; top: 50%; height: 18px; margin-top: -9px; background: #ececec; border-radius: 10px; overflow: hidden; }
.cp-progress-fill { height: 100%; background: var(--cp-orange); border-radius: 10px; transition: width .35s ease; }
.cp-progress-knob {
  position: absolute; top: 0; width: 58px; height: 58px; margin-left: -29px; border-radius: 50%; background: var(--cp-orange);
  color: #fff; display: grid; place-items: center; font-size: .9rem; box-shadow: 0 2px 4px rgba(0, 0, 0, .18); transition: left .35s ease;
}
.cp-progress { scroll-margin-top: 12px; }

/* Optional running estimate (Settings → Show prices) */
.cp-estimate { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border: 1px solid var(--cp-line); border-left: 4px solid var(--cp-orange); padding: 8px 14px; margin-bottom: 18px; transition: opacity .2s; }
.cp-estimate.is-updating { opacity: .6; }
.cp-estimate-label { font-family: var(--cp-heading); text-transform: uppercase; color: var(--cp-muted); }
.cp-estimate-total { font-family: var(--cp-heading); font-weight: 500; font-size: 1.3rem; color: var(--cp-ink); }

.cp-step-subtitle { color: var(--cp-muted); margin: -10px 0 16px; }
.cp-step-desc { line-height: 1.75; margin-bottom: 18px; }
.cp-step-desc p { margin-bottom: 12px; }
.cp-step-desc img { max-width: 100%; height: auto; }

/* ---------- Groups ---------- */
.cp-group + .cp-group { margin-top: 30px; }
.cp-group-desc { line-height: 1.75; margin-bottom: 14px; }
.cp-group-desc p { margin-bottom: 10px; }
.cp-group-desc strong { color: var(--cp-ink); }
.cp-field-error { color: #b42318; font-weight: 600; font-size: .9rem; margin: 6px 0 12px; }

/* ---------- Category pills ---------- */
.cp-pills { display: flex; flex-wrap: wrap; gap: 10px 12px; margin: 6px 0 36px; }
.cp-pill {
  border: 0; border-radius: 3px; background: var(--pill-bg, var(--cp-pill)); color: var(--pill-text, #fff); padding: 7px 11px;
  font-family: var(--cp-heading); text-transform: uppercase; font-size: .74rem; letter-spacing: 0; box-shadow: 0 2px 3px rgba(0, 0, 0, .2);
}
.cp-pill:hover { filter: brightness(1.25); }
.cp-pill.is-active { background: var(--cp-orange); color: #222; }
.cp-pill:focus-visible { outline: 3px solid #1d5f99; outline-offset: 2px; }

/* ---------- Shared selection behaviour ---------- */
.cp-hit { position: absolute; inset: 0; z-index: 1; border: 0; background: transparent; cursor: pointer; }
.cp-hit:focus-visible { outline: 3px solid #1d5f99; outline-offset: 3px; }
.cp-check {
  position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: rgba(60, 60, 60, .75);
  display: none; place-items: center; z-index: 2; pointer-events: none;
}
.cp-check::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.is-selected .cp-check { display: grid; }
/* Once something is chosen, the other pictures turn grey (as in the walkthrough). */
.has-selection > :not(.is-selected) img { filter: grayscale(1); opacity: .55; transition: filter .2s, opacity .2s; }
.has-selection > :not(.is-selected):hover img { filter: none; opacity: 1; }

/* ---------- Pool grid (5 across) ---------- */
.cp-pool-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 46px 25px; padding: 0 12px; }
@media (max-width: 767.98px) { .cp-pool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; padding: 0; } }
@media (max-width: 459.98px) { .cp-pool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cp-pool { position: relative; text-align: center; }
.cp-pool-frame { position: relative; border: 1px solid #cfd3e6; background: #fff; }
.cp-pool.is-selected .cp-pool-frame { border-color: #6f6fd8; box-shadow: 0 0 0 1px #6f6fd8; }
.cp-pool-img { aspect-ratio: 131 / 99; display: grid; place-items: center; overflow: hidden; }
.cp-pool-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cp-pool-img.is-empty { background: linear-gradient(180deg, #1565c0 0 16%, #e8f3fb 16%); }
.cp-pool-img.is-empty span { color: #1565c0; font-family: var(--cp-heading); font-size: .85rem; padding: 18px 6px 0; }
.cp-pool-name { font-family: var(--cp-heading); font-weight: 400; text-transform: uppercase; color: var(--cp-ink); font-size: .98rem; margin: 20px 0 0; }
.cp-pool:hover .cp-pool-name { color: #000; }

/* ---------- Picture cards (tile, hardscape, covers…) ---------- */
.cp-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 272px)); gap: 30px 57px; }
@media (max-width: 575.98px) { .cp-card-grid { grid-template-columns: 1fr; } }
.cp-item { position: relative; display: flex; flex-direction: column; background: #fff; box-shadow: 0 0 0 1px #f1f1f1, 0 1px 3px rgba(0, 0, 0, .04); }
.cp-item-frame { position: relative; }
.cp-item-img { aspect-ratio: 272 / 181; overflow: hidden; background: #f3f3f3; }
.cp-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-item-img.is-empty { display: grid; place-items: center; background: #2d83c4; }
.cp-item-img.is-empty span { color: #fff; font-family: var(--cp-heading); font-size: 1.6rem; text-transform: uppercase; padding: 10px; text-align: center; }
.cp-item-body { padding: 20px 12px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cp-item-name { font-family: var(--cp-heading); font-weight: 400; text-transform: uppercase; color: var(--cp-ink); font-size: 1.05rem; margin: 0; }
.cp-learn { position: relative; z-index: 2; border: 0; background: none; padding: 0; color: #2a8ccc; text-decoration: underline; font-size: .88rem; }
.cp-learn:hover { color: #1d5f99; }
.cp-price { font-weight: 600; color: #1d5f99; margin: 4px 0 0; font-size: .92rem; }
.cp-badge { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--badge, #0b5ed7); border-radius: 3px; padding: 2px 6px; }

/* ---------- Equipment packages (Silver / Gold) ---------- */
.cp-pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 277px)); gap: 24px 49px; }
@media (max-width: 575.98px) { .cp-pkg-grid { grid-template-columns: 1fr; } }
.cp-pkg { border: 1px solid #f0f0f0; display: flex; flex-direction: column; }
.cp-pkg-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; border: 0; text-align: left;
  background: var(--pkg-color); color: var(--pkg-text, #222); padding: 12px 30px; min-height: 53px; cursor: pointer;
}
.cp-pkg-head:focus-visible { outline: 3px solid #1d5f99; outline-offset: 2px; }
.cp-pkg-name { font-family: var(--cp-heading); font-weight: 400; text-transform: uppercase; font-size: 1.55rem; line-height: 1.1; color: #333; }
.cp-pkg-box { flex: 0 0 18px; width: 18px; height: 18px; background: #fff; border: 1px solid #999; display: grid; place-items: center; }
.cp-pkg.is-selected .cp-pkg-box::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #222; border-bottom: 2px solid #222; transform: rotate(-45deg) translate(1px, -1px); }
.cp-pkg.is-selected { box-shadow: 0 0 0 2px var(--pkg-color); }
.cp-pkg-body { padding: 26px 18px 30px 28px; flex: 1; }
.cp-pkg-list ul { list-style: none; padding: 0; margin: 0; }
.cp-pkg-list li { position: relative; padding-left: 14px; margin-bottom: 15px; }
.cp-pkg-list li::before { content: "›"; position: absolute; left: 0; top: -1px; color: #777; }
.cp-pkg-list a { color: #2a8ccc; }

/* ---------- YES / NO rows (sanitizer, Intellichem, accessories) ---------- */
.cp-toggle-list { display: grid; }
.cp-trow { display: grid; grid-template-columns: 210px 1fr; gap: 0 32px; padding: 20px 0 40px; border-bottom: 1px solid #f2f2f2; margin: 0 auto; max-width: 600px; width: 100%; }
.cp-trow:last-child { border-bottom: 0; }
.cp-trow-item { text-align: center; border-right: 1px solid #e3e3e3; padding: 0 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cp-trow-img { width: 126px; height: 90px; overflow: hidden; display: grid; place-items: center; }
.cp-trow-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cp-trow-img.is-empty { display: none; }
.cp-trow-name { font-family: var(--cp-heading); font-weight: 400; text-transform: uppercase; font-size: 1.05rem; color: var(--cp-ink); margin: 14px 0 4px; }
.cp-trow-q { padding-top: 22px; }
.cp-question { display: inline; color: #222; font-weight: 500; margin: 0 10px 0 0; }
.cp-trow-ctl { display: inline-flex; align-items: center; gap: 12px; vertical-align: middle; }
@media (max-width: 575.98px) {
  .cp-trow { grid-template-columns: 1fr; gap: 12px; }
  .cp-trow-item { border-right: 0; }
  .cp-trow-q { padding-top: 0; text-align: center; }
}

/* The pill switch */
.cp-switch {
  position: relative; display: inline-flex; align-items: center; width: 60px; height: 23px; padding: 0; border: 0; border-radius: 12px;
  background: var(--cp-switch-off); color: #fff; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); cursor: pointer; vertical-align: middle; flex: 0 0 auto;
}
.cp-switch-knob { position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #9a9a9a; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: left .15s; }
.cp-switch-text { position: absolute; left: 28px; }
.cp-switch.is-on { background: var(--cp-blue); }
.cp-switch.is-on .cp-switch-knob { left: 40px; background: #c9c9c9; }
.cp-switch.is-on .cp-switch-text { left: 11px; }
.cp-switch:focus-visible { outline: 3px solid #1d5f99; outline-offset: 2px; }

/* ---------- Customer Info ---------- */
.cp-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 36px; margin-bottom: 36px; }
@media (max-width: 767.98px) { .cp-contact { grid-template-columns: 1fr; gap: 16px; } }
.cp-field { display: grid; grid-template-columns: 132px 1fr; gap: 8px; align-items: start; }
@media (max-width: 400px) { .cp-field { grid-template-columns: 1fr; } }
.cp-label { font-weight: 500; color: #222; padding-top: 4px; }
.cp-input.form-control, .cp-input.form-select { background-color: var(--cp-field); border: 1px solid #e3e6ea; border-radius: 2px; min-height: 33px; font-size: .9rem; }
.cp-input.is-invalid { border-color: #dc3545; }
.cp-questions { list-style: decimal; padding: 26px 0 0 26px; margin: 0 0 30px; border-top: 1px solid #f4f4f4; }
.cp-q { padding: 4px 0 12px; }
.cp-q > * { vertical-align: top; }
.cp-q { display: list-item; }
.cp-q-text, .cp-q-control { display: inline-block; }
.cp-q-text { width: calc(100% - 240px); min-width: 260px; color: #333; margin-right: 12px; }
.cp-q-text p { margin: 0; }
.cp-q-control { width: 220px; }
.cp-q-control .form-select { max-width: 210px; }
@media (max-width: 575.98px) { .cp-q-text, .cp-q-control { width: 100%; min-width: 0; margin: 0 0 8px; } }
.cp-yn-group { display: flex; gap: 22px; }
.cp-yn { display: flex; flex-direction: column; align-items: center; gap: 22px; border: 0; background: none; padding: 0; font-weight: 700; color: #222; font-size: .85rem; }
.cp-yn img { width: 120px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.cp-yn-box { width: 18px; height: 18px; border: 1px solid #777; display: grid; place-items: center; background: #fff; }
.cp-yn.is-on .cp-yn-box::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #222; border-bottom: 2px solid #222; transform: rotate(-45deg) translate(1px, -1px); }
.cp-yn:focus-visible { outline: 3px solid #1d5f99; outline-offset: 3px; }
.cp-yn-group.is-invalid .cp-yn-box { border-color: #dc3545; }
.cp-field--comments { grid-template-columns: 132px minmax(0, 285px); }

/* ---------- Terms and Conditions ---------- */
.cp-terms-box { border: 1px solid #222; border-radius: 3px; padding: 7px 7px; font-size: .78rem; line-height: 1.95; max-width: 600px; margin-bottom: 36px; color: #333; }
.cp-terms-box p:last-child { margin-bottom: 0; }
.cp-terms-box strong { color: #111; }
.cp-accept { display: flex; align-items: center; gap: 16px; font-weight: 500; color: #222; }
.cp-accept.is-invalid .cp-switch { box-shadow: 0 0 0 2px #dc3545; }
.cp-review-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; border-left: 4px solid var(--cp-orange); background: #fafafa; padding: 14px 18px; margin-bottom: 18px; }
.cp-review-total span { font-family: var(--cp-heading); text-transform: uppercase; color: var(--cp-muted); }
.cp-review-total strong { font-family: var(--cp-heading); font-weight: 500; font-size: 1.6rem; color: var(--cp-ink); }
.cp-review-table { font-size: .9rem; margin-bottom: 26px; }
.cp-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Navigation ---------- */
.cp-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; }
@media (max-width: 459.98px) {
  .cp-nav { flex-direction: column-reverse; }
  .cp-nav .cp-btn { justify-content: center; }
  .cp-nav .invisible { display: none; }
}

/* ---------- Modals ---------- */
.cp-modal .modal-content { border-radius: 0; background: #fff linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(240, 247, 250, .92)); }
.cp-modal .modal-header { border-bottom: 0; justify-content: center; position: relative; padding-top: 22px; }
.cp-modal .modal-header .btn-close { position: absolute; right: 18px; top: 18px; }
.cp-modal .modal-title { font-family: var(--cp-heading); font-weight: 400; font-size: 1.6rem; color: var(--cp-ink); }
.cp-modal .modal-body { padding: 16px 36px 8px; }
.cp-modal .modal-footer { border-top: 0; padding: 10px 16px 16px; }
.cp-modal-h { font-size: 1rem; font-weight: 500; color: #333; margin-bottom: 12px; }
.cp-modal-col { border-right: 1px solid #e8e8e8; }
@media (max-width: 767.98px) { .cp-modal-col { border-right: 0; } }
.cp-modal-pool img { width: 131px; max-width: 100%; border: 1px solid #6f6fd8; }
.cp-specs { margin: 16px 0 0 10px; font-size: .8rem; }
.cp-specs > div { display: grid; grid-template-columns: 58px 1fr; gap: 8px; margin-bottom: 8px; }
.cp-specs dt { font-weight: 600; color: #222; }
.cp-specs dd { margin: 0; color: #333; }
.cp-dig img { width: 140px; max-width: 100%; height: auto; border: 1px solid #ddd; background: #fff; }
.cp-samples { display: flex; flex-wrap: wrap; gap: 12px; }
.cp-samples img { width: 128px; height: 85px; object-fit: cover; display: block; }
.cp-modal-img { width: 100%; height: auto; margin-bottom: 14px; }
.cp-modal-link { color: #2a8ccc; }
.cp-post-content img { max-width: 100%; height: auto; }

/* ---------- Success / errors ---------- */
.cp-success { text-align: center; padding: 30px 0; }
.cp-success:focus { outline: none; }
.cp-success .cp-step-title { border-bottom: 0; }
.cp-success-icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: var(--cp-orange); color: #fff; font-size: 2rem; display: grid; place-items: center; }
.cp-success-ref { color: var(--cp-muted); }
.cp-success-total { font-family: var(--cp-heading); font-size: 1.8rem; color: var(--cp-ink); }
.cp-success-msg { max-width: 560px; margin: 0 auto; }
.cp-error { text-align: center; padding: 32px 0; }
.cp-error .cp-step-title { border-bottom: 0; }
.cp-error p { max-width: 520px; margin-left: auto; margin-right: auto; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}


/* =====================================================================
   Corrections after comparing with the live form (fonts, sizes, layout)
   ===================================================================== */
.cp-page-title { font-weight: 400; font-size: 2rem; }
.cp-step-title { font-size: 2rem; }
.cp-intro, .cp-step-desc, .cp-group-desc { line-height: 1.75; }
.cp-intro h2, .cp-intro h3 { font-size: 1.85rem; }
.cp-intro li { margin-bottom: 6px; }
.cp-hint { text-align: center; color: #666; margin: 36px 0 0; }
.cp-group-footer { margin-top: 18px; line-height: 1.75; }
.cp-group-footer p { margin-bottom: 12px; }
.cp-group-footer img { max-width: 100%; height: auto; }
.cp-learn { font-size: .85rem; }
.cp-item-name, .cp-trow-name, .cp-pool-name { font-size: 1rem; }

/* YES / NO rows: Bio-Shield and Intellichem put the switch under the question */
.cp-trow.is-stacked .cp-question { display: block; margin-bottom: 52px; }
.cp-question { font-weight: 500; color: #222; }

/* Customer Info: white fields with a light border, as on the live form */
.cp-input.form-control, .cp-input.form-select { background-color: #fff; border: 1px solid #d9d9d9; border-radius: 2px; min-height: 32px; font-size: 13px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .04); }
.cp-label { font-weight: 600; font-size: 13px; }
.cp-contact { gap: 34px 46px; }
.cp-q-text { font-size: 13px; }
.cp-field--comments { margin-left: 12px; }
.cp-yn-box { width: 20px; height: 20px; border-color: #888; }

/* "Pick a pool" window, as on the live form */
.cp-pool-modal .modal-dialog { max-width: min(990px, calc(100vw - 32px)); }
.cp-pool-modal .modal-content {
  background-color: #fff;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .78) 55%, rgba(225, 242, 248, .82) 100%),
    repeating-linear-gradient(0deg, rgba(171, 213, 230, .35) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(171, 213, 230, .35) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(0deg, rgba(200, 228, 239, .55) 0 10px, rgba(240, 249, 252, .55) 10px 22px);
}
.cp-pool-modal .modal-title { font-size: 2rem; font-weight: 400; }
.cp-pool-modal .modal-header { border-bottom: 1px solid #edf1f3; margin: 0 58px; padding: 26px 0 16px; }
.cp-pool-modal .modal-body { padding: 26px 58px 10px; }
.cp-pool-modal .modal-footer { padding: 10px 24px 24px; }
.cp-modal-top { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; padding-bottom: 22px; }
.cp-modal-spec { padding-right: 32px; border-right: 1px solid #e3e8ea; min-height: 420px; }
.cp-modal-dig { padding-left: 50px; }
@media (max-width: 767.98px) {
  .cp-pool-modal .modal-header { margin: 0 20px; }
  .cp-pool-modal .modal-body { padding: 20px; }
  .cp-modal-top { grid-template-columns: 1fr; gap: 20px; }
  .cp-modal-spec { border-right: 0; padding-right: 0; min-height: 0; }
  .cp-modal-dig { padding-left: 0; }
}
.cp-modal-h { font-family: Roboto, Arial, sans-serif; font-size: 1.3rem; font-weight: 500; color: #333; margin: 0 0 20px; }
.cp-modal-pool img { width: 204px; max-width: 100%; border: 1px solid #6f6fd8; background: #fff; }
.cp-specs { margin: 26px 0 0 14px; font-size: 14px; border-collapse: collapse; }
.cp-specs th { font-weight: 700; color: #222; padding: 0 12px 12px 0; vertical-align: top; white-space: nowrap; }
.cp-specs td { padding: 0 0 12px; color: #333; }
.cp-dig img { width: 216px; max-width: 100%; height: auto; border: 1px solid #ddd; background: #fff; }
.cp-modal-samples { border-top: 1px solid #e3e8ea; padding-top: 26px; }
.cp-samples { gap: 18px; }
.cp-samples img { width: 200px; height: 133px; }
.cp-btn-quote { text-transform: uppercase; font-size: 1.5rem; font-weight: 500; padding: 6px 18px; }


/* =====================================================================
   UI / UX revisions (match the live site)
   ===================================================================== */

/* Page container 1080px; 16px body text */
.cp-wrap { max-width: 1080px; width: 100%; margin: auto; }
.cp-header-inner { max-width: 1080px; }
.cp-body, .cp-main, .cp-intro, .cp-step-desc, .cp-group-desc, .cp-group-footer, .cp-pkg-body, .cp-q-text, .cp-question, .cp-label, .cp-accept {
  font-size: 16px !important; color: #333 !important;
}
.cp-body { line-height: 1.6; }

/* The estimator section stands out from the page: its own background (Settings →
   Estimator appearance: colour and optional picture from the live site). */
.cp-wizard {
  background-color: var(--cp-est-bg, #f3f8fb);
  border: 1px solid #dbe7ee; border-radius: 10px;
  padding: 30px 34px 34px; margin-top: 26px;
  box-shadow: 0 2px 10px rgba(0, 40, 70, .06);
  scroll-margin-top: var(--cp-nav-offset, 12px);
}
#cp-app.has-bg-image .cp-wizard {
  background-image: linear-gradient(rgba(255, 255, 255, .86), rgba(255, 255, 255, .86)), var(--cp-est-img);
  background-size: cover; background-position: center top;
}
@media (max-width: 575.98px) { .cp-wizard { padding: 20px 14px 24px; border-radius: 6px; } }
.cp-wizard .cp-input.form-control, .cp-wizard .cp-input.form-select { background-color: #fff; border: 1px solid #b9c7d1; min-height: 40px; font-size: 16px; }
.cp-wizard .cp-input:focus { border-color: #f8a646; box-shadow: 0 0 0 3px rgba(248, 166, 70, .3); }

/* Uppercase category headers, labels and names */
.cp-pill, .cp-label, .cp-pool-name, .cp-item-name, .cp-trow-name, .cp-pkg-name, .cp-modal-h, .cp-group-desc strong { text-transform: uppercase; }

/* Progress bar: step number in black */
.cp-progress-knob { color: #000; font-weight: 700; }

/* Category filter buttons */
.cp-pills { gap: 10px 10px; margin: 6px 0 32px; }
.cp-pill {
  background: #444 !important; box-shadow: 0 2px 0 #000 !important; color: #fff !important; line-height: normal;
  border-radius: 3px; padding: 9px 14px; font-size: .9rem; opacity: 1; transition: opacity .15s; filter: none;
  display: inline-flex; align-items: center; gap: 7px;
}
.cp-pill.is-active { background: #f8a646 !important; box-shadow: 0 2px 0 #9d580b !important; opacity: 1; color: #000 !important; }
.cp-pill:hover { opacity: .7; filter: none; }
.cp-pill-dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .7); flex: 0 0 auto; }
.cp-empty { text-align: center; color: #555; padding: 26px 0; }

/* Buttons: live site orange */
.cp-btn { background: #f8a646; color: #000; box-shadow: 0 2px 0 #9d580b; font-size: 1.05rem; padding: 10px 20px; transition: opacity .15s, background-color .15s; }
.cp-btn:hover, .cp-btn:focus-visible { background: #f8a646; color: #000; opacity: .7; }
.cp-btn:active { box-shadow: 0 1px 0 #9d580b; }
.cp-learn { font-size: .95rem; }

/* ---------- Step 1: larger pool cards with a Select button ---------- */
.cp-pool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 22px; padding: 0; }
@media (max-width: 991.98px) { .cp-pool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .cp-pool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; } }
@media (max-width: 399.98px) { .cp-pool-grid { grid-template-columns: 1fr; } }
.cp-pool {
  background: #fff; border: 1px solid #dfe6eb; border-radius: 12px; padding: 16px 14px 18px;
  display: flex; flex-direction: column; align-items: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
  transition: box-shadow .15s, border-color .15s, transform .15s;
}
.cp-pool:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, .12); transform: translateY(-2px); }
.cp-pool.is-selected { border: 2px solid #f8a646; box-shadow: 0 0 0 4px rgba(248, 166, 70, .28), 0 6px 16px rgba(0, 0, 0, .1); }
.cp-pool-frame { border: 0; background: transparent; width: 100%; border-radius: 8px; overflow: hidden; }
.cp-pool.is-selected .cp-pool-frame { border: 0; box-shadow: none; }
.cp-pool-img { aspect-ratio: 4 / 3; }
.cp-pool-name {
  font-family: Oswald, sans-serif; font-size: 20px !important; text-align: center !important; text-transform: uppercase;
  font-weight: normal !important; color: #333 !important; margin: 14px 0 10px; line-height: 1.25;
}
.cp-pool-select {
  margin-top: auto; display: inline-block; min-width: 120px; text-align: center; border-radius: 4px; padding: 8px 16px;
  background: #444; color: #fff; box-shadow: 0 2px 0 #000; font-family: var(--cp-heading); text-transform: uppercase; font-size: .95rem;
  position: relative; z-index: 0; pointer-events: none; transition: opacity .15s;
}
.cp-pool:hover .cp-pool-select { opacity: .8; }
.cp-pool.is-selected .cp-pool-select { background: #f8a646; color: #000; box-shadow: 0 2px 0 #9d580b; }
.has-selection > :not(.is-selected) img { filter: none; opacity: 1; }
.cp-pool-grid.has-selection > :not(.is-selected) { opacity: .75; }
.cp-pool-grid.has-selection > :not(.is-selected):hover { opacity: 1; }

/* ---------- Pool window: dig picture viewer and sample pool slider ---------- */
.cp-zoom { position: relative; display: inline-block; border: 0; padding: 0; background: none; cursor: zoom-in; }
.cp-zoom img { display: block; }
.cp-zoom-hint { display: block; font-size: .8rem; color: #2a7bbf; margin-top: 6px; text-decoration: underline; }
.cp-zoom:focus-visible { outline: 3px solid #1d5f99; outline-offset: 3px; }
.cp-carousel { position: relative; display: flex; align-items: center; gap: 8px; }
.cp-carousel-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 10px; flex: 1; scrollbar-width: thin; }
.cp-carousel-track:focus-visible { outline: 3px solid #1d5f99; outline-offset: 2px; }
.cp-carousel-slide { flex: 0 0 auto; border: 0; padding: 0; background: none; scroll-snap-align: start; cursor: zoom-in; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
.cp-carousel-slide img { width: 240px; height: 160px; object-fit: cover; display: block; transition: transform .2s; }
.cp-carousel-slide:hover img { transform: scale(1.04); }
.cp-carousel-slide:focus-visible { outline: 3px solid #1d5f99; outline-offset: 2px; }
@media (max-width: 575.98px) { .cp-carousel-slide img { width: 72vw; height: 48vw; } }
.cp-carousel-nav {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #444; color: #fff; font-size: 1.6rem; line-height: 1;
  box-shadow: 0 2px 0 #000; display: grid; place-items: center; padding: 0 0 3px;
}
.cp-carousel-nav:hover { opacity: .7; }
.cp-carousel-nav:disabled { opacity: .25; cursor: default; }
.cp-lightbox {
  position: fixed; inset: 0; z-index: 1080; background: rgba(0, 0, 0, .82); display: grid; place-items: center; padding: 20px;
}
.cp-lightbox-inner { background: #fff; border-radius: 8px; max-width: min(1000px, 96vw); width: 100%; max-height: 94vh; display: flex; flex-direction: column; overflow: hidden; }
.cp-lightbox-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #eee; }
.cp-lightbox-title { font-family: var(--cp-heading); text-transform: uppercase; font-size: 1.15rem; color: #333; }
.cp-lightbox-close { border: 0; background: none; font-size: 2rem; line-height: 1; color: #333; padding: 0 6px; }
.cp-lightbox-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: #f6f6f6; padding: 10px 56px; }
.cp-lightbox-img { width: min(100%, 900px); height: auto; max-height: calc(94vh - 150px); min-height: 240px; object-fit: contain; display: block; }
.cp-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(68, 68, 68, .9); color: #fff; font-size: 1.9rem; line-height: 1; padding: 0 0 4px; }
.cp-lightbox-nav:hover { opacity: .7; }
.cp-lightbox-prev { left: 8px; }
.cp-lightbox-next { right: 8px; }
.cp-lightbox-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; min-height: 58px; }
.cp-lightbox-count { color: #555; }
.cp-lightbox-download { margin-left: auto; }

/* ---------- Step 2: large horizontal package cards ---------- */
.cp-pkg-grid { grid-template-columns: 1fr; gap: 22px; }
.cp-pkg { flex-direction: row; border: 2px solid #e2e8ec; border-radius: 10px; overflow: hidden; background: #fff; transition: border-color .15s, box-shadow .15s; }
.cp-pkg.is-selected { border-color: #f8a646; box-shadow: 0 0 0 4px rgba(248, 166, 70, .25); }
.cp-pkg-head { flex: 0 0 250px; width: 250px; flex-direction: column; justify-content: center; align-items: center; gap: 14px; text-align: center; padding: 24px 18px; }
.cp-pkg-name { font-size: 1.9rem; }
.cp-pkg-state {
  display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .85); color: #222; border-radius: 30px;
  padding: 7px 16px 7px 8px; font-family: var(--cp-heading); text-transform: uppercase; font-size: 1rem; box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}
.cp-pkg-state .cp-pkg-box { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #777; background: #fff; display: grid; place-items: center; }
.cp-pkg.is-selected .cp-pkg-state { background: #222; color: #fff; }
.cp-pkg.is-selected .cp-pkg-state .cp-pkg-box { border-color: #f8a646; background: #f8a646; }
.cp-pkg.is-selected .cp-pkg-box::after { border-color: #000; width: 12px; height: 7px; }
.cp-pkg-body { padding: 24px 28px; }
.cp-pkg-list ul { columns: 2 260px; column-gap: 36px; }
.cp-pkg-list li { padding-left: 26px; margin-bottom: 12px; break-inside: avoid; }
.cp-pkg-list li::before { content: "✓"; color: #2e9e4f; font-weight: 700; top: 0; font-size: 1.05rem; }
@media (max-width: 767.98px) {
  .cp-pkg { flex-direction: column; }
  .cp-pkg-head { width: 100%; flex: 0 0 auto; flex-direction: row; justify-content: space-between; padding: 14px 18px; }
  .cp-pkg-name { font-size: 1.5rem; }
}

/* ---------- Step 3: tiles (stronger selected highlight; pictures above the text) ---------- */
.cp-card-grid { gap: 26px 30px; }
.cp-item { border-radius: 8px; overflow: hidden; border: 2px solid transparent; transition: border-color .15s, box-shadow .15s, transform .15s; }
.cp-item:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.cp-item.is-selected { border-color: #f8a646; box-shadow: 0 0 0 4px rgba(248, 166, 70, .35), 0 8px 18px rgba(0, 0, 0, .14); transform: translateY(-2px); }
.cp-item.is-selected .cp-item-frame::after { content: ""; position: absolute; inset: 0; background: rgba(248, 166, 70, .12); pointer-events: none; }
.cp-item .cp-check { width: 30px; height: 30px; top: 10px; right: 10px; background: #f8a646; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.cp-item .cp-check::after { border-color: #000; width: 12px; height: 7px; }
.cp-item-name { font-size: 1.15rem; }
.cp-group-desc--after, .cp-step-desc--after { margin-top: 26px; }

/* ---------- YES / NO questions (equipment add-ons and accessories) ---------- */
.cp-trow { grid-template-columns: 230px 1fr; max-width: 760px; padding: 24px 0 30px; }
.cp-trow-name { font-size: 1.2rem; }
.cp-trow-q { padding-top: 14px; }
.cp-trow.is-stacked .cp-question { display: block; font-size: 1.15rem !important; font-weight: 500; line-height: 1.45; margin: 0 0 14px; }
.cp-trow.is-stacked .cp-trow-ctl { display: flex; align-items: center; gap: 14px; }
.cp-switch { width: 74px; height: 30px; border-radius: 15px; font-size: .85rem; }
.cp-switch-knob { width: 24px; height: 24px; }
.cp-switch-text { left: 34px; }
.cp-switch.is-on .cp-switch-knob { left: 47px; }
.cp-switch.is-on .cp-switch-text { left: 12px; }
@media (max-width: 575.98px) { .cp-trow.is-stacked .cp-trow-ctl { justify-content: center; } }

/* ---------- Step 7 / 8: questions with the answers below; highlighted error banners ---------- */
.cp-field { grid-template-columns: 170px 1fr; }
.cp-label { font-weight: 600; padding-top: 8px; font-size: 15px !important; }
.cp-questions { padding-left: 24px; }
.cp-q { padding: 6px 0 22px; }
.cp-q-text, .cp-q-control { display: block; width: 100%; min-width: 0; margin: 0; }
.cp-q-text { font-weight: 600; margin-bottom: 10px; }
.cp-q-control .form-select { max-width: 320px; }
.cp-field--comments { grid-template-columns: 170px minmax(0, 520px); margin-left: 0; }
#cp-step-alert, .cp-field-error, .cp-wizard .invalid-feedback {
  background: #c62828; color: #fff !important; font-weight: 700; border: 0; border-radius: 4px;
  padding: 9px 14px; font-size: 15px; box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
#cp-step-alert { font-size: 16px; padding: 12px 16px; margin-bottom: 20px; }
.cp-field-error { margin: 8px 0 14px; display: block; }
.cp-wizard .invalid-feedback { margin-top: 6px; }
.cp-input.is-invalid, .cp-wizard .cp-input.is-invalid { border: 2px solid #c62828; }
.cp-review-total strong { font-size: 1.6rem; }


/* =====================================================================
   Corrections (Nov 3): packages side by side, button alignment, Step 7
   spacing, footer, mobile popup / navigation
   ===================================================================== */

/* Buttons: arrow / tick and text vertically centred */
.cp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; line-height: 1.2; }
.cp-btn > span { display: inline-block; line-height: 1.2; }
.cp-chev { width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: 0 0 0 3px; font-size: 0; flex: 0 0 auto; }
.cp-tick { width: 6px; height: 11px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -3px 2px 0 0; font-size: 0; flex: 0 0 auto; }
.cp-nav .spinner-border { margin: 0; }

/* Step 2: Silver / Gold as adjacent vertical cards */
.cp-pkg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
@media (max-width: 767.98px) { .cp-pkg-grid { grid-template-columns: 1fr; } }
.cp-pkg { flex-direction: column; }
.cp-pkg-head { flex: 0 0 auto; width: 100%; flex-direction: column; justify-content: center; align-items: center; gap: 12px; padding: 22px 18px; }
.cp-pkg-name { font-size: 1.8rem; }
.cp-pkg-body { padding: 22px 24px 24px; }
.cp-pkg-list ul { columns: auto; }
@media (max-width: 767.98px) {
  .cp-pkg { flex-direction: column; }
  .cp-pkg-head { flex-direction: column; justify-content: center; padding: 18px; }
}

/* Step 3: the step text sits above the tiles again */
.cp-step-desc--after { margin-top: 0; }

/* Step 7: fields closer to their labels; red asterisk after the colon ("Name:*") */
.cp-field { grid-template-columns: 138px minmax(0, 1fr); column-gap: 6px; }
.cp-label { padding-top: 9px; line-height: 1.3; }
.cp-req { color: #d0021b; margin-left: 2px; font-weight: 700; }
.cp-field--comments { grid-template-columns: 138px minmax(0, 520px); margin-left: 0; }
@media (max-width: 400px) { .cp-field, .cp-field--comments { grid-template-columns: 1fr; } .cp-label { padding-top: 0; } }

/* Yes / No: the word right next to its box, with space between the two choices */
.cp-yn-group { gap: 34px; }
.cp-yn { flex-direction: column; align-items: flex-start; gap: 10px; }
.cp-yn-row { display: inline-flex; align-items: center; gap: 8px; }
.cp-yn-label { font-size: 15px; }

/* Footer */
.cp-footer { border-top: 1px solid #e6e6e6; padding: 20px 0; text-align: center; font-size: 14px; color: #555; background: #fafafa; }

/* YES / NO question text is left-aligned (also on narrow screens) */
.cp-trow-q, .cp-trow.is-stacked .cp-question { text-align: left; }
.cp-trow.is-stacked .cp-trow-ctl { justify-content: flex-start; }
@media (max-width: 575.98px) {
  .cp-trow-q { text-align: left; }
  .cp-trow.is-stacked .cp-trow-ctl { justify-content: flex-start; }
}

/* Mobile */
@media (max-width: 767.98px) {
  /* Pool window centred with a small margin on both sides */
  .cp-pool-modal .modal-dialog { max-width: calc(100vw - 24px); width: calc(100vw - 24px); margin: 12px auto; height: calc(100% - 24px); }
  .cp-pool-modal .modal-content { border-radius: 8px; }
}
@media (max-width: 459.98px) {
  /* "Return to previous step" first (black), "Next step" below */
  .cp-nav { flex-direction: column; }
  .cp-nav .cp-btn-back { background: #000; color: #fff; box-shadow: 0 2px 0 #444; }
  .cp-nav .cp-btn-back:hover { background: #000; color: #fff; }
}
@media (max-width: 575.98px) {
  .cp-trow { grid-template-columns: 1fr; gap: 12px; padding: 20px 0 26px; }
  .cp-trow-item { border-right: 0; }
  .cp-trow-q { padding-top: 0; }
}

/* Pool window: everything centred (title, specifications, dig picture, sample pools, button) */
.cp-pool-modal .modal-header, .cp-pool-modal .modal-body, .cp-pool-modal .modal-footer { text-align: center; justify-content: center; }
.cp-pool-modal .cp-modal-spec, .cp-pool-modal .cp-modal-dig, .cp-pool-modal .cp-modal-samples { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cp-pool-modal .cp-modal-dig { padding-left: 32px; }
.cp-pool-modal .cp-modal-h { width: 100%; text-align: center; }
.cp-pool-modal .cp-modal-pool img, .cp-pool-modal .cp-dig img { margin: 0 auto; }
.cp-pool-modal .cp-dig { display: flex; justify-content: center; }
.cp-pool-modal .cp-specs { margin: 22px auto 0; }
.cp-pool-modal .cp-specs th { text-align: right; }
.cp-pool-modal .cp-specs td { text-align: left; }
.cp-pool-modal .cp-price { text-align: center; }
.cp-pool-modal .cp-carousel { width: 100%; justify-content: center; }
/* Centre the photos when they fit, without cutting off the first one when they scroll */
.cp-pool-modal .cp-carousel-slide:first-child { margin-left: auto; }
.cp-pool-modal .cp-carousel-slide:last-child { margin-right: auto; }
@media (max-width: 767.98px) { .cp-pool-modal .cp-modal-dig { padding-left: 0; } }
.cp-pool-modal .cp-modal-spec { padding: 0 16px; }
.cp-pool-modal .cp-modal-dig { padding: 0 16px; }

/* Step 2: package header names the package; Select button at the bottom of the card */
.cp-pkg { display: flex; flex-direction: column; }
.cp-pkg-head { cursor: pointer; min-height: 92px; }
.cp-pkg-body { flex: 1 1 auto; }
.cp-pkg-foot { padding: 4px 24px 26px; display: flex; justify-content: center; }
.cp-pkg-foot .cp-pkg-state { border: 0; cursor: pointer; font-size: 1.05rem; padding: 9px 22px 9px 9px; background: #f2f2f2; color: #222; transition: opacity .15s; }
.cp-pkg-foot .cp-pkg-state:hover { opacity: .8; }
.cp-pkg-foot .cp-pkg-state:focus-visible { outline: 3px solid #1d5f99; outline-offset: 3px; }
.cp-pkg.is-selected .cp-pkg-foot .cp-pkg-state { background: #222; color: #fff; }
