/* BLG case check pop-up. Colors from the approved theme guide: orange #F47A30 (hover #E56824), navy #123856, Barlow. */

.blgcc-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(16px, 6vh, 64px) 16px;
  overflow-y: auto;
  background: rgba(7, 32, 58, 0.72);
}
.blgcc-enter { animation: blgcc-fade 180ms ease-out; }
.blgcc-enter .blgcc-dialog { animation: blgcc-rise 220ms ease-out; }
/* Keep the chat out of the way while the case check is open. */
body.blgcc-open #icw,
body.blgcc-open .blg-intaker-dock,
body.blgcc-open .blg-intaker-fab { display: none !important; }

.blgcc-dialog {
  width: min(100%, 920px);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  font-family: Barlow, Arial, sans-serif;
  color: #1B3048;
  box-shadow: 0 24px 60px rgba(7, 22, 31, 0.25);
  text-align: left;
}
.blgcc-dialog *, .blgcc-dialog *::before, .blgcc-dialog *::after { box-sizing: border-box; }

.blgcc-head {
  background: #123856;
  color: #ffffff;
  padding: 24px 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.blgcc-headtext { display: flex; flex-direction: column; gap: 6px; }
.blgcc-eyebrow {
  margin: 0;
  font-family: 'Barlow Semi Condensed', Barlow, 'Arial Narrow', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F47A30;
}
.blgcc-title {
  margin: 0;
  font-family: 'Barlow Semi Condensed', Barlow, 'Arial Narrow', sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.05;
  text-transform: uppercase;
  color: #ffffff;
}
.blgcc-close {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.blgcc-close:hover { background: rgba(255, 255, 255, 0.12); }

.blgcc-bar { height: 6px; background: #F1F5F8; }
.blgcc-barfill { height: 6px; background: #F47A30; transition: width 240ms; }

.blgcc-body { padding: 32px; }
.blgcc-stack { display: flex; flex-direction: column; gap: 20px; }

.blgcc-qnum {
  margin: 0;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #56677A;
}
.blgcc-question {
  margin: 0;
  font-family: 'Barlow Semi Condensed', Barlow, 'Arial Narrow', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #123856;
  outline: none;
}

.blgcc-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.blgcc-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 0 20px;
  border: 1.5px solid #C3CEDA;
  border-radius: 0;
  background: #ffffff;
  font-family: inherit;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  color: #123856;
  text-align: left;
  text-transform: none;
  cursor: pointer;
  transition: border-color 180ms, background-color 180ms;
}
.blgcc-option:hover { border-color: #F47A30; background: #FFF6F0; color: #123856; }
.blgcc-arrow { color: #F47A30; }

.blgcc-urgency { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.blgcc-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  font-family: 'Barlow Semi Condensed', Barlow, 'Arial Narrow', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.blgcc-urgent { background: #F47A30; color: #13202E; }
.blgcc-soon { background: #FFE2CF; color: #7A2E00; }
.blgcc-ahead { background: #DDE4EB; color: #123856; }
.blgcc-situation { font-size: 16px; }

.blgcc-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 18px; line-height: 1.45; color: #1B3048; }
.blgcc-steps li { margin: 0; }
.blgcc-proof { margin: 0; padding: 14px 16px; background: #F1F5F8; font-size: 16px; line-height: 1.45; color: #123856; }
.blgcc-proof a {
  font-weight: 700;
  color: #123856;
  text-decoration: underline;
  text-decoration-color: #F47A30;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}
.blgcc-lead { margin: 0; font-size: 18px; line-height: 1.5; }

.blgcc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.blgcc-fields input {
  min-height: 50px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #B9C4CF;
  border-radius: 0;
  background: #ffffff;
  font-family: inherit;
  font-size: 16px;
  color: #1B3048;
  width: 100%;
}
.blgcc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.blgcc-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.blgcc-error { margin: 0; padding: 12px 14px; border-left: 3px solid #F47A30; background: #FFF6F0; font-size: 15px; }

.blgcc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.blgcc-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 2px;
  background: #F47A30;
  font-family: 'Barlow Semi Condensed', Barlow, 'Arial Narrow', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #13202E;
  text-decoration: none;
  cursor: pointer;
}
.blgcc-primary:hover { background: #E56824; color: #13202E; }
.blgcc-primary:disabled { opacity: 0.7; cursor: wait; }
.blgcc-text {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  color: #56677A;
  text-decoration: underline;
  text-transform: none;
  cursor: pointer;
  align-self: flex-start;
}
.blgcc-fine { margin: 0; font-size: 13px; line-height: 1.5; color: #56677A; }

.blgcc-foot {
  padding: 16px 32px;
  border-top: 1px solid #D5DEE6;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: #56677A;
}
.blgcc-foot a { font-weight: 700; color: #123856; text-decoration: none; }

.blgcc-dialog :focus-visible { outline: 2px solid #F47A30; outline-offset: 2px; }
/* Headings take focus only so screen readers announce each step; no visible ring on them. */
.blgcc-dialog .blgcc-question:focus,
.blgcc-dialog .blgcc-question:focus-visible { outline: none !important; box-shadow: none !important; }

@media (max-width: 640px) {
  .blgcc-head, .blgcc-body { padding: 20px; }
  .blgcc-foot { padding: 14px 20px; }
  .blgcc-title { font-size: 24px; }
  .blgcc-options, .blgcc-fields { grid-template-columns: minmax(0, 1fr); }
  .blgcc-option { font-size: 17px; }
}

@keyframes blgcc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes blgcc-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .blgcc-enter, .blgcc-enter .blgcc-dialog { animation: none; }
  .blgcc-barfill, .blgcc-option { transition: none; }
}
