.nfr-container {
  max-width: 720px;
  margin: 30px auto;
  padding: 32px 24px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #2d3748;
}
.nfr-header { text-align: center; margin-bottom: 32px; }
.nfr-header h1 { font-size: 26px; color: #2d3748; margin: 0 0 12px 0; }
.nfr-header p { font-size: 16px; color: #4a5568; line-height: 1.5; margin: 0; }
.nfr-promo {
  background: #f0fdf4; border-left: 4px solid #22c55e;
  padding: 14px 18px; margin: 20px 0 28px 0; border-radius: 6px;
  font-size: 15px; color: #166534;
}
.nfr-promo strong { color: #14532d; }
.nfr-section {
  background: #ffffff; border: 1px solid #e2e8f0;
  border-radius: 10px; padding: 24px 20px; margin-bottom: 20px;
}
.nfr-section h2 { font-size: 18px; color: #2d3748; margin: 0 0 18px 0; }
.nfr-field { margin-bottom: 18px; }
.nfr-label {
  display: block; font-size: 14px; font-weight: 600;
  color: #4a5568; margin-bottom: 6px;
}
.nfr-label .opt { color: #a0aec0; font-weight: 400; }
.nfr-input, .nfr-textarea {
  width: 100%; padding: 12px 14px; font-size: 15px;
  border: 1px solid #cbd5e0; border-radius: 8px;
  background: #ffffff; color: #2d3748;
  box-sizing: border-box; font-family: inherit;
}
.nfr-input:focus, .nfr-textarea:focus {
  outline: none; border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}
.nfr-textarea { resize: vertical; min-height: 100px; }
.nfr-search-wrap { position: relative; }
.nfr-search-results {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #ffffff; border: 1px solid #cbd5e0;
  border-radius: 8px; margin-top: 4px;
  max-height: 280px; overflow-y: auto; z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); display: none;
}
.nfr-search-results.active { display: block; }
.nfr-search-item {
  padding: 10px 14px; cursor: pointer; font-size: 14px;
  border-bottom: 1px solid #f1f5f9; color: #2d3748;
}
.nfr-search-item:last-child { border-bottom: none; }
.nfr-search-item:hover { background: #f0fdf4; }
.nfr-search-empty {
  padding: 14px; color: #718096;
  font-size: 14px; text-align: center;
}
.nfr-selected {
  background: #f0fdf4; border: 1px solid #22c55e;
  border-radius: 8px; padding: 10px 14px; margin-top: 8px;
  font-size: 14px; color: #14532d;
  display: none; justify-content: space-between; align-items: center;
}
.nfr-selected.active { display: flex; }
.nfr-selected-clear {
  background: none; border: none; color: #16a34a;
  cursor: pointer; font-size: 13px; padding: 4px 8px;
}
.nfr-stars { display: flex; gap: 6px; }
.nfr-star {
  font-size: 32px; cursor: pointer; color: #e2e8f0;
  transition: color 0.15s; user-select: none;
}
.nfr-star.active, .nfr-star.hover { color: #fbbf24; }
.nfr-submit {
  width: 100%; padding: 16px 24px;
  background: #22c55e; color: #ffffff;
  border: none; border-radius: 8px;
  font-size: 17px; font-weight: 600;
  cursor: pointer; margin-top: 12px;
  transition: background 0.15s;
}
.nfr-submit:hover:not(:disabled) { background: #16a34a; }
.nfr-submit:disabled { background: #cbd5e0; cursor: not-allowed; }
.nfr-error {
  color: #dc2626; font-size: 13px;
  margin-top: 6px; display: none;
}
.nfr-error.active { display: block; }
.nfr-success { display: none; text-align: center; padding: 40px 20px; }
.nfr-success.active { display: block; }
.nfr-success-icon { font-size: 64px; margin-bottom: 16px; }
.nfr-success h2 { font-size: 26px; color: #14532d; margin: 0 0 16px 0; }
.nfr-success p { font-size: 16px; color: #4a5568; line-height: 1.6; margin: 0 0 20px 0; }
.nfr-code-box {
  background: #f0fdf4; border: 2px dashed #22c55e;
  border-radius: 12px; padding: 24px; margin: 24px 0;
}
.nfr-code {
  font-size: 32px; font-weight: 700; letter-spacing: 3px;
  color: #14532d; margin: 8px 0;
}
.nfr-code-details {
  font-size: 14px; color: #4a5568;
  margin-top: 12px; line-height: 1.5;
}
.nfr-cta {
  display: inline-block; background: #22c55e; color: #ffffff;
  padding: 14px 32px; border-radius: 8px;
  text-decoration: none; font-weight: 600; margin-top: 16px;
}
@media (max-width: 600px) {
  .nfr-container { padding: 20px 16px; }
  .nfr-header h1 { font-size: 22px; }
  .nfr-section { padding: 18px 16px; }
  .nfr-star { font-size: 36px; }
}
