.form-field {
  margin-bottom: 15px;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}

input[type="text"],
input[type="number"],
input[type="date"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cfd6dd;
  border-radius: 8px;
  background: #fff;
  color: #222;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus {
  outline: none;
  border-color: #1e73be;
  box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.15);
}

.field-invalid {
  border-color: #d92d20 !important;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.12) !important;
}

.field-error {
  margin-top: 6px;
  color: #b42318;
  font-size: 0.9rem;
  font-weight: 600;
}

select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cfd6dd;
  border-radius: 8px;
  background: #fff;
  color: #222;
  font-size: 1rem;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #6b7280 50%),
    linear-gradient(135deg, #6b7280 50%, transparent 50%),
    linear-gradient(to right, #d7dde3, #d7dde3);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%,
    calc(100% - 36px) 50%;
  background-size: 6px 6px, 6px 6px, 1px 18px;
  background-repeat: no-repeat;
  transition: border-color 0.2s, box-shadow 0.2s;
}

select:focus {
  outline: none;
  border-color: #1e73be;
  box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.15);
}

.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.progress-wrap {
  margin-bottom: 14px;
}

.progress-label {
  font-size: 0.92rem;
  color: #4b5563;
  margin-bottom: 6px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #e6ebf0;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2a7ac8 0%, #1b5f9f 100%);
  transition: width 0.25s ease;
}

.slider-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider-wrap input[type="range"] {
  flex: 1;
}

.slider-value {
  min-width: 42px;
  text-align: center;
  background: #eef2f6;
  border: 1px solid #d7dde3;
  border-radius: 999px;
  padding: 4px 8px;
  font-weight: 700;
}

.rating-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rating-btn {
  border: 1px solid #cfd6dd;
  background: #fff;
  color: #1f2937;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}

.rating-btn.active {
  border-color: #1e73be;
  background: #eaf3ff;
  color: #114b84;
}

button.primary {
  background: linear-gradient(180deg, #1f6fba 0%, #155a9c 100%);
  color: #fff;
  border: 1px solid #114b84;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 6px 14px rgba(21, 90, 156, 0.2);
  transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease;
}

button.primary:hover {
  background: linear-gradient(180deg, #2478c6 0%, #1964aa 100%);
  box-shadow: 0 8px 18px rgba(21, 90, 156, 0.25);
}

button.primary:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(21, 90, 156, 0.2);
}

button.primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.25), 0 6px 14px rgba(21, 90, 156, 0.2);
}

button.secondary {
  background: #fff;
  color: #1f2937;
  border: 1px solid #cfd6dd;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
}

.card {
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.info-card {
  border: 1px solid #b6d7ff;
  background: #eaf3ff;
  color: #0b4f8a;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 600;
  position: relative;
  padding-left: 44px;
}

.info-empty {
  margin-top: 12px;
  color: #6b7280;
  font-style: italic;
}

.info-card::before {
  content: "ℹ";
  position: absolute;
  left: 16px;
  top: 14px;
  font-size: 1rem;
}

.info-info {
  border-color: #b6d7ff;
  background: #eaf3ff;
  color: #0b4f8a;
}

.info-info::before {
  content: "ℹ";
  color: #0b4f8a;
}

.info-warning {
  border-color: #f5d37a;
  background: #fff6dd;
  color: #8a5a00;
}

.info-warning::before {
  content: "⚠";
  color: #8a5a00;
}

.info-legal_note {
  border-color: #d6c7ff;
  background: #f2edff;
  color: #4c2d91;
}

.info-legal_note::before {
  content: "§";
  color: #4c2d91;
}

.bool-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  margin-left: 6px;
}

.bool-yes {
  background: #e7f6ec;
  color: #1f7a3f;
  border: 1px solid #b9e2c6;
}

.bool-no {
  background: #fdeaea;
  color: #b42318;
  border: 1px solid #f3b6b6;
}

.block-field {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  background: #fcfcfd;
}

.block-row {
  border: 1px dashed #d0d5dd;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
}

.block-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.block-row-title {
  font-weight: 600;
  color: #344054;
}

.block-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

.block-subfield {
  margin-bottom: 8px;
}

@media (max-width: 640px) {
  .form-nav {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .form-field label {
    font-size: 1.05rem;
  }

  input[type="text"],
  input[type="number"],
  input[type="date"],
  select {
    width: 100%;
    box-sizing: border-box;
    font-size: 1.05rem;
  }

  button.primary {
    width: 100%;
    font-size: 1.05rem;
    padding: 12px 16px;
  }

  button.secondary {
    width: 100%;
    font-size: 1.02rem;
  }

  .info-card {
    font-size: 1.02rem;
  }

  .card {
    font-size: 1.02rem;
  }
}
