/* GCSE misconception-bank popup. Desktop: centred dialog. Narrow screens: bottom banner. */
.getit-capture[hidden] { display: none !important; }

.getit-capture.is-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 7, 15, .72);
}

.getit-capture.is-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  display: block;
  background: none;
  pointer-events: none;
  padding: 0;
}

.getit-capture-panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #111a2e;
  color: #eaf0ff;
  border: 1px solid #25324e;
  border-radius: 18px;
  padding: 22px 18px 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.getit-capture.is-banner .getit-capture-panel {
  pointer-events: auto;
  max-width: none;
  max-height: 58vh;
  overflow: auto;
  border-radius: 18px 18px 0 0;
  border-bottom: 0;
  animation: getit-capture-up .28s ease;
}

.getit-capture-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #94a3c4;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.getit-capture-close:focus-visible,
.getit-capture-panel a:focus-visible,
.getit-capture-panel button:focus-visible,
.getit-capture-panel input:focus-visible,
.getit-capture-panel select:focus-visible {
  outline: 2px solid #8fb4ff;
  outline-offset: 2px;
}

.getit-capture-kicker {
  margin: 0 0 6px;
  color: #4f8cff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.getit-capture-panel h2 {
  margin: 0 36px 8px 0;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.getit-capture-dek {
  margin: 0 0 12px;
  color: #94a3c4;
  font-size: 14px;
  line-height: 1.4;
}

.getit-capture-panel form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.getit-capture-panel label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
}

.getit-capture-panel input[type="text"],
.getit-capture-panel input[type="email"],
.getit-capture-panel select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #25324e;
  border-radius: 10px;
  background: #0b1122;
  color: #eaf0ff;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
}

.getit-capture-consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  color: #94a3c4;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.getit-capture-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 18px;
  accent-color: #4f8cff;
}

.getit-capture-panel a { color: #8fb4ff; }

.getit-capture-send {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: #4f8cff;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.getit-capture .hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

html.getit-capture-lock,
html.getit-capture-lock body { overflow: hidden; }

@keyframes getit-capture-up {
  from { transform: translateY(12px); }
  to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .getit-capture.is-banner .getit-capture-panel { animation: none; }
}

/* Mobile: start as a small bar; tap to open the full form. */
.getit-capture-open, .getit-capture-panel h2 .short { display: none; }
.getit-capture.is-banner.is-collapsed .getit-capture-panel h2 .short { display: inline; }
.getit-capture.is-banner.is-collapsed .getit-capture-panel {
  max-height: none;
  overflow: visible;
  padding: 12px 48px 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.getit-capture.is-banner.is-collapsed .getit-capture-kicker,
.getit-capture.is-banner.is-collapsed .getit-capture-dek,
.getit-capture.is-banner.is-collapsed form { display: none; }
.getit-capture.is-banner.is-collapsed .getit-capture-panel h2 {
  font-size: 15px;
  line-height: 1.3;
  margin: 0;
  flex: 1;
}
.getit-capture.is-banner.is-collapsed .getit-capture-panel h2 .long { display: none; }
.getit-capture.is-banner.is-collapsed .getit-capture-open {
  display: inline-block;
  flex: none;
  border: 0;
  border-radius: 999px;
  background: #4f8cff;
  color: #fff;
  font: 600 14px/1 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  padding: 10px 14px;
  cursor: pointer;
}
.getit-capture.is-banner.is-collapsed .getit-capture-close { top: 50%; transform: translateY(-50%); }
.getit-capture.is-banner:not(.is-collapsed) .getit-capture-panel { max-height: 85vh; }

/* Mobile: sticky banner along the top (under the site nav), always visible. */
.getit-capture.is-banner {
  top: var(--getit-top, 0px);
  bottom: auto;
}
.getit-capture.is-banner .getit-capture-panel {
  border-radius: 0 0 14px 14px;
  border-top: 0;
  border-bottom: 1px solid #25324e;
  animation: getit-capture-down .25s ease;
}
.getit-capture.is-banner:not(.is-collapsed) .getit-capture-panel {
  max-height: calc(100vh - var(--getit-top, 0px) - var(--getit-bottom, 12px));
  max-height: calc(100dvh - var(--getit-top, 0px) - var(--getit-bottom, 12px));
}
@keyframes getit-capture-down {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .getit-capture.is-banner .getit-capture-panel { animation: none; }
}
