/* Makita Repair Run, page-specific layout rules.
   Builds on the consumer child theme (theme.12.css + custom.css).
   Colours, type families, buttons and form controls come from the theme.
   Values reused from the theme and live site:
   #303033 section secondary, #008396 brand teal, #ff0019 brand red,
   #e6e7e8 brand grey, #2d2e33 heading colour, #6c6d74 body colour. */

/* ---------- Shared ---------- */

.bgm-repair-run .bgm-when-finished { display: none; }
.bgm-repair-run.bgm-is-finished .bgm-when-finished { display: block; }
.bgm-repair-run.bgm-is-finished span.bgm-when-finished { display: inline; }
.bgm-repair-run.bgm-is-finished .bgm-when-open { display: none; }

.bgm-repair-run :focus-visible {
  outline: 3px solid #008396;
  outline-offset: 3px;
}
.bgm-repair-run .uk-section-secondary :focus-visible { outline-color: #fff; }
.bgm-repair-run .uk-input:focus-visible,
.bgm-repair-run .uk-select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #008396;
}

.bgm-rr-h2 {
  font-family: Hind;
  font-weight: 900;
  font-size: 28px;
  line-height: 1.2;
  color: #2d2e33;
  margin: 0 0 16px;
}
@media (min-width: 960px) { .bgm-rr-h2 { font-size: 36px; } }

.bgm-rr-section-title { margin-bottom: 12px; }

.bgm-rr-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 28px;
}

.bgm-rr-textlink {
  font-family: Lato;
  font-weight: 700;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.bgm-rr-textlink:hover { color: inherit; text-decoration-thickness: 2px; }

.bgm-repair-run p a:not(.uk-button) { text-decoration: underline; text-underline-offset: 3px; }

.bgm-nowrap { white-space: nowrap; }
.bgm-rr-h2, .bgm-rr-model, .bgm-rr-section-title, .bgm-rr-subtitle { text-wrap: balance; }

/* Keep the teal primary button inside dark bands, as the site does for
   Where to Buy on the black toolbar (custom.css .bgm-button-where-to-buy) */
.bgm-repair-run .uk-section-secondary .uk-button-primary {
  background-color: #008396;
  color: #fff;
  border-color: transparent;
}
.bgm-repair-run .uk-section-secondary .uk-button-primary:hover {
  background-color: #0099b0;
  color: #fff;
  border-color: transparent;
}

/* ---------- 1. Title band ---------- */

.bgm-rr-title { padding-top: 40px; padding-bottom: 32px; }

.bgm-rr-title-grid { display: grid; gap: 14px; }

.bgm-rr-h1 {
  margin: 0;
  font-size: clamp(34px, 10.4vw, 64px);
  letter-spacing: .5px;
}
.bgm-rr-subtitle {
  margin: 0;
  font-family: Hind;
  font-weight: 900;
  font-size: 22px;
  line-height: 1.25;
  color: #fff;
}

@media (min-width: 640px) {
  .bgm-rr-title { padding-bottom: 120px; }
}
@media (min-width: 960px) {
  .bgm-rr-title { padding-top: 70px; padding-bottom: 200px; }
  .bgm-rr-title-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 60px;
    align-items: end;
  }
  .bgm-rr-subtitle { font-size: 32px; }
}

/* ---------- 1b. Hero panel ----------
   White panel lifted over the title band, the same overlap device as the
   site's promotion slider. The grease gun photo is on white, so it sits in the panel. */

.bgm-rr-hero { position: relative; }
.bgm-rr-hero-panel { display: grid; gap: 8px; }
.bgm-rr-hero-tool { margin: 0; }
.bgm-rr-hero-tool img { display: block; width: 100%; max-width: 620px; height: auto; margin: 0 auto; }

