/* CSRA Marketing - Audit 2.0 exit-intent / welcome overlay (Kemar, 2026-11-15).
 * The Audit 2.0 hero as a centered modal. Same brand as the audit page:
 * Poppins, Navy #10233F, Coral #FF705C accent only, CTA Yellow #FACC15
 * for the button only. Card is NAVY #10233F, locked (Kemar, 2026-11-15):
 * navy in every mode, never flips with the phone's dark/light setting.
 * White logo variant on the navy card. Form fields stay white.
 * No em dashes or en dashes in any client-facing copy in this file. */

.csra-overlay-backdrop {
  color-scheme: light;
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(16, 35, 63, 0.62);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-text-size-adjust: 100%;
}

.csra-overlay-card {
  color-scheme: light;
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  background: #10233f;
  color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  padding: 28px 28px 20px;
  text-align: left;
  box-sizing: border-box;
}

.csra-overlay-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #ff705c;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0 0 2px;
}

.csra-overlay-close:hover,
.csra-overlay-close:focus-visible {
  background: #f2604a;
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.csra-overlay-logo {
  display: block;
  width: 148px;
  max-width: 55%;
  height: auto;
  margin: 0 auto 14px;
}

.csra-overlay-eyebrow {
  margin: 0 0 8px;
  text-align: center;
  color: #ff705c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.csra-overlay-card h2.csra-overlay-h1 {
  margin: 0 0 10px;
  text-align: center;
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.csra-overlay-blurb {
  margin: 0 0 18px;
  text-align: center;
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
}

.csra-overlay-form .csra-overlay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.csra-overlay-field label {
  display: block;
  margin-bottom: 5px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}

.csra-overlay-field input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1.5px solid #c9d4e2;
  border-radius: 10px;
  background: #ffffff;
  color: #10233f;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  line-height: 1.4;
}

.csra-overlay-field input:focus {
  border-color: #ff705c;
  outline: 2px solid rgba(255, 112, 92, 0.35);
  outline-offset: 1px;
}

.csra-overlay-submit {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  background: #facc15;
  color: #10233f;
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.csra-overlay-submit:hover,
.csra-overlay-submit:focus-visible {
  background: #f5c211;
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.csra-overlay-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.csra-overlay-under {
  margin: 10px 0 0;
  text-align: center;
  color: #c9d4e2;
  font-size: 13px;
  line-height: 1.5;
}

.csra-overlay-status {
  margin: 12px 0 0;
  text-align: center;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.5;
}

.csra-overlay-status:empty {
  display: none;
}

.csra-overlay-result {
  text-align: center;
  padding: 6px 0 4px;
}

.csra-overlay-score {
  margin: 4px 0 2px;
  color: #ffffff;
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
}

.csra-overlay-band {
  margin: 0 0 12px;
  color: #ff705c;
  font-size: 17px;
  font-weight: 700;
}

.csra-overlay-result p {
  margin: 0 0 14px;
  color: #c9d4e2;
  font-size: 15px;
  line-height: 1.55;
}

.csra-overlay-secondary {
  display: inline-block;
  padding: 11px 22px;
  border: 1.5px solid #ffffff;
  border-radius: 999px;
  background: #ffffff;
  color: #10233f;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.csra-overlay-secondary:hover,
.csra-overlay-secondary:focus-visible {
  background: #eef2f7;
  outline: 2px solid #ff705c;
  outline-offset: 2px;
}

.csra-overlay-footer {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid #1e3a5f;
  text-align: center;
  color: #8fa3bd;
  font-size: 12px;
}

@media (max-width: 560px) {
  .csra-overlay-card {
    padding: 24px 18px 16px;
  }
  .csra-overlay-card h2.csra-overlay-h1 {
    font-size: 22px;
  }
  .csra-overlay-form .csra-overlay-grid {
    grid-template-columns: 1fr;
  }
  .csra-overlay-score {
    font-size: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .csra-overlay-backdrop,
  .csra-overlay-card {
    animation: none;
    transition: none;
  }
}
