/* Layout formularza */
.ip-add-offer-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 992px) {
  .ip-add-offer-wrapper {
    grid-template-columns: 1fr 380px;
  }
  .ip-offer-preview-col {
    position: sticky;
    top: 100px;
    height: fit-content;
  }
}

.ip-offer-form-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* POPRAWIONE GAPS: 8px między polami */
.ip-offer-box {
  background: #f8f8f8;
  padding: 40px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ip-offer-preview-col {
  background: #f8f8f8;
  padding: 40px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ip-box-title {
  font-size: 24px;
  font-weight: 600;
  color: #1e1e1e;
  margin-bottom: 16px; /* 16 + 8gap = 24px oddechu */
  margin-top: 0;
}

/* Grupy przycisków (Radio + Checkbox locarno) */
.ip-btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ip-btn-group input[type="radio"],
.ip-btn-group input[type="checkbox"] {
  display: none;
}
.ip-btn-radio {
  padding: 12px 20px;
  background: #ffffff;
  border: 1px solid #00000040;
  border-radius: 4px;
  color: #1e1e1e;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}
.ip-btn-group input[type="radio"]:checked + .ip-btn-radio,
.ip-btn-group input[type="checkbox"]:checked + .ip-btn-radio {
  background: #1e1e1e;
  color: #ffffff;
  border-color: #1e1e1e;
}

.ip-label-optional {
  color: #8d8d8d;
  font-weight: 400;
  font-size: 14px;
  margin-left: 4px;
}
.ip-form-note {
  font-size: 13px;
  color: #8d8d8d;
  margin-top: 4px;
  display: block;
}

.ip-price-input-group {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 16px;
}

/* UPLOAD PLIKÓW */
.ip-file-upload-wrapper {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
}
.ip-single-file-input,
#gallery-input {
  display: none;
}
.ip-btn-outline {
  padding: 12px 24px;
  background: #ffffff;
  border: 1px solid #c5a059;
  border-radius: 4px;
  color: #c5a059;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ip-btn-outline:hover {
  background: #c5a059;
  color: #ffffff;
}

.ip-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5 !important;
}
.ip-char-counter {
  font-size: 13px;
  color: #8d8d8d;
  text-align: right;
  margin-top: -4px;
  display: block;
}

/* NOWA GALERIA - Lista plików */
.ip-gallery-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ip-gallery-list:not(:empty) {
  margin-bottom: 12px;
}
.ip-gallery-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 10px 14px;
  border: 1px solid #00000040;
  border-radius: 4px;
  font-size: 14px;
  color: #1e1e1e;
  font-weight: 500;
}
.ip-gallery-list-remove {
  background: transparent !important;
  border: none !important;
  color: #1e1e1e; /* Ciemnoszary, żeby nie krzyczał */
  font-size: 16px;
  font-weight: 400; /* Odchudzona grubość, żeby to był prosty X */
  cursor: pointer;
  padding: 0 !important;
  line-height: 1;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ip-gallery-list-remove:hover {
  color: #ff4d4d;
}

