body {
  margin: 0;
  font-family: Arial, sans-serif;
}

.container {
  display: flex;
  flex-wrap: row;
  justify-content: space-between;
  padding: 120px 80px 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 120px;
}

.image-preview {
  width: 100%;
  max-width: 500px;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
  margin-bottom: 20px;
  aspect-ratio: 1; /* Maintain a square aspect ratio */
  margin-right: 20px;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 15px;
}

.form-container input,
.form-container textarea,
.form-container select,
.form-container button {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.form-container textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: none; /* Prevent resizing by user */
  overflow-y: auto; /* Allow vertical scrolling if content exceeds */
  height: auto; /* Let the height adjust based on content */
  min-height: 80px; /* Optional: Set a minimum height */
}

.upload-btn {
  margin: 0 auto;
  width: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  margin-bottom: 10px;
  gap: 15px;
  background-color: #4caf50;
  padding: 10px;
  border-radius: 5px;
  color: white;
}

.upload-btn svg {
  stroke: white;
}

.form-container button {
  background-color: #4caf50;
  color: white;
  cursor: pointer;
}

.form-container button.delete {
  background-color: #f44336;
}

@media (max-width: 1024px) {
  .container {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
    padding: 80px 20px 20px; /* Adjust top padding for mobile */
  }

  .image-preview {
    margin-right: 0;
    margin-bottom: 20px;
    max-width: 100%;
    aspect-ratio: 1; /* Maintain square ratio */
  }

  .form-container {
    width: 100%;
  }
}
