/* Veterans Day publishing popup — accessible, responsive, scoped styles */
:root {
  --vdp-navy: #101f38;
  --vdp-gold: #bba06e;
  --vdp-gold-bright: #e8c78c;
  --vdp-crimson: #b80030;
  --vdp-white: #f9f8f8;
}

.vdp-backdrop, .vdp-backdrop *, .vdp-backdrop *::before, .vdp-backdrop *::after { box-sizing: border-box; }
.vdp-backdrop[hidden] { display: none !important; }
body.vdp-locked { overflow: hidden !important; }
.vdp-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 2147483000;
  background: rgba(5, 9, 15, .72);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  overflow: auto;
}
.vdp-dialog {
  position: relative;
  width: min(996px, 100%);
  height: 580px;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 61.3% 38.7%;
  border-radius: 26px;
  background: var(--vdp-navy);
  box-shadow: 0 20px 70px #0009, 0 7px 17px #0005;
  overflow: hidden;
  isolation: isolate;
}
.vdp-art {
  min-width: 0;
  height: 100%;
  position: relative;
}
.vdp-art--desktop {
  background-image: url('assets/veterans-left-panel.webp');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}
.vdp-art--mobile { display: none; }
.vdp-visually-hidden {
  border: 0 !important; clip: rect(0,0,0,0) !important;
  clip-path: inset(50%) !important; height: 1px !important;
  margin: -1px !important; overflow: hidden !important;
  padding: 0 !important; position: absolute !important;
  white-space: nowrap !important; width: 1px !important;
}
.vdp-form-side {
  position: relative;
  min-width: 0;
  color: var(--vdp-white);
  background: radial-gradient(ellipse at 51% -22%, #444252 0%, #26334a 20%, #162640 54%, #0e203c 100%);
  border: 2px solid #ae8e58;
  border-left: 3px solid #c5a36a;
  border-radius: 0 25px 25px 0;
  box-shadow: inset 0 0 20px #06132742;
}
.vdp-form-side::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, #bc9555, #fff1c5 46%, #ac8958);
  opacity: .72;
  pointer-events: none;
}
.vdp-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 5;
  background: transparent;
  color: #c9ab79;
  font-size: 34px;
  line-height: 1;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: color .15s, background .15s;
}
.vdp-close:hover, .vdp-close:focus-visible { color: #fff; background: #ffffff1c; }
.vdp-close:focus-visible, .vdp-submit:focus-visible, .vdp-input:focus-visible {
  outline: 2px solid #ffe5ab;
  outline-offset: 3px;
}
.vdp-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  color: #edc47c;
  text-shadow: 0 2px 2px #090d14, 0 -1px 1px #fff4c4;
  pointer-events: none;
  user-select: none;
}
.vdp-stars--top { position: absolute; top: 42px; left: 0; right: 0; }
.vdp-stars--bottom { position: absolute; bottom: 27px; left: 0; right: 0; gap: 10px; }
.vdp-stars .vdp-star-side { font-size: 21px; }
.vdp-stars .vdp-star-main { font-size: 38px; line-height: 1; }
.vdp-stars--bottom .vdp-star-side { font-size: 14px; }
.vdp-stars--bottom .vdp-star-main { font-size: 24px; }
.vdp-form {
  position: absolute;
  top: 103px;
  left: 39px;
  right: 39px;
  margin: 0;
}
.vdp-field { margin: 0; }
.vdp-field + .vdp-field { margin-top: 21px; }
.vdp-label {
  display: block;
  color: #f9f8f8;
  font: 400 20px/24px Arial, Helvetica, sans-serif;
  letter-spacing: -.35px;
  margin-bottom: 8px;
}
.vdp-input {
  display: block;
  width: 100%;
  height: 56px;
  padding: 0 20px;
  background: #ffffff05;
  color: #fff;
  border: 2px solid #a98c61;
  border-radius: 999px;
  box-shadow: inset 0 1px 4px #0002;
  font: 400 18px/1.25 Arial, Helvetica, sans-serif;
  transition: border-color .2s, background .2s;
}
.vdp-input::placeholder { color: #999fae; opacity: 1; }
.vdp-input:focus { background: #ffffff0d; border-color: #e3c78c; outline: none; }
.vdp-input[aria-invalid='true'] { border-color: #ff9d9d; }
.vdp-submit {
  width: 100%;
  min-height: 60px;
  margin-top: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #c20036, #a5002b);
  box-shadow: 0 7px 16px #0003;
  color: #fff;
  font: 700 21px/1.25 Arial, Helvetica, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.vdp-submit:hover { background: linear-gradient(180deg,#d30c43,#b60034); transform: translateY(-1px); }
.vdp-submit:disabled { opacity: .75; cursor: wait; transform: none; }
.vdp-status {
  margin: 8px 0 0;
  font: 400 12px/1.35 Arial, Helvetica, sans-serif;
  text-align: center;
  overflow-wrap: anywhere;
}
.vdp-status:empty { display: none; }
.vdp-status[data-type='error'] { color: #ffc1c1; }
.vdp-status[data-type='success'] { color: #c8f0d9; }
.vdp-status[data-type='demo'] { color: #f2d59d; }
.vdp-dialog:has(.vdp-status:not(:empty)) .vdp-stars--bottom { display: none; }
.vdp-honeypot { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

@media (max-width: 760px) {
  .vdp-backdrop { padding: 14px; align-items: safe center; }
  .vdp-dialog {
    display: block;
    width: min(420px, 100%);
    height: auto;
    max-height: calc(100dvh - 28px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #bba06e;
    border-radius: 22px;
    scrollbar-width: thin;
  }
  .vdp-art--desktop { display: none; }
  .vdp-art--mobile {
    display: flex;
    min-height: 245px;
    overflow: hidden;
    border-radius: 21px 21px 0 0;
    border-bottom: 1px solid #8e7b5a;
    background: radial-gradient(ellipse at 91% 23%, #a64642 0%, transparent 54%), linear-gradient(137deg, #0f2747 0%,#16223e 49%,#501b2f 100%);
  }
  .vdp-art--mobile::before {
    content:''; position:absolute; inset:0;
    opacity:.16;
    background: repeating-linear-gradient(170deg, transparent 0 28px, #fff 28px 44px, #8c1529 44px 72px, transparent 72px 110px);
  }
  .vdp-mobile-copy {
    position: relative;
    z-index: 1;
    width: 67%;
    padding: 25px 0 15px 22px;
    text-shadow: 0 2px 6px #000b;
  }
  .vdp-mobile-eyebrow { color: #f2d299; font: 500 10px/1.2 Georgia,serif; letter-spacing: 1.7px; margin: 0 0 10px; }
  .vdp-mobile-title { color: #fff; font: 800 clamp(19px, 5vw, 26px)/1.04 Arial,Helvetica,sans-serif; margin: 0 0 8px; }
  .vdp-mobile-discount { color: #fce3a3; font: 800 clamp(43px, 12vw, 58px)/1 Arial,Helvetica,sans-serif; margin: 0 0 5px; }
  .vdp-mobile-discount span { font-size: .43em; display: inline-block; line-height: .86; vertical-align: middle; }
  .vdp-mobile-sub { color: #fff; margin: 0 0 8px; font: 400 12px/1.3 Arial,Helvetica,sans-serif; }
  .vdp-mobile-note { color: #f3d4b7; margin: 0; font: italic 12px/1.3 Georgia,serif; }
  .vdp-mobile-photo {
    position: absolute;
    right: -9px;
    bottom: 0;
    width: 46%;
    height: 98%;
    background: url('assets/veteran-books.webp') no-repeat center bottom / contain;
    -webkit-mask-image: linear-gradient(90deg,transparent 0%,black 20%);
    mask-image: linear-gradient(90deg,transparent 0%,black 20%);
  }
  .vdp-form-side {
    min-height: 410px;
    border: 0;
    border-radius: 0 0 21px 21px;
    padding: 17px 26px 25px;
  }
  .vdp-form-side::before { display: none; }
  .vdp-stars--top { position: static; margin: 0 0 12px; gap: 13px; }
  .vdp-stars .vdp-star-main { font-size: 27px; }
  .vdp-stars .vdp-star-side { font-size: 16px; }
  .vdp-stars--bottom { display: none; }
  .vdp-form { position: relative; top: auto; left: auto; right: auto; }
  .vdp-field + .vdp-field { margin-top: 14px; }
  .vdp-label { font-size: 16px; line-height: 20px; margin-bottom: 6px; }
  .vdp-input { height: 47px; padding: 0 16px; font-size: 15px; }
  .vdp-submit { min-height: 52px; margin-top: 20px; font-size: 17px; }
  .vdp-close { position: absolute; top: 8px; right: 9px; color:#fff3db; background:#10203a88; }
  .vdp-status { font-size: 12px; }
}
@media (max-width: 370px) {
 .vdp-mobile-copy { width: 70%; padding-left: 15px; }
 .vdp-form-side { padding-left: 17px; padding-right: 17px; }
 .vdp-mobile-photo { width: 45%; }
}
@media (prefers-reduced-motion: reduce) { .vdp-close, .vdp-submit, .vdp-input { transition: none; } }
