:root {
  --sc-green: #3d5c45;
  --sc-green-dark: #2f4a38;
  --sc-gold: #f0b429;
  --sc-gold-hover: #e5a820;
  --sc-ink: #4a4a4a;
  --sc-border: #d8dde3;
  --sc-bg: #eef1ef;
  --sc-card: #ffffff;
  --sc-error: #c0392b;
  --sc-muted: #6b7d72;
}

.sc-page {
  min-height: 100%;
  background: var(--sc-bg);
  color: var(--sc-ink);
  font-family: Georgia, "Times New Roman", serif;
}

.sc-main {
  max-width: 960px;
  margin: 0 auto;
  padding: calc(var(--site-header-h) + 24px) 20px 48px;
}

.sc-back {
  display: inline-block;
  margin-bottom: 16px;
  font-family: "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--sc-green);
  text-decoration: none;
}

.sc-back:hover {
  text-decoration: underline;
}

.sc-card {
  background: var(--sc-card);
  border: 1px solid var(--sc-border);
  border-radius: 4px;
  padding: 28px 32px 36px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.sc-title-wrap {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 4px solid var(--sc-gold);
}

.sc-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 400;
  color: var(--sc-green);
  line-height: 1.2;
}

.sc-field {
  margin-bottom: 20px;
}

.sc-field label {
  display: block;
  margin-bottom: 6px;
  font-family: "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--sc-green);
  line-height: 1.4;
}

.sc-field label .sc-ar,
.sc-field label .sc-hi {
  font-weight: 500;
  color: var(--sc-muted);
}

.sc-field input[type="text"],
.sc-field select,
.sc-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--sc-border);
  border-radius: 3px;
  background: #f8f9fa;
  font-family: "Segoe UI", sans-serif;
  font-size: 15px;
  color: var(--sc-ink);
}

.sc-field textarea {
  min-height: 110px;
  resize: vertical;
}

.sc-field input:focus,
.sc-field select:focus,
.sc-field textarea:focus {
  outline: 2px solid rgba(61, 92, 69, 0.25);
  border-color: var(--sc-green);
  background: #fff;
}

.sc-field.is-invalid input,
.sc-field.is-invalid select,
.sc-field.is-invalid textarea {
  border-color: var(--sc-error);
}

.sc-error {
  margin: 6px 0 0;
  font-family: "Segoe UI", sans-serif;
  font-size: 13px;
  color: var(--sc-error);
}

.sc-section-title {
  margin: 32px 0 16px;
  font-family: "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--sc-green);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.sc-section-title .sc-ar,
.sc-section-title .sc-hi {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  color: var(--sc-muted);
}

.sc-checklist-head {
  display: none;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 0 0 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--sc-border);
  font-family: "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--sc-green);
}

.sc-checklist-head span:nth-child(2),
.sc-checklist-head span:nth-child(3) {
  min-width: 110px;
  text-align: center;
}

.sc-checklist-group {
  margin-bottom: 24px;
}

.sc-checklist-group-title {
  margin: 0 0 12px;
  font-family: "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--sc-green-dark);
  text-transform: uppercase;
}

.sc-checklist-group-title .sc-ar,
.sc-checklist-group-title .sc-hi {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  color: var(--sc-muted);
}

.sc-checklist-head .sc-ar,
.sc-checklist-head .sc-hi,
.sc-check-option-text .sc-ar,
.sc-check-option-text .sc-hi {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--sc-muted);
}

.sc-check-option-text {
  line-height: 1.35;
}

.sc-checklist-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid #eceff2;
}

.sc-checklist-label {
  font-family: "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--sc-ink);
}

.sc-checklist-label .sc-ar,
.sc-checklist-label .sc-hi {
  display: block;
  margin-top: 2px;
  color: var(--sc-muted);
  font-size: 13px;
}

.sc-checklist-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.sc-check-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--sc-ink);
  cursor: pointer;
  min-height: 36px;
}

.sc-check-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--sc-green);
  cursor: pointer;
}

.sc-lsr-block {
  margin-top: 8px;
}

.sc-lsr-question {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 24px;
  margin-bottom: 16px;
  font-family: "Segoe UI", sans-serif;
  font-size: 15px;
  color: var(--sc-ink);
}

.sc-lsr-question-text {
  flex: 1 1 260px;
  line-height: 1.45;
}

.sc-lsr-question-text .sc-ar,
.sc-lsr-question-text .sc-hi,
.sc-lsr-rules p .sc-ar,
.sc-lsr-rules p .sc-hi,
.sc-lsr-item-text .sc-ar,
.sc-lsr-item-text .sc-hi {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--sc-muted);
}

.sc-lsr-item-text {
  line-height: 1.35;
}

.sc-lsr-radios {
  display: flex;
  gap: 20px;
}

