:root {
  --primary: #d9480f;
  --primary-dark: #a83800;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --text: #1f2328;
  --muted: #6b7280;
  --border: #d9dce1;
  --success: #1a7f37;
  --error: #c92a2a;
}

* {
  box-sizing: border-box;
}

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

.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

.lang-switcher {
  position: fixed;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.lang-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.lang-btn.active {
  border-color: var(--primary);
}

.app-header h1 {
  font-size: 22px;
  margin: 8px 0 4px;
}

.app-header p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.report-form {
  background: var(--surface);
  border-radius: 12px;
  padding: 20px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.field {
  margin-bottom: 18px;
}

.field-row {
  display: flex;
  gap: 12px;
}

.field-row .field {
  flex: 1;
  min-width: 0;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.required {
  color: var(--error);
}

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

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
}

textarea {
  resize: vertical;
}

input[type="file"] {
  width: 100%;
  font-size: 14px;
}

.photo-preview {
  margin-top: 10px;
}

.photo-preview img {
  max-width: 100%;
  max-height: 220px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

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

.submit-btn:active {
  background: var(--primary-dark);
}

.submit-btn:disabled {
  background: #c9c9c9;
  cursor: not-allowed;
}

.result-message {
  margin-top: 16px;
  padding: 0;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}

.result-message.success {
  color: var(--success);
  font-weight: 600;
}

.result-message.error {
  color: var(--error);
  font-weight: 600;
}
