/**
 * FeedZen Frontend Styles
 */

/* General Styles */
.feedzen-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: #333;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.feedzen-container * {
  box-sizing: border-box;
}

.feedzen-container h1,
.feedzen-container h2,
.feedzen-container h3,
.feedzen-container h4,
.feedzen-container h5,
.feedzen-container h6 {
  margin-top: 0;
  font-weight: 600;
  line-height: 1.3;
}

.feedzen-container p {
  margin-bottom: 1em;
}

.feedzen-container a {
  color: #4A6CF7;
  text-decoration: none;
}

.feedzen-container a:hover {
  text-decoration: underline;
}

.feedzen-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #4A6CF7;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
}

.feedzen-button:hover {
  background-color: #3a5ad9;
  text-decoration: none;
}

.feedzen-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.3);
}

/* Feedback Widget */
.feedzen-widget {
  position: fixed;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.feedzen-widget-bottom-right {
  right: 20px;
  bottom: 20px;
}

.feedzen-widget-bottom-left {
  left: 20px;
  bottom: 20px;
}

.feedzen-widget-top-right {
  right: 20px;
  top: 20px;
}

.feedzen-widget-top-left {
  left: 20px;
  top: 20px;
}

.feedzen-widget-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.feedzen-widget-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.feedzen-widget-icon {
  display: flex;
  align-items: center;
  margin-right: 8px;
}

.feedzen-widget-icon svg {
  width: 20px;
  height: 20px;
}

.feedzen-widget-text {
  font-weight: 500;
}

.feedzen-widget-container {
  display: none;
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 360px;
  max-width: 90vw;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.feedzen-widget-bottom-left .feedzen-widget-container {
  left: 0;
  right: auto;
}

.feedzen-widget-top-right .feedzen-widget-container {
  bottom: auto;
  top: 70px;
}

.feedzen-widget-top-left .feedzen-widget-container {
  bottom: auto;
  top: 70px;
  left: 0;
  right: auto;
}

.feedzen-widget-header {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feedzen-widget-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.feedzen-widget-close {
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.feedzen-widget-close:hover {
  opacity: 1;
}

.feedzen-widget-content {
  padding: 20px;
}

.feedzen-widget-subtitle {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 15px;
  color: #666;
}

.feedzen-widget-step {
  display: none;
}

.feedzen-widget-step.active {
  display: block;
}

.feedzen-widget-types {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.feedzen-widget-type {
  flex: 1 0 calc(33.333% - 10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 10px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.feedzen-widget-type:hover {
  border-color: #4A6CF7;
  background-color: rgba(74, 108, 247, 0.05);
}

.feedzen-widget-type-icon {
  margin-bottom: 10px;
  color: #4A6CF7;
}

.feedzen-widget-type-icon svg {
  width: 24px;
  height: 24px;
}

.feedzen-widget-type-label {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.feedzen-widget-back {
  background: none;
  border: none;
  color: #666;
  font-size: 14px;
  padding: 0;
  margin-bottom: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.feedzen-widget-back:before {
  content: "←";
  margin-right: 5px;
}

.feedzen-widget-back:hover {
  color: #4A6CF7;
}

.feedzen-form-group {
  margin-bottom: 15px;
}

.feedzen-form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  font-size: 14px;
}

.feedzen-form-group input,
.feedzen-form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.feedzen-form-group input:focus,
.feedzen-form-group textarea:focus {
  outline: none;
  border-color: #4A6CF7;
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

.feedzen-form-submit {
  margin-top: 20px;
  text-align: right;
}

.feedzen-submit-button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.feedzen-submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.feedzen-widget-thank-you {
  text-align: center;
  padding: 20px 0;
}

.feedzen-widget-thank-you-icon {
  margin-bottom: 15px;
}

.feedzen-widget-thank-you-message {
  font-size: 16px;
  margin-bottom: 20px;
}

.feedzen-widget-new-feedback {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* FAQ Styles */
.feedzen-faq {
  margin-bottom: 40px;
}

.feedzen-faq-header {
  margin-bottom: 30px;
  text-align: center;
}

.feedzen-faq-title {
  font-size: 32px;
  margin-bottom: 10px;
}

.feedzen-faq-subtitle {
  font-size: 18px;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

.feedzen-faq-search {
  max-width: 600px;
  margin: 0 auto 30px;
  position: relative;
}

.feedzen-faq-search-input {
  width: 100%;
  padding: 12px 20px;
  padding-left: 45px;
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.feedzen-faq-search-input:focus {
  outline: none;
  border-color: #4A6CF7;
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

.feedzen-faq-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

.feedzen-faq-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.feedzen-faq-category {
  padding: 8px 16px;
  border-radius: 50px;
  background-color: #f5f5f5;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.feedzen-faq-category:hover {
  background-color: #e0e0e0;
}

.feedzen-faq-category.active {
  background-color: #4A6CF7;
  color: #fff;
}

.feedzen-faq-items {
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid #e0e0e0;
}

.feedzen-faq-item {
  border-bottom: 1px solid #e0e0e0;
}

.feedzen-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
}

.feedzen-faq-question h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.feedzen-faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #4A6CF7;
  transition: transform 0.3s ease;
}

.feedzen-faq-item.active .feedzen-faq-toggle {
  transform: rotate(45deg);
}

.feedzen-faq-answer {
  display: none;
  padding: 0 0 20px;
}

.feedzen-faq-item.active .feedzen-faq-answer {
  display: block;
}

.feedzen-faq-pagination {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.feedzen-faq-pagination-button {
  padding: 8px 16px;
  margin: 0 5px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: #fff;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.feedzen-faq-pagination-button:hover {
  background-color: #f5f5f5;
}

.feedzen-faq-pagination-button.active {
  background-color: #4A6CF7;
  border-color: #4A6CF7;
  color: #fff;
}

/* Support Hub Styles */
.feedzen-support-hub {
  margin-bottom: 40px;
}

.feedzen-support-hub-header {
  margin-bottom: 30px;
  text-align: center;
}

.feedzen-support-hub-title {
  font-size: 32px;
  margin-bottom: 10px;
}

.feedzen-support-hub-subtitle {
  font-size: 18px;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

.feedzen-support-hub-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feedzen-support-hub-faqs {
  flex: 1;
  min-width: 300px;
}

.feedzen-support-hub-feedback {
  flex: 1;
  min-width: 300px;
}

.feedzen-support-hub-section-title {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #4A6CF7;
}

/* Dark Mode Styles */
.feedzen-dark-mode {
  color: #f5f5f5;
}

.feedzen-dark-mode .feedzen-widget-container {
  background-color: #2d2d2d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feedzen-dark-mode .feedzen-widget-subtitle {
  color: #ccc;
}

.feedzen-dark-mode .feedzen-widget-type {
  border-color: #444;
  background-color: #333;
}

.feedzen-dark-mode .feedzen-widget-type:hover {
  border-color: #4A6CF7;
  background-color: rgba(74, 108, 247, 0.15);
}

.feedzen-dark-mode .feedzen-form-group input,
.feedzen-dark-mode .feedzen-form-group textarea {
  background-color: #333;
  border-color: #444;
  color: #f5f5f5;
}

.feedzen-dark-mode .feedzen-form-group input:focus,
.feedzen-dark-mode .feedzen-form-group textarea:focus {
  border-color: #4A6CF7;
}

.feedzen-dark-mode .feedzen-widget-back {
  color: #ccc;
}

.feedzen-dark-mode .feedzen-faq-search-input {
  background-color: #333;
  border-color: #444;
  color: #f5f5f5;
}

.feedzen-dark-mode .feedzen-faq-category {
  background-color: #444;
  color: #f5f5f5;
}

.feedzen-dark-mode .feedzen-faq-category:hover {
  background-color: #555;
}

.feedzen-dark-mode .feedzen-faq-items {
  border-color: #444;
}

.feedzen-dark-mode .feedzen-faq-item {
  border-color: #444;
}

.feedzen-dark-mode .feedzen-faq-question h3 {
  color: #f5f5f5;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .feedzen-widget-container {
    width: 100%;
    max-width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 8px 8px 0 0;
  }

  .feedzen-support-hub-content {
    flex-direction: column;
  }

  .feedzen-faq-title,
  .feedzen-support-hub-title {
    font-size: 28px;
  }

  .feedzen-faq-subtitle,
  .feedzen-support-hub-subtitle {
    font-size: 16px;
  }
}