#geicoModal {
  --popup-blue: #0000e3;
  --popup-green: #00ff01;
  --popup-surface: #ffffff;
  --popup-ink: #101026;
  --popup-ink-soft: #4a4a68;
  --popup-line: #d9d9ee;
}

/* ---- Bootstrap modal shell ---- */
#geicoModal .modal-dialog {
  width: 880px;
  max-width: calc(100% - 20px);
  margin: 30px auto;
}
#geicoModal .modal-content {
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--popup-surface);
  box-shadow: 0 30px 80px rgba(0, 0, 30, .45);
  margin: 0 auto;
}
#geicoModal .modal-body { padding: 0; }

/* Close button floats over the blue hero */
#geicoModal .modal-header {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  padding: 0;
  border: 0;
  min-height: 0;
}
#geicoModal .modal-header .close {
  display: block;
  float: none;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: var(--popup-blue);
  font-size: 26px;
  font-weight: 400;
  line-height: 40px;
  text-align: center;
  text-shadow: none;
  opacity: 1;
}
#geicoModal .modal-header .close:hover,
#geicoModal .modal-header .close:focus {
  background: var(--popup-green);
  color: var(--popup-blue);
  opacity: 1;
}
#geicoModal .modal-header .close:focus-visible {
  outline: 3px solid var(--popup-green);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--popup-blue);
}

/* ---- Popup content ---- */
#geicoModal .popup {
  position: relative;
  display: block;
  width: auto;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--popup-surface);
  color: var(--popup-ink);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.popup .popup-hero {
  background: var(--popup-blue);
  color: #fff;
  padding: 48px 48px 40px;
  position: relative;
}
.popup .popup-hero::before {
    content: " ";
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background-image: url(../img/texture.jpg);
    background-position: top;
    background-size: cover;
    position: absolute;
    mix-blend-mode: multiply;
    -webkit-mask-image: linear-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    mask-image: linear-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    pointer-events:none;
}
.popup .popup-hero > * {
    position: relative;
}
.popup .popup-title {
  margin: 0;
  max-width: 17ch;
  color: #fff;
  font-family: "Bricolage Grotesque", "Arial Black", Impact, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 5.4vw, 54px);
  line-height: .9;
  letter-spacing: -0.025em;
}
.popup .popup-sub {
  margin: 18px 0 0;
  max-width: 34ch;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.15;
  color: var(--popup-green);
}
.popup .popup-desc {
  margin: 14px 0 0;
  max-width: 58ch;
  font-size: 16px;
  line-height: 22px;
  color:#fff;
}

/* Blue Ridge foothills. The front ridge matches the white panel below. */
.popup .popup-ridges {
  display: block;
  width: 100%;
  height: auto;
  margin: 12px 0 -1px;
}
.popup .popup-ridge-far   { fill: #ffffff; fill-opacity: .10; }
.popup .popup-ridge-mid   { fill: #00005a; fill-opacity: .38; }
.popup .popup-ridge-line  { fill: none; stroke: #00ff01; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.popup .popup-ridge-front { fill: var(--popup-surface); }

.popup .popup-panel {
  background: var(--popup-surface);
  padding: 20px 48px;
}
.popup .popup-callouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.popup .popup-callout {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--popup-line);
  border-radius: 14px;
  padding: 22px;
}
.popup .popup-callout-title {
  margin: 0;
  color: var(--popup-ink);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
}
.popup .popup-dates {
  margin: 6px 0 0;
  color: var(--popup-blue);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.popup .popup-note {
  margin: 8px 0 20px;
  color: var(--popup-ink-soft);
  font-size: 15px;
}

.popup .popup-btn {
  display: block;
  margin-top: auto;
  padding: 14px 20px;
  border: 2px solid var(--popup-blue);
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
  transition: transform .15s ease, box-shadow .15s ease;
}
.popup .popup-btn:hover,
.popup .popup-btn:focus {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 227, .28);
}
.popup .popup-btn:focus-visible {
  outline: 3px solid var(--popup-green);
  outline-offset: 3px;
}
.popup .popup-btn-green,
.popup .popup-btn-green:hover,
.popup .popup-btn-green:focus {
  background: var(--popup-green);
  color: var(--popup-blue);
}
.popup .popup-btn-blue,
.popup .popup-btn-blue:hover,
.popup .popup-btn-blue:focus {
  background: var(--popup-blue);
  color: #fff;
}

@media (max-width: 680px) {
  .popup .popup-hero { padding: 40px 24px 20px; }
  .popup .popup-title { padding-right: 36px; }
  .popup .popup-panel { padding: 20px; }
  .popup .popup-callouts { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .popup .popup-dates { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .popup .popup-btn { transition: none; }
  .popup .popup-btn:hover,
  .popup .popup-btn:focus { transform: none; }
}
