/* AI Plugin Page Styles */
.ai-wp-plugin {
  max-width: 800px;
  margin: 0 auto 0;
  text-align: center;
  padding: 20px;
}

.ai-wp-plugin h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.ai-start {
  background: linear-gradient(135deg, #2299d9 0%, #73a7ff 100%);
  color: white;
  padding: 30px;
  border-radius: 12px;
  margin: 30px auto;
}

.ai-start p {
  font-size: 30px;
  margin: 10px 0 0;
  font-weight: 600;
  /* line-height: 1.6; */
}

.ai-start small {
  font-style: oblique;
  color: #40008e;
  font-weight: 600;
}

.ai-subtitle {
  font-size: 1.1em !important;
  opacity: 0.95;
  /* margin-bottom: 25px !important; */
}

.btn-primary {
  background: white;
  color: #667eea;
  padding: 15px 40px;
  font-size: 1.2em;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-primary:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  background: #e8e8e8;
}

/* AI Sections Container - Side by Side Layout */
.ai-sections-container {
  max-width: 1100px;
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Desktop: Side by side layout */
@media (min-width: 769px) {
  .ai-sections-container {
    flex-direction: row;
    gap: 30px;
    align-items: stretch;
  }
}

.ai-features {
  text-align: right;
  background: #f8f9fa;
  padding: 30px;
  border-radius: 12px;
  flex: 1;
  /* max-width: 515px; */
  /* margin: 0 auto; */
}

/* Desktop: Remove auto margin for side-by-side */
@media (min-width: 769px) {
  .ai-features {
    margin: 0;
  }
}

.ai-features h3 {
  font-size: 1.8em;
  margin: 0 25px 25px;
  color: #2c3e50;
}

.ai-features ul {
  list-style: none;
  padding: 0;
}

.ai-features li {
  padding: 12px 0;
  font-size: 1em;
  border-bottom: 1px solid #dee2e6;
  color: #464646;
}

.ai-features li:before {
  content: "✓ ";
  color: #667eea;
  font-weight: bold;
  margin-left: 10px;
}

.ai-features li:last-child {
  border-bottom: none;
}

/* Premium Section Styles */
.ai-premium {
  text-align: center;
  background: linear-gradient(135deg, #f33636 0%, #ee2479 100%);
  color: white;
  padding: 30px;
  border-radius: 12px;
  flex: 1;
  /* margin: 0 auto; */
  box-shadow: 0 4px 15px rgba(238, 90, 36, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Desktop: Remove auto margin for side-by-side */
@media (min-width: 769px) {
  .ai-premium {
    margin: 0;
  }
}

.ai-premium h3 {
  font-size: 1.8em;
  margin: 0 0 15px 0;
  color: white;
}

.ai-premium p {
  font-size: 1.1em;
  line-height: 1.6;
  margin: 15px 0;
  opacity: 0.95;
}

.ai-premium p:last-of-type {
  margin-bottom: 0;
}

.premium-content {
  flex-grow: 1;
  margin-bottom: 20px;
}

.btn-premium {
  background: white;
  color: #ee5a24;
  padding: 12px 30px;
  font-size: 1.1em;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-premium:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  background: #f8f8f8;
}

/* Modal Styles */
.modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: 10% auto;
  padding: 30px;
  border: none;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  text-align: center;
  direction: rtl;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
}

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

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  background: none;
  border: none;
  line-height: 1;
}

.close:hover {
  color: #333;
}

.modal-content h3 {
  margin: 0 0 15px 0;
  font-size: 1.6em;
  color: #2c3e50;
}

.modal-content p {
  color: #666;
  /* margin-bottom: 20px; */
  line-height: 1.6;
}

.modal input[type="email"] {
  width: 100%;
  padding: 14px;
  margin: 15px 0 5px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  direction: ltr;
  text-align: center;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

#pluginForm .privacy-policy-group {
  margin: 0;
}

#pluginForm .privacy-policy-group label {
  color: #666;
  margin-bottom: -2px !important;
}

#pluginForm .privacy-policy-group a {
  color: #4f6d81;
  text-decoration: none;
}

.modal input[type="email"]:focus {
  outline: none;
  border-color: #667eea;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #5d6bf3 0%, #7a56d9 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover:not(:disabled) {
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#pluginMessage {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  font-size: 1em;
  line-height: 1.5;
}

#pluginMessage.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#pluginMessage.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
  .ai-wp-plugin h2 {
    font-size: 2em;
  }

  .ai-start p {
    font-size: 1.1em;
  }

  .modal-content {
    margin: 20% auto;
    padding: 20px;
  }
}

/* Onboarding Form Styles */
.verification-notice {
  background: #e7f3ff;
  padding: 15px;
  border-radius: 8px;
  margin: 0 30px;
  text-align: center;
  border: 2px solid #0066cc;
}

