/* State guide content gate — blur overlay + email capture form */

/* Gradient fade between teaser and gated content */
.gate-fade {
  height: 120px;
  margin-top: -120px;
  position: relative;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
  pointer-events: none;
}

/* Gate card */
.state-guide-gate {
  position: relative;
  z-index: 3;
  max-width: 520px;
  margin: -20px auto 24px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(42,125,106,0.06), rgba(61,111,168,0.06));
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  text-align: center;
}

.state-guide-gate .gate-lock {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(42,125,106,0.12);
  display: inline-grid;
  place-items: center;
  margin-bottom: 12px;
}

.state-guide-gate .gate-lock svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.state-guide-gate h3 {
  font-size: 1.25rem;
  color: var(--text);
  margin: 0 0 6px;
}

.state-guide-gate p.gate-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 20px;
}

/* Gate form */
.state-gate-form {
  text-align: left;
}

.state-gate-form .sg-field {
  margin-bottom: 12px;
}

.state-gate-form .sg-field label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 4px;
}

.state-gate-form .sg-field input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  font-size: 0.95rem;
  transition: border-color 200ms ease;
  box-sizing: border-box;
}

.state-gate-form .sg-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42,125,106,0.1);
}

.state-gate-form .sg-field input.error {
  border-color: var(--error);
}

.state-gate-form .sg-field .field-error {
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 2px;
  display: none;
}

.state-gate-form .sg-field .field-error.visible {
  display: block;
}

.state-gate-form .sg-actions {
  margin-top: 16px;
  text-align: center;
}

.state-gate-form .sg-actions .btn {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
}

.state-gate-form .sg-actions .btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

.state-gate-form .form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 8px 0 0;
  text-align: center;
}

.state-gate-form .form-status {
  font-size: 0.85rem;
  margin: 8px 0 0;
  text-align: center;
  display: none;
}

.state-gate-form .form-status.visible {
  display: block;
}

.state-gate-form .form-status.error {
  color: var(--error);
}

.state-gate-form .form-status.success {
  color: var(--accent);
}

/* Blurred gated content */
.gated-content-blur {
  filter: blur(5px);
  -webkit-filter: blur(5px);
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  overflow: hidden;
  max-height: 600px;
  position: relative;
}

/* Unlocked state */
.article-body.unlocked .gated-content-blur {
  filter: none;
  -webkit-filter: none;
  user-select: auto;
  -webkit-user-select: auto;
  pointer-events: auto;
  max-height: none;
}

.article-body.unlocked .state-guide-gate,
.article-body.unlocked .gate-fade {
  display: none;
}

/* Retention CTA replacement */
.retention-cta-replaced h2 {
  color: var(--text);
}

.retention-cta-replaced p {
  color: var(--muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .state-guide-gate {
    padding: 24px 16px;
    margin-left: 0;
    margin-right: 0;
  }

  .gated-content-blur {
    max-height: 400px;
  }
}
