/* fe-web-preview.css — minimal preview form styling */

.fwp-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
}

.fwp-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 12px;
  color: #475569;
}

.fwp-toolbar select {
  padding: 4px 8px;
  font-size: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
}

.fwp-toolbar .spacer { flex: 1; }

.fwp-form {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px 28px;
  max-width: 780px;
  margin: 0 auto;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.fwp-empty {
  text-align: center;
  color: #94a3b8;
  padding: 60px 20px;
  font-size: 13px;
}

.fwp-section {
  margin: 20px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #1e293b;
}
.fwp-section-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1e293b;
}
.fwp-section-end { height: 6px; }

.fwp-field {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fwp-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}
.fwp-req { color: #dc2626; font-weight: 700; }

.fwp-hint {
  font-size: 11px;
  color: #94a3b8;
  font-style: italic;
  line-height: 1.35;
}

.fwp-input {
  width: 100%;
  padding: 7px 10px;
  font-size: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  color: #0f172a;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.fwp-input:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15);
}

textarea.fwp-input { resize: vertical; min-height: 56px; }

.fwp-checklist {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 2px;
}
.fwp-check-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
}
.fwp-check-inline input[type="checkbox"] {
  accent-color: #7c3aed;
  width: 14px;
  height: 14px;
}

.fwp-note {
  background: #f1f5f9;
  border-left: 3px solid #7c3aed;
  padding: 10px 12px;
  border-radius: 4px;
}
.fwp-note-label {
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
}

.fwp-repeat {
  background: #fef9c3;
  border: 1px dashed #ca8a04;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 14px 0;
}
.fwp-repeat-label {
  font-size: 13px;
  font-weight: 600;
  color: #854d0e;
}
.fwp-repeat-note {
  font-size: 11px;
  color: #a16207;
  font-style: italic;
  margin-top: 3px;
}

.fwp-field-error .fwp-input {
  border-color: #dc2626;
  background: #fef2f2;
}
.fwp-field-error .fwp-input:focus {
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}
.fwp-error-msg {
  font-size: 11px;
  color: #dc2626;
  font-weight: 500;
}

.fwp-hidden {
  display: none !important;
}

.fwp-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 12px;
  color: #475569;
  position: sticky;
  bottom: 0;
}
.fwp-footer .stat { display: inline-flex; align-items: center; gap: 5px; }
.fwp-footer .stat b { color: #0f172a; font-weight: 600; }
.fwp-footer .stat.err b { color: #dc2626; }
.fwp-footer .spacer { flex: 1; }
