/* UCA Rebate Checker. The dialog mirrors the theme's Request Service popup (#custom-booking-popup). */

/* ---------- launcher card on the page ---------- */
.uca-rc-launch {
  box-sizing: border-box;
  max-width: 760px;
  margin: 40px auto;
  padding: 36px 32px;
  background: var(--white, #fff);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, .07);
  color: var(--black, #09090a);
  text-align: left;
}
.uca-rc-launch__title { margin: 0 0 10px; padding: 0; font-size: 28px; line-height: 1.2; color: var(--black, #09090a); }
.uca-rc-launch__intro { margin: 0 0 22px; padding: 0; font-size: 16px; line-height: 1.5; color: #4b4b52; }
.uca-rc-launch__list { margin: 0 0 24px; padding: 0; list-style: none; border-top: 1px solid #e0e0e0; }
.uca-rc-launch__list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding: 14px 0; border-bottom: 1px solid #e0e0e0; list-style: none; }
.uca-rc-launch__name { font-size: 16px; color: var(--black, #09090a); }
.uca-rc-launch__name small { display: block; margin-top: 2px; font-size: 13px; color: #6f6f76; }
.uca-rc-launch__list strong { flex: 0 0 auto; padding: 7px 12px; border-radius: 4px; background: var(--accent, #d2ac67); color: #0a0a0a; font-size: 14px; font-weight: 400; line-height: 100%; }
.uca-rc-launch__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.uca-rc-launch__cta .sos-button { margin: 0; cursor: pointer; }
/* Labels on gold use ink: the theme forces white (2.13:1). */
html body .uca-rc-launch .sos-button.open-rebate-checker, html body .sos-button.open-rebate-checker:not(.uca-rc-hero-btn) { background: var(--accent, #d2ac67) !important; color: #0a0a0a !important; }
.uca-rc-launch__cta span { font-size: 14px; color: #6f6f76; }
.uca-rc-launch__notice { margin: 24px 0 0; padding: 14px 16px; border-radius: 7px; background: #fffce1; font-size: 14px; line-height: 1.45; color: #4b4b52; }
@media (max-width: 560px) {
  .uca-rc-launch { margin: 24px 0; padding: 24px 18px; }
  .uca-rc-launch__title { font-size: 23px; }
  .uca-rc-launch__cta .sos-button { width: 100%; text-align: center; }
}

/* ---------- home page hero button ---------- */
html body .sos-button.uca-rc-hero-btn { margin-left: 10px; cursor: pointer; background: transparent !important; background-color: transparent !important; border: 1px solid var(--accent, #d2ac67) !important; color: var(--white, #fff) !important; }
html body .sos-button.uca-rc-hero-btn:hover { background-color: var(--accent, #d2ac67) !important; color: #0a0a0a !important; }
@media (max-width: 480px) { html body .sos-button.uca-rc-hero-btn { margin: 10px 0 0; } }

/* ---------- dialog ---------- */
html.uca-rc-locked, html.uca-rc-locked body { overflow: hidden; }

.uca-rc {
  position: fixed;
  inset: 0;
  z-index: 9999998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .68);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  color: var(--black, #09090a);
  text-align: left;
}
.uca-rc[hidden] { display: none !important; }
.uca-rc.is-open { opacity: 1; visibility: visible; }
.uca-rc *, .uca-rc *::before, .uca-rc *::after { box-sizing: border-box; }
.uca-rc [hidden] { display: none !important; }

.uca-rc__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  max-height: 100%;
  overflow: hidden;
  background: var(--white, #fff);
  border-radius: 10px;
  transition: max-width .25s ease;
}
/* Results get a wider dialog so the cards sit side by side instead of scrolling. */
.uca-rc.is-results .uca-rc__dialog { max-width: 1040px; }
.uca-rc.is-results .uca-rc__banner { display: none; }
.uca-rc.is-results .uca-rc__body { min-height: 0; }

.uca-rc__head { position: relative; flex: 0 0 auto; padding: 20px 64px 20px 32px; background: var(--accent, #d2ac67); }
/* Text on the gold uses near-black: white on #d2ac67 is only 2.1:1, #0a0a0a is 9.3:1. */
.uca-rc__head-info span { display: block; color: #0a0a0a; font-size: 14px; font-weight: 400; line-height: 120%; text-transform: uppercase; }
.uca-rc__head-info h3 { margin: 0; padding: 0; font-size: 25px; color: #0a0a0a; }
.uca-rc__close { position: absolute; top: 50%; right: 26px; width: 32px; height: 32px; margin: 0; padding: 0; transform: translateY(-50%); border: 0; background: none; cursor: pointer; }
.uca-rc__close i { position: absolute; top: 50%; left: 6px; width: 20px; height: 3px; border-radius: 10px; background: #0a0a0a; }
.uca-rc__close i:first-child { transform: rotate(45deg); }
.uca-rc__close i:last-child { transform: rotate(-45deg); }
.uca-rc__close:focus-visible { outline: 3px solid #0a0a0a !important; outline-offset: 3px; box-shadow: 0 0 0 3px #fff !important; border-radius: 4px; }

.uca-rc__body { flex: 1 1 auto; min-height: 200px; margin: 0; padding: 0; overflow-y: auto; }
.uca-rc__body::-webkit-scrollbar { width: 3px; }
.uca-rc__body::-webkit-scrollbar-thumb { background-color: var(--accent, #d2ac67); border-radius: 20px; }
.uca-rc__body::-webkit-scrollbar-track { background: #fff; }

.uca-rc__banner { padding: 26px 32px 18px; background-color: #f5f5f5; background-image: var(--uca-rc-banner); background-size: cover; background-position: center; }
.uca-rc__banner-title { margin: 0; padding: 0; font-size: 28px; color: var(--black, #09090a); }
.uca-rc__progress { height: 4px; margin: 14px 0 8px; border-radius: 4px; background: rgba(0, 0, 0, .1); overflow: hidden; }
.uca-rc__progress i { display: block; height: 100%; width: 0; background: var(--accent, #d2ac67); transition: width .3s ease; }
.uca-rc__stepcount { margin: 0; padding: 0; font-size: 13px; text-transform: uppercase; color: #6f6f76; }
@media (max-height: 597px) { .uca-rc__banner { padding-top: 14px; padding-bottom: 12px; } .uca-rc__banner-title { font-size: 22px; } }

.uca-rc__step { padding: 26px 32px 36px; }
.uca-rc__step h4 { margin: 0 0 12px; padding: 0; font-size: 23px; line-height: 1.2; color: var(--black, #09090a); }
.uca-rc__step h4 ~ h4, .uca-rc__sub h4 { margin-top: 22px; }
.uca-rc__help { margin: -4px 0 14px; padding: 0; font-size: 15px; line-height: 1.35; color: #6f6f76; }

/* Option buttons follow the popup's .flow-options buttons. */
.uca-rc__opts { display: flex; flex-wrap: wrap; gap: 10px; }
.uca-rc__opts--rows { flex-direction: column; }
.uca-rc__opt { position: relative; display: block; margin: 0; cursor: pointer; }
.uca-rc__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.uca-rc__opt span { display: block; padding: 10px 14px; border: 1px solid #dbdbdb; border-radius: 7px; background: var(--white, #fff); color: var(--black, #09090a); font-size: 15px; line-height: 1.3; box-shadow: 0 0 10px rgba(0, 0, 0, 0); transition: background-color .2s, box-shadow .2s, border-color .2s; }
.uca-rc__opt span::after { content: ''; position: absolute; top: -7px; left: -7px; width: 20px; height: 20px; background: var(--uca-rc-check) center / cover no-repeat, #21b24b; border-radius: 50%; opacity: 0; visibility: hidden; transition: opacity .2s; }
.uca-rc__opt:hover span { background: #f3f3f3; box-shadow: 0 0 10px rgba(0, 0, 0, .07); }
.uca-rc__opt input:checked + span { border-color: #21b24b; background: var(--white, #fff); box-shadow: 0 0 10px rgba(0, 0, 0, .15); }
.uca-rc__opt input:checked + span::after { opacity: 1; visibility: visible; }
.uca-rc__opt input:focus-visible + span { outline: 3px solid #0a0a0a !important; outline-offset: 3px; box-shadow: 0 0 0 3px #fff !important; }

.uca-rc__fields { display: grid; gap: 16px; }
.uca-rc .single-field label { display: block; margin: 0 0 8px; font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--black, #09090a); }
.uca-rc .single-field input, .uca-rc .single-field select { width: 100%; min-height: 44px; margin: 0; padding: 8px 12px; border: 1px solid #8a8f98; border-radius: 8px; background-color: #fff; color: var(--black, #09090a); font: inherit; font-size: 16px; }

/* Results */
.uca-rc__results:focus { outline: none; }
.uca-rc__step.uca-rc__results { padding-top: 22px; padding-bottom: 22px; }
.uca-rc__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin: 0 0 12px; }
.uca-rc__cards .uca-rc__card { margin: 0; }
.uca-rc__results-head p { margin: 0 0 18px; padding: 0; font-size: 16px; line-height: 1.4; color: #4b4b52; }
.uca-rc__card { position: relative; margin: 0 0 12px; padding: 16px 18px; border: 1px solid #dbdbdb; border-radius: 7px; background: var(--white, #fff); }
.uca-rc__misses .uca-rc__card { background: #fff; }
.uca-rc__card.is-best { border-color: #21b24b; box-shadow: 0 0 10px rgba(0, 0, 0, .15); }
.uca-rc__card--no { background: #f8f8f8; }
.uca-rc__card--no .uca-rc__card-title { color: #6f6f76; }
.uca-rc__card-top { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.uca-rc__pill { display: inline-block; padding: 6px 10px; border-radius: 4px; background: #6f6f76; color: #fff; font-size: 13px; line-height: 100%; }
.uca-rc__card--yes .uca-rc__pill { background: #1a7f37; }
.uca-rc__card--maybe .uca-rc__pill { background: #8a5d00; }
.uca-rc .uca-rc__pill--best { background: var(--accent, #d2ac67); color: #0a0a0a; }
.uca-rc .uca-rc__pill--soon { background: #fff; color: #4b4b52; box-shadow: inset 0 0 0 1px #8a8f98; }
.uca-rc__card-title { margin: 0; padding: 0; font-size: 18px; line-height: 1.3; color: var(--black, #09090a); }
.uca-rc__sponsor { margin: 2px 0 8px; padding: 0; font-size: 14px; color: #6f6f76; }
.uca-rc__amount { margin: 0 0 8px; padding: 0; font-size: 16px; font-weight: 700; color: var(--black, #09090a); }
.uca-rc ul.uca-rc__reasons { margin: 0 0 8px; padding: 0 0 0 18px; list-style: disc; font-size: 14px; line-height: 1.4; color: #6f6f76; }
.uca-rc ul.uca-rc__reasons li { margin: 0 0 3px; padding: 0; list-style: disc; }
.uca-rc__more { margin: 0 0 8px; font-size: 14px; color: #6f6f76; }
.uca-rc__more summary { cursor: pointer; font-weight: 600; color: var(--black, #09090a); }
.uca-rc__next-step { margin: 6px 0 0; padding: 0; font-size: 14px; line-height: 1.4; color: #6f6f76; }
.uca-rc__misses { margin: 0 0 4px; padding: 10px 16px; border-radius: 7px; background: #f8f8f8; }
.uca-rc__misses-title { margin: 0; padding: 0; font-size: 14px; font-weight: 600; color: #4b4b52; cursor: pointer; }
.uca-rc__misses ul { margin: 8px 0 0; padding: 0; list-style: none; }
.uca-rc__misses li { margin: 0 0 4px; padding: 0; list-style: none; font-size: 13px; line-height: 1.4; color: #6f6f76; }
.uca-rc__misses li strong { color: #4b4b52; font-weight: 600; }
.uca-rc .single-field .uca-rc__help { margin: -4px 0 8px; font-size: 13px; }
.uca-rc__link { font-size: 14px; font-weight: 600; color: var(--black, #09090a); text-decoration: underline; }
.uca-rc__note { margin: 14px 0 0; padding: 14px 16px; border-radius: 7px; background: #fffce1; font-size: 14px; line-height: 1.45; color: #4b4b52; }
.uca-rc__note a { color: var(--black, #09090a); font-weight: 600; text-decoration: underline; }
.uca-rc__fine { margin: 10px 0 0; padding: 0; font-size: 13px; line-height: 1.4; color: #6f6f76; }

/* Footer, as in the popup */
.uca-rc__foot { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 20px 32px; border-top: 1px solid #cfcfcf; background: var(--white, #fff); }
.uca-rc__foot .sos-button { margin: 0; padding: 10px 20px !important; border-radius: 10px; cursor: pointer; }
.uca-rc__foot .sos-button:not(.gray) { background: var(--accent, #d2ac67) !important; color: #0a0a0a !important; }
.uca-rc__foot .sos-button:not(.gray):not([aria-disabled="true"]):hover { background: #c49b52 !important; color: #0a0a0a !important; }
.uca-rc__foot .sos-button.gray { background: #dbdbdb !important; color: var(--black, #09090a) !important; }
.uca-rc__foot .sos-button[disabled], .uca-rc__foot .sos-button[aria-disabled="true"] { opacity: .3; cursor: not-allowed; }
.uca-rc__foot .sos-button:focus-visible { outline: 3px solid #0a0a0a !important; outline-offset: 3px; box-shadow: 0 0 0 3px #fff !important; }

@media (max-width: 560px) {
  .uca-rc__dialog { height: 100%; border-radius: 0; }
  .uca-rc__head { padding-left: 20px; }
  .uca-rc__banner, .uca-rc__step { padding-left: 20px; padding-right: 20px; }
  .uca-rc__foot { display: grid; grid-template-columns: repeat(2, 1fr); padding: 14px 20px; }
  .uca-rc__foot .sos-button { width: 100%; text-align: center; }
}

/* Not-eligible programs reuse the result cards inside the collapsed section. */
.uca-rc__misses .uca-rc__cards { margin: 10px 0 2px; }
.uca-rc__misses[open] { padding-bottom: 12px; }
.uca-rc__card--no .uca-rc__amount { font-weight: 400; color: #6f6f76; }

/* Keep a copy: PDF download and email */
.uca-rc__save { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; margin: 12px 0 0; padding: 10px 16px; border: 1px solid #dbdbdb; border-radius: 7px; }
.uca-rc__save > * { flex: 1 1 100%; }
.uca-rc__save > .uca-rc__save-title, .uca-rc__save > .uca-rc__save-actions { flex: 0 1 auto; }
.uca-rc__save-title { margin: 4px 0; padding: 0; font-size: 15px; font-weight: 600; color: var(--black, #09090a); }
.uca-rc__save-actions, .uca-rc__email { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.uca-rc__save-actions { margin: 4px 0; }
.uca-rc__email { margin-top: 10px; }
.uca-rc .uca-rc__save-btn { margin: 0; padding: 9px 16px; border: 1px solid var(--accent, #d2ac67); border-radius: 7px; background: #fff; color: var(--black, #09090a); font: inherit; font-size: 14px; line-height: 1.2; cursor: pointer; transition: background-color .2s; }
.uca-rc .uca-rc__save-btn:hover { background: #faf5ea; }
.uca-rc .uca-rc__save-btn--send { background: var(--accent, #d2ac67); color: #0a0a0a; }
.uca-rc .uca-rc__save-btn--send:hover { background: #c49b52; }
.uca-rc .uca-rc__save-btn[disabled] { opacity: .5; cursor: wait; }
.uca-rc .uca-rc__save-btn:focus-visible { outline: 3px solid #0a0a0a !important; outline-offset: 3px; box-shadow: 0 0 0 3px #fff !important; }
.uca-rc .uca-rc__email input[type="email"] { flex: 1 1 220px; min-height: 40px; margin: 0; padding: 8px 12px; border: 1px solid #8a8f98; border-radius: 7px; background: #fff; color: var(--black, #09090a); font: inherit; font-size: 15px; }
.uca-rc__save-help, .uca-rc__save-status { margin: 6px 0 2px; padding: 0; font-size: 13px; line-height: 1.4; color: #6f6f76; }
.uca-rc__save-status:empty { display: none; }
.uca-rc__save-status { color: #4b4b52; font-weight: 600; }
.uca-rc .uca-rc__trap, .uca-rc .uca-rc__sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }

/* Focus ring for the page buttons and form fields (design system: 3px ink outline, 3px offset, white halo). */
html body .sos-button.open-rebate-checker:focus-visible, .uca-rc .single-field input:focus-visible, .uca-rc .single-field select:focus-visible, .uca-rc .uca-rc__email input:focus-visible, .uca-rc summary:focus-visible, .uca-rc__link:focus-visible { outline: 3px solid #0a0a0a !important; outline-offset: 3px; box-shadow: 0 0 0 3px #fff !important; }
