/* AI Agent Popup - Dark Theme Styles */

/* Overlay */
#aiAgentOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-in;
}

/* Popup Modal */
#aiAgentPopup {
  background: #1a1f2e;
  color: #ffffff;
  border-radius: 16px;
  padding: 40px;
  width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideIn 0.3s ease-out;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Close Button */
#aiAgentClose {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

#aiAgentClose:hover {
  color: #3d7f1f;
}

#aiAgentClose:focus {
  outline: 2px solid #3d7f1f;
  outline-offset: 2px;
}

/* Text Direction - RTL */
#aiAgentPopup {
  direction: rtl;
  text-align: right;
}

/* Icon */
.aiAgent-icon {
  font-size: 48px;
  text-align: center;
  margin: 20px 0;
}

/* Headlines */
.aiAgent-headline {
  font-size: 22px;
  font-weight: bold;
  margin: 20px 0 10px 0;
  line-height: 1.4;
}

.aiAgent-subheadline {
  font-size: 14px;
  color: #e0e0e0;
  margin: 0 0 30px 0;
  line-height: 1.5;
}

/* Buttons */
.aiAgent-button {
  background: #3d7f1f;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  height: 50px;
  margin: 12px 0;
  transition: background 0.3s ease, transform 0.1s ease;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.aiAgent-button:hover {
  background: #2d6b17;
  transform: translateY(-2px);
}

.aiAgent-button:active {
  transform: translateY(0);
}

.aiAgent-button:focus {
  outline: 2px solid #3d7f1f;
  outline-offset: 2px;
}

/* Form Container */
#aiAgentFormContainer {
  margin: 20px 0;
  animation: fadeIn 0.4s ease-in;
}

/* Google Form iframe */
#aiAgentFormContainer iframe {
  width: 100%;
  border: none;
  border-radius: 8px;
}

/* Thank You Content */
#aiAgentThankYou {
  text-align: center;
  animation: fadeIn 0.4s ease-in;
}

#aiAgentThankYou .aiAgent-icon {
  font-size: 64px;
}

#aiAgentThankYou .aiAgent-headline {
  font-size: 24px;
  margin-top: 20px;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
  #aiAgentPopup {
    width: 90%;
    max-width: 500px;
    padding: 30px;
  }

  .aiAgent-headline {
    font-size: 20px;
  }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
  #aiAgentPopup {
    width: 95%;
    max-width: 400px;
    padding: 20px;
    max-height: 95vh;
  }

  #aiAgentClose {
    top: 15px;
    right: 15px;
    font-size: 24px;
  }

  .aiAgent-headline {
    font-size: 18px;
  }

  .aiAgent-subheadline {
    font-size: 13px;
  }

  .aiAgent-button {
    height: 48px;
    font-size: 13px;
    padding: 10px 16px;
  }
}
