/* Side-by-side live form preview */
.form-preview-page {
  padding-bottom: 4rem;
  background: #f5f7fb;
}

.witc-fp {
  max-width: 1200px;
  margin: 0 auto;
  color: #112337;
}

.witc-fp__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2563eb;
}

.witc-fp__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.15;
  color: #0f1c2e;
}

.witc-fp__intro {
  margin: 0 0 0.75rem;
  color: #4b5563;
  line-height: 1.55;
  max-width: 46rem;
}

.witc-fp__count {
  margin: 0 0 1.25rem;
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e3a8a;
  font-size: 0.9rem;
  font-weight: 700;
}

.witc-fp__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

@media (min-width: 900px) {
  .witc-fp__tabs {
    display: none;
  }
}

.witc-fp__tab {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.witc-fp__tab.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.witc-fp__cols {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .witc-fp__cols {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* Mobile: show one panel at a time via tabs */
@media (max-width: 899px) {
  .witc-fp__panel {
    display: none;
  }

  .witc-fp__panel.is-active {
    display: block;
  }
}

.witc-fp__panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 28, 46, 0.06);
}

.witc-fp__panel-head {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid #eef0f3;
  background: #f8fafc;
}

.witc-fp__panel--original .witc-fp__panel-head {
  border-top: 3px solid #7c3aed;
}

.witc-fp__panel--fluent .witc-fp__panel-head {
  border-top: 3px solid #2563eb;
}

.witc-fp__panel-head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  color: #0f1c2e;
}

.witc-fp__panel-meta {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7280;
}

.witc-fp__form {
  padding: 1.15rem;
}

.witc-fp__form .gform_wrapper,
.witc-fp__form .frm-fluent-form,
.witc-fp__form .fluentform {
  margin: 0;
}

.witc-fp__form .gform_heading {
  display: none;
}

.witc-fp__form .ff-el-form-control,
.witc-fp__form input.ff-el-form-control,
.witc-fp__form textarea.ff-el-form-control,
.witc-fp__form .gform_wrapper input,
.witc-fp__form .gform_wrapper textarea,
.witc-fp__form .gform_wrapper select {
  width: 100%;
  max-width: 100%;
}

.witc-fp__missing {
  margin: 0;
  color: #b00020;
  font-weight: 600;
}

.witc-fp__footer-note {
  margin: 1.5rem 0 0;
}

.witc-fp__footer-note a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.witc-fp__footer-note a:hover {
  text-decoration: underline;
}
