/* pages/farmer/add/add.wxss */
.container {
  height: 100vh;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
}

.status-bar {
  background-color: #4CAF50;
}

.form-container {
  flex: 1;
  padding: 20rpx;
}

/* 表单区块 */
.form-section {
  background-color: white;
  border-radius: 16rpx;
  margin-bottom: 20rpx;
  overflow: hidden;
}

.section-title {
  padding: 30rpx;
  font-size: 32rpx;
  font-weight: bold;
  color: #333;
  background-color: #f8f9fa;
  border-bottom: 1rpx solid #eee;
}

/* 表单项 */
.form-item {
  padding: 30rpx;
  border-bottom: 1rpx solid #f0f0f0;
}

.form-item:last-child {
  border-bottom: none;
}

.form-label {
  display: flex;
  align-items: center;
  font-size: 28rpx;
  color: #333;
  margin-bottom: 20rpx;
}

.required {
  color: #f44336;
  margin-right: 8rpx;
}

/* 输入框 */
.form-input {
  width: 100%;
  height: 80rpx;
  padding: 0 20rpx;
  background-color: #f8f9fa;
  border: 1rpx solid #e0e0e0;
  border-radius: 8rpx;
  font-size: 28rpx;
  color: #333;
}

.form-input:focus {
  border-color: #4CAF50;
  background-color: white;
}

/* 选择器 */
.form-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80rpx;
  padding: 0 20rpx;
  background-color: #f8f9fa;
  border: 1rpx solid #e0e0e0;
  border-radius: 8rpx;
  font-size: 28rpx;
}

.placeholder {
  color: #999;
}

.picker-arrow {
  color: #999;
  font-size: 24rpx;
  transform: rotate(90deg);
}

/* 文本域 */
.form-textarea {
  width: 100%;
  min-height: 160rpx;
  padding: 20rpx;
  background-color: #f8f9fa;
  border: 1rpx solid #e0e0e0;
  border-radius: 8rpx;
  font-size: 28rpx;
  color: #333;
  box-sizing: border-box;
}

.form-textarea:focus {
  border-color: #4CAF50;
  background-color: white;
}

.char-count {
  text-align: right;
  font-size: 24rpx;
  color: #999;
  margin-top: 10rpx;
}

/* 底部间距 */
.bottom-space {
  height: 120rpx;
}

/* 底部操作栏 */
.bottom-bar {
  display: flex;
  padding: 20rpx;
  background-color: white;
  border-top: 1rpx solid #eee;
  gap: 20rpx;
}

.cancel-btn {
  flex: 1;
  height: 88rpx;
  line-height: 88rpx;
  background-color: #f5f5f5;
  color: #666;
  border: none;
  border-radius: 44rpx;
  font-size: 32rpx;
  text-align: center;
}

.cancel-btn:active {
  background-color: #e0e0e0;
}

.submit-btn {
  flex: 2;
  height: 88rpx;
  line-height: 88rpx;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 44rpx;
  font-size: 32rpx;
  text-align: center;
}

.submit-btn:active {
  background-color: #45a049;
}

.submit-btn[disabled] {
  background-color: #ccc;
  color: #999;
}

.submit-btn[disabled]:active {
  background-color: #ccc;
}