.sc-lsr-rules {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--sc-border);
  border-radius: 4px;
  background: #f8f9fa;
}

.sc-lsr-rules[hidden] {
  display: none !important;
}

.sc-lsr-rules p {
  margin: 0 0 12px;
  font-family: "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--sc-muted);
}

.sc-lsr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px 16px;
}

.sc-lsr-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
}

.sc-lsr-item input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--sc-green);
  flex-shrink: 0;
}

.sc-image-upload {
  margin-top: 8px;
}

.sc-image-hint {
  margin: 0 0 12px;
  font-family: "Segoe UI", sans-serif;
  font-size: 13px;
  color: var(--sc-muted);
  line-height: 1.45;
}

.sc-image-input--desktop {
  display: none !important;
}

.sc-sr-only {
  position: fixed;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.sc-camera-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.75);
}

.sc-camera-overlay[hidden] {
  display: none !important;
}

.sc-camera-card {
  width: min(100%, 480px);
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.sc-camera-title {
  margin: 0 0 12px;
  font-family: "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--sc-green);
  text-align: center;
}

.sc-camera-viewport {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: #000;
}

.sc-camera-viewport video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sc-camera-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.sc-camera-actions .sc-image-action-btn {
  max-width: none;
}

.sc-image-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 420px;
}

.sc-image-action-btn {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--sc-green);
  border-radius: 4px;
  background: #fff;
  color: var(--sc-green);
  font-family: "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.sc-image-action-btn .sc-ar,
.sc-image-action-btn .sc-hi {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--sc-muted);
}

.sc-image-action-btn--capture {
  background: var(--sc-green);
  color: #fff;
}

.sc-image-action-btn--capture .sc-ar,
.sc-image-action-btn--capture .sc-hi {
  color: rgba(255, 255, 255, 0.85);
}

.sc-image-action-btn:hover,
.sc-image-action-btn:focus-visible {
  filter: brightness(0.97);
  outline: 2px solid var(--sc-gold);
  outline-offset: 2px;
}

@media (min-width: 520px) {
  .sc-image-actions {
    flex-direction: row;
  }

  .sc-image-action-btn {
    flex: 1 1 0;
    width: auto;
  }
}

.sc-image-preview {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--sc-border);
  border-radius: 4px;
  background: #f8f9fa;
  max-width: 420px;
}

.sc-image-preview[hidden] {
  display: none !important;
}

.sc-image-preview img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
}

.sc-image-remove {
  margin-top: 10px;
  padding: 8px 14px;
  border: 1px solid var(--sc-border);
  border-radius: 4px;
  background: #fff;
  color: var(--sc-green);
  font-family: "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.sc-image-remove:hover {
  background: #f0f4f1;
}

.sc-captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 28px 0 20px;
}

.sc-captcha-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--sc-border);
  border-radius: 3px;
  background: #f0f2f4;
  font-family: "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sc-green-dark);
  user-select: none;
}

.sc-captcha-row input {
  width: 120px;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--sc-border);
  border-radius: 3px;
  font-family: "Segoe UI", sans-serif;
  font-size: 15px;
}

.sc-submit {
  display: inline-block;
  min-width: 140px;
  padding: 12px 28px;
  border: none;
  border-radius: 3px;
  background: var(--sc-gold);
  color: #1a1a1a;
  font-family: "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sc-submit:hover:not(:disabled) {
  background: var(--sc-gold-hover);
}

.sc-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.sc-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
}

.sc-overlay[hidden] {
  display: none !important;
}

.sc-overlay-card {
  background: #fff;
  border-radius: 6px;
  padding: 28px 32px;
  max-width: 420px;
  width: calc(100% - 32px);
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.sc-overlay-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
  color: var(--sc-green);
}

.sc-overlay-card p {
  margin: 0 0 20px;
  font-family: "Segoe UI", sans-serif;
  font-size: 15px;
  color: var(--sc-ink);
}

.sc-overlay-card button {
  padding: 10px 24px;
  border: none;
  border-radius: 3px;
  background: var(--sc-green);
  color: #fff;
  font-family: "Segoe UI", sans-serif;
  font-size: 15px;
  cursor: pointer;
}

.sc-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border: 3px solid #e0e0e0;
  border-top-color: var(--sc-green);
  border-radius: 50%;
  animation: sc-spin 0.8s linear infinite;
}

@keyframes sc-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 640px) {
  .sc-checklist-head {
    display: grid;
  }

  .sc-checklist-row {
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
  }

  .sc-checklist-options {
    display: contents;
  }

  .sc-check-option {
    justify-content: center;
    min-width: 110px;
  }
}

@media (max-width: 639px) {
  .sc-card {
    padding: 20px 16px 28px;
  }

  .sc-main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .sc-lsr-grid {
    grid-template-columns: 1fr;
  }

  .sc-submit {
    width: 100%;
  }
}
