/* Ninja Form Modal WPBakery Addon Styles */

/* When nested in nectar-responsive-text: break color inheritance from parent.
   The Salient core rule `.nectar-responsive-text * { color: inherit }` makes children
   inherit the responsive-text parent color. We must override it with our own explicit colors.
   JS (applyAddonColors) also sets inline color on toggle, but this CSS is the baseline. */
.nectar-responsive-text .ai-wdc-nf-modal-wrap .ai-wdc-nf-modal-open,
.nectar-responsive-text .ai-wdc-nf-modal-wrap .ai-wdc-nf-modal-link,
.nectar-responsive-text .ai-wdc-nf-modal-wrap .ai-wdc-nf-btn-text,
.nectar-responsive-text .ai-wdc-nf-modal-wrap .ai-wdc-nf-btn-icon,
.nectar-responsive-text .ai-wdc-nf-modal-wrap .ai-wdc-nf-btn-icon svg {
  color: #2563eb !important;
}
html.theme-dark .nectar-responsive-text .ai-wdc-nf-modal-wrap .ai-wdc-nf-modal-open,
html.theme-dark .nectar-responsive-text .ai-wdc-nf-modal-wrap .ai-wdc-nf-modal-link,
html.theme-dark .nectar-responsive-text .ai-wdc-nf-modal-wrap .ai-wdc-nf-btn-text,
html.theme-dark .nectar-responsive-text .ai-wdc-nf-modal-wrap .ai-wdc-nf-btn-icon,
html.theme-dark .nectar-responsive-text .ai-wdc-nf-modal-wrap .ai-wdc-nf-btn-icon svg {
  color: #60a5fa !important;
}

.ai-wdc-nf-modal-lock {
  overflow: hidden !important;
}

/* Button only layout: inline link style (blue text, semibold, underline on hover, chevron) */
.ai-wdc-nf-modal-wrap:not(.ai-wdc-nf-modal-wrap--cta) .ai-wdc-nf-modal-open,
.ai-wdc-nf-modal-wrap:not(.ai-wdc-nf-modal-wrap--cta) .ai-wdc-nf-modal-link {
  display: inline-flex;
  align-items: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  font-weight: 600;
  font-size: inherit;
  line-height: inherit;
  color: #2563eb;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.ai-wdc-nf-modal-wrap:not(.ai-wdc-nf-modal-wrap--cta) .ai-wdc-nf-modal-open:hover,
.ai-wdc-nf-modal-wrap:not(.ai-wdc-nf-modal-wrap--cta) .ai-wdc-nf-modal-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

html.theme-dark .ai-wdc-nf-modal-wrap:not(.ai-wdc-nf-modal-wrap--cta) .ai-wdc-nf-modal-open,
html.theme-dark .ai-wdc-nf-modal-wrap:not(.ai-wdc-nf-modal-wrap--cta) .ai-wdc-nf-modal-link {
  color: #60a5fa;
}

html.theme-dark .ai-wdc-nf-modal-wrap:not(.ai-wdc-nf-modal-wrap--cta) .ai-wdc-nf-modal-open:hover,
html.theme-dark .ai-wdc-nf-modal-wrap:not(.ai-wdc-nf-modal-wrap--cta) .ai-wdc-nf-modal-link:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.ai-wdc-nf-modal-wrap:not(.ai-wdc-nf-modal-wrap--cta) .ai-wdc-nf-modal-open .ai-wdc-nf-btn-icon,
.ai-wdc-nf-modal-wrap:not(.ai-wdc-nf-modal-wrap--cta) .ai-wdc-nf-modal-link .ai-wdc-nf-btn-icon {
  margin-left: 4px;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.ai-wdc-nf-modal-wrap:not(.ai-wdc-nf-modal-wrap--cta) .ai-wdc-nf-modal-open .ai-wdc-nf-btn-icon svg,
.ai-wdc-nf-modal-wrap:not(.ai-wdc-nf-modal-wrap--cta) .ai-wdc-nf-modal-link .ai-wdc-nf-btn-icon svg {
  width: 16px;
  height: 16px;
}

/* CTA layout: solid/outline button styles */
.ai-wdc-nf-modal-wrap.ai-wdc-nf-modal-wrap--cta .ai-wdc-nf-modal-open,
.ai-wdc-nf-modal-wrap.ai-wdc-nf-modal-wrap--cta .ai-wdc-nf-modal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px!important; /* px-6 py-3 */
  border-radius: 8px!important; /* rounded-lg */
  font-weight: 500; /* font-medium */
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.10); /* shadow-sm */
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.ai-wdc-nf-btn-text {
  display: inline-flex;
  align-items: center;
}

.ai-wdc-nf-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.ai-wdc-nf-btn-icon svg {
  display: block; /* prevents baseline misalignment */
  width: 18px;
  height: 18px;
}

.ai-wdc-nf-modal-open--primary,
.ai-wdc-nf-modal-link.ai-wdc-nf-modal-open--primary {
  background: #2563eb;
  color: #fff;
}
.ai-wdc-nf-modal-open--primary:hover,
.ai-wdc-nf-modal-link.ai-wdc-nf-modal-open--primary:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.12); /* hover:shadow-md */
}

