:root {
  --tljcc-popup-navy: #5c0b12;
  --tljcc-popup-primary: #b91c24;
  --tljcc-popup-accent: #d3222a;
}

body.tljcc-core-popup-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.tljcc-core-popup[hidden] {
  display: none !important;
}

.tljcc-core-popup,
.tljcc-core-popup * {
  box-sizing: border-box;
}

.tljcc-core-popup {
  position: fixed;
  inset: 0;
  z-index: 2147482000;
  color: #505b68;
  font-family: "DM Sans", Arial, sans-serif;
}

.tljcc-core-popup__overlay {
  position: absolute;
  inset: 0;
  background: var(--tljcc-popup-overlay, rgba(92, 11, 18, .72));
  opacity: 0;
  transition: opacity 180ms ease;
}

.tljcc-core-popup__viewport {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  padding: 32px;
  place-items: center;
  pointer-events: none;
}

.tljcc-core-popup__panel {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100dvh - 64px);
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--tljcc-popup-panel-bg, #fff);
  box-shadow: 0 28px 80px rgba(92, 11, 18, .28);
  opacity: 0;
  pointer-events: auto;
  scrollbar-gutter: stable;
  transition: opacity 220ms ease, transform 220ms cubic-bezier(.2, .72, .2, 1);
}

.tljcc-core-popup--width-small .tljcc-core-popup__panel { width: min(100%, 420px); }
.tljcc-core-popup--width-medium .tljcc-core-popup__panel { width: min(100%, 560px); }
.tljcc-core-popup--width-large .tljcc-core-popup__panel { width: min(100%, 760px); }
.tljcc-core-popup--width-wide .tljcc-core-popup__panel { width: min(100%, 960px); }
.tljcc-core-popup--width-full .tljcc-core-popup__panel { width: min(100%, 1440px); }

.tljcc-core-popup[data-animation="fade-scale"] .tljcc-core-popup__panel { transform: translateY(12px) scale(.985); }
.tljcc-core-popup[data-animation="fade-up"] .tljcc-core-popup__panel { transform: translateY(28px); }
.tljcc-core-popup[data-animation="slide-right"] .tljcc-core-popup__panel { transform: translateX(52px); }
.tljcc-core-popup[data-animation="slide-up"] .tljcc-core-popup__panel { transform: translateY(52px); }
.tljcc-core-popup[data-animation="none"] .tljcc-core-popup__panel,
.tljcc-core-popup[data-animation="none"] .tljcc-core-popup__overlay { transition: none; }

.tljcc-core-popup.is-open .tljcc-core-popup__overlay,
.tljcc-core-popup.is-open .tljcc-core-popup__panel {
  opacity: 1;
}

.tljcc-core-popup.is-open .tljcc-core-popup__panel {
  transform: none;
}

.tljcc-core-popup__close {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(92, 11, 18, .14);
  border-radius: 0;
  place-items: center;
  background: #fff;
  color: var(--tljcc-popup-navy);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.tljcc-core-popup__close span {
  display: none;
}

.tljcc-core-popup__close::before,
.tljcc-core-popup__close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  content: "";
  background: currentColor;
  transform-origin: center;
}

.tljcc-core-popup__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.tljcc-core-popup__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.tljcc-core-popup .tljcc-core-popup__close:hover,
.tljcc-core-popup .tljcc-core-popup__close:focus-visible {
  border-color: var(--tljcc-popup-primary);
  background: var(--tljcc-popup-primary);
  color: #fff;
  transform: none;
}

