/**
 * @file
 * Dialog chrome for the white paper download gate.
 *
 * Only the modal shell lives here. Everything inside it — the floating-label
 * fields, the card, the pill submit button — is the webinar registration
 * form's styling (wso2-webinars-v2.css) plus the gated-report refinements in
 * analyst_report.css, both attached by wso2-whitepaper-gate.html.twig.
 */

.cWhitepaperGate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
}

.cWhitepaperGate[hidden] {
  display: none;
}

.cWhitepaperGate__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 20, 46, 0.55);
}

/* The dialog paints its own card rather than leaning on the .cWhiteBG /
   .cFormcHighlighted classes the form markup carries: those come from
   global.css and wso2-webinars-v2.css, and a modal that turns transparent
   because another component's stylesheet moved is not a trade worth making.
   The two agree on the radius, so they stack harmlessly when both load. */
.cWhitepaperGate__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin: auto;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 24px 60px -20px rgba(7, 20, 46, 0.45);
}
.cWhitepaperGate__close {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #262626;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.cWhitepaperGate__close:hover,
.cWhitepaperGate__close:focus {
  background: #f2f2f2;
  color: #ff6700;
}

/* Stops the page behind the dialog scrolling while it is open. */
body.cWhitepaperGateOpen {
  overflow: hidden;
}

.cWhitepaperGate .cFormIntro em {
  font-style: normal;
  font-weight: 600;
}

@media (max-width: 767px) {
  .cWhitepaperGate {
    padding: 12px;
  }

  .cWhitepaperGate__dialog {
    max-width: 100%;
  }
}