.bgm-rr-intro { margin: 0; font-size: 19px; line-height: 1.55; color: #2d2e33; }
.bgm-rr-hero .bgm-rr-actions { margin-top: 24px; }
.bgm-rr-hero .bgm-rr-textlink { color: #008396; }

/* The drop-in message carries weight, so it gets its own tinted strip.
   The tint is the theme's own active-row teal (rgba(0,131,150,.2)) at half strength. */
.bgm-rr-note {
  margin: 28px 0 0;
  padding: 16px 20px;
  background: rgba(0, 131, 150, .1);
  border-left: 6px solid #008396;
  font-family: Hind;
  font-weight: 900;
  font-size: 21px;
  line-height: 1.3;
  color: #2d2e33;
}

@media (max-width: 639px) {
  .bgm-rr-hero > .uk-container { padding-left: 0; padding-right: 0; }
  .bgm-rr-hero-panel { padding: 16px 0 36px; }
  .bgm-rr-hero-copy { padding: 0 15px; }
}
@media (min-width: 640px) {
  .bgm-rr-hero { margin-top: -88px; }
}
@media (min-width: 960px) {
  .bgm-rr-hero { margin-top: -160px; }
  .bgm-rr-hero-panel {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
    align-items: center;
  }
  .bgm-rr-intro { font-size: 22px; }
  .bgm-rr-note { font-size: 24px; padding: 18px 24px; }
}

/* ---------- 2. Offer panel ---------- */

.bgm-rr-offer { padding-top: 48px; padding-bottom: 48px; background: #f7f7f7; }

.bgm-rr-panel {
  background: #fff;
  padding: 16px 16px 8px;
}

.bgm-rr-offer-grid { display: grid; gap: 8px; }

.bgm-rr-gift { margin: 0; }
.bgm-rr-gift img { display: block; width: 100%; height: auto; }

.bgm-rr-offer-copy p { color: #2d2e33; font-size: 17px; }
.bgm-rr-offer-copy .bgm-rr-qualifier { font-size: 13px; color: #2d2e33; margin-top: 12px; }

/* Gift lead, same wording and teal treatment as the live recall page */
.bgm-rr-offer-copy .bgm-rr-gift-lead {
  margin: 20px 0 14px;
  font-family: Hind;
  font-weight: 900;
  font-size: 20px;
  line-height: 1.25;
  color: #008396;
}
.bgm-rr-gift-lead span { display: inline-block; margin-top: 2px; font-size: 28px; line-height: 1.15; }

/* Three numbered step cards, the campaign line as an easy 1, 2, 3 */
.bgm-rr-steps-section { padding-top: 40px; padding-bottom: 48px; }
@media (min-width: 960px) { .bgm-rr-steps-section { padding-top: 64px; padding-bottom: 70px; } }
.bgm-rr-steps-cards {
  margin: 0;
}
.bgm-rr-steps-cards > .uk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0;
}
.bgm-rr-steps-cards > .uk-grid > * {
  display: flex;
  width: auto !important;
  min-width: 0;
  padding: 0;
}
.bgm-rr-step {
  width: 100%;
  margin: 0;
  padding: 24px 24px 28px;
  background: #f7f7f7;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-top: 5px solid #008396;
  box-shadow: none;
  color: #2d2e33;
}
.bgm-rr-step .el-meta {
  display: block;
  margin-bottom: 10px;
  font-family: Hind;
  font-weight: 900;
  font-size: 52px;
  line-height: .9;
  color: #008396;
}
.bgm-rr-step .el-title {
  margin: 0 0 10px;
  font-family: Hind;
  font-weight: 900;
  font-size: 32px;
  line-height: 1.1;
  text-transform: none;
  letter-spacing: 0;
  color: #2d2e33;
}
.bgm-rr-step .el-content,
.bgm-rr-step p { margin: 0; font-size: 17px; line-height: 1.55; color: #2d2e33; }
/* All three cards match. Hover takes on the teal treatment.
   Limited to devices that truly hover, so a tap on a phone doesn't leave a card stuck teal. */
.bgm-rr-step,
.bgm-rr-step .el-meta,
.bgm-rr-step .el-title,
.bgm-rr-step .el-content,
.bgm-rr-step p { transition: background-color .2s ease-out, border-color .2s ease-out, color .2s ease-out; }
@media (hover: hover) {
  .bgm-rr-step:hover { background: #008396; border-top-color: #303033; }
  .bgm-rr-step:hover .el-meta,
  .bgm-rr-step:hover .el-title,
  .bgm-rr-step:hover .el-content,
  .bgm-rr-step:hover p { color: #fff; }
}

/* Smooth in-page jumps, such as See all 11 stops, unless the visitor prefers reduced motion */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  .bgm-rr-step, .bgm-rr-step .el-meta, .bgm-rr-step .el-title, .bgm-rr-step .el-content, .bgm-rr-step p { transition: none; }
}



/* Phones: the white panels run edge to edge so images stay as large as the screen allows */
@media (max-width: 639px) {
  .bgm-rr-offer > .uk-container { padding-left: 0; padding-right: 0; }
  .bgm-rr-offer .bgm-rr-panel { padding: 20px 0 28px; }
  .bgm-rr-offer-copy { padding: 0 15px; }
  .bgm-rr-offer-copy .bgm-rr-h2 { margin-top: 12px; }
}
@media (min-width: 640px) {
  .bgm-rr-panel { padding: 24px 32px 24px; }
}
@media (min-width: 960px) {
  .bgm-rr-offer { padding-top: 70px; padding-bottom: 70px; }
  .bgm-rr-panel { padding: 40px 48px; }
  .bgm-rr-offer-grid {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: 48px;
    align-items: center;
  }
  .bgm-rr-offer-copy p { font-size: 18px; }
  .bgm-rr-gift-lead span { font-size: 32px; }
  .bgm-rr-steps-cards > .uk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .bgm-rr-step { padding: 32px 32px 36px; }
  .bgm-rr-step .el-meta { font-size: 72px; margin-bottom: 14px; }
  .bgm-rr-step .el-title { font-size: 40px; }
}
@media (min-width: 1200px) {
  .bgm-rr-panel { padding: 48px 64px; }
  .bgm-rr-offer-grid { gap: 64px; }
}

/* ---------- 3. Safety ---------- */

.bgm-rr-safety-section { padding-top: 48px; padding-bottom: 48px; }

/* Same device as the site's .bgm-recall-border and the sitewide recall strip */
.bgm-rr-safety {
  border: 8px dashed #ff0019;
  padding: 20px 16px 24px;
  display: grid;
  gap: 8px;
}
.bgm-rr-tool { margin: 0; }
.bgm-rr-tool img { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; }

.bgm-rr-model {
  margin: 0;
  font-family: Hind;
  font-weight: 900;
  font-size: 26px;
  line-height: 1.2;
  color: #000;
}
.bgm-rr-model-sub {
  margin: 4px 0 0;
  font-family: Hind;
  font-weight: 900;
  font-size: 19px;
  line-height: 1.3;
  color: #000;
}
.bgm-rr-purchase {
  margin: 20px 0 0;
  font-family: Lato;
  font-weight: 900;
  font-size: 19px;
  line-height: 1.4;
  color: #000;
}
.bgm-rr-stopuse { background: transparent; color: #ff0019; }
.bgm-rr-warning { margin: 16px 0 0; font-weight: 700; color: #000; }
.bgm-rr-bridge {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid #e5e5e7;
  color: #2d2e33;
}
.bgm-rr-bridge a { font-weight: 700; }
.bgm-rr-safety > * { min-width: 0; }

@media (min-width: 960px) {
  .bgm-rr-safety-section { padding-top: 70px; padding-bottom: 70px; }
  .bgm-rr-safety {
    border-width: 10px;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: center;
    padding: 40px 56px;
  }
  .bgm-rr-model { font-size: 36px; }
  .bgm-rr-model-sub { font-size: 24px; }
  .bgm-rr-purchase { font-size: 22px; }
}

/* ---------- 4. Schedule ----------
   One chronological list read as a table: dark header row, aligned
   Thu & Fri and Sat hours, and a state filter. */

.bgm-rr-stops-section { padding-top: 48px; padding-bottom: 48px; background: #f7f7f7; }
.bgm-rr-stops-head { max-width: 760px; }
.bgm-rr-hours { margin: 0; font-size: 17px; color: #2d2e33; }

.bgm-rr-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.bgm-rr-tour-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  margin: 28px 0 16px;
}
.bgm-rr-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.bgm-rr-filters .uk-button { padding: 0 16px; }
.bgm-rr-filters .uk-button-default { background: #fff; border-color: #e5e5e5; color: #2d2e33; }
.bgm-rr-filters .uk-button-default:hover { border-color: #303033; }
.bgm-rr-tour-note { margin: 0; font-size: 14px; color: #6c6d74; }

.bgm-rr-table { background: #fff; }
.bgm-rr-table-head { display: none; }

.bgm-rr-stop-list { list-style: none; margin: 0; padding: 0; }

.bgm-rr-stop {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 20px 16px;
  border-bottom: 1px solid #e5e5e7;
}
.bgm-rr-stop[hidden] { display: none; }
.bgm-rr-stop p { margin: 0; }

.bgm-rr-stop-name {
  margin: 0;
  font-family: Hind;
  font-weight: 900;
  font-size: 20px;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: 0;
  color: #2d2e33;
}
.bgm-rr-stop-venue { color: #008396; font-weight: 700; }
.bgm-rr-stop-suburb { font-family: Lato; font-size: 16px; font-weight: 400; color: #2d2e33; }
.bgm-rr-stop-dates { font-size: 16px; font-weight: 700; color: #2d2e33; }

.bgm-rr-stop-hours {
  display: grid;
  grid-template-columns: 76px auto;
  justify-content: start;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}
.bgm-rr-stop-hours dt { margin: 0; color: #6c6d74; font-weight: 400; }
.bgm-rr-stop-hours dd { margin: 0; color: #2d2e33; }
.bgm-rr-stop-hours strong { font-weight: 900; }

.bgm-rr-stop-cta { justify-self: start; margin-top: 6px; min-width: 170px; padding: 0 16px; white-space: nowrap; }

.bgm-rr-stop-status {
  font-family: Lato;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #6c6d74;
}
.bgm-rr-stop-done { background: #fff; }
.bgm-rr-stop-done .bgm-rr-stop-name,
.bgm-rr-stop-done .bgm-rr-stop-suburb,
.bgm-rr-stop-done .bgm-rr-stop-dates,
.bgm-rr-stop-done .bgm-rr-stop-hours dd { color: #8a8b91; }

/* Tablet: location and dates left, hours and action right */
@media (min-width: 640px) {
  .bgm-rr-stop {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 8px 24px;
    padding: 22px 24px;
  }
  .bgm-rr-stop-location { grid-area: 1 / 1; }
  .bgm-rr-stop-dates { grid-area: 2 / 1; }
  .bgm-rr-stop-hours { grid-area: 1 / 2; }
  .bgm-rr-stop-cta, .bgm-rr-stop-status { grid-area: 2 / 2; justify-self: start; }
  .bgm-rr-stop-suburb { display: block; }
}

/* Desktop: a true four-column table with a dark header row */
@media (min-width: 960px) {
  .bgm-rr-stops-section { padding-top: 70px; padding-bottom: 70px; }
  .bgm-rr-table-head,
  .bgm-rr-stop {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr) minmax(0, 1fr) 180px;
    gap: 24px;
    align-items: center;
  }
  .bgm-rr-table-head {
    display: grid;
    padding: 16px 24px;
    background: #303033;
    color: #fff;
    font-family: Lato;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  .bgm-rr-stop { padding: 20px 24px; }
  .bgm-rr-stop-location, .bgm-rr-stop-dates, .bgm-rr-stop-hours,
  .bgm-rr-stop-cta, .bgm-rr-stop-status { grid-area: auto; }
  .bgm-rr-stop-dates { font-weight: 400; }
  .bgm-rr-stop-cta { justify-self: end; margin-top: 0; min-width: 0; }
  .bgm-rr-stop-status { justify-self: end; }
}

/* ---------- 5. How it works and registration ---------- */

.bgm-rr-register-section { padding-top: 48px; padding-bottom: 56px; }
.bgm-rr-register-section:focus { outline: none; }
.bgm-rr-stops-section:focus { outline: none; }

.bgm-rr-register-grid { display: grid; gap: 36px; }

.bgm-rr-steps { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid #e5e5e7; }
.bgm-rr-steps li {
  padding: 14px 0 14px 20px;
  border-bottom: 1px solid #e5e5e7;
  position: relative;
  color: #2d2e33;
  font-size: 17px;
}
.bgm-rr-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 8px;
  height: 8px;
  background: #008396;
}

.bgm-rr-dropin {
  margin-top: 28px;
  padding: 20px 24px;
  background: #008396;
  color: #fff;
}
.bgm-rr-dropin p { margin: 0; }
.bgm-rr-dropin-title {
  font-family: Hind;
  font-weight: 900;
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 4px !important;
}

.bgm-rr-form-panel { background: #e6e7e8; padding: 24px 16px 32px; }
.bgm-rr-form-title {
  margin: 0;
  font-family: Hind;
  font-weight: 900;
  font-size: 26px;
  line-height: 1.2;
  color: #000;
  text-transform: uppercase;
}
.bgm-rr-form-help { margin: 6px 0 20px; font-size: 14px; color: #2d2e33; }

.bgm-rr-fields { display: grid; gap: 18px; }
.bgm-rr-field { min-width: 0; margin: 0; padding: 0; border: 0; }

/* Selected stop details under the location dropdown */
.bgm-rr-stop-detail {
  margin-top: 12px;
  padding: 18px 20px;
  background: #fff;
  border-left: 5px solid #008396;
  font-size: 16px;
  line-height: 1.6;
  color: #2d2e33;
}
.bgm-rr-stop-detail[hidden] { display: none; }
.bgm-rr-stop-detail p { margin: 0; }
.bgm-rr-stop-detail .bgm-rr-stop-detail-name { font-weight: 900; color: #000; }
.bgm-rr-stop-detail p:last-child { margin-top: 4px; font-size: 14px; color: #6c6d74; }

/* Label treatment follows the live recall form (16px, 500, 2px tracking) */
.bgm-rr-label {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  font-family: Lato;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: #000;
}
.bgm-rr-optional { letter-spacing: 0; color: #6c6d74; }

.bgm-repair-run .uk-form-large { height: 55px; font-size: 16px; color: #2d2e33; }
.bgm-repair-run .uk-select.uk-form-large { padding-right: 32px; text-overflow: ellipsis; background-position: calc(100% - 8px) 50%; }

.bgm-rr-hint { margin: 6px 0 0; font-size: 14px; color: #2d2e33; }
.bgm-rr-hint:empty { display: none; }

.bgm-rr-error {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: #c3000f;
}
.bgm-repair-run .uk-form-danger { border-color: #c3000f !important; border-width: 2px; }


.bgm-rr-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; color: #000; }
.bgm-rr-check .uk-checkbox { flex: 0 0 22px; width: 22px; height: 22px; margin: 1px 0 0; background-color: #fff; }
.bgm-rr-check .uk-checkbox:checked { background-color: #008396; }
.bgm-rr-check .uk-form-danger { border: 2px solid #c3000f; }
.bgm-rr-privacy { margin: 8px 0 0 34px; font-size: 14px; }

.bgm-rr-submit { margin-top: 28px; width: 100%; }
.bgm-repair-run #bgmRepairRunForm .bgm-rr-submit:not(:disabled):is(:focus, :active, .uk-active) {
  background-color: #006c7b;
  color: #fff;
  border-color: #006c7b;
}

.bgm-rr-error-summary {
  margin-bottom: 20px;
  padding: 16px 20px;
  background: #fff;
  border-left: 6px solid #c3000f;
}
.bgm-rr-error-summary:focus { outline: 3px solid #c3000f; outline-offset: 2px; }
.bgm-rr-error-summary-title { margin: 0 0 6px; font-weight: 900; color: #000; }
.bgm-rr-error-summary ul { margin: 0; padding-left: 18px; }
.bgm-rr-error-summary a { color: #c3000f; text-decoration: underline; }

.bgm-rr-closed {
  margin-bottom: 20px;
  padding: 16px 20px;
  background: #fff;
  border-left: 6px solid #303033;
  color: #2d2e33;
}
.bgm-rr-closed p { margin: 0; }

.bgm-rr-confirmation { outline: none; }
.bgm-rr-confirm-text { margin: 12px 0 0; font-size: 20px; line-height: 1.5; color: #000; }
.bgm-rr-demo-note {
  margin: 20px 0 24px;
  padding: 12px 16px;
  background: #fff;
  border-left: 6px solid #303033;
  font-size: 15px;
  color: #2d2e33;
}

@media (min-width: 640px) {
  .bgm-rr-form-panel { padding: 32px 32px 40px; }
  .bgm-rr-fields { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px 20px; }
  .bgm-rr-field-full { grid-column: 1 / -1; }
  /* Paired fields share label, control and message rows, so inputs line up
     even when one label wraps (the units question) */
  .bgm-rr-field:not(.bgm-rr-field-full) {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  .bgm-rr-field:not(.bgm-rr-field-full) .bgm-rr-label { align-self: end; }
  .bgm-rr-submit { width: auto; }
}
@media (min-width: 960px) {
  .bgm-rr-register-section { padding-top: 70px; padding-bottom: 70px; }
  .bgm-rr-register-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    align-items: start;
  }
  .bgm-rr-how { position: sticky; top: 24px; }
  .bgm-rr-form-panel { padding: 40px 48px 48px; }
  .bgm-rr-form-title { font-size: 32px; }
}

/* ---------- 6. Fallback ---------- */

.bgm-rr-fallback { padding-top: 48px; padding-bottom: 56px; color: rgba(255, 255, 255, .85); }
.bgm-rr-fallback .bgm-rr-h2 { color: #fff; }
.bgm-rr-fallback p { margin: 0; font-size: 17px; }
.bgm-rr-fallback .bgm-rr-textlink { color: #fff; }
.bgm-rr-fallback-grid { display: grid; gap: 8px; }
@media (min-width: 960px) {
  .bgm-rr-fallback { padding-top: 70px; padding-bottom: 70px; }
  .bgm-rr-fallback-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .bgm-rr-fallback p { font-size: 18px; }
}

/* Programmatic focus targets (sections, confirmation) need no ring */
.bgm-repair-run .bgm-rr-confirmation:focus,
.bgm-repair-run section[tabindex="-1"]:focus { outline: none; }

/* ---------- YOOtheme Builder and RSForm Pro adapters ---------- */

/* The page remains native Builder content. These classes neutralise only the
   grid wrappers Builder adds around the approved page-specific layouts. */
.bgm-repair-run .bgm-rr-title-grid,
.bgm-repair-run .bgm-rr-hero-panel,
.bgm-repair-run .bgm-rr-steps-grid-row,
.bgm-repair-run .bgm-rr-register-grid,
.bgm-repair-run .bgm-rr-offer-grid,
.bgm-repair-run .bgm-rr-safety,
.bgm-repair-run .bgm-rr-fallback-grid {
  margin-left: 0;
}
.bgm-repair-run .bgm-rr-title-grid > *,
.bgm-repair-run .bgm-rr-hero-panel > *,
.bgm-repair-run .bgm-rr-steps-grid-row > *,
.bgm-repair-run .bgm-rr-register-grid > *,
.bgm-repair-run .bgm-rr-offer-grid > *,
.bgm-repair-run .bgm-rr-safety > *,
.bgm-repair-run .bgm-rr-fallback-grid > * {
  width: auto !important;
  min-width: 0;
  padding-left: 0;
}
.bgm-repair-run .bgm-rr-title,
.bgm-repair-run .bgm-rr-hero { padding-left: 0; padding-right: 0; }
.bgm-repair-run .bgm-rr-hero { padding-top: 0; padding-bottom: 0; }
.bgm-repair-run .bgm-rr-hero-copy > .uk-panel,
.bgm-repair-run .bgm-rr-offer-copy > .uk-panel,
.bgm-repair-run .bgm-rr-safety-copy > .uk-panel { margin: 0; }
.bgm-repair-run .bgm-rr-subtitle p,
.bgm-repair-run .bgm-rr-intro p,
.bgm-repair-run .bgm-rr-note p { margin: 0; color: inherit; font: inherit; }
.bgm-repair-run .bgm-rr-actions > .uk-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin: 0;
}
.bgm-repair-run .bgm-rr-actions > .uk-grid > * { width: auto; padding: 0; }
.bgm-repair-run .bgm-rr-form-panel > .uk-panel { margin: 0; }

.bgm-repair-run #bgmRepairRunForm .formContainer { margin: 0; }
.bgm-repair-run #bgmRepairRunForm .rsform-block { margin: 0; }
.bgm-repair-run #bgmRepairRunForm .formControls,
.bgm-repair-run #bgmRepairRunForm .formBody { width: 100%; }
.bgm-repair-run #bgmRepairRunForm .formValidation { display: block; }
.bgm-repair-run #bgmRepairRunForm .formNoError { display: none; }
.bgm-repair-run #bgmRepairRunForm .formError {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #c3000f;
}
.bgm-repair-run #bgmRepairRunForm .uk-input,
.bgm-repair-run #bgmRepairRunForm .uk-select { width: 100%; }
.bgm-repair-run #bgmRepairRunForm .rsform-block-consent .formBody > label,
.bgm-repair-run #bgmRepairRunForm .rsform-block-consent .formBody > div > label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  color: #000;
}
.bgm-repair-run #bgmRepairRunForm .rsform-block-consent input[type="checkbox"] {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
}
.bgm-repair-run #bgmRepairRunForm .rsform-block-register-here .formControlLabel { display: none; }
.bgm-repair-run .rsform-error-message {
  margin-bottom: 20px;
  padding: 16px 20px;
  background: #fff;
  border-left: 6px solid #c3000f;
  color: #000;
  font-weight: 700;
}
.bgm-repair-run .bgm-rr-confirmation .bgm-rr-form-title { margin-bottom: 12px; }

/* Form 30 consent stays white in every state, with a dark checked tick. */
.bgm-repair-run #bgmRepairRunForm #Consent0 {
  background-color: #fff !important;
  border: 2px solid #008396;
}
.bgm-repair-run #bgmRepairRunForm #Consent0:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23008396' stroke-width='3' d='M4 10l4 4 8-9'/%3E%3C/svg%3E");
}
.bgm-repair-run #bgmRepairRunForm #Consent0[aria-invalid="true"],
.bgm-repair-run #bgmRepairRunForm #Consent0.uk-form-danger { border-color: #c3000f; }
.bgm-repair-run #bgmRepairRunForm #Consent0:disabled { opacity: .65; }

/* RSForm moves the native popup into body, outside the registration panel. */
.rsfp_thankyou_popup_outer:has(.bgm-rr-confirmation) {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(0, 1, 4, .75);
}
.rsfp_thankyou_popup_inner:has(.bgm-rr-confirmation) {
  box-sizing: border-box;
  width: 100%;
  max-width: 620px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  margin: 0 !important;
  padding: 40px;
  border-top: 8px solid #008396;
  background: #fff;
  color: #2d2e33;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .3);
}
.bgm-rr-confirmation .bgm-rr-form-title { margin: 0 20px 16px 0; color: #008396; }
.bgm-rr-confirmation .bgm-rr-confirm-text { margin: 0 0 24px; font-size: 18px; line-height: 1.6; color: #2d2e33; }
.rsfp_thankyou_popup_inner:has(.bgm-rr-confirmation) .rsform-submit-button {
  background: #008396;
  border-color: #008396;
  color: #fff;
}
.rsfp_thankyou_popup_inner:has(.bgm-rr-confirmation) .rsform-submit-button:hover { background: #006c7b; }
.rsfp_thankyou_popup_inner:has(.bgm-rr-confirmation) .rsfp_thankou_popup_close_btn {
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #2d2e33;
}
@media (max-width: 639px) {
  .rsfp_thankyou_popup_outer:has(.bgm-rr-confirmation) { padding: 16px; }
  .rsfp_thankyou_popup_inner:has(.bgm-rr-confirmation) { padding: 32px 24px 24px; max-height: calc(100dvh - 32px); }
  .bgm-rr-confirmation .bgm-rr-form-title { font-size: 26px; }
  .bgm-rr-confirmation .bgm-rr-confirm-text { font-size: 16px; }
}
