/* Gated content modal */
.gatedcontent-modal[hidden] { display: none !important; }

.gatedcontent-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.gatedcontent-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
}

.gatedcontent-modal__dialog {
  position: relative;
  max-width: 520px;
  margin: 10vh auto 0;
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  z-index: 1;
}

.gatedcontent-modal__close {
  position: absolute;
  right: 12px;
  top: 12px;
  background: transparent;
  border: 0;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

html.gatedcontent-modal-open { overflow: hidden; }

/* Form fields */
.gatedcontent-field { margin-bottom: 14px; }
.gatedcontent-field label { display: block; margin-bottom: 4px; font-weight: 600; font-size: .9rem; }
.gatedcontent-field input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}
.gatedcontent-field input:focus { border-color: #0055a4; outline: none; box-shadow: 0 0 0 2px rgba(0,85,164,.2); }

.gatedcontent-actions { margin-top: 40px; }

.gatedcontent-btn,
.gatedcontent-actions button[type="submit"] {
  display: inline-block;
  padding: 10px 28px;
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background .2s;
  background: var(--rouge);
}
.gatedcontent-btn:hover,
.gatedcontent-actions button[type="submit"]:hover { background: #003d7a; color: #fff; }

/* Success screen */
.gatedcontent-success { text-align: center; padding: 12px 0; }
.gatedcontent-success h2 { margin: 0 0 8px; }
.gatedcontent-success p { margin: 0 0 20px; color: #555; }
