/* ==========================================================================
   ClassKit Global - Free Tools Soft-Gate Modal Stylesheet
   Educator lead capture for 100% free classroom printables
   ========================================================================== */

.free-gate-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.free-gate-backdrop.active {
  opacity: 1;
}

.free-gate-card {
  width: 100%;
  max-width: 480px;
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
  overflow: hidden;
  position: relative;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.free-gate-backdrop.active .free-gate-card {
  transform: translateY(0) scale(1);
}

.free-gate-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: all 0.15s ease;
  z-index: 5;
}

.free-gate-close:hover {
  background: #E2E8F0;
  color: #0F172A;
  transform: scale(1.05);
}

.free-gate-header {
  padding: 28px 24px 18px;
  text-align: center;
  background: linear-gradient(180deg, #ECFDF5 0%, #FFFFFF 100%);
  border-bottom: 1px solid #E2E8F0;
}

.free-gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 1px solid #A7F3D0;
  font-size: 11.5px;
  font-weight: 700;
  color: #059669;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.1);
}

.free-gate-title {
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.free-gate-desc {
  font-size: 13.5px;
  color: #64748B;
  margin: 0;
  line-height: 1.5;
}

.free-gate-body {
  padding: 22px 24px 16px;
}

.free-gate-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.free-gate-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #334155;
  line-height: 1.4;
}

.free-gate-benefit-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.free-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-free-google {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  color: #1E293B;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-free-google:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.btn-free-guest {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  background: #059669;
  border: none;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.btn-free-guest:hover {
  background: #047857;
  transform: translateY(-1px);
}

.free-gate-footer {
  padding: 10px 20px 16px;
  text-align: center;
  font-size: 11.5px;
  color: #94A3B8;
  border-top: 1px solid #F1F5F9;
}

@media print {
  .free-gate-backdrop {
    display: none !important;
  }
}
