/* ===============================
   🔵 Post Item Page Styles
   =============================== */

/* 🟢 Header */
.post-header {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #021317;
  padding: 1rem 2rem;
}

.post-header h1 {
  font-size: 2rem;
  color: #49c2f2 !important;
  text-align: center;
}

/* 🟢 Form Container */
#post-form-section {
  padding: 20px;
  background-color: #021317;
  color: #bce9fa !important;
  border-radius: 10px;
  max-width: 600px;
  margin: 20px auto;
  border: 2px solid #21b5ef;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#post-form-section h2 {
  color: #49c2f2 !important;
  text-align: center;
  margin-bottom: 20px;
}

/* 🟢 Form Inputs */
#post-item-form input,
#post-item-form textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 2px solid #21b5ef;
  border-radius: 5px;
  background-color: #021317 !important;
  color: #bce9fa !important;
  font-size: 1rem;
}

#post-item-form input[type="file"] {
  background-color: #021317 !important;
  color: #bce9fa !important;
  border: 2px solid #21b5ef;
}

#post-item-form input::placeholder,
#post-item-form textarea::placeholder {
  color: #bce9fa !important;
}

/* 🟢 Submit Button */
#post-item-form button {
  background-color: #9370DB !important;
  color: #021317 !important;
  border: 2px solid #9370DB;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  width: 100%;
  font-size: 1rem;
}

#post-item-form button:hover {
  background-color: #bce9fa !important;
  color: #021317 !important;
}

#post-item-form button:active {
  transform: scale(0.98);
}


/* 🖼️ Image Preview */
#image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.preview-img {
  width: 100px;
  height: auto;
  border: 2px solid #49c2f2;
  border-radius: 6px;
  object-fit: cover;
  background-color: #000; /* fallback bg */
  padding: 2px;
}


/* ===============================
   🟣 Sizing & Checkbox Layout
   =============================== */


/* Inline checkbox for dimension override */

.size-checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 8px;
}


.hint {
  font-size: 0.9rem;
  color: #ccc;
  margin-top: -5px;
  margin-bottom: 10px;
}

/* 🟢 Shipping dimensions */
.field-group {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.field {
  flex: 1 1 30%;
}

.field label {
  font-size: 0.9rem;
  color: #bce9fa;
}
#dimensions-group {
  transition: all 0.3s ease;
}
