/* PollMaster Pro v2 – Public Form Frontend */

.pmp-public-wrap {
  font-family: 'Plus Jakarta Sans', sans-serif;
  max-width: 600px;
  margin: 32px auto;
  padding: 0 16px;
}

/* Header */
.pmp-public-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e0e7ff;
}
.pmp-public-header h2 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  color: #1e1b4b;
}
.pmp-public-header p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

/* Card */
.pmp-public-card {
  background: #fff;
  border: 2px solid #e0e7ff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 24px rgba(99,102,241,.08);
}

/* Fields */
.pmp-public-field {
  margin-bottom: 20px;
}
.pmp-public-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 7px;
}
.pmp-public-field input[type=text],
.pmp-public-field input[type=email],
.pmp-public-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #111827;
  transition: border-color .15s;
  box-sizing: border-box;
}
.pmp-public-field input:focus,
.pmp-public-field textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}
.pmp-public-field small { color: #9ca3af; font-size: 12px; }
.required { color: #dc2626; }
.pmp-optional { color: #9ca3af; font-weight: 400; }

/* Options */
.pmp-pub-opt-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}
.pmp-pub-opt-row input[type=text] {
  flex: 1;
  padding: 9px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 9px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .15s;
}
.pmp-pub-opt-row input:focus { outline:none; border-color:#6366f1; box-shadow:0 0 0 3px rgba(99,102,241,.1); }
.pmp-pub-remove {
  background: none; border: none; cursor: pointer;
  color: #9ca3af; font-size: 16px; padding: 4px 8px;
  border-radius: 6px; transition: .15s;
}
.pmp-pub-remove:hover { color: #dc2626; background: #fef2f2; }

.pmp-btn-add-opt {
  background: transparent;
  border: 2px dashed #c7d2fe;
  color: #6366f1;
  padding: 8px 16px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  margin-top: 4px;
  transition: .15s;
}
.pmp-btn-add-opt:hover { background: #eef2ff; }

/* Error */
.pmp-pub-error {
  color: #dc2626;
  font-size: 13.5px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

/* Submit */
.pmp-pub-submit-btn {
  width: 100%;
  padding: 14px;
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 11px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, transform .1s;
  margin-bottom: 14px;
}
.pmp-pub-submit-btn:hover { background: #4f46e5; }
.pmp-pub-submit-btn:active { transform: scale(.98); }
.pmp-pub-submit-btn:disabled { opacity: .6; cursor: default; }

.pmp-pub-disclaimer {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  margin: 0;
}

/* ── Success state ── */
.pmp-public-success {
  background: #fff;
  border: 2px solid #bbf7d0;
  border-radius: 16px;
  padding: 40px 28px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(16,185,129,.08);
}
.pmp-success-icon { font-size: 56px; margin-bottom: 16px; }
.pmp-public-success h3 { font-size: 22px; font-weight: 700; color: #065f46; margin: 0 0 8px; }
.pmp-public-success > p { color: #6b7280; font-size: 14px; margin: 0 0 18px; }

.pmp-success-shortcode {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #f0fdf4;
  border: 2px solid #bbf7d0;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.pmp-success-shortcode code {
  font-size: 16px;
  font-weight: 700;
  color: #065f46;
  background: none;
  padding: 0;
}
.pmp-btn-copy {
  background: #059669;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.pmp-btn-copy:hover { background: #047857; }

.pmp-success-note {
  font-size: 13px;
  color: #6b7280;
  background: #f9fafb;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 0 20px;
  text-align: left;
  line-height: 1.6;
}

.pmp-pub-new-btn {
  background: transparent;
  border: 2px solid #6366f1;
  color: #6366f1;
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: .15s;
}
.pmp-pub-new-btn:hover { background: #eef2ff; }
