:root {
  --brand: #1F4E78;
  --brand-dark: #163a59;
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1c2530;
  --muted: #6b7684;
  --border: #dfe4ea;
  --error: #c0392b;
  --success: #1e8e3e;
  --radius: 10px;
}

* { box-sizing: border-box; }

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

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.brand h1 { flex: 1; }

.lang-switch {
  display: flex;
  gap: 4px;
  font-size: 13px;
}

.lang-switch a {
  padding: 4px 9px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
}

.lang-switch a.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}

.brand h1 {
  font-size: 18px;
  margin: 0;
  color: var(--brand-dark);
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(20, 30, 40, 0.06);
}

.card h2 {
  margin-top: 0;
  font-size: 20px;
}

.field {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

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

input[type="text"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
}

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

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 78, 120, 0.12);
}

.photo-input {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  background: #fafbfc;
}

.photo-input input { display: none; }

.photo-preview {
  margin-top: 12px;
  max-width: 100%;
  border-radius: 8px;
  display: none;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captcha-row span {
  font-weight: 600;
  white-space: nowrap;
}

.captcha-row input { max-width: 100px; }

.honeypot { position: absolute; left: -9999px; top: -9999px; }

button.submit {
  width: 100%;
  padding: 14px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

button.submit:hover { background: var(--brand-dark); }
button.submit:disabled { opacity: 0.6; cursor: not-allowed; }

.alert {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}

.alert.error {
  background: #fdecea;
  color: var(--error);
  border: 1px solid #f6c4bd;
}

.alert.success {
  background: #e8f5e9;
  color: var(--success);
  border: 1px solid #b7e1bb;
}

.required::after {
  content: " *";
  color: var(--error);
}

.success-page .card { text-align: center; }
.success-code {
  font-size: 28px;
  font-weight: 700;
  color: var(--brand);
  margin: 12px 0;
  letter-spacing: 0.5px;
}

table.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
}

table.admin-table th, table.admin-table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

table.admin-table th {
  background: var(--brand);
  color: #fff;
  position: sticky;
  top: 0;
}

table.admin-table img.thumb {
  width: 70px;
  border-radius: 4px;
  cursor: pointer;
}

.admin-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.badge.new { background: #fff3cd; color: #8a6d00; }
.badge.progress { background: #cfe2ff; color: #084298; }
.badge.review { background: #e2d9f3; color: #4a2f7a; }
.badge.done { background: #d1e7dd; color: #0f5132; }
.badge.rejected { background: #f8d7da; color: #842029; }

.report-photos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.report-photos img.thumb { width: 60px; }
.report-text { white-space: pre-wrap; font-size: 13px; margin: 0; }
.report-meta { font-size: 11px; color: var(--muted); margin-top: 4px; }
