* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #e9edf1;
  color: #323130;
}

.page {
  display: flex;
  justify-content: center;
  padding: 30px 16px 60px;
}

.form-container {
  width: 100%;
  max-width: 640px;
}

.form-header {
  background: #ffffff;
  border-top: 6px solid #0078d4;
  border-radius: 4px 4px 0 0;
  padding: 20px 24px 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.form-header h1 {
  margin: 0;
  font-size: 22px;
  color: #242424;
}

.required-note {
  color: #d83b01;
  font-size: 13px;
  margin-top: 6px;
}

.info-banner {
  background: #e9f3fc;
  padding: 14px 24px;
  font-size: 14px;
  color: #323130;
  border-bottom: 1px solid #dfe3e6;
}

.q-card {
  background: #f3f6f9;
  border-radius: 4px;
  padding: 24px;
  margin-top: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  display: none;
}

.q-card.active { display: block; }

.q-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #0078d4;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 3px;
  margin-bottom: 12px;
}

.q-title {
  font-size: 16px;
  margin: 0 0 4px;
  color: #242424;
}

.q-subtitle {
  font-size: 13px;
  color: #5b5b5b;
  margin-bottom: 10px;
}

.req { color: #d83b01; margin-left: 4px; }

.q-notes {
  font-size: 12.5px;
  color: #5b5b5b;
  margin: 8px 0 14px;
  padding-left: 18px;
}

.q-image.placeholder-image {
  background: linear-gradient(135deg, #0b2545, #134074);
  border-radius: 4px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: monospace;
  font-size: 18px;
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.q-image .highlight { color: #ff6b6b; }

.q-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: none;
  border-bottom: 2px solid #8a8886;
  background: #fff;
  border-radius: 2px 2px 0 0;
}
.q-input:focus { outline: none; border-bottom-color: #0078d4; }
.q-input:invalid:not(:placeholder-shown) { border-bottom-color: #d83b01; }

.q-error {
  display: none;
  color: #d83b01;
  font-size: 12px;
  margin-top: 6px;
}
.q-input:invalid:not(:placeholder-shown) ~ .q-error { display: block; }

.input-with-button { display: flex; gap: 10px; align-items: center; }
.input-with-button .q-input { flex: 1; }
.small-btn { padding: 8px 14px; font-size: 13px; white-space: nowrap; }
.helper-hint { font-size: 12px; color: #d83b01; margin-top: 6px; min-height: 16px; }

.upload-box { margin-top: 6px; }
.upload-box input[type="file"] { display: none; }
.upload-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #8a8886;
  border-radius: 3px;
  font-size: 13px;
  cursor: pointer;
}
.upload-btn:hover { background: #f3f2f1; }
.upload-hint { font-size: 11.5px; color: #5b5b5b; margin-top: 8px; }
.upload-filename { font-size: 13px; margin-top: 8px; color: #0078d4; font-weight: 600; }

.instructions {
  background: #fff;
  border-radius: 4px;
  padding: 14px 18px;
  margin: 10px 0 16px;
  font-size: 13px;
  color: #323130;
}
.instructions .os-title { font-weight: 600; margin: 10px 0 4px; color: #0078d4; }
.instructions ul { margin: 0 0 8px; padding-left: 20px; }
.instructions code {
  background: #f3f2f1;
  padding: 2px 6px;
  border-radius: 2px;
  font-family: Consolas, monospace;
  font-size: 12.5px;
}

.radio-group { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}
.radio-option input { width: 18px; height: 18px; accent-color: #0078d4; }

.review-block { font-size: 14px; }
.review-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #e1e4e7; }
.review-row .label { color: #5b5b5b; }
.review-row .value { font-weight: 600; text-align: right; max-width: 60%; }

.thank-you { text-align: center; }

.photo-review { margin-top: 16px; }
.photo-review-title { font-size: 13px; color: #5b5b5b; margin-bottom: 8px; }
.review-photo { display: none; max-width: 100%; border-radius: 4px; border: 1px solid #dfe3e6; }
.review-photo.has-image { display: block; }

.hardware-check {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: 600;
  background: #f3f2f1;
  color: #5b5b5b;
}
.hardware-check.status-match { background: #dff6dd; color: #107c10; }
.hardware-check.status-mismatch { background: #fde7e9; color: #d83b01; }
.hardware-check.status-warning { background: #fff4ce; color: #8a6d00; }
.hardware-check.status-error { background: #fde7e9; color: #a4262c; }

.nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.primary-btn, .secondary-btn {
  padding: 9px 22px;
  font-size: 14px;
  border-radius: 3px;
  cursor: pointer;
  border: none;
}
.primary-btn { background: #0078d4; color: #fff; }
.primary-btn:hover { background: #006abc; }
.primary-btn:disabled { background: #c8c6c4; cursor: not-allowed; }
.secondary-btn { background: #fff; color: #323130; border: 1px solid #8a8886; }
.secondary-btn:hover { background: #f3f2f1; }
.secondary-btn:disabled { opacity: .4; cursor: not-allowed; }

.form-footer {
  text-align: center;
  font-size: 12px;
  color: #8a8886;
  margin-top: 24px;
}
