.order-form-container {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;

  .form-header {
    margin-bottom: 24px;
    
    h3 {
      font-size: 18px;
      font-weight: 600;
      color: #1a1a1a;
      margin: 0 0 8px 0;
    }
    
    p {
      font-size: 14px;
      color: #666;
      margin: 0;
    }
  }
}

.order-form {
  .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    
    &:last-child {
      margin-bottom: 0;
    }
  }
  
  .form-field {
    flex: 1;
    
    &.full-width {
      flex: 1 1 100%;
    }
    
    .field-label {
      display: block;
      font-size: 14px;
      font-weight: 500;
      color: #333;
      margin-bottom: 8px;
      
      .required {
        color: #ff4757;
        margin-left: 2px;
      }
    }
    
    .field-input,
    .field-select,
    .field-textarea {
      width: 100%;
      padding: 12px 16px;
      border: 1px solid #e1e5e9;
      border-radius: 8px;
      font-size: 14px;
      transition: all 0.2s ease;
      
      &:focus {
        outline: none;
        border-color: #4f46e5;
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
      }
      
      &::placeholder {
        color: #9ca3af;
      }
      
      &:invalid {
        border-color: #ef4444;
      }
    }
    
    .field-textarea {
      resize: vertical;
      min-height: 100px;
      font-family: inherit;
    }
    
    .input-with-unit {
      position: relative;
      display: flex;
      align-items: center;
      
      .field-input {
        padding-right: 50px;
      }
      
      .input-unit {
        position: absolute;
        right: 16px;
        font-size: 14px;
        color: #666;
        pointer-events: none;
      }
    }
    
    .field-error {
      margin-top: 6px;
      font-size: 12px;
      color: #ef4444;
    }
    
    .field-hint {
      margin-top: 6px;
      font-size: 12px;
      color: #6b7280;
    }
  }
}

.quotation-section,
.assignment-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

// 响应式设计
@media (max-width: 768px) {
  .order-form {
    .form-row {
      flex-direction: column;
      gap: 16px;
    }
  }
  
  .order-form-container {
    padding: 16px;
  }
}

// 表单验证状态
.form-field {
  .field-input.ng-invalid.ng-touched,
  .field-select.ng-invalid.ng-touched,
  .field-textarea.ng-invalid.ng-touched {
    border-color: #ef4444;
    background-color: #fef2f2;
  }
  
  .field-input.ng-valid.ng-touched,
  .field-select.ng-valid.ng-touched,
  .field-textarea.ng-valid.ng-touched {
    border-color: #10b981;
  }
}

// 金额匹配提示
.amount-mismatch-warning {
  background: #fef3cd;
  border: 1px solid #f6cc6d;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 16px;
  
  .warning-text {
    font-size: 14px;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 8px;
    
    svg {
      flex-shrink: 0;
    }
  }
}