.verification-notice p {
  margin: 0;
  color: #0066cc;
}

.verification-notice p:first-child {
  font-size: 1.1em;
}

.verification-notice p:last-child {
  margin-top: 5px;
  font-size: 0.9em;
  color: #666;
}

/* Form Styles */
form {
  max-width: 700px;
  margin: 0 auto;
  padding: 30px;
  background: #f6f6f6;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#pluginForm {
  margin: 0;
  padding: 0;
}

.onboard-language-toggle {
  padding: 15px 30px 0;
  display: flex;
  justify-content: flex-end;
  /* Default: right side for LTR */
}

.onboard-form-group {
  margin-bottom: 25px;
  text-align: right;
}

/* English language override */
html[lang="en"] .onboard-form-group {
  text-align: left;
}

.onboard-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #2c3e50;
  font-size: 1em;
}

.onboard-form-group label small {
  font-weight: normal;
  color: #666;
  font-size: 0.85em;
}

.onboard-form-group input[type="text"],
.onboard-form-group input[type="email"],
.onboard-form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  direction: rtl;
}

/* English language override for input direction */
html[lang="en"] .onboard-form-group input[type="text"],
html[lang="en"] .onboard-form-group input[type="email"],
html[lang="en"] .onboard-form-group textarea {
  direction: ltr;
}

/* Domain input always LTR regardless of language */
#domain {
  direction: ltr !important;
}

/* Language visibility controls */
.lang-en,
.lang-he {
  display: inline;
}

/* Default: show English, hide Hebrew (since page loads as lang="en") */
.lang-en {
  display: inline;
}

.lang-he {
  display: none;
}

/* Hide Hebrew when in English mode */
html[lang="en"] .lang-he {
  display: none;
}

html[lang="en"] .lang-en {
  display: inline;
}

/* Hide English when in Hebrew mode */
html[lang="he"] .lang-en {
  display: none;
}

html[lang="he"] .lang-he {
  display: inline;
}

.onboard-form-group input[type="text"]:focus,
.onboard-form-group input[type="email"]:focus,
.onboard-form-group textarea:focus {
  outline: none;
  border-color: #667eea;
}

.onboard-form-group input[readonly] {
  background-color: #f0f0f0;
  cursor: not-allowed;
  color: #666;
}

.onboard-form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.onboard-form-group small {
  display: block;
  margin-top: 5px;
  color: #666;
  font-size: 0.85em;
}

/* Submit Button */
form button[type="submit"] {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #5d6bf3 0%, #7a56d9 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

form button[type="submit"]:hover {
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

form button[type="submit"]:active {
  transform: translateY(0);
}

/* Success/Error Messages */
.success {
  max-width: 700px;
  margin: 0 auto;
  padding: 30px;
  background: #d4edda;
  border: 2px solid #c3e6cb;
  border-radius: 12px;
  text-align: center;
}

.success h3 {
  color: #155724;
  margin: 0 0 20px 0;
  font-size: 1.5em;
}

.credentials {
  background: white;
  color: cornflowerblue;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: left;
  direction: ltr;
}

.credentials h4 {
  color: #2c3e50;
  margin: 20px 0 10px 0;
  font-size: 1.2em;
  border-bottom: 2px solid #667eea;
  padding-bottom: 8px;
}

.credentials h4:first-child {
  margin-top: 0;
}

.credentials p {
  margin: 10px 0;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 4px;
  word-break: break-all;
}

.credentials strong {
  color: #667eea;
  display: inline-block;
  min-width: 150px;
}

.credentials ol {
  text-align: left;
  padding-left: 20px;
  margin: 15px 0;
  direction: ltr;
}

.credentials ol li {
  margin: 8px 0;
  line-height: 1.6;
}

/* Next Steps language-specific alignment */
html[lang="he"] .next-steps-list {
  text-align: right;
  padding-right: 20px;
  padding-left: 0;
  direction: rtl;
}

html[lang="en"] .next-steps-list {
  text-align: left;
  padding-left: 20px;
  padding-right: 0;
  direction: ltr;
}

/* Next Steps title alignment */
.credentials h4 {
  text-align: left;
}

html[lang="he"] .credentials h4 {
  text-align: right;
}

.error {
  max-width: 700px;
  margin: 30px auto;
  padding: 30px;
  background: #f8d7da;
  border: 2px solid #f5c6cb;
  border-radius: 12px;
  text-align: center;
}

.error h3 {
  color: #721c24;
  margin: 0;
  font-size: 1.3em;
}

/* Responsive */
@media (max-width: 768px) {
  form,
  .success,
  .error {
    margin: 15px 0px;
    padding: 15px;
  }

  .verification-notice {
    margin: 0;
  }

  .onboard-language-toggle {
    padding: 15px 0 0;
  }

  .onboard-form-group label {
    font-size: 0.95em;
  }

  .onboard-form-group input,
  .onboard-form-group textarea {
    font-size: 14px;
  }

  /* Ensure placeholder text is also smaller on mobile */
  .onboard-form-group input::placeholder,
  .onboard-form-group textarea::placeholder {
    font-size: 14px;
  }

  form button[type="submit"] {
    font-size: 1.1em;
  }

  .credentials strong {
    display: block;
    margin-bottom: 5px;
  }
}

.faq-item {
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  background-color: #f9f9f9;
  position: relative;
}

.faq-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.faq-item-number {
  font-weight: bold;
  color: #666;
}

.btn-remove-faq {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.9em;
}

.btn-remove-faq:hover {
  background-color: #c82333;
}

.btn-add-faq {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 500;
  margin: 15px;
  transition: background-color 0.2s;
}

.btn-add-faq:hover {
  background-color: #218838;
}

.btn-add-faq:active {
  transform: translateY(1px);
}

.faq-item input,
.faq-item textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

.faq-item label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  font-size: 0.9em;
}

/* Process Flow Styles */
.process-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 25px 0;
  flex-wrap: wrap;
  gap: 15px;
}