html.theme-dark .ai-wdc-nf-modal-open--primary,
html.theme-dark .ai-wdc-nf-modal-link.ai-wdc-nf-modal-open--primary {
  background: #155dfc ;
}
html.theme-dark .ai-wdc-nf-modal-open--primary:hover,
html.theme-dark .ai-wdc-nf-modal-link.ai-wdc-nf-modal-open--primary:hover {
  background: #1447e6 ;
}
.ai-wdc-nf-modal-open--secondary,
.ai-wdc-nf-modal-link.ai-wdc-nf-modal-open--secondary {
  background: transparent;
  color: #0f172a;
  border-color: #cbd5e1;
}
.ai-wdc-nf-modal-open--secondary:hover,
.ai-wdc-nf-modal-link.ai-wdc-nf-modal-open--secondary:hover {
  background: #f1f5f9;
}

.ai-wdc-nf-modal-open--link,
.ai-wdc-nf-modal-link.ai-wdc-nf-modal-open--link {
  background: transparent;
  color: #2563eb;
  padding: 0;
  border: none;
  border-radius: 0;
}
.ai-wdc-nf-modal-open--link:hover,
.ai-wdc-nf-modal-link.ai-wdc-nf-modal-open--link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* CTA layout (text + actions row) */
.ai-wdc-nf-cta {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.ai-wdc-nf-cta-text {
  margin: 0;
  text-align: center;
  font-weight: 500; /* font-medium */
  color: #64748b;
  border-radius: 8px;
  font-size: 16px;
  padding: 0px;
}

html.theme-dark .ai-wdc-nf-cta-text {
  color: #94a3b8;
}

.ai-wdc-nf-cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.ai-wdc-nf-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px; /* px-6 py-3 */
  border-radius: 8px; /* rounded-lg */
  font-weight: 500; /* font-medium */
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  background: #fff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.10); /* shadow-sm */
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ai-wdc-nf-cta-link:hover {
  background: #f8fafc;
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.12); /* hover:shadow-md */
}

html.theme-dark .ai-wdc-nf-cta-link {
  background: #1e293b;
  color: #fff;
  border-color: #334155;
}

html.theme-dark .ai-wdc-nf-cta-link:hover {
  background: #334155;
}

html.theme-dark .ai-wdc-nf-modal-open--secondary {
  color: #fff;
  border-color: #334155;
}
html.theme-dark .ai-wdc-nf-modal-open--secondary:hover {
  background: rgba(30, 41, 59, 0.6);
}

.ai-wdc-nf-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ai-wdc-nf-modal.active {
  display: flex;
}

.ai-wdc-nf-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ai-wdc-nf-modal-panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 32px);
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  outline: none;
  display: flex;
  flex-direction: column;
}

html.theme-dark .ai-wdc-nf-modal-panel {
  background: #0f172a;
  border-color: #1e293b;
}

.ai-wdc-nf-modal.active .ai-wdc-nf-modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.ai-wdc-nf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #eef2f7;
  background: rgba(248, 250, 252, 0.6);
}

html.theme-dark .ai-wdc-nf-modal-header {
  border-bottom-color: #1e293b;
  background: rgba(15, 23, 42, 0.6);
}

.ai-wdc-nf-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  line-height: normal;
}
html.theme-dark .ai-wdc-nf-modal-title {
  color: #fff;
}

.ai-wdc-nf-modal-close {
  appearance: none;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 26px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.ai-wdc-nf-modal-close:hover {
  background: rgba(148, 163, 184, 0.25);
  color: #334155;
}
html.theme-dark .ai-wdc-nf-modal-close {
  color: #94a3b8;
}
html.theme-dark .ai-wdc-nf-modal-close:hover {
  background: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
}

.ai-wdc-nf-modal-body {
  padding: 18px;
  overflow: auto;
}

.ai-wdc-nf-modal-empty {
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  font-weight: 600;
}
html.theme-dark .ai-wdc-nf-modal-empty {
  background: rgba(154, 52, 18, 0.1);
  color: #fdba74;
  border-color: rgba(251, 146, 60, 0.35);
}

