/* NHS Pay Rise Alerts — front-end popup */
.nhs-pra-root {
  --pra-blue: #005eb8;
  --pra-navy: #003087;
  --pra-sky: #00a9ce;
  --pra-ink: #14212b;
  --pra-mute: #5b6b78;
  --pra-line: #d7dee5;
  --pra-bg: #ffffff;
  --pra-soft: #eef3f7;
  --pra-danger: #b42318;
  --pra-ok: #0a7a3e;
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
}

@media (min-width: 640px) {
  .nhs-pra-root {
    align-items: center;
    padding: 1.5rem;
  }
}

.nhs-pra-root[hidden] {
  display: none !important;
}

.nhs-pra-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 33, 43, 0.42);
  pointer-events: auto;
}

.nhs-pra-dialog {
  position: relative;
  width: min(100%, 420px);
  max-height: min(92vh, 640px);
  overflow: auto;
  background: var(--pra-bg);
  color: var(--pra-ink);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 48, 135, 0.18);
  pointer-events: auto;
  font-family: "Frutiger", "Arial", system-ui, -apple-system, sans-serif;
  outline: none;
}

@media (min-width: 640px) {
  .nhs-pra-dialog {
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 48, 135, 0.22);
  }
}

.nhs-pra-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--pra-navy), var(--pra-blue), var(--pra-sky));
}

.nhs-pra-inner {
  padding: 1.15rem 1.2rem 1.35rem;
}

.nhs-pra-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--pra-mute);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.nhs-pra-close:hover,
.nhs-pra-close:focus-visible {
  background: var(--pra-soft);
  color: var(--pra-ink);
  outline: 2px solid var(--pra-blue);
  outline-offset: 1px;
}

.nhs-pra-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pra-blue);
}

.nhs-pra-title {
  margin: 0 2rem 0.55rem 0;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--pra-navy);
  font-weight: 700;
}

.nhs-pra-body {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--pra-mute);
}

.nhs-pra-note {
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--pra-mute);
}

.nhs-pra-field {
  margin: 0 0 0.75rem;
}

.nhs-pra-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pra-ink);
}

.nhs-pra-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--pra-line);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--pra-ink);
  background: #fff;
}

.nhs-pra-input:focus {
  border-color: var(--pra-blue);
  outline: 2px solid rgba(0, 94, 184, 0.25);
  outline-offset: 0;
}

.nhs-pra-consent {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0 0 0.95rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--pra-mute);
}

.nhs-pra-consent input {
  margin-top: 0.2rem;
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
}

.nhs-pra-consent a {
  color: var(--pra-blue);
  text-decoration: underline;
}

.nhs-pra-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

.nhs-pra-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nhs-pra-submit {
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  background: var(--pra-blue);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.nhs-pra-submit:hover,
.nhs-pra-submit:focus-visible {
  background: var(--pra-navy);
  outline: 2px solid var(--pra-sky);
  outline-offset: 2px;
}

.nhs-pra-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.nhs-pra-dismiss {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--pra-mute);
  font-size: 0.88rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.35rem;
}

.nhs-pra-msg {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.nhs-pra-msg[hidden] {
  display: none !important;
}

.nhs-pra-msg.is-error {
  background: #fef3f2;
  color: var(--pra-danger);
  border: 1px solid #fecdca;
}

.nhs-pra-msg.is-ok {
  background: #ecfdf3;
  color: var(--pra-ok);
  border: 1px solid #abe0c4;
}

body.nhs-pra-open {
  overflow: hidden;
}