.flow-step {
  background: #3c82f5;
  border: 2px solid #5a7edd;
  border-radius: 100%;
  padding: 38px 16px;
  text-align: center;
  min-width: 170px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.flow-step:hover {
  background: #231ad7c2;
}

.step-number {
  background: white;
  color: #667eea;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  margin: 0 auto 12px;
}

.step-content h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  color: white;
  font-weight: 600;
}

.flow-arrow {
  color: rgba(255, 255, 255, 0.8);
  font-weight: bold;
  font-size: 30px;
}

/* Desktop arrow controls */
@media (min-width: 769px) {
  .arrow-1 {
    transform: rotate(180deg);
  }

  .arrow-2 {
    transform: rotate(180deg);
  }
}

/* Responsive for process flow */
@media (max-width: 768px) {
  .process-flow {
    /* flex-direction: column;
    gap: 10px; */
    display: none;
  }

  .flow-arrow {
    margin: 5px 0;
  }

  .arrow-1 {
    transform: rotate(90deg);
  }

  .arrow-2 {
    transform: rotate(90deg);
  }

  .flow-step {
    min-width: 100%;
    /* max-width: 250px; */
  }
}

/* Gutman Video Styles */
.gutman-video {
  text-align: center;
  margin: 25px 0 20px 0;
}

/* Desktop: side by side flex layout */
@media (min-width: 769px) {
  .gutman-video {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 20px;
  }

  .video-caption {
    margin-top: 0;
  }
}

.gutman-video video {
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  /* width: 350px; */
  height: 200px;
  max-width: 100%;
}

.gutman-video .video-caption {
  color: #ffff00;
  /* border: solid 2px #ffff00; */
  display: inline-block;
  padding: 4px 12px;
  margin-top: 10px;
  font-size: 16px;
  font-style: oblique;
  font-weight: 500;
  border-radius: 4px;
  background: rgba(255, 255, 0, 0.1);
}

/* Responsive video */
@media (max-width: 768px) {
  .gutman-video video {
    width: 100%;
    /* max-width: 300px; */
    height: auto;
  }
}

@media (max-width: 480px) {
  .gutman-video video {
    max-width: 70%;
    height: auto;
  }
}

/* No Credit Card Text */
.no-credit-card {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin-top: 2px;
  text-align: center;
  font-style: italic;
  font-weight: bold;
}

.gutman-video {
  position: relative;
}

#gutman-click-overlay,
#gutman-click-form {
  position: absolute;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 4px;
  pointer-events: none;
  transition: opacity 0.5s ease;
  white-space: nowrap;
  /* z-index: 10; */
  transform: translateX(-50%);
}

#timerBtn::after {
  content: " ⏱️";
  vertical-align: 1px;
}

#timerCount {
  display: inline-block;
  min-width: 25px;
}
/* Mobile positioning */
@media (max-width: 768px) {
  #gutman-click-overlay,
  #gutman-click-form {
    bottom: 100px;
    left: 50%;
  }
}

/* Desktop positioning */
@media (min-width: 769px) {
  #gutman-click-overlay {
    bottom: 15px;
    left: 62%;
  }
}

@media (min-width: 769px) {
  #gutman-click-form {
    bottom: 15px;
    left: 52%;
  }
}

/* Mobile-specific styles for AI Plugin Page */
@media (max-width: 768px) {
  /* Remove padding on mobile for ai-wp-plugin */
  .ai-wp-plugin {
    padding: 0;
  }

  /* Make container 100% width on mobile for this page only - target body.annual */
  body.annual .container {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
}
