/* Virent Research — Age Gate plugin restyle (child theme) */

.age-gate__wrapper {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 24px;
  align-items: center;
  justify-content: center;
}

/* Blurred, dimmed homepage behind the card */
.age-gate__wrapper .age-gate__background-color {
  background: rgba(10, 11, 40, 0.42);
  opacity: 1;
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
}
.age-gate__wrapper .age-gate__background { display: none; }

/* The card */
.age-gate__wrapper .age-gate {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 540px;
  margin: auto;
  padding: 44px 44px 36px;
  background: #ffffff;
  color: #0D0D0D;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 24px;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.55), 0 0 0 1px rgba(45,47,217,0.06);
  text-align: center;
  animation: vr-gate-in .45s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes vr-gate-in {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .age-gate__wrapper .age-gate { animation: none; }
}

/* Logo in place of the plain-text site name */
.age-gate__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 22px;
}
.age-gate__heading::before {
  content: '';
  width: 190px;
  height: 56px;
  background: url('https://virentresearch.com/wp-content/uploads/virent-logo.png') center / contain no-repeat;
  margin-bottom: 16px;
}
/* Keep the site-name heading for screen readers; show an eyebrow label instead */
.age-gate__heading-title {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.age-gate__heading::after {
  content: 'Age & Research Use Acknowledgement';
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #2D2FD9;
}

.age-gate__headline {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
  color: #0D0D0D;
  margin: 0 0 12px;
}

.age-gate__subheadline {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: #4A4A4A;
  max-width: 420px;
  margin: 0 auto 26px;
}

.age-gate__fields { margin: 0 auto 22px; }

.age-gate__challenge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #0D0D0D;
  background: #F4F4F6;
  border-radius: 100px;
  padding: 8px 16px;
  margin: 0 0 18px;
}
.age-gate__challenge::before {
  content: '21+';
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: #2D2FD9;
  border-radius: 100px;
  padding: 3px 8px;
  letter-spacing: 0.5px;
}

.age-gate__buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.age-gate__wrapper button.age-gate__submit--yes,
.age-gate__wrapper button.age-gate__submit--no {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 100px;
  margin: 0;
  min-width: 150px;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.age-gate__wrapper button.age-gate__submit--yes {
  background: #2D2FD9;
  color: #fff;
  border: 1.5px solid #2D2FD9;
  box-shadow: 0 12px 28px -12px rgba(45,47,217,0.6);
}
.age-gate__wrapper button.age-gate__submit--yes:hover,
.age-gate__wrapper button.age-gate__submit--yes:focus {
  background: #4F51F0;
  border-color: #4F51F0;
  color: #fff;
  transform: translateY(-1px);
}
.age-gate__wrapper button.age-gate__submit--no {
  background: #fff;
  color: #0D0D0D;
  border: 1.5px solid #E2E2E2;
}
.age-gate__wrapper button.age-gate__submit--no:hover,
.age-gate__wrapper button.age-gate__submit--no:focus {
  background: #fff;
  border-color: #0D0D0D;
  color: #0D0D0D;
}

.age-gate__errors { color: #c00; font-size: 13px; }
.age-gate__errors:not(:empty) { margin-bottom: 14px; }

.age-gate__additional-information {
  font-size: 11.5px;
  line-height: 1.55;
  color: #888;
  text-align: left;
  background: #FAFAFB;
  border: 1px solid #EFEFF2;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0;
}

@media (max-width: 600px) {
  .age-gate__wrapper { padding: 16px; }
  .age-gate__wrapper .age-gate { padding: 32px 22px 24px; border-radius: 20px; }
  .age-gate__headline { font-size: 22px; }
  .age-gate__subheadline { font-size: 14px; }
  .age-gate__wrapper button.age-gate__submit--yes,
  .age-gate__wrapper button.age-gate__submit--no { width: 100%; }
}
