.nh-form-embed {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  max-width: 36rem;
  --nh-text: #1a1a1a;
  --nh-muted: #4b5563;
  --nh-required: #b45309;
  --nh-input-text: #1a1a1a;
  --nh-input-bg: #ffffff;
  --nh-input-border: #d1d5db;
  --nh-button-bg: #b45309;
  --nh-button-text: #ffffff;
  --nh-error: #991b1b;
  --nh-error-bg: #fef2f2;
  --nh-error-border: #fecaca;
  --nh-success: #065f46;
  --nh-success-bg: #ecfdf5;
  --nh-success-border: #a7f3d0;
  color: var(--nh-text);
}

.nh-form-embed.nh-form-embed--inherit {
  color: inherit;
}

.nh-form-embed.nh-form-embed--inherit .nh-form-desc,
.nh-form-embed.nh-form-embed--inherit .nh-form-title {
  color: inherit;
}

.nh-form-embed.nh-form-embed--inherit label,
.nh-form-embed.nh-form-embed--inherit .nh-field-label {
  color: inherit;
}

.nh-form-embed.nh-form-embed--inherit .nh-form-desc {
  opacity: 0.85;
}

.nh-form-embed.nh-form-embed--inherit input[type="text"],
.nh-form-embed.nh-form-embed--inherit input[type="email"],
.nh-form-embed.nh-form-embed--inherit input[type="tel"],
.nh-form-embed.nh-form-embed--inherit input[type="number"],
.nh-form-embed.nh-form-embed--inherit .nh-datetime-date,
.nh-form-embed.nh-form-embed--inherit .nh-datetime-time,
.nh-form-embed.nh-form-embed--inherit select,
.nh-form-embed.nh-form-embed--inherit textarea {
  color: inherit;
  background: transparent;
  border-color: color-mix(in srgb, currentColor 35%, transparent);
}

.nh-form-embed.nh-form-embed--inherit .nh-submit {
  color: var(--nh-button-text, #fff);
  background: var(--nh-button-bg, #b45309);
}

.nh-form-embed .nh-form-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--nh-text);
}

.nh-form-embed .nh-form-desc {
  margin: 0 0 1rem;
  color: var(--nh-muted);
  font-size: 0.9375rem;
}

.nh-form-embed .nh-field {
  margin-bottom: 1rem;
}

.nh-form-embed .nh-field[hidden] {
  display: none;
}

.nh-form-embed .nh-choice {
  display: block;
  margin: 0.25rem 0;
  font-weight: 400;
}

.nh-form-embed .nh-choice input {
  margin-right: 0.35rem;
}

.nh-form-embed label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--nh-text);
}

.nh-form-embed .nh-required {
  color: var(--nh-required);
}

.nh-form-embed input[type="text"],
.nh-form-embed input[type="email"],
.nh-form-embed input[type="tel"],
.nh-form-embed input[type="number"],
.nh-form-embed .nh-datetime-date,
.nh-form-embed .nh-datetime-time,
.nh-form-embed select,
.nh-form-embed textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--nh-input-border);
  border-radius: 0.375rem;
  font-size: 1rem;
  color: var(--nh-input-text);
  background: var(--nh-input-bg);
}

.nh-form-embed textarea {
  min-height: 6rem;
  resize: vertical;
}

.nh-form-embed .nh-datetime {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 0.65rem;
}

.nh-form-embed .nh-datetime-part-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--nh-muted);
}

.nh-form-embed.nh-form-embed--inherit .nh-datetime-part-label {
  opacity: 0.85;
}

.nh-form-embed .nh-datetime-now {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--nh-button-bg);
  font: inherit;
  font-size: inherit;
  font-weight: 500;
  line-height: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.nh-form-embed.nh-form-embed--inherit .nh-datetime-now {
  color: inherit;
}

@media (max-width: 420px) {
  .nh-form-embed .nh-datetime {
    grid-template-columns: 1fr;
  }
}

.nh-form-embed .nh-screenshots {
  border: 1px dashed var(--nh-input-border);
  border-radius: 0.375rem;
  padding: 0.75rem;
  background: var(--nh-input-bg);
}

.nh-form-embed .nh-screenshots:focus {
  outline: 2px solid var(--nh-button-bg);
  outline-offset: 2px;
}

.nh-form-embed .nh-screenshots-hint {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--nh-muted);
}

.nh-form-embed .nh-screenshots-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nh-form-embed .nh-screenshots-item {
  margin: 0;
}

.nh-form-embed .nh-screenshots-item img {
  display: block;
  width: 6.5rem;
  height: 4.5rem;
  object-fit: cover;
  border-radius: 0.25rem;
  border: 1px solid var(--nh-input-border);
}

.nh-form-embed .nh-screenshots-item button {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  background: none;
  border: none;
  color: var(--nh-error);
  cursor: pointer;
  padding: 0;
}

.nh-form-embed .nh-screenshots-add {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--nh-button-bg);
  cursor: pointer;
}

.nh-form-embed .nh-screenshots-add input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.nh-form-embed .nh-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.nh-form-embed .nh-submit {
  margin-top: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--nh-button-text);
  background: var(--nh-button-bg);
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
}

.nh-form-embed .nh-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.nh-form-embed .nh-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.9375rem;
}

.nh-form-embed .nh-message--success {
  background: var(--nh-success-bg);
  color: var(--nh-success);
  border: 1px solid var(--nh-success-border);
}

.nh-form-embed .nh-message--error {
  background: var(--nh-error-bg);
  color: var(--nh-error);
  border: 1px solid var(--nh-error-border);
}

.nh-form-embed .nh-errors {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: var(--nh-error-bg);
  border: 1px solid var(--nh-error-border);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: var(--nh-error);
}

.nh-form-embed .nh-field-error {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--nh-error);
}
