/* Buy Low Gas brand layer for the self-serve signup. Load after selfserve.css.
   Darker Grotesque is served locally by selfserve.css; no external font request. */

/* ---------- Base ---------- */
.blg-shell {
  --blg-yellow: #FFC60B;
  --blg-gold: #DEAB26;
  --blg-ink: #231F20;
  --blg-charcoal: #4D4D4F;
  --blg-grey: #58595B;
  --blg-line: #E5E5E5;
  background: #F5F5F5;
  color: var(--blg-grey);
  font: 400 20px/1.5 "Darker Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.blg-shell button,
.blg-shell input,
.blg-shell select,
.blg-shell textarea,
.blg-shell .btn,
.blg-shell .form-control,
.blg-shell .custom-select,
.blg-shell .select2-container,
.blg-shell .select2-selection__rendered,
.blg-shell .toast,
.blg-page .modal-content,
.blg-page .tooltip {
  font-family: "Darker Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.blg-shell h1, .blg-shell h2, .blg-shell h3, .blg-shell h4 { color: var(--blg-charcoal); }
.blg-shell a { color: var(--blg-grey); }

/* ---------- Header ---------- */
.blg-shell .blg-header { background: #F5F5F5; padding-top: 22px; padding-bottom: 22px; }
.blg-shell .blg-header img { width: 272px; }
.blg-shell .blg-help { font-size: 17px; color: var(--blg-grey); }
.blg-shell .blg-help a { color: var(--blg-ink); font-weight: 700; }
.blg-shell .blg-help a:hover { color: #0057B8; }

/* ---------- Progress bar ---------- */
.blg-shell nav { border-top: 1px solid rgba(0, 0, 0, 0.05); border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
.blg-shell .blg-progress { max-width: 1100px; padding: 28px 48px 24px; position: relative; }
.blg-shell .blg-progress::before {
  content: ""; position: absolute; top: 46px; left: calc(48px + 5%); right: calc(48px + 5%);
  height: 2px; background: var(--blg-line); z-index: 0;
}
.blg-shell .blg-progress li {
  position: relative; z-index: 1;
  font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #BBBBBB;
}
.blg-shell .blg-progress li span {
  width: 36px; height: 36px; border-radius: 50%;
  background: #FFFFFF; border: 2px solid var(--blg-line); color: #BBBBBB;
  font-size: 17px; font-weight: 700; margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
}
.blg-shell .blg-progress [aria-current] { color: var(--blg-ink); font-weight: 700; }
.blg-shell .blg-progress [aria-current] span {
  background: var(--blg-yellow); border-color: var(--blg-yellow); color: var(--blg-ink);
}
/* Separate :has() enhancements: browsers without support retain numbered steps. */
.blg-shell .blg-progress li:has(~ li[aria-current]) span {
  background: var(--blg-yellow); border-color: var(--blg-yellow); color: var(--blg-ink); font-size: 0;
}
.blg-shell .blg-progress li:has(~ li[aria-current]) { color: var(--blg-grey); }
.blg-shell .blg-progress li:has(~ li[aria-current]) span::after { content: "\2713"; font-size: 18px; }

/* ---------- Masthead ---------- */
.blg-shell .blg-masthead {
  padding: 64px 48px; min-height: 190px;
  background-size: cover; background-position: center;
  border-bottom: 6px solid var(--blg-yellow);
  display: flex; align-items: center; text-align: left;
}
.blg-shell .blg-masthead h1 {
  width: 100%; max-width: 1100px; margin: 0 auto; padding: 0;
  background: none; box-shadow: none; border-radius: 0;
  color: #FFFFFF; font-size: 50px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15;
  display: block;
}

/* ---------- Page and card ---------- */
.blg-shell .blg-main { max-width: 1100px; padding: 56px 48px 80px; }
.blg-shell .blg-main > .page-section > .card,
.blg-shell .blg-collection-card {
  border: none; border-radius: 18px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.blg-shell .blg-collection-card { background: #FFFFFF; }
.blg-shell .blg-main > .page-section > .card > .card-body,
.blg-shell .blg-collection-card > .card-body { padding: 48px; }
/* Step 1 uses the page background without a card; old browsers keep a usable card. */
.blg-shell .blg-collection-card:has(.blg-product-step:not(.hidden):not([hidden])) {
  background: transparent; box-shadow: none;
}
.blg-shell .blg-collection-card:has(.blg-product-step:not(.hidden):not([hidden])) > .card-body { padding: 0; }
.blg-shell .blg-collection-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.blg-shell .blg-collection-actions #backForm { margin-left: 0; }
.blg-shell .blg-collection-actions #submitForm { margin-left: auto; }

.blg-shell .blg-collect h2,
.blg-shell .blg-collect legend,
.blg-shell .blg-collect .site-info-heading {
  font-family: "Darker Grotesque", sans-serif;
  font-size: 36px; font-weight: 400; color: var(--blg-charcoal);
  letter-spacing: 0; text-transform: none; line-height: 1.2;
}
.blg-shell .blg-collect hr { height: 0; border: 0; border-top: 1px solid var(--blg-line); margin: 32px 0; background: none; }
.blg-shell .blg-dots,
.blg-shell .locations-and-products-container > legend::after {
  height: 10px; width: 222px; max-width: 100%; border: 0; margin: 8px 0 32px;
  content: ""; display: block;
  background-image: radial-gradient(circle closest-side, #FFC60B calc(100% - 0.5px), transparent 100%);
  background-size: 21px 8px; background-repeat: repeat-x; background-position: left center;
  opacity: 1;
}

/* ---------- Step 1: product tiles ---------- */
.blg-shell .plan-grid { gap: 24px; margin-bottom: 48px; padding: 10px; border-radius: 22px; animation: blgPulse 1.6s ease-in-out infinite; }
.blg-shell .plan-grid:has([aria-checked="true"]):not(.guide-active) { animation: none; }
.blg-shell .plan-card {
  background: #FFFFFF; border: 3px solid #FFFFFF; border-radius: 18px;
  padding: 36px 28px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.blg-shell .plan-card:hover {
  background: #FFFFFF; border-color: var(--blg-yellow);
  transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}
.blg-shell .plan-card[aria-checked="true"] {
  background: #FFFFFF; border-color: var(--blg-yellow);
  box-shadow: 0 10px 28px rgba(255, 198, 11, 0.25);
}
.blg-shell .plan-card[aria-checked="true"]::after {
  content: "\2713"; position: absolute; top: 18px; right: 18px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--blg-yellow); color: var(--blg-ink); border: 0;
  font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.blg-shell .plan-card img, .blg-shell .plan-card__icon--placeholder { width: 110px; height: 110px; object-fit: contain; margin: 0 0 16px; }
.blg-shell .plan-card__label { font-size: 26px; font-weight: 700; color: var(--blg-ink); margin: 0 0 4px; }
.blg-shell .plan-card__price {
  font-size: 44px; font-weight: 700; color: var(--blg-yellow); line-height: 1; margin: 8px 0;
  display: block;
}
.blg-shell .plan-card__price small {
  display: block; font-size: 16px; font-weight: 400; color: var(--blg-grey); margin-top: 4px;
}

/* ---------- Guide ring (all steps) ---------- */
.blg-shell .guide-active { animation: blgPulse 1.6s ease-in-out infinite; }
.blg-shell .guide-active:not(.btn) { border-radius: 12px; }
@keyframes blgPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 198, 11, 0.40); }
  50% { box-shadow: 0 0 0 12px rgba(255, 198, 11, 0.15); }
}
.blg-shell .blg-ready { animation: blgPulse 1.6s ease-in-out infinite, blg-ready 1.1s ease-in-out 3; }
.blg-page > .guide-arrow { background: #FFC60B; box-shadow: 0 3px 12px rgba(35, 31, 32, 0.30); }
/* Review uses a left-side rail and a 44px navigation hit area around the
   spec's 36px disc (28px on phones). Dialog guidance remains passive. */
.blg-page .guide-arrow.review-guide-arrow {
  position: fixed; top: 0; left: 0; right: auto; bottom: auto;
  width: 44px; height: 44px; appearance: none; padding: 0; border: 0;
  background: transparent; color: #231F20; box-shadow: none; animation: none;
  transition: top .3s ease-out;
}
.blg-page .guide-arrow.review-guide-arrow::before {
  content: ""; position: absolute; inset: 4px; border-radius: 50%;
  background: #FFC60B; box-shadow: 0 3px 12px rgba(35, 31, 32, 0.30);
}
.blg-page .guide-arrow.review-guide-arrow:not(.in-dialog) {
  z-index: 1040; cursor: pointer; pointer-events: auto;
}
.blg-page .guide-arrow.review-guide-arrow:not(.in-dialog):hover::before { background: #F1BB00; }
.blg-page .guide-arrow.review-guide-arrow:not(.in-dialog):focus-visible {
  outline: 3px solid #231F20; outline-offset: 3px;
}
.blg-page .guide-arrow.review-guide-arrow svg {
  position: relative; width: 20px; height: 20px; fill: currentColor; animation: none;
  transform: rotate(var(--guide-angle, 0deg)); transition: transform .3s ease;
}
.blg-page .guide-arrow.review-guide-arrow[hidden],
.blg-page.modal-open .guide-arrow.review-guide-arrow:not(.in-dialog) { display: none; }
.blg-page .guide-arrow.review-guide-arrow.in-dialog { pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .blg-page .guide-arrow.review-guide-arrow,
  .blg-page .guide-arrow.review-guide-arrow svg { transition: none; }
}

/* ---------- Form fields ---------- */
.blg-shell .blg-collect .form-label-group > label,
.blg-shell .blg-collect .form-label-group > label > span,
.blg-shell .blg-collect .blg-field-label > label,
.blg-shell .blg-collect .blg-field-label > label > span,
.blg-shell .blg-product-values > label {
  font-family: "Darker Grotesque", sans-serif;
  font-size: 16px; font-weight: 700; color: var(--blg-ink); letter-spacing: 0.03em;
}
.blg-shell .blg-optional { font-family: "Darker Grotesque", sans-serif; }
.blg-shell .blg-collect .blg-field-info {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 22px; width: 22px; height: 22px; padding: 0;
  border: 1.5px solid #BBBBBB; border-radius: 50%;
  background: #FFFFFF; color: var(--blg-grey);
  font: 700 12px/1 "Darker Grotesque", sans-serif; cursor: help;
}
.blg-shell .blg-collect .blg-field-info:hover,
.blg-shell .blg-collect .blg-field-info:focus-visible {
  border-color: var(--blg-ink); color: var(--blg-ink);
}
.blg-shell .blg-collect .blg-field-info:focus-visible {
  outline: 2px solid var(--blg-ink); outline-offset: 2px;
}
.blg-shell .blg-collect .custom-control .blg-field-info {
  margin-left: 8px; vertical-align: middle;
}
.blg-shell .blg-collect .select2-selection--single .select2-selection__rendered { font-family: "Darker Grotesque", sans-serif; font-size: 18px; color: var(--blg-ink); }
.blg-shell .blg-collect .form-control,
.blg-shell .blg-collect .custom-select,
.blg-shell .blg-collect .input-group .form-control,
.blg-shell .blg-collect .select2-container .select2-selection--single {
  font-size: 18px; color: var(--blg-ink);
  background-color: #FAFAFA; border: 2px solid var(--blg-line); border-radius: 8px;
  min-height: 52px; box-shadow: none;
}
.blg-shell .blg-collect .form-label-group input.form-control,
.blg-shell .blg-collect .form-label-group select.form-control,
.blg-shell .blg-collect .blg-product-values .form-control { height: 52px; }
.blg-shell .blg-collect .select2-container .select2-selection--single { height: 52px; }
.blg-shell .blg-collect .form-control:focus,
.blg-shell .blg-collect .select2-container--focus .select2-selection {
  border-color: var(--blg-yellow) !important; background-color: #FFFFFF;
  box-shadow: none !important;
}
/* City dropdown list is attached outside .blg-shell. */
.blg-page > .select2-container,
.blg-page .select2-dropdown { font-family: "Darker Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.blg-shell .blg-collect .input-group .form-control:disabled,
.blg-shell .blg-collect .input-group .form-control[readonly] { background-color: #F0EFEC; color: var(--blg-grey); }
.blg-shell .blg-collect .input-group:has(> .input-group-append) .form-control { border-radius: 8px 0 0 8px; }
.blg-shell .blg-collect .input-group-append .input-group-text {
  height: 52px; background: #FAFAFA; border: 2px solid var(--blg-line);
  border-left: 0; border-radius: 0 8px 8px 0;
}
.blg-shell .blg-collect .input-group-append .btn {
  height: 48px; border: 0; border-radius: 0 6px 6px 0; background: transparent;
}
/* Inset envelope remains clickable above Bootstrap's focused input (z-index: 3). */
.blg-shell .blg-collect .input-group:has(> .site-address-1) { position: relative; }
.blg-shell .blg-collect .input-group:has(> .site-address-1) .form-control {
  border-radius: 8px; padding-right: 54px;
}
.blg-shell .blg-collect .input-group:has(> .site-address-1) .input-group-append {
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%); z-index: 4;
}
.blg-shell .blg-collect .input-group:has(> .site-address-1) .input-group-append .input-group-text {
  height: 44px; border: 0; background: transparent;
}
.blg-shell .blg-collect .input-group:has(> .site-address-1) .input-group-append .btn {
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; width: 44px; min-width: 44px; height: 44px; min-height: 44px;
  padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--blg-ink);
}
.blg-shell .blg-collect .input-group:has(> .site-address-1) .input-group-append .btn::before {
  content: ""; position: absolute; inset: 1px;
  border: 1.5px solid var(--blg-yellow); border-radius: 50%;
  background: #FFFBEA; pointer-events: none;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.blg-shell .blg-collect .input-group:has(> .site-address-1) .input-group-append .btn:hover::before {
  background: var(--blg-yellow); transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 198, 11, 0.45);
}
.blg-shell .blg-collect .input-group:has(> .site-address-1) .input-group-append .btn:focus-visible {
  outline: 2px solid var(--blg-ink); outline-offset: -1px;
}
.blg-shell .blg-collect .input-group:has(> .site-address-1) .input-group-append svg {
  position: relative; width: 24px; height: 24px; fill: currentColor; pointer-events: none;
}
.blg-shell .blg-product-values p,
.blg-shell #blg-terms { font-size: 17px; color: var(--blg-grey); }
.blg-shell .blg-collect .form-label-group:has([required]) > label > span::after,
.blg-shell .blg-collect .form-label-group:has([required]) > .blg-field-label > label > span::after { content: " *"; color: var(--blg-yellow); }

.blg-shell .blg-collect .alert {
  background: #FFFBEA; color: var(--blg-ink);
  border: 0; border-left: 4px solid var(--blg-yellow); border-radius: 6px;
  font-size: 17px; line-height: 1.45; padding: 18px 48px 18px 22px;
}
.blg-shell .blg-collect .alert * { color: var(--blg-ink); }

/* Residential / Commercial: the banner fills the line above the pills. */
.blg-shell .blg-account-heading > [class*=col] { flex: 0 0 100%; max-width: 100%; }
.blg-shell .blg-account-heading .form-row { justify-content: flex-start !important; }
.blg-shell #div_id_premise_type {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 0 0 100%; max-width: 100%;
}
.blg-shell #div_id_premise_type .alert { order: -1; flex: 0 0 100%; margin: 0 0 20px; }
.blg-shell #div_id_premise_type .custom-control { margin: 0; padding: 0; min-height: 0; display: inline-flex; }
.blg-shell #div_id_premise_type .custom-control-label {
  display: inline-flex; align-items: center; cursor: pointer; min-height: 44px; border-radius: 999px; padding: 12px 28px;
  border: 2px solid var(--blg-line); background: #FFFFFF;
  font-size: 17px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.2;
  color: var(--blg-grey); transition: background-color 0.2s ease, border-color 0.2s ease;
}
.blg-shell #div_id_premise_type .custom-control-label::before,
.blg-shell #div_id_premise_type .custom-control-label::after { display: none; }
.blg-shell #div_id_premise_type .custom-control-input:checked ~ .custom-control-label {
  background: var(--blg-yellow); border-color: var(--blg-yellow); color: var(--blg-ink);
}
.blg-shell #div_id_premise_type .custom-control-label.guide-active { border-radius: 999px; }
.blg-shell #div_id_premise_type .custom-control-input:focus-visible ~ .custom-control-label {
  outline: 2px solid var(--blg-ink); outline-offset: 2px;
}


/* ---------- Buttons ---------- */
.blg-shell .btn {
  font-size: 17px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  padding: 16px 36px; border-radius: 999px; box-shadow: none; text-decoration: none;
}
.blg-shell .btn-primary { background: var(--blg-yellow); border: 2px solid var(--blg-yellow) !important; color: var(--blg-ink); }
.blg-shell .btn-primary:not(:disabled):not(.disabled):hover {
  background: #231F20 !important; border-color: #231F20 !important; color: #FFFFFF !important; text-decoration: none; box-shadow: none;
}
.blg-shell .blg-review .btn-group > .btn { border-radius: 999px; }
.blg-shell .btn-secondary { background: transparent; border: 2px solid var(--blg-line); color: var(--blg-grey); }
.blg-shell .btn-secondary:not(:disabled):not(.disabled):hover {
  background: transparent; border-color: var(--blg-ink); color: var(--blg-ink); text-decoration: none; box-shadow: none;
}
.blg-shell .input-group-append .btn,
.blg-shell .btn-icon,
.blg-shell .btn-delete-site,
.blg-shell .close { padding: 6px 10px; letter-spacing: 0; text-transform: none; border-radius: 8px; width: auto; }
/* Draw the mark independently of font metrics; retain the 44px touch target. */
.blg-page .close { display: inline-flex; align-items: center; justify-content: center; }
.blg-page .close > span:not(.sr-only) { position: relative; display: block; width: 16px; height: 16px; font-size: 0; }
.blg-page .close > span:not(.sr-only)::before,
.blg-page .close > span:not(.sr-only)::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px;
  border-radius: 1px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg);
}
.blg-page .close > span:not(.sr-only)::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* Keep collection dialog titles clear of their Close target, including after reparenting. */
.blg-page :is(.blg-collection-dialog, .modal-delete-site) .modal-header {
  align-items: flex-start; gap: 16px;
}
.blg-page :is(.blg-collection-dialog, .modal-delete-site) .modal-title { flex: 1 1 auto; min-width: 0; }
.blg-page :is(.blg-collection-dialog, .modal-delete-site) .modal-header .close {
  flex: 0 0 44px; width: 44px; height: 44px; margin: 0; align-self: flex-start;
}

/* Screen agreement only; legal print/PDF presentation is untouched. */
@media screen {
  .blg-shell .blg-review .card { font-family: "Darker Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
}
.blg-shell .btn-signature,
.blg-shell .btn-initials { font-family: "Darker Grotesque", sans-serif; font-weight: 700; letter-spacing: 0.08em; }
@media screen {
  .blg-shell .blg-review .btn-signature,
  .blg-shell .blg-review .btn-initials { scroll-margin-top: 16px; }
}

/* Location controls retain existing validation and conditional visibility. */
.blg-shell .blg-mailing-heading { margin-bottom: 16px; }
.blg-shell .blg-add-site { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--blg-line); }
.blg-shell .blg-site-help {
  display: flex; align-items: flex-start; gap: 24px;
  background: #FFFCEB; border: 1px solid #F5E9B8;
  border-radius: 12px; padding: 20px 24px; margin: 16px 0 24px;
}
.blg-shell .blg-site-help__text { flex: 1 1 0; min-width: 0; }
.blg-shell .blg-site-help__text p:last-child { margin-bottom: 0; }
.blg-shell .blg-bill-help {
  min-height: 44px; padding: 0; border: 0; background: none;
  color: var(--blg-ink); font-size: 22px; font-weight: 700;
  line-height: 1.3; text-align: left; text-decoration: underline;
  text-decoration-color: var(--blg-yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer;
}
.blg-shell .blg-bill-help:hover { text-decoration-color: var(--blg-ink); }
.blg-shell .blg-bill-help:focus-visible,
.blg-shell .blg-site-help__video:focus-visible { outline: 2px solid var(--blg-ink); outline-offset: 3px; }
.blg-shell .blg-site-help .blg-site-help__video {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  flex: 0 0 200px; width: 200px; aspect-ratio: 16 / 9; margin: 0; padding: 8px;
  border: 2px dashed var(--blg-yellow); border-radius: 8px;
  background: #FFFFFF; color: var(--blg-grey); text-align: center;
  font: inherit; letter-spacing: 0; text-transform: none;
}
.blg-shell .blg-site-help .blg-site-help__video:hover {
  background: #FFFBEA;
}
.blg-shell .blg-site-help__play,
.blg-shell .blg-completion-tile-icon { color: var(--blg-yellow); font-size: 32px; line-height: 1; }
.blg-shell .blg-site-help__label,
.blg-shell .blg-completion-tile-label { font-weight: 700; font-size: 13px; line-height: 1.5; color: var(--blg-ink); }
.blg-shell .blg-site-help__status,
.blg-shell .blg-completion-tile-status { font-size: 12px; line-height: 1.5; color: #8A8B8C; }
.blg-shell .blg-site-address { min-width: 0; }
.blg-shell .blg-collect .custom-checkbox .custom-control-label::before {
  border: 2px solid #BBBBBB; border-radius: 4px; background: #FFFFFF;
}
.blg-shell .blg-collect .custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
  border-color: var(--blg-yellow); background: var(--blg-yellow);
}
.blg-shell .blg-collect .custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {
  background-image: none; content: "\2713"; color: var(--blg-ink);
  font: 700 16px/16px "Darker Grotesque", sans-serif; text-align: center;
}
.blg-shell .blg-collect .custom-checkbox .custom-control-input:focus-visible ~ .custom-control-label {
  outline: 2px solid var(--blg-ink); outline-offset: 3px;
}

/* ---------- Footer ---------- */
.blg-shell .blg-footer { background: #4D4D4F; margin-top: 80px; }
.blg-shell .blg-footer-main { padding: 40px 48px; }
.blg-shell .blg-footer-main img { height: 100px; width: auto; }
.blg-shell .blg-copyright {
  background: var(--blg-gold); color: var(--blg-charcoal);
  font-size: 17px; font-weight: 500; padding: 16px 20px; text-align: center;
}
.blg-shell .blg-copyright a { color: var(--blg-charcoal); text-decoration: none; }
.blg-shell .blg-copyright a:hover { text-decoration: underline; }

/* ---------- Completion screen ---------- */
.blg-shell .blg-completion {
  position: relative;
  max-width: 540px !important; width: calc(100% - 48px);
  background: var(--blg-yellow); color: var(--blg-ink);
  border: 0; border-radius: 18px; box-shadow: 0 24px 60px rgba(35, 31, 32, 0.28);
  padding: 36px 40px 32px; font-size: 17px;
}
.blg-shell .blg-completion .toast-header {
  position: static; background: transparent; border: 0; padding: 0; margin: 0 0 14px;
  display: flex; flex-direction: column; align-items: flex-start; color: var(--blg-ink);
}
.blg-shell .blg-completion .toast-header::before {
  content: "\2713"; width: 56px; height: 56px; border-radius: 50%;
  background: var(--blg-ink); color: var(--blg-yellow);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; margin-bottom: 18px;
}
.blg-shell .blg-completion .toast-header strong { font-size: 28px; font-weight: 700; line-height: 1.15; color: var(--blg-ink); }
/* Sticky offsets cancel the scrollport's 36px top padding (28px on phones), leaving an 8px inset. */
.blg-shell .blg-completion .blg-completion-close-rail {
  position: sticky; top: -28px; height: 0; margin-top: -28px; margin-bottom: 28px; z-index: 3;
}
.blg-shell .blg-completion .blg-completion-close-rail .close {
  position: absolute; top: 0; right: -30px; width: 44px; height: 44px; padding: 0;
  border-radius: 50%; background: transparent; color: var(--blg-ink); opacity: 1;
}
.blg-shell .blg-completion .blg-completion-close-rail .close::before {
  content: ""; position: absolute; inset: 6px; border-radius: 50%; background: rgba(35, 31, 32, 0.08);
}
.blg-shell .blg-completion .blg-completion-close-rail .close:hover::before { background: rgba(35, 31, 32, 0.18); }
.blg-shell .blg-completion .toast-body { padding: 0; display: flex; flex-direction: column; }
.blg-shell .blg-completion .toast-body p { margin: 0 0 12px; color: var(--blg-ink); }
.blg-shell .blg-completion .toast-body strong { font-weight: 700; }
.blg-shell .blg-completion video {
  width: 100%; max-width: 100%; margin: 8px 0;
  border: 2px dashed rgba(255, 255, 255, 0.9); border-radius: 10px; background: #FFFFFF;
}

/* Tap-to-play completion tile, expanded media, and return action. */
.blg-shell .blg-completion .blg-completion-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 240px; max-width: 100%; aspect-ratio: 16 / 9; margin: 20px auto 0; padding: 8px;
  border: 2px dashed var(--blg-yellow); border-radius: 8px;
  background: #FFFFFF; color: var(--blg-grey);
  cursor: pointer; font: inherit;
}
.blg-shell .blg-completion .blg-completion-tile:hover { background: #FFFBEA; }
.blg-shell .blg-completion .blg-completion-tile[hidden] { display: none; }
.blg-shell .blg-completion .blg-completion-player[hidden] { display: none; }
.blg-shell .blg-completion .blg-completion-player { width: 100%; margin: 12px 0; }
.blg-shell .blg-completion .blg-completion-player video {
  width: 100%; max-height: min(45vh, 340px); margin: 8px 0;
  border: 2px dashed rgba(255, 255, 255, .9); border-radius: 10px; background: #FFFFFF;
}
.blg-shell .blg-completion .blg-completion-player-close {
  min-height: 44px; margin: 8px 0; padding: 8px 16px;
  border: 2px solid var(--blg-ink); border-radius: 999px;
  background: var(--blg-yellow); color: var(--blg-ink); cursor: pointer;
}
.blg-shell .blg-completion .blg-completion-return {
  display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; margin-top: 22px;
  min-height: 44px; padding: 12px 24px; font-size: 14px; font-weight: 700; line-height: 1.5; letter-spacing: 0.1em;
  background: var(--blg-ink); border: 0; color: var(--blg-yellow);
}
.blg-shell .blg-completion .blg-completion-return:not(:disabled):not(.disabled):hover {
  background: #000000; color: var(--blg-yellow); text-decoration: none; box-shadow: none;
}
.blg-shell .blg-completion .blg-completion-tile:focus-visible,
.blg-shell .blg-completion .blg-completion-return:focus-visible,
.blg-shell .blg-completion .blg-completion-player-close:focus-visible {
  outline: 3px solid #231F20; outline-offset: 3px;
}

@media (min-width: 960px) {
  .blg-shell #mailingAddressContainer > .form-row:has(#id_mailing_postal_code) > .form-group,
  .blg-shell .blg-site-address > .form-row:has(.site-province) > .form-group {
    flex: 0 0 50%; max-width: 50%;
  }
}

@media (max-width: 760px) {
  .blg-shell .blg-site-help { flex-direction: column; align-items: stretch; }
  .blg-shell #addSite { width: 100%; }
  .blg-shell .blg-site-help__text { flex: 0 1 auto; width: 100%; }
  .blg-shell .blg-site-help .blg-site-help__video {
    flex: 0 0 auto; width: 100%; max-width: 280px; align-self: flex-start;
  }
}

@media (max-width: 759px) {
  .blg-shell .blg-completion .blg-completion-tile { width: 100%; max-width: 280px; }
}

@media (min-width: 601px) and (max-width: 759px) {
  .blg-shell .blg-header img { width: 190px; }
  .blg-shell .blg-masthead { min-height: 150px; }
  .blg-shell .blg-main { padding: 36px 24px 56px; }
  .blg-shell .plan-card { flex-basis: 100%; max-width: 100%; width: 100%; }
  .blg-shell .blg-footer-main img { height: 72px; }
}

/* ---------- Phones ---------- */
@media (max-width: 600px) {
  .blg-shell { font-size: 18px; }
  .blg-shell .blg-header { padding: 14px 16px; }
  .blg-shell .blg-header img { width: 150px; }
  .blg-shell .blg-help { font-size: 14px; }
  .blg-page .guide-arrow.review-guide-arrow::before { inset: 8px; }
  .blg-page .guide-arrow.review-guide-arrow svg { width: 16px; height: 16px; }
  .blg-shell .blg-progress { padding: 20px 8px 16px; gap: 4px; }
  .blg-shell .blg-progress::before { top: 36px; left: 12%; right: 12%; }
  .blg-shell .blg-progress li { font-size: 9px; letter-spacing: 0.04em; }
  .blg-shell .blg-progress li span { width: 30px; height: 30px; font-size: 14px; }
  .blg-shell .blg-masthead { min-height: 0; padding: 28px 24px; }
  .blg-shell .blg-masthead h1 { font-size: 32px; }
  .blg-shell .blg-main { padding: 28px 16px 48px; }
  .blg-shell .blg-main > .page-section > .card > .card-body,
  .blg-shell .blg-collection-card > .card-body { padding: 24px 20px; }
  .blg-shell .blg-collect h2, .blg-shell .blg-collect legend, .blg-shell .blg-collect .site-info-heading { font-size: 28px; }
  .blg-shell .plan-card { flex-direction: column; align-items: center; text-align: center; padding: 28px 20px; }
  .blg-shell .plan-card { flex-basis: 100%; max-width: 100%; width: 100%; }
  .blg-shell .plan-card img, .blg-shell .plan-card__icon--placeholder { width: 90px; height: 90px; margin: 0 0 12px; }
  .blg-shell .plan-card__price { font-size: 38px; }
  .blg-shell #div_id_premise_type .custom-control-label { padding: 10px 20px; font-size: 15px; }
  .blg-shell #backForm,
  .blg-shell #submitForm,
  .blg-shell .blg-review .btn-group > .btn { width: 100%; }
  .blg-shell .blg-footer-main { padding: 28px 20px; }
  .blg-shell .blg-copyright { font-size: 13px; padding: 10px 12px; }
  .blg-shell .blg-footer-main img { height: 72px; }
  .blg-shell .blg-completion { padding: 28px 22px 24px; }
  .blg-shell .blg-completion .toast-header strong { font-size: 24px; }
  .blg-shell .blg-completion .blg-completion-close-rail { top: -20px; }
  .blg-shell .blg-completion .blg-completion-close-rail .close { right: -12px; }
  .blg-shell .blg-completion .blg-completion-return { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .blg-shell .guide-active, .blg-shell .plan-grid { animation: none; box-shadow: 0 0 0 4px rgba(255, 198, 11, 0.40); }
  .blg-shell .blg-collect .form-control.guide-active,
  .blg-shell .blg-collect .select2-container .select2-selection.guide-active {
    box-shadow: 0 0 0 4px rgba(255, 198, 11, 0.40) !important;
  }
  .blg-shell .plan-grid:has([aria-checked="true"]):not(.guide-active) { box-shadow: none; }
}
