/* Form styles — clean, modern, Instagram / X-inspired */
:root {
  --form-bg: #ffffff;
  --accent: #0095f6; /* friendly blue */
  --muted: #6b7280;
  --border: #e6e6e6;
  --radius: 10px;
  --shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
  --font-stack:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

/* Base form container */
.form,
.complex-form,
.comment-form {
  font-family: var(--font-stack);
  background: var(--form-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  max-width: 640px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.form-title,
.complex-form .form-title,
.comment-form .form-title {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 10px 0;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

label {
  font-size: 13px;
  color: var(--muted);
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 149, 246, 0.12);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.input-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.form-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 600;
}

.button-primary {
  background: linear-gradient(180deg, var(--accent), #0077cc);
  color: #fff;
  border: none;
  box-shadow: none;
  transition:
    transform 0.06s ease,
    box-shadow 0.12s ease,
    opacity 0.08s;
}

.button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.08);
}
.button-primary:active {
  transform: translateY(0);
}

.button-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: #0f172a;
}

.error {
  color: #d64545;
  font-size: 13px;
  margin-top: 6px;
}

.file-input {
  display: flex;
  gap: 10px;
  align-items: center;
}

.small {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 8px;
}

.center {
  text-align: center;
}

/* #submitImage target (file input preview/button) */
#submitImage {
  display: inline-block;
  border-radius: 8px;
  overflow: hidden;
}

/* Compact comment form tweaks */
.comment-form {
  max-width: 520px;
  padding: 12px;
}
.comment-form .form-title {
  font-size: 14px;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 480px) {
  .form,
  .complex-form,
  .comment-form {
    padding: 12px;
  }
  .form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
}

input {
  padding: 3px;
  margin: 3px;
}
