:root {
  --bg: #f5f7fb;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 6px 16px rgba(17, 24, 39, .06);
  --radius: 14px;

  --primary: #0b5fff;
  --primary2: #0848c5;

  --warnBg: rgba(245, 158, 11, .16);
  --warnBr: rgba(245, 158, 11, .28);
  --warnTx: #b45309;

  /* 4 bo'lim ranglari (ochiq) */
  --c1: #ffffff;
  --c2: #f0f7ff;
  /* light blue */
  --c3: #f3fff4;
  /* light green */
  --c4: #fff7f0;
  /* light peach */
}

* {
  box-sizing: border-box;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  max-width: 900px;
  margin: auto;
  padding: 14px;
  background: var(--bg);
  color: var(--text);
}

h2 {
  text-align: center;
  margin: 10px 0 14px;
  letter-spacing: .2px;
  font-size: 20px;
}

.section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 12px;
}

.s1 {
  background: var(--c1);
}

.s2 {
  background: var(--c2);
}

.s3 {
  background: var(--c3);
}

.s4 {
  background: var(--c4);
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}

.section-title h3 {
  margin: 0;
  font-size: 15px;
}

.section-title small {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}

label {
  font-weight: 700;
  margin-top: 10px;
  display: block;
  color: #1f2937;
  font-size: 13px;
}

input,
textarea,
select,
button {
  width: 100%;
  padding: 11px 12px;
  margin-top: 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 15px;
  background: #fff;
  outline: none;
  transition: .15s ease;
}

textarea {
  resize: none;
  line-height: 1.45;
  min-height: 92px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(11, 95, 255, .45);
  box-shadow: 0 0 0 3px rgba(11, 95, 255, .12);
}

.hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
}

.lamp {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--warnBg);
  border: 1px solid var(--warnBr);
  color: var(--warnTx);
  font-weight: 900;
  font-size: 12px;
  flex: 0 0 18px;
  margin-top: 1px;
}

.chip {
  display: inline-block;
  margin-top: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  width: auto;
}

button {
  background: var(--primary);
  color: #fff;
  border: none;
  font-weight: 900;
  cursor: pointer;
  margin-top: 12px;
}

button:hover {
  background: var(--primary2);
}

.btn-ghost {
  background: #fff;
  color: #111827;
  border: 1px solid var(--border);
  font-weight: 800;
}

.btn-ghost:hover {
  background: #f9fafb;
}

.btn-danger {
  background: rgba(239, 68, 68, .12);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, .18);
  font-weight: 900;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, .16);
}

/* Multi-field simple list */
.multi-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.multi-item {
  display: flex;
  gap: 8px;
  align-items: center;
}

.multi-item input {
  flex: 1;
}

.mini-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: #111827;
  font-weight: 900;
  cursor: pointer;
  flex: 0 0 44px;
}

.mini-btn:hover {
  background: #f9fafb;
}

/* Work list */
.work-item {
  border: 1px dashed rgba(17, 24, 39, .22);
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
  margin-top: 10px;
}

.work-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.work-head b {
  font-size: 13px;
}

.work-head span {
  font-size: 12px;
  color: var(--muted);
}

.req {
  color: #ef4444;
  font-weight: 900;
  margin-left: 4px;
}

/* "Kimsiz?" radio buttons */
.seg {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.seg input {
  display: none;
}

.seg label {
  margin: 0;
  flex: 1 1 140px;
  text-align: center;
  padding: 11px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
  font-size: 14px;
  user-select: none;
}

.seg input:checked+label {
  border-color: rgba(11, 95, 255, .35);
  box-shadow: 0 0 0 3px rgba(11, 95, 255, .10);
  background: rgba(11, 95, 255, .06);
  color: #0b5fff;
}

/* Sticky submit (mobile-friendly) */
.sticky-bar {
  position: sticky;
  bottom: 0;
  background: rgba(245, 247, 251, .75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(229, 231, 235, .8);
  border-radius: 14px;
  padding: 10px;
  margin-top: 10px;
}

.sticky-bar button {
  margin-top: 0;
}


@media (max-width: 600px) {
  body {
    padding: 12px;
  }

  input,
  textarea,
  select,
  button {
    font-size: 14px;
    padding: 10px 11px;
  }

  .mini-btn {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }
}