.tljcc-core-popup__body { min-height: 1px; }
.tljcc-core-popup__form-layout { padding: 52px; }
.tljcc-core-popup__intro { padding: 0 56px 28px 0; }
.tljcc-core-popup__eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--tljcc-popup-accent); font: 700 12px/1 "Inter", Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.tljcc-core-popup__eyebrow i { width: 14px; height: 14px; border-radius: 50%; background: var(--tljcc-popup-accent); box-shadow: 10px 0 0 var(--tljcc-popup-primary); margin-right: 8px; }
.tljcc-core-popup__heading { margin: 0; color: var(--tljcc-popup-navy); font: 700 clamp(28px, 4vw, 42px)/1.06 "Inter", Arial, sans-serif; letter-spacing: -.03em; }
.tljcc-core-popup__intro p { max-width: 620px; margin: 0; color: #66717f; line-height: 1.65; }

.tljcc-core-popup--split .tljcc-core-popup__form-layout--no-intro {
  display: block;
  padding: 52px;
}
.tljcc-core-popup__honeypot { position: absolute !important; left: -10000px !important; top: -10000px !important; }

.tljcc-core-popup--split .tljcc-core-popup__form-layout {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(320px, 1.2fr);
  min-height: 520px;
  padding: 0;
}

.tljcc-core-popup--split .tljcc-core-popup__intro { padding: 64px 48px; background: var(--tljcc-popup-navy); }
.tljcc-core-popup--split .tljcc-core-popup__heading { color: #fff; }
.tljcc-core-popup--split .tljcc-core-popup__intro p { color: #c9d7e8; }
.tljcc-core-popup--split .tljcc-core-popup__form-wrap { padding: 64px 48px 48px; }

.tljcc-core-popup--drawer-right .tljcc-core-popup__viewport { justify-items: end; padding: 0; }
.tljcc-core-popup--drawer-right .tljcc-core-popup__panel { width: min(94vw, 640px); height: 100dvh; max-height: none; }
.tljcc-core-popup--drawer-right[data-animation] .tljcc-core-popup__panel { transform: translateX(100%); }
.tljcc-core-popup--drawer-right.is-open .tljcc-core-popup__panel { transform: none; }
.tljcc-core-popup--drawer-right .tljcc-core-popup__form-layout { min-height: 100%; padding: 64px 52px; }

.tljcc-core-popup--bottom-sheet .tljcc-core-popup__viewport { align-items: end; padding: 0; }
.tljcc-core-popup--bottom-sheet .tljcc-core-popup__panel { width: min(100%, 960px); max-height: 92dvh; }
.tljcc-core-popup--bottom-sheet[data-animation] .tljcc-core-popup__panel { transform: translateY(100%); }
.tljcc-core-popup--bottom-sheet.is-open .tljcc-core-popup__panel { transform: none; }

.tljcc-core-popup--fullscreen .tljcc-core-popup__viewport { padding: 0; }
.tljcc-core-popup--fullscreen .tljcc-core-popup__panel { width: 100%; height: 100dvh; max-height: none; }
.tljcc-core-popup--fullscreen .tljcc-core-popup__body { width: min(100%, 1440px); min-height: 100%; margin: auto; }

@media (max-width: 767px) {
  .tljcc-core-popup__viewport { align-items: end; padding: 0; }
  .tljcc-core-popup__panel { width: 100% !important; max-height: 92dvh; }
  .tljcc-core-popup[data-animation] .tljcc-core-popup__panel { transform: translateY(100%); }
  .tljcc-core-popup.is-open .tljcc-core-popup__panel { transform: none; }
  .tljcc-core-popup__form-layout { padding: 56px 24px 32px; }
  .tljcc-core-popup__intro { padding-right: 40px; }
  .tljcc-core-popup--split .tljcc-core-popup__form-layout { display: block; min-height: 0; }
  .tljcc-core-popup--split .tljcc-core-popup__intro { padding: 56px 24px 28px; }
  .tljcc-core-popup--split .tljcc-core-popup__form-wrap { padding: 30px 24px 36px; }
  .tljcc-core-popup--drawer-right .tljcc-core-popup__panel,
  .tljcc-core-popup--fullscreen .tljcc-core-popup__panel { height: 100dvh; max-height: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tljcc-core-popup__overlay,
  .tljcc-core-popup__panel { transition: none !important; }
}
