
:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f5f6f8;
  color: #202124;
  line-height: 1.6;
}

main {
  max-width: 680px;
  margin: 48px auto;
  padding: 32px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

h1 {
  margin: 0 0 8px;
  font-size: 26px;
}

.description {
  margin-bottom: 32px;
  color: #666;
}

label {
  display: block;
  margin: 22px 0 6px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 11px;
  border: 1px solid #bbb;
  border-radius: 6px;
  background: #fff;
  font: inherit;
}

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

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #5876c5;
  outline-offset: 1px;
}

.hint {
  margin: 5px 0;
  color: #666;
  font-size: 13px;
}

.field-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  font-weight: 600;
}

.image-field {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
}

.image-field label {
  margin: 0 0 8px;
}

.preview {
  display: none;
  max-width: 100%;
  max-height: 240px;
  margin-top: 12px;
  border-radius: 8px;
  object-fit: contain;
}

button {
  width: 100%;
  margin-top: 24px;
  padding: 14px;
  background: #3056ac;
  color: #fff;
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button.add-image-button {
  margin-top: 12px;
  background: #fff;
  color: #3056ac;
  border: 1px dashed #3056ac;
}

button.remove-image-button {
  width: auto;
  margin-top: 10px;
  padding: 7px 12px;
  color: #b42318;
  background: #fff;
  border: 1px solid #ddd;
}

button.add-image-button:disabled {
  color: #777;
  border-color: #bbb;
}

.turnstile-container {
  margin-top: 28px;
}

#status {
  margin-top: 16px;
}

.error {
  color: #b42318;
}

.success {
  color: #167347;
}

#complete {
  text-align: center;
  padding: 48px 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  main {
    margin: 0;
    min-height: 100vh;
    padding: 24px 18px;
    border: 0;
    border-radius: 0;
  }

  h1 {
    font-size: 24px;
  }
}
