:root {
  color-scheme: light;
  --text: #1f2328;
  --muted: #6b7280;
  --border: #e2e5e9;
  --bg: #ffffff;
  --banner-bg: #e3f6ea;
  --banner-text: #1d5b34;
  --accent: #111111;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 12px;
}

h1 {
  font-size: 1.6rem;
  margin: 0 0 16px;
}

.banner {
  background: var(--banner-bg);
  color: var(--banner-text);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.intro {
  color: var(--text);
  margin-bottom: 32px;
}

section {
  margin-bottom: 32px;
}

h2 {
  font-size: 1.15rem;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
}

.section-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 18px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.required {
  color: #e5484d;
  margin-left: 2px;
}

.field-help {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 8px;
}

input[type="text"],
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
}

input[type="text"]::placeholder,
textarea::placeholder {
  color: #a8adb4;
}

textarea {
  resize: vertical;
}

.dropzone {
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  padding: 40px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.dropzone.dragover {
  border-color: var(--accent);
  background: #fafafa;
}

.file-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.88rem;
}

.file-list .file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 12px;
}

.file-list .file-size {
  color: var(--muted);
  white-space: nowrap;
  margin-right: 12px;
}

.file-list .remove-file {
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 2px 6px;
}

.file-list .remove-file:hover {
  color: #e5484d;
}

.turnstile-wrap {
  margin-bottom: 20px;
}

.form-message {
  font-size: 0.9rem;
  margin-bottom: 16px;
  min-height: 1.2em;
}

.form-message.error {
  color: #c8322d;
}

.form-message.success {
  color: #1d5b34;
}

.progress-wrap {
  height: 8px;
  border-radius: 999px;
  background: #eceef1;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.15s ease-out;
}

button[type="submit"] {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

button[type="submit"]:disabled {
  background: #9aa0a6;
  cursor: not-allowed;
}
