/* основной контейнер формы — карточка */
.form-card {
  max-width: 680px;
  width: 100%;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  padding: 32px 36px;
  transition: all 0.2s;
}

h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #0b1b2a;
  margin-bottom: 6px;
}

.subhead {
  font-size: 15px;
  color: #5e6f7e;
  margin-bottom: 28px;
  border-left: 3px solid #2b7be4;
  padding-left: 14px;
  font-weight: 400;
}

/* стили для групп полей */
.field-group {
  margin-bottom: 22px;
}

label {
  display: block;
  font-weight: 500;
  font-size: 14px;
  color: #1e2f3d;
  margin-bottom: 6px;
}

label i {
  margin-right: 6px;
  color: #5e7a93;
  width: 18px;
  text-align: center;
}

.hint {
  font-size: 13px;
  color: #8192a3;
  margin-left: 26px;
  margin-top: 2px;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 1.5px solid #dfe5ec;
  border-radius: 16px;
  background: #fafcfd;
  transition:
    border 0.15s,
    box-shadow 0.15s;
  font-family: inherit;
}

textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.5;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #2b7be4;
  box-shadow: 0 0 0 4px rgba(43, 123, 228, 0.1);
  background: #ffffff;
}

/* поле с иконкой валюты / единиц */
.input-with-suffix {
  display: flex;
  align-items: center;
  border: 1.5px solid #dfe5ec;
  border-radius: 16px;
  background: #fafcfd;
  transition:
    border 0.15s,
    box-shadow 0.15s;
}
.input-with-suffix:focus-within {
  border-color: #2b7be4;
  box-shadow: 0 0 0 4px rgba(43, 123, 228, 0.1);
  background: #ffffff;
}
.input-with-suffix input {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 12px 8px 12px 16px;
  flex: 1;
  min-width: 0;
  border-radius: 16px 0 0 16px;
}
.input-with-suffix input:focus {
  box-shadow: none;
  outline: none;
}
.suffix {
  padding: 0 16px 0 8px;
  color: #3f5a70;
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
}

/* Категория — селект */
select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%233f5a70" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  cursor: pointer;
}

/* блок файла */
.file-upload-area {
  border: 1.5px dashed #cbd5e1;
  border-radius: 16px;
  padding: 14px 18px;
  background: #fbfdff;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.file-btn {
  background: white;
  border: 1.5px solid #d0dae3;
  border-radius: 40px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  color: #1e2f3d;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.15s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.file-btn i {
  color: #2b7be4;
  font-size: 16px;
}
.file-btn:hover {
  background: #eef4fa;
  border-color: #2b7be4;
}

.file-name {
  color: #415f73;
  font-size: 14px;
  background: #ecf1f6;
  padding: 6px 14px;
  border-radius: 40px;
  flex: 1;
  min-width: 140px;
}
.file-name i {
  margin-right: 6px;
  opacity: 0.7;
}

input[type="file"] {
  display: none;
}

/* чекбокс опубликовать */
.checkbox-row {
  display: flex;
  align-items: center;
  margin: 18px 0 28px;
}
.checkbox-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-right: 12px;
  accent-color: #2b7be4;
  border-radius: 6px;
  cursor: pointer;
}
.checkbox-row label {
  margin-bottom: 0;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  color: #152b3c;
}

/* кнопки действия */
.action-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.btn {
  border: none;
  padding: 14px 30px;
  border-radius: 60px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.18s;
  text-decoration: none;
  flex: 1 1 180px;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: #1a5bbf;
  color: white;
  box-shadow: 0 6px 14px rgba(26, 91, 191, 0.2);
}
.btn-primary i {
  color: white;
}
.btn-primary:hover {
  background: #0e4aab;
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(26, 91, 191, 0.25);
}

.btn-secondary {
  background: white;
  border-color: #cfdde9;
  color: #2c4459;
}
.btn-secondary i {
  color: #5f7d98;
}
.btn-secondary:hover {
  background: #f4f8fd;
  border-color: #a6bbce;
}

/* микро-разметка под вес (дублируется в виде снизу, просто визуал) */
.extra-weight-block {
  margin-top: 18px;
  border-top: 1px solid #e6ecf2;
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2e506a;
  font-size: 14px;
}
.extra-weight-block i {
  color: #2b7be4;
}

/* адаптив */
@media (max-width: 520px) {
  .form-card {
    padding: 24px 20px;
  }
  .file-upload-area {
    flex-direction: column;
    align-items: flex-start;
  }
  .action-buttons .btn {
    flex: 1 1 100%;
  }
}

/* классы для отображения выбранного файла (JS) */
.hidden-file-input {
  display: none;
}

.error-text {
  color: #c7423b;
  font-size: 13px;
  margin-top: 6px;
}
