#aiflow-gate, #aiflow-gate * {
  box-sizing: border-box;
}

#aiflow-gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}

#aiflow-gate.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s ease, visibility 0s linear 0s;
}

#aiflow-gate .aiflow-gate-container {
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  background: #ffffff;
  border-radius: 4px;
  display: flex;
  position: relative;
  font-family: "Montserrat", sans-serif;
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.28s ease;
}

#aiflow-gate.is-open .aiflow-gate-container {
  transform: translateY(0) scale(1);
  opacity: 1;
}

#aiflow-gate .aiflow-gate-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 100;
  padding: 5px;
  line-height: 0;
}

#aiflow-gate .aiflow-gate-image-view {
  flex: 1;
  position: relative;
}

#aiflow-gate .aiflow-gate-image-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#aiflow-gate .aiflow-gate-content {
  flex: 1.2;
  background: #FFF2F9;
  padding: 35px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: "Montserrat", sans-serif;
}

#aiflow-gate .aiflow-gate-title {
  font-family: "Montserrat", sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 12px 0;
  letter-spacing: -1px;
}

#aiflow-gate .aiflow-gate-subtitle {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  color: #E10174;
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 24px 0;
}

#aiflow-gate .aiflow-gate-input-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 12px;
}

#aiflow-gate .aiflow-gate-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #0000003D;
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  outline: none;
  background: #ffffff;
  color: #000000;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#aiflow-gate .aiflow-gate-input.has-error {
  border-color: #E10174;
  box-shadow: 0 0 0 3px rgba(225, 1, 116, 0.12);
}

@keyframes aiflowGateShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

#aiflow-gate .aiflow-gate-input.shake {
  animation: aiflowGateShake 0.32s ease;
}

#aiflow-gate .aiflow-gate-error {
  display: block;
  min-height: 0;
  margin-top: 6px;
  margin-bottom: 16px;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  color: #E10174;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#aiflow-gate .aiflow-gate-error.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#aiflow-gate .aiflow-gate-continue-btn {
  width: 100%;
  background-color: #E10174;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  padding: 0.875rem 2rem;
  margin-bottom: 24px;
  transition: filter 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

#aiflow-gate .aiflow-gate-continue-btn:hover {
  filter: brightness(1.1);
}

#aiflow-gate .aiflow-gate-continue-btn:active {
  transform: scale(0.985);
}

#aiflow-gate .aiflow-gate-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}

#aiflow-gate .aiflow-gate-divider::before,
#aiflow-gate .aiflow-gate-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #0000003D;
}

#aiflow-gate .aiflow-gate-divider span {
  padding: 0 14px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  color: #00000080;
  font-weight: 500;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

#aiflow-gate .aiflow-gate-promo {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  color: #5B5B5B;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.5px;
  text-align: center;
  margin: 0 0 24px 0;
}

#aiflow-gate .aiflow-gate-promo strong {
  color: #5B5B5B;
  font-weight: 600;
}

#aiflow-gate .aiflow-gate-promo .aiflow-gate-highlight {
  color: #E10174;
  font-weight: 600;
}

#aiflow-gate .aiflow-gate-consult-btn {
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #f3bcda;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #E10174;
  padding: 0.875rem 2rem;
  margin-bottom: 24px;
}

#aiflow-gate .aiflow-gate-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#aiflow-gate .aiflow-gate-footer img {
  display: block;
}

#aiflow-gate .aiflow-gate-footer-text {
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #E10174;
  font-style: italic;
}

#aiflow-gate .aiflow-gate-content.aiflow-gate-limit-active {
  padding: 50px;
}

#aiflow-gate .aiflow-gate-limit-heading {
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 14px 0;
  letter-spacing: -1px;
  line-height: 1.25;
}

#aiflow-gate .aiflow-gate-limit-heading .aiflow-gate-highlight {
  color: #E10174;
  font-weight: 600;
}

#aiflow-gate .aiflow-gate-limit-subtitle {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #E10174;
  letter-spacing: -0.5px;
  margin: 0 0 14px 0;
}

#aiflow-gate .aiflow-gate-limit-body {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  color: #000000B2;
  line-height: 1.6;
  font-weight: 500;
  margin: 0 0 14px 0;
}

#aiflow-gate .aiflow-gate-limit-cta {
  display: block;
  width: 100%;
  background: #E10174;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 10px;
}

#aiflow-gate .aiflow-gate-limit-note {
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  color: #00000080;
  margin: 0;
}

@media (max-width: 800px) {
  #aiflow-gate .aiflow-gate-container {
    flex-direction: column;
    max-width: 450px;
  }

  #aiflow-gate .aiflow-gate-image-view {
    display: none;
  }

  #aiflow-gate .aiflow-gate-content {
    padding: 30px 20px;
  }

  #aiflow-gate .aiflow-gate-title {
    font-size: 24px;
  }

  #aiflow-gate .aiflow-gate-limit-heading {
    font-size: 22px;
  }
}

@media (max-width: 648px) {
  #aiflow-gate .aiflow-gate-content.aiflow-gate-limit-active {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #aiflow-gate,
  #aiflow-gate .aiflow-gate-container {
    transition-duration: 0.01ms !important;
  }
  #aiflow-gate .aiflow-gate-container {
    transform: none !important;
  }
  #aiflow-gate .aiflow-gate-input.shake {
    animation: none !important;
  }
